pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/46288: chat/ircservices mis-detects compiler version on NetBSD-6.0_BETA and -current
>Number: 46288
>Category: pkg
>Synopsis: chat/ircservices mis-detects compiler version on
>NetBSD-6.0_BETA and -current
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 02 20:30:00 +0000 2012
>Originator: John D. Baker
>Release: NetBSD-6.0_BETA/i386, pkgsrc-current (pre pkgsrc-2012Q1)
>Organization:
>Environment:
NetBSD squash.bozonet.ntc 6.0_BETA NetBSD 6.0_BETA (GENERIC) #17: Mon Mar 26
10:51:27 CDT 2012
sysop%squash.bozonet.ntc@localhost:/d0/build/netbsd-6/obj/i386/sys/arch/i386/compile/GENERIC
i386
>Description:
chat/ircservices mis-detects compiler version on NetBSD-6.0 and -current.
It claims:
[...]
===> Configuring for ircservices-5.0.64
Beginning IRC Services configuration.
Executable (program) file will be installed in /usr/pkg/sbin
Data files will be installed in /usr/pkg/lib/services
Checking sanity of /bin/sh... high.
Searching for a suitable compiler...
WARNING: Your version of GCC was detected as `2'. As of Services
5.0.23, versions of GCC earlier than 3.2, other than 2.95.3,
have been deprecated. This and future releases of Services 5.0
will still work, though some error messages will lose
information; future versions of Services may not compile at
all. Please upgrade your compiler to GCC 3.2 or later.
Press Enter to continue:
[...]
This happens because the version-string mangling done for the import
of GCC 4.5.3 is different from previous versions and the simple 'sed'
regex the configure script uses gets an unintended result. E.g., on
the problem system:
1076 [sysop@squash:../pkgsrc/chat/ircservices]$ uname -a ; gcc --version
NetBSD squash.bozonet.ntc 6.0_BETA NetBSD 6.0_BETA (GENERIC) #17: Mon Mar 26
10:51:27 CDT 2012
sysop%squash.bozonet.ntc@localhost:/d0/build/netbsd-6/obj/i386/sys/arch/i386/compile/GENERIC
i386
gcc (NetBSD nb2 20110806) 4.5.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
On a NetBSD-5.1_STABLE/i386 system:
1028 [sysop@verthandi:~]$ uname -a ; gcc --version
NetBSD verthandi.technoskunk.fur 5.1_STABLE NetBSD 5.1_STABLE (VERTHANDI) #14:
Thu Mar 22 14:10:00 CDT 2012
sysop%verthandi.technoskunk.fur@localhost:/d0/build/netbsd-5/obj/i386/sys/arch/i386/compile/VERTHANDI
i386
gcc (GCC) 4.1.3 20080704 prerelease (NetBSD nb3 20111107)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>How-To-Repeat:
On a NetBSD-6.0_BETA or -current system, any architecture, build
chat/ircservices.
>Fix:
Workaround for NetBSD systems (probably not needed for others):
make patch
apply the following additional patch:
--- configure.orig 2009-07-31 09:46:19.000000000 -0500
+++ configure 2012-04-02 15:26:30.000000000 -0500
@@ -821,7 +821,7 @@ elif [ "$CC" ] ; then
log cache supplied \`"$CC'"
CC_FLAGS=$CACHED_CC_FLAGS
elif run gcc --version ; then
- version=`gcc --version 2>&1 | HEAD -1 | sed
's/[^0-9]*[^0-9.]\([0-9][0-9.]*\).*/\1/'`
+ version=`gcc --version 2>&1 | HEAD -1 | awk '{print $NF}'`
vmajor=`echo "x.$version.0" | cut -d. -f2`
vminor=`echo "x.$version.0" | cut -d. -f3`
if test "x$version" = x || (echo "x$vmajor" | cut -c2- | grep '[^0-9]'
>/dev/null 2>&1) || (echo "x$vminor" | cut -c2- | grep '[^0-9]' >/dev/null
2>&1) ; then
continue with make package or make install, etc.
Home |
Main Index |
Thread Index |
Old Index