Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324937 - app-misc/realpath forced to link -lintl on uclibc even when USE=-nls
Summary: app-misc/realpath forced to link -lintl on uclibc even when USE=-nls
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-21 12:44 UTC by Gianluigi Tiesi
Modified: 2010-07-24 17:21 UTC (History)
1 user (show)

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


Attachments
Buildlog of a failed build (build.log,2.35 KB, text/plain)
2010-07-14 21:28 UTC, Stefan Hellermann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gianluigi Tiesi 2010-06-21 12:44:20 UTC
use !elibc_glibc && append-libs -lintl

I think it should have also use nls check


Reproducible: Always
Comment 1 Wormo (RETIRED) gentoo-dev 2010-06-25 06:28:13 UTC
Did you notice how many platforms are supported in that realpath-1.15-r2.ebuild? Some of those more obscure ones may need that -lintl, so it seems safer to make another exception for uclibc than just decide based on use nls.

By the way, have you already verified that it works fine with uclibc when skipping -lintl?
Comment 2 Gianluigi Tiesi 2010-06-25 10:18:29 UTC
there I patch I've posted some time ago, it disables nls at all
use nls || epatch "${FILESDIR}"/${P}-nonls.patch

so !nls does not need -lintl 
Comment 3 Wormo (RETIRED) gentoo-dev 2010-06-26 05:46:30 UTC
Ok, assigning to realpath maintainers.
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2010-06-26 07:12:47 UTC
Mmmh interesting. Could I see a broken build log?

On my system using as-needed there is never a link against libintl.
Comment 5 Gianluigi Tiesi 2010-06-26 19:53:15 UTC
/usr/lib/gcc/i586-gentoo-linux-uclibc/4.4.4/../../../../i586-gentoo-linux-uclibc/bin/ld: cannot find -lintl
collect2: ld returned 1 exit status

no need for full build log:
    use !elibc_glibc && append-libs -lintl

this in unconditional if not using glibc
patch since without nls a patch that disables at all nls code directly in the source, -lintl shouldn't not be added
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2010-06-26 21:24:11 UTC
(In reply to comment #5)
> /usr/lib/gcc/i586-gentoo-linux-uclibc/4.4.4/../../../../i586-gentoo-linux-uclibc/bin/ld:
> cannot find -lintl
> collect2: ld returned 1 exit status
> 
> no need for full build log:
>     use !elibc_glibc && append-libs -lintl

I don't care. If I request the full build.log, then you should provide it.

> 
> this in unconditional if not using glibc
> patch since without nls a patch that disables at all nls code directly in the
> source, -lintl shouldn't not be added
> 

Comment 7 Gianluigi Tiesi 2010-06-26 22:06:47 UTC
neither I, if you have in mind to not listen to me at all.
I've unmerged realpath
Comment 8 Stefan Hellermann 2010-07-14 21:28:17 UTC
Created attachment 238769 [details]
Buildlog of a failed build

Same problem here. Attached is the requested buildlog. Can we reopen this bug?
Comment 9 Justin Lecher (RETIRED) gentoo-dev 2010-07-15 09:46:04 UTC
(In reply to comment #8)
> Created an attachment (id=238769) [details]
> Buildlog of a failed build
> 
> Same problem here. Attached is the requested buildlog. Can we reopen this bug?
> 

Sure we can. I will take a look into it later.
Comment 10 Justin Lecher (RETIRED) gentoo-dev 2010-07-24 17:21:40 UTC
No complains, so it is fixed. Thanks for reporting.