Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148778 - net-libs/gnutls-1.4.4-r1 depends on sys-devel/gettext in non-nls build
Summary: net-libs/gnutls-1.4.4-r1 depends on sys-devel/gettext in non-nls build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-23 07:10 UTC by tka
Modified: 2006-09-23 15:16 UTC (History)
2 users (show)

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


Attachments
Fixed ebuild (gnutls-1.4.4-r1.ebuild,1.75 KB, text/plain)
2006-09-23 07:13 UTC, tka
Details
Fix as patch (gnutls-1.4.4-r1.ebuild.patch,656 bytes, patch)
2006-09-23 07:17 UTC, tka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tka 2006-09-23 07:10:51 UTC
Problem:
The gnutls-1.4.4-r1 ebuild unconditionally (r)depends on gettext, even if the nls use flag is not set.

Solution:
The ebuild should check the nls use flag and only add sys-devel/gettext to RDEPEND if the flag is set.

I'll attatch a fixed ebuild.
Comment 1 tka 2006-09-23 07:13:41 UTC
Created attachment 97852 [details]
Fixed ebuild
Comment 2 tka 2006-09-23 07:17:39 UTC
Created attachment 97854 [details, diff]
Fix as patch

This is a diff between the original and the fixed ebuild file.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-09-23 07:18:57 UTC
Comment on attachment 97852 [details]
Fixed ebuild

How exactly will this work? You didn't change anything except for adding the use flag. 

You need $(use_enable nls) there (and no, I didn't check if it's even honored by the build system).
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-09-23 07:22:58 UTC
Plus gettext shouldn't be in RDEPEND:

RDEPEND="nls? ( virtual/libintl )
   ...."

DEPEND="${RDEPEND}
   nls? ( sys-devel/gettext )"


Comment 5 tka 2006-09-23 07:39:27 UTC
(In reply to comment #3)
> (From update of attachment 97852 [details] [edit])
> How exactly will this work? You didn't change anything except for adding the
> use flag. 

I added a check to RDEPEND, this is how it's done in other ebuilds and with the other use flags in the gnutls ebuild. The important part of the fix is:

-	sys-devel/gettext"
+	nls? ( sys-devel/gettext )"

in RDEPEND=...

So please check it again.
Comment 6 tka 2006-09-23 07:41:52 UTC
(In reply to comment #4)
> Plus gettext shouldn't be in RDEPEND:
> 
> RDEPEND="nls? ( virtual/libintl )
>    ...."
> 
> DEPEND="${RDEPEND}
>    nls? ( sys-devel/gettext )"
> 

Well, I just want to get gettext out of my non-nls system.
Someone else put in into RDEPNED in the first place.
Comment 7 Daniel Black (RETIRED) gentoo-dev 2006-09-23 15:16:13 UTC
by bad. Thanks Timo for bringing it to my attentioned. Problem should be fixed now.