Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499942 - x11-misc/xscreensaver - add USE=nls
Summary: x11-misc/xscreensaver - add USE=nls
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Desktop Misc. Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-01 02:43 UTC by René Rhéaume
Modified: 2014-08-20 08:29 UTC (History)
0 users

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


Attachments
xscreensaver-5.22.ebuild.patch (xscreensaver-5.22.ebuild.patch,868 bytes, patch)
2014-02-01 02:44 UTC, René Rhéaume
Details | Diff
Second take to the ebuild patch (xscreensaver-5.22.ebuild.scrubbed,1008 bytes, patch)
2014-02-09 01:13 UTC, René Rhéaume
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description René Rhéaume 2014-02-01 02:43:47 UTC
uclibc systems do not have NLS support. However, xscreensaver detects it incorrectly and fails at linking time. Unfortunately, its configure script does not have a --disable-nls option. This patch enabled to build xscreensaver on uclibc

Reproducible: Always

Steps to Reproduce:
1. Install Lilblue
2. emerge xscreensaver
3.
Actual Results:  
emake failed

Expected Results:  
xscreensaver installed on system
Comment 1 René Rhéaume 2014-02-01 02:44:34 UTC
Created attachment 369238 [details, diff]
xscreensaver-5.22.ebuild.patch
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-02-01 12:52:47 UTC
Comment on attachment 369238 [details, diff]
xscreensaver-5.22.ebuild.patch

>--- /usr/portage/x11-misc/xscreensaver/xscreensaver-5.22.ebuild	2013-11-23 08:31:38.000000000 -0500
>+++ /usr/local/portage/x11-misc/xscreensaver/xscreensaver-5.22.ebuild	2014-01-25 17:14:27.000000000 

There is a more recent ebuild.

>-IUSE="gdm jpeg new-login opengl pam +perl selinux suid xinerama"
>+IUSE="gdm jpeg new-login opengl pam +perl selinux suid xinerama nls"

You ought to keep them sorted alphabetically.

> COMMON_DEPEND="dev-libs/libxml2
> 	>=gnome-base/libglade-2

We should have this in DEPEND, I guess:

nls? ( sys-devel/gettext )

Maybe more?

>@@ -114,6 +114,8 @@
> 		--without-kerberos \
> 		--x-includes="${EPREFIX}"/usr/include \
> 		--x-libraries="${EPREFIX}"/usr/$(get_libdir)
>+
>+	use nls || sed -i -e 's/#define ENABLE_NLS 1/#undef ENABLE_NLS/' ${S}/config.h || die 'NLS disable failed'

use ! nls && foo || die?
Comment 3 René Rhéaume 2014-02-09 01:13:42 UTC
Created attachment 369918 [details, diff]
Second take to the ebuild patch
Comment 4 René Rhéaume 2014-08-20 02:10:14 UTC
It looks like version 5.29 no longer needs a patch to build on uclibc. Weird, as there is no mention of NLS in the upstream changelog on http://www.jwz.org/xscreensaver/changelog.html . What is the reason for "append-libs -lpthread" in the5.29 ebuild?
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-20 08:22:21 UTC
So that's fixed, then?
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-20 08:29:58 UTC
(In reply to René Rhéaume from comment #4)
> What is the reason for "append-libs -lpthread" in the5.29 ebuild?

I can't check past ebuilds very well right now, but it would appear that was introduced after 5.26 and before 5.29. The 5.29 sources have an ax_pthread.m4 to deal with this and the 5.26 do not. I have removed the offending line.