From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Oct 6 13:50:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9AA894BC for ; Sun, 6 Oct 2013 13:50:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 796F72AD7 for ; Sun, 6 Oct 2013 13:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r96Do0GX079943 for ; Sun, 6 Oct 2013 13:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r96Do0Qb079942; Sun, 6 Oct 2013 13:50:00 GMT (envelope-from gnats) Resent-Date: Sun, 6 Oct 2013 13:50:00 GMT Resent-Message-Id: <201310061350.r96Do0Qb079942@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jimmy Kelley Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 07CDE16D for ; Sun, 6 Oct 2013 13:42:10 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id CE5B72A90 for ; Sun, 6 Oct 2013 13:42:09 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r96Dg9dI093410 for ; Sun, 6 Oct 2013 13:42:09 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r96Dg9Ig093407; Sun, 6 Oct 2013 13:42:09 GMT (envelope-from nobody) Message-Id: <201310061342.r96Dg9Ig093407@oldred.freebsd.org> Date: Sun, 6 Oct 2013 13:42:09 GMT From: Jimmy Kelley To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/182743: eclipse-devel fails to build on 10-CURRENT X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Oct 2013 13:50:00 -0000 >Number: 182743 >Category: ports >Synopsis: eclipse-devel fails to build on 10-CURRENT >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 06 13:50:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Jimmy Kelley >Release: 10-CURRENT >Organization: >Environment: FreeBSD jmobile.jimmy.localnet 10.0-ALPHA4 FreeBSD 10.0-ALPHA4 #0 r255987: Wed Oct 2 13:42:58 CDT 2013 root@jmobile.jimmy.localnet:/usr/obj/usr/src/sys/TOSHIBA i386 >Description: eclipse-devel build fails due to hardcoded references to "gcc" on a machine where GCC has been totally removed from base system. >How-To-Repeat: Attempt to build eclipse-devel port on a 10-CURRENT system where GCC has been totally removed from the base system. >Fix: The attached patch changes the offending hardcoded GCC references to use the port build system CC variable. Patch attached with submission follows: Index: files/freebsd-support.patch =================================================================== --- files/freebsd-support.patch (revision 329044) +++ files/freebsd-support.patch (working copy) @@ -56,7 +56,7 @@ case x$CC in - x*gcc*) make -f $makefile all PICFLAG=-fpic ;; - *) make -f $makefile all ;; -+ x*gcc*) ${MAKE} -f $makefile all PICFLAG=-fpic ;; ++ x*cc*) ${MAKE} -f $makefile all PICFLAG=-fpic ;; + *) ${MAKE} -f $makefile all ;; esac fi @@ -100,7 +100,7 @@ +endif + +# Define the object modules to be compiled and flags. -+CC=gcc ++CC?=gcc +MAIN_OBJS = eclipseMain.o +COMMON_OBJS = eclipseConfig.o eclipseCommon.o eclipseGtkCommon.o eclipseGtkInit.o +DLL_OBJS = eclipse.o eclipseGtk.o eclipseUtil.o eclipseJNI.o eclipseMozilla.o eclipseShm.o eclipseNix.o @@ -326,8 +326,8 @@ +OPT_FLAGS=-O2 -g -s -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 + +core : -+ gcc $(OPT_FLAGS) -fPIC -c $(JDK_INCLUDE) $(COMMON_INCLUDE) -o $(CORE.O) $(CORE.C) -+ gcc $(OPT_FLAGS) -shared -Wl,-soname,$(LIB_NAME) -o $(LIB_NAME_FULL) $(CORE.O) -lc ++ $(CC) $(OPT_FLAGS) -fPIC -c $(JDK_INCLUDE) $(COMMON_INCLUDE) -o $(CORE.O) $(CORE.C) ++ $(CC) $(OPT_FLAGS) -shared -Wl,-soname,$(LIB_NAME) -o $(LIB_NAME_FULL) $(CORE.O) -lc + +clean : + rm *.o @@ -676,7 +676,7 @@ +compile: + @echo "Building file: $(GNOMEPROXY.O)" + @echo "Invoking: GCC C Compiler" -+ gcc $(INCLUDE) $(COMPILER_FLAGS) -o $(GNOMEPROXY.O) $(GNOMEPROXY.C) ++ $(CC) $(INCLUDE) $(COMPILER_FLAGS) -o $(GNOMEPROXY.O) $(GNOMEPROXY.C) + @echo "Finished building: $(GNOMEPROXY.O)" + @echo " " + @@ -683,7 +683,7 @@ +link: compile + @echo "Building target: $(LIB_NAME_FULL)" + @echo "Invoking: GCC C Linker" -+ gcc $(LINKER_FLAGS) -shared -Wl,-soname,$(LIB_NAME) -o $(LIB_NAME_FULL) $(LIBS) $(GNOMEPROXY.O) -lc ++ $(CC) $(LINKER_FLAGS) -shared -Wl,-soname,$(LIB_NAME) -o $(LIB_NAME_FULL) $(LIBS) $(GNOMEPROXY.O) -lc + @echo "Finished building target: $(LIB_NAME_FULL)" + @echo " " + >Release-Note: >Audit-Trail: >Unformatted: