Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281686 - x11-misc/xscreensaver-5.08 installs files in GTK_DATADIR even if gtk is in another prefix
Summary: x11-misc/xscreensaver-5.08 installs files in GTK_DATADIR even if gtk is in an...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-16 17:00 UTC by Viktor Griph
Modified: 2010-01-27 15:54 UTC (History)
0 users

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


Attachments
patches the Makefiles to use %datadir% instead of GTK_DATADIR an PO_DATADIR (xscreensaver-prefix.patch,465 bytes, patch)
2009-08-16 18:10 UTC, Viktor Griph
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Viktor Griph 2009-08-16 17:00:42 UTC
The configure script of x11-misc/xscreensaver-5.08 detects the GTK+2 data directory using pkg-config, and attempts to install locale, desktop files and icons relative to that directory, completely ignoring the EPREFIX.


To reproduce:
1. setup a prefix installation, $GTK_EPREFIX, with prefix chaining support, and emerge >=x11-libs/gtk+-2:2 to the prefix
2. setup a prefix chained from the above prefix
3. emerge =x11-misc/xscreensaver-5.08 in the new prefix

Expected result:
x11-misc/xscreensaver-5.08 should be installed in the new prefix

Actual result:
emerge fails with QA notice due to files being installed in $GTK_EPREFIX rather than the active EPREFIX:

$GTK_EPREFIX/usr
$GTK_EPREFIX/usr/share
$GTK_EPREFIX/usr/share/locale
$GTK_EPREFIX/usr/share/locale/et
$GTK_EPREFIX/usr/share/locale/et/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/et/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/it
$GTK_EPREFIX/usr/share/locale/it/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/it/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/zh_TW
$GTK_EPREFIX/usr/share/locale/zh_TW/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/zh_TW/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/ko
$GTK_EPREFIX/usr/share/locale/ko/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/ko/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/nb
$GTK_EPREFIX/usr/share/locale/nb/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/nb/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/sv
$GTK_EPREFIX/usr/share/locale/sv/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/sv/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/ca
$GTK_EPREFIX/usr/share/locale/ca/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/ca/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/pl
$GTK_EPREFIX/usr/share/locale/pl/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/pl/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/pt_BR
$GTK_EPREFIX/usr/share/locale/pt_BR/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/pt_BR/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/fi
$GTK_EPREFIX/usr/share/locale/fi/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/fi/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/de
$GTK_EPREFIX/usr/share/locale/de/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/de/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/da
$GTK_EPREFIX/usr/share/locale/da/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/da/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/sk
$GTK_EPREFIX/usr/share/locale/sk/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/sk/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/pt
$GTK_EPREFIX/usr/share/locale/pt/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/pt/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/hu
$GTK_EPREFIX/usr/share/locale/hu/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/hu/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/zh_CN
$GTK_EPREFIX/usr/share/locale/zh_CN/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/zh_CN/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/vi
$GTK_EPREFIX/usr/share/locale/vi/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/vi/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/wa
$GTK_EPREFIX/usr/share/locale/wa/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/wa/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/es
$GTK_EPREFIX/usr/share/locale/es/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/es/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/ja
$GTK_EPREFIX/usr/share/locale/ja/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/ja/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/ru
$GTK_EPREFIX/usr/share/locale/ru/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/ru/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/fr
$GTK_EPREFIX/usr/share/locale/fr/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/fr/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/locale/nl
$GTK_EPREFIX/usr/share/locale/nl/LC_MESSAGES
$GTK_EPREFIX/usr/share/locale/nl/LC_MESSAGES/xscreensaver.mo
$GTK_EPREFIX/usr/share/xscreensaver
$GTK_EPREFIX/usr/share/xscreensaver/glade
$GTK_EPREFIX/usr/share/xscreensaver/glade/screensaver-power.png
$GTK_EPREFIX/usr/share/xscreensaver/glade/screensaver-snap.png
$GTK_EPREFIX/usr/share/xscreensaver/glade/screensaver-cmndln.png
$GTK_EPREFIX/usr/share/xscreensaver/glade/xscreensaver-demo.glade2
$GTK_EPREFIX/usr/share/xscreensaver/glade/screensaver-diagnostic.png
$GTK_EPREFIX/usr/share/xscreensaver/glade/screensaver-locking.png
$GTK_EPREFIX/usr/share/xscreensaver/glade/screensaver-colorselector.png
$GTK_EPREFIX/usr/share/applications
$GTK_EPREFIX/usr/share/applications/xscreensaver-properties.desktop
$GTK_EPREFIX/usr/share/pixmaps
$GTK_EPREFIX/usr/share/pixmaps/xscreensaver.xpm
Comment 1 Viktor Griph 2009-08-16 18:10:39 UTC
Created attachment 201454 [details, diff]
patches the Makefiles to use %datadir% instead of GTK_DATADIR an PO_DATADIR
Comment 2 Fabian Groffen gentoo-dev 2009-08-19 15:13:48 UTC
hmmmmm, this feels a bit inherent to the approach of chained prefixes
Comment 3 Fabian Groffen gentoo-dev 2009-09-25 17:02:44 UTC
I don't see much problems with this patch, but can you give a hint on your environment?
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2010-01-27 15:54:33 UTC
needinfo as requested in comment #3