Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385779 - app-admin/apache-tools-2.2.21 cross-compilation fix (libtool related)
Summary: app-admin/apache-tools-2.2.21 cross-compilation fix (libtool related)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-05 19:55 UTC by Bertrand Jacquin
Modified: 2014-01-31 08:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
apache-tools-2.2.21:20111005-191947.log (app-admin:apache-tools-2.2.21:20111005-191947.log,6.84 KB, text/plain)
2011-10-05 19:55 UTC, Bertrand Jacquin
Details
apache-tools-2.2.21.ebuild diff (apache-tools-2.2.21-BJA-cross.diff,502 bytes, patch)
2011-10-05 19:55 UTC, Bertrand Jacquin
Details | Diff
config.log (config.log,14.65 KB, text/plain)
2011-10-16 13:49 UTC, Bertrand Jacquin
Details

Note You need to log in before you can comment on or make changes to this bug.
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
2.
3.
Comment 1 Bertrand Jacquin 2011-10-05 19:55:35 UTC
Created attachment 288903 [details]
apache-tools-2.2.21:20111005-191947.log

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]
config.log

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
http://sources.gentoo.org/app-admin/apache-tools/apache-tools-2.4.7-r1.ebuild?r1=1.1&r2=1.2