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

Bug 385779

Summary: app-admin/apache-tools-2.2.21 cross-compilation fix (libtool related)
Product: Gentoo Linux Reporter: Bertrand Jacquin <bertrand>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Severity: normal CC: mail, patrick, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: apache-tools-2.2.21:20111005-191947.log
apache-tools-2.2.21.ebuild diff

Description Bertrand Jacquin 2011-10-05 19:55:00 UTC
apache/apr build system use BUILD libtool so compilation fail :

Configuring Apache Portable Runtime Utility library...

checking for APR-util... yes
checking for i586-alix-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... 
configure: error: in `/var/tmp/i586-alix-linux-gnu/portage/app-admin/apache-tools-2.2.21/work/httpd-2.2.21':
configure: error: C compiler cannot create executables
See `config.log' for more details.

Here is a fix that use HOST libtool, and export CC needed by configure script

Reproducible: Always

Steps to Reproduce:
1. i586-alix-linux-gnu-emerge -va1 apache-tools
Comment 1 Bertrand Jacquin 2011-10-05 19:55:35 UTC
Created attachment 288903 [details]

The build log
Comment 2 Bertrand Jacquin 2011-10-05 19:55:56 UTC
Created attachment 288905 [details, diff]
apache-tools-2.2.21.ebuild diff

The fix for ebuild
Comment 3 Peter Volkov (RETIRED) gentoo-dev 2011-10-08 18:14:33 UTC
It's enough to add config.log for apache in bug 385783. Also please, mention why you need tc-export CC?
Comment 4 Arfrever Frehtes Taifersar Arahesis 2011-10-08 18:39:11 UTC
Package managers are allowed to set ROOT to an invalid value in src_*() phases.
Comment 5 Bertrand Jacquin 2011-10-16 13:49:10 UTC
Created attachment 289951 [details]

Here is config.log
Comment 6 Bertrand Jacquin 2011-10-16 13:50:22 UTC
(In reply to comment #3)
> It's enough to add config.log for apache in bug 385783. Also please, mention
> why you need tc-export CC?

tc-export CC is needed overwise configure use BUILD CC.
Comment 7 SpanKY gentoo-dev 2014-01-31 08:22:36 UTC
should be all set now in the tree; thanks for the report!

Commit message: Fix cross-compiling handling of pkg-config/pcre-config/apr/apr-util