ports/88544: [patch] lang/gcc28 pkg-plist is different between 5.X and 6.X
Matthew Luckie
mjl at luckie.org.nz
Sun Nov 6 08:40:16 UTC 2005
>Number: 88544
>Category: ports
>Synopsis: [patch] lang/gcc28 pkg-plist is different between 5.X and 6.X
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Sun Nov 06 08:40:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Matthew Luckie
>Release: FreeBSD 6.0-RELEASE i386
>Organization:
University of Waikato
>Environment:
System: FreeBSD mylar.plunket.luckie.org.nz 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Sat Nov 5 11:48:43 NZDT 2005 root at mylar.plunket.luckie.org.nz:/usr/obj/usr/src/sys/GENERIC i386
>Description:
gcc28 installs lib/gcc-lib/%%GNUHOST%%/2.8.1/include/float.h
on 4.X and 5.X, but not on 6.X
this patch conditionally includes the float.h file if it is found to be
installed in the port's post-install target. there's probably a better
way of getting this done, but this worked for me.
this patch also quietens two portlint warnings with NO_CDROM and DEPRECATED.
>How-To-Repeat:
install lang/gcc28, then pkg_create a package. it will complain that
float.h is not on the system.
>Fix:
diff -uNr gcc28.orig/Makefile gcc28/Makefile
--- gcc28.orig/Makefile Mon Sep 5 18:27:12 2005
+++ gcc28/Makefile Sun Nov 6 20:03:30 2005
@@ -17,11 +17,11 @@
COMMENT= GNU Compiler Collection 2.8
NOT_FOR_ARCHS= amd64 sparc64 ia64
-NO_CDROM= 'old version, not worth the cost in real estate'
+NO_CDROM= "old version, not worth the cost in real estate"
LATEST_LINK= gcc28
-DEPRECATED= "This port is no longer in use by anything in the ports collecti
on. Use a later release instead"
+DEPRECATED= This port is no longer in use by anything in the ports collectio
n. Use a later release instead
.include <bsd.port.pre.mk>
@@ -85,5 +85,11 @@
@${MV} ${PREFIX}/man/man1/cccp.1 ${PREFIX}/man/man1/cccp28.1
@${MV} ${PREFIX}/man/man1/g++.1 ${PREFIX}/man/man1/g++28.1
@${MV} ${PREFIX}/man/man1/gcc.1 ${PREFIX}/man/man1/gcc28.1
+ @${MV} ${TMPPLIST} ${TMPPLIST}.tmp
+.if exists(${PREFIX}/lib/gcc-lib/${CONFIGURE_TARGET}/2.8.1/include/float.h)
+ ${SED} -e "s:%%FLOAT%%::" ${TMPPLIST}.tmp > ${TMPPLIST}
+.else
+ ${SED} -e "s:%%FLOAT%%:@comment :" ${TMPPLIST}.tmp > ${TMPPLIST}
+.endif
.include <bsd.port.post.mk>
diff -uNr gcc28.orig/pkg-plist gcc28/pkg-plist
--- gcc28.orig/pkg-plist Mon Sep 5 18:27:12 2005
+++ gcc28/pkg-plist Sun Nov 6 13:50:16 2005
@@ -5,7 +5,7 @@
bin/protoize
bin/unprotoize
bin/%%GNUHOST%%-gcc
-lib/gcc-lib/%%GNUHOST%%/2.8.1/include/float.h
+%%FLOAT%%lib/gcc-lib/%%GNUHOST%%/2.8.1/include/float.h
lib/gcc-lib/%%GNUHOST%%/2.8.1/include/syslimits.h
lib/gcc-lib/%%GNUHOST%%/2.8.1/include/typeinfo
lib/gcc-lib/%%GNUHOST%%/2.8.1/include/exception
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list