ports/143093: print/pdftk installs gcc42, even if gcc44 exists

Tsurutani Naoki turutani at scphys.kyoto-u.ac.jp
Sat Jan 23 00:10:01 UTC 2010


>Number:         143093
>Category:       ports
>Synopsis:       print/pdftk installs gcc42, even if gcc44 exists
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 23 00:10:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Tsurutani Naoki
>Release:        FreeBSD 7.2-STABLE i386
>Organization:
>Environment:
System: FreeBSD h120.65.226.10.32118.vlan.kuins.net 7.2-STABLE FreeBSD 7.2-STABLE #21: Thu Jan 21 09:16:25 JST 2010 turutani at h120.65.226.10.32118.vlan.kuins.net:/usr/local/work/usr/obj/usr/src/sys/POLYMER i386


	
>Description:
	print/pdftk requires gcj to build.
	hence, print/pdftk use "USE_GCC=4.2+", but it always require gcc42
	even if higher versions of gcc are installed; "+" makes no sense.
	
>How-To-Repeat:
	
>Fix:
	FreeBSD 7.x, 8.x, current installs gcc42 without gcj, hence "USE_GCC=4.2+"
	always detect gcc in base system.
	Therefore, gcc version to use is always 4.2, and gcj42 does not exists
	unless lang/gcc42 is installed, then gcc42 is installed even if gcc43
	or gcc44 etc is installed.
	here is a patch to Makefile:

--- Makefile.orig	2010-01-01 04:33:29.000000000 +0900
+++ Makefile	2010-01-23 08:57:45.000000000 +0900
@@ -19,12 +19,18 @@
 # Make this explicit for all OS versions.  For __FreeBSD_version < 700042,
 # we need to build gcc 4.2+ to get gcj42, and for OS versions with gcc 4.2+
 # in the base system, we need to build the port anyway to get gcj42.
+.if !exists(${LOCALBASE}/bin/gcj42)
 BUILD_DEPENDS=	gcj${CSUFF}:${PORTSDIR}/lang/gcc${CSUFF}
+. if defined(WANT_GCC42)
+USE_GCC=	4.2+
+. else
+USE_GCC=	4.3+
+. endif
+.endif
 
 # Get gcc version suffix without the dot in USE_GCC
 CSUFF=		${_USE_GCC:S/.//}
 
-USE_GCC=	4.2+
 USE_GMAKE=	yes
 USE_ICONV=	yes
 
	


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list