Date: Thu, 2 Jan 2014 02:44:02 GMT From: Stephen Hurd <shurd@sasktel.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/185405: [Patch] sysutils/fonteditfs fix build when no GCC installed Message-ID: <201401020244.s022i2Vw081755@oldred.freebsd.org> Resent-Message-ID: <201401020250.s022o0AB004348@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 185405 >Category: ports >Synopsis: [Patch] sysutils/fonteditfs fix build when no GCC installed >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Thu Jan 02 02:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Stephen Hurd >Release: 10.0-RC3 >Organization: >Environment: FreeBSD portable 10.0-RC3 FreeBSD 10.0-RC3 #0 r259778: Mon Dec 23 23:27:58 UTC 2013 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 >Description: sysutils/fonteditfs fails when no GCC is installed because "gcc" is hardcoded as the compiler. >How-To-Repeat: Build without gcc. >Fix: Patch attached. Use ${CC} Patch attached with submission follows: Index: patch-Makefile =================================================================== --- patch-Makefile (revision 338414) +++ patch-Makefile (working copy) @@ -1,6 +1,6 @@ ---- Makefile.orig 2003-09-20 12:17:34.000000000 -0300 -+++ Makefile 2009-08-29 14:56:21.000000000 -0300 -@@ -2,12 +2,7 @@ +--- Makefile.orig 2003-09-20 08:17:34.000000000 -0700 ++++ Makefile 2014-01-01 12:27:59.000000000 -0800 +@@ -2,14 +2,9 @@ # - TODO: MAKE NEATER ONE # This makefile should work under most POSIX OSes (at least FreeBSD) @@ -12,8 +12,11 @@ - +all: fnteditfs fnteditfs: fnteditfs.o font.o stack.o - gcc -o fnteditfs fnteditfs.o font.o stack.o -lcurses +- gcc -o fnteditfs fnteditfs.o font.o stack.o -lcurses ++ ${CC} -o fnteditfs fnteditfs.o font.o stack.o -lcurses strip fnteditfs + + fnteditfs.o: fnteditfs.c font.h stack.h @@ -17,8 +12,8 @@ stack.o: stack.c stack.h >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401020244.s022i2Vw081755>