Bug 1042775

Summary: config.site breaks cross compilattion
Product: [Fedora] Fedora Reporter: Stefan Sørensen <stefan.sorensen>
Component: autoconfAssignee: Pavel Raiskup <praiskup>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: phracek, praiskup, stefan.sorensen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: autoconf-2.69-14.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-22 05:38:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Take host variable into account when munging libdir
none
Skip config.site when cross-compiling none

Description Stefan Sørensen 2013-12-13 10:42:36 UTC
Description of problem:
The config.site script uses the build platform, not the host platform for deciding if libdir should be changed to /usr/lib64. This breaks crosscompiling 64b<->32b.

Version-Release number of selected component (if applicable):
2.69-13.fc20

How reproducible:
Allways

Steps to Reproduce:
1. ./configure --host arm-redhat-linux-gnu --prefix=/usr
2. grep libdir config.status

Actual results:
s,@libdir@,|#_!!_#|${exec_prefix}/lib64,g

Expected results:
s,@libdir@,|#_!!_#|${exec_prefix}/lib,g

Additional info:

Comment 1 Pavel Raiskup 2013-12-13 11:09:24 UTC
Thanks for the report!  I'll try to find better solution.  In the meantime
please use `CONFIG_SITE=NONE ./configure ...` command.

Comment 2 Stefan Sørensen 2013-12-15 14:02:11 UTC
Created attachment 836933 [details]
Take host variable into account when munging libdir

This patch makes things work for me.

Comment 3 Pavel Raiskup 2013-12-16 10:59:12 UTC
Created attachment 837214 [details]
Skip config.site when cross-compiling

Thanks for your patch.  I would rather skip the config.site completely when
cross-compiling for different host.  Re-using the $host triplet would be imo
unnecessarily work-expensive.

Comment 4 Pavel Raiskup 2013-12-16 11:00:03 UTC
Stefan, are you OK with the change from comment #3?

Comment 5 Stefan Sørensen 2013-12-16 15:09:03 UTC
It will not change libdir if host is set to x86_64-*, but that might be ok? Otherwise looks fine to me, cross compiling is working as expected.

Comment 6 Pavel Raiskup 2013-12-16 15:38:34 UTC
(In reply to Stefan Sørensen from comment #5)
> It will not change libdir if host is set to x86_64-*, but that might be ok?

I would say yes.  In that case we can not expect the host will be Fedora
or other /lib64 using distribution.

> Otherwise looks fine to me, cross compiling is working as expected.

Thanks for looking at it!  I'll push probably tomorrow if there will be no
further complaints.

Comment 7 Fedora Update System 2013-12-17 08:10:39 UTC
autoconf-2.69-14.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/autoconf-2.69-14.fc20

Comment 8 Fedora Update System 2013-12-19 07:15:13 UTC
Package autoconf-2.69-14.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing autoconf-2.69-14.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-23553/autoconf-2.69-14.fc20
then log in and leave karma (feedback).

Comment 9 Fedora Update System 2013-12-22 05:38:14 UTC
autoconf-2.69-14.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.