Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 450436 - app-arch/xz-utils-5.0.4-r1: Abort when shared libraries cannot be build
Summary: app-arch/xz-utils-5.0.4-r1: Abort when shared libraries cannot be build
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-05 18:12 UTC by Dennis Schridde
Modified: 2024-06-15 22:50 UTC (History)
0 users

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


Attachments
build.log (build.log,174.51 KB, text/plain)
2013-01-05 18:13 UTC, Dennis Schridde
Details
emerge.info (emerge.info,4.57 KB, text/plain)
2013-01-05 18:13 UTC, Dennis Schridde
Details
ppc64-emerge.info (ppc64-emerge.info,4.57 KB, text/plain)
2013-01-05 18:14 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2013-01-05 18:12:35 UTC
It appears app-arch/xz-utils-5.0.4-r1 builds only a static liblzma.a here.

Reproducible: Always
Comment 1 Dennis Schridde 2013-01-05 18:13:05 UTC
Created attachment 334556 [details]
build.log
Comment 2 Dennis Schridde 2013-01-05 18:13:24 UTC
Created attachment 334558 [details]
emerge.info
Comment 3 Dennis Schridde 2013-01-05 18:14:32 UTC
Created attachment 334560 [details]
ppc64-emerge.info

NOTE: This is in a cross-compilation environment with CBUILD=x86_64 and CHOST=powerpc64.
Comment 4 Dennis Schridde 2013-01-05 18:22:30 UTC
Found the issue:
checking whether the /mnt/ppc64/etc/crossdev/gcc -std=gnu99 linker (/mnt/ppc64/etc/crossdev/ld -m elf64ppc) supports shared libraries... no

Is there a way for portage to force configure to abort in this case?
Comment 5 Dennis Schridde 2013-01-05 18:36:57 UTC
The bad linker (wrong value for LD) was my fault. Would be nice of portage could somehow make econf/autoconf/configure bail out early in this case, i.e. force shared or static linking.
Comment 6 SpanKY gentoo-dev 2013-01-06 01:42:50 UTC
that makes no sense.  there are targets which don't support dynamic linking.
Comment 7 Dennis Schridde 2013-01-06 11:49:42 UTC
(In reply to comment #6)
> that makes no sense.  there are targets which don't support dynamic linking.
But in the case of xz-utils, it obviously requires shared-object support. So IMO it would make sense...
Comment 8 SpanKY gentoo-dev 2013-01-06 17:51:51 UTC
(In reply to comment #7)

no, it doesn't.  it depends entirely on the target whether a shared lib is used.
Comment 9 Dennis Schridde 2013-01-06 20:03:07 UTC
(In reply to comment #8)
> no, it doesn't.  it depends entirely on the target whether a shared lib is
> used.
Apparently the app-arch/xz-utils-5.0.4-r1 ebuild calls gen_usr_ldscript, which needs a shared library?
Comment 10 SpanKY gentoo-dev 2013-01-07 00:25:51 UTC
(In reply to comment #9)

for some targets, yes.  but not all.
Comment 11 Larry the Git Cow gentoo-dev 2024-06-15 22:46:04 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25171b1f5847b461145906ac2bc230c462f62c21

commit 25171b1f5847b461145906ac2bc230c462f62c21
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-06-15 22:41:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-06-15 22:45:26 +0000

    app-arch/xz-utils: workaround libtool bug preventing shared library build
    
    * Fix detection of `file` with libtool-2.5.0 (which xz-5.4.7, xz.5.6.2
      had dist tarballs created with). This only affects some targets. See
      bug #934370.
    
      See https://git.savannah.gnu.org/cgit/libtool.git/commit/?h=development&id=9a4a02615c9e7cbcfd690ed31874822a7d6aaea2.
    
    * Add a sanity check for targets which support shared libraries where
      we verify liblzma.so is in the image.
    
      Use tc-is-static-only to handle the concern from bug #450436.
    
    Bug: https://bugs.gentoo.org/450436
    Closes: https://bugs.gentoo.org/934370
    Signed-off-by: Sam James <sam@gentoo.org>

 app-arch/xz-utils/xz-utils-5.4.7-r1.ebuild | 155 ++++++++++++++++++++++
 app-arch/xz-utils/xz-utils-5.6.2-r1.ebuild | 203 +++++++++++++++++++++++++++++
 app-arch/xz-utils/xz-utils-9999.ebuild     |  15 +++
 3 files changed, 373 insertions(+)
Comment 12 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-06-15 22:50:42 UTC
We've actually had tc-is-static-only since...

commit a1defa9181f4284b81ec27a87b6d6eaf2bcba1cf
Author: Fabian Groffen <grobian@gentoo.org>
Date:   Sun May 24 07:25:48 2009 +0000