Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 432004

Summary: net-analyzer/net-snmp-5.7.2_rc1 - configure:23421: error: Could not determine the compiler that was used to build /usr/bin/perl.
Product: Gentoo Linux Reporter: Jeroen Roovers (RETIRED) <jer>
Component: Current packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: hppa
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=330353
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 431752    
Attachments: net-snmp-5.7.2_rc1-hppa.patch

Description Jeroen Roovers (RETIRED) gentoo-dev 2012-08-20 01:17:25 UTC
jeroen@elmer ~ $ perl -V:cc
cc='hppa2.0-unknown-linux-gnu-gcc';
jeroen@elmer ~ $ perl -V:cc | perl -n -e 'print if (s/^\s*cc=.([-=\w\s\/]+).;\s*/$1/);'
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-08-20 01:52:52 UTC
Thanks, give me a sec to fix it.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-20 02:09:46 UTC
Fixed. Maybe the older 5.4.2 patch should finally go upstream.
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-20 02:10:49 UTC
I have gone for a simple fix in the configure script instead of going through configure.d/autotools.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-08-20 02:11:24 UTC
Uhm I'll fix it in a different way, patching configure doesn't look like a reliable solution and I want upstreamable patches.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-20 02:18:20 UTC
Well, now you're going to force everyone to run autotools.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-08-20 02:19:04 UTC
Yes but it won't be the only fix for which autotools will be needed at this point.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-20 02:19:32 UTC
Also, the older upstreamable patch never made it, as I explained earlier.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-20 02:22:35 UTC
--- configure.d/config_project_perl_python.org  2012-08-11 21:01:42.000000000 +0200
+++ configure.d/config_project_perl_python      2012-08-20 04:22:16.203094147 +0200
@@ -87,7 +87,7 @@
     if test "xenable_perl_cc_checks" != "xno" ; then
         AC_MSG_CHECKING([for Perl cc])
         changequote(, )
-        PERLCC=`$myperl -V:cc | $myperl -n -e 'print if (s/^\s*cc=.([-=\w\s\/]+).;\s*/$1/);'`
+        PERLCC=`$myperl -V:cc | $myperl -n -e 'print if (s/^\s*cc=.([-=\w\s\/\.]+).;\s*/$1/);'`
         changequote([, ])
         if test "x$PERLCC" != "x" ; then
             AC_MSG_RESULT([$PERLCC])
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-20 02:23:47 UTC
Created attachment 321732 [details, diff]
net-snmp-5.7.2_rc1-hppa.patch
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-08-20 02:30:21 UTC
I have it, I have it.

I'm just fixing one more issue (there are still packages needing the stupid ucd-compat), then preparing a tarball with the changes instead of using FILESDIR or sed.
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-08-20 03:47:26 UTC
Okay this is fixed with the patch to configure.in now. The package does not require automake (so it's quick to rebuild autoconf), and it was already depending on autoconf, so it's not even additional dependencies.