ports/182743: eclipse-devel fails to build on 10-CURRENT
Jimmy Kelley
ljboiler at gmail.com
Sun Oct 6 13:50:00 UTC 2013
>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 at 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:
More information about the freebsd-ports-bugs
mailing list