ports/179571: [PATCH] devel/gccmakedep: improve gcpp test (764 dports broke)
John Marino
draco at marino.st
Sat Jun 15 12:20:00 UTC 2013
>Number: 179571
>Category: ports
>Synopsis: [PATCH] devel/gccmakedep: improve gcpp test (764 dports broke)
>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: Sat Jun 15 12:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: John Marino
>Release:
>Organization:
>Environment:
>Description:
During the last change to gccmakedep, a configuration item based on a test for gcpp based on $OSVERSION was added.
Since it's trivial to actually test for the presence of gcpp, this should be used instead of $OSVERSION checks.
Not only is it a better test, but it's also non-platform specific. 764 Dragonfly dports broke because of the new gcpp test.
Please change the test per applied patch -- it should be transparent for FreeBSD.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- Makefile.orig 2013-06-15 12:01:35.215015000 +0000
+++ Makefile
@@ -17,8 +17,7 @@ PLIST_FILES= bin/gccmakedep
.include <bsd.port.pre.mk>
# Attempt to force use of GNU cpp, if it is installed as /usr/bin/gcpp.
-.if (${OSVERSION} >= 900506 && ${OSVERSION} < 1000000) || \
- ${OSVERSION} >= 1000010
+.if exists(/usr/bin/gcpp)
CONFIGURE_ENV+= ac_cv_path_RAWCPP="gcpp"
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list