[packagekit] gnome-packagekit's build, --prefix doesn't work too well

Ville-Pekka Vainio vpivaini at cs.helsinki.fi
Sat Sep 13 11:57:04 PDT 2008


Hi,

I recently noticed an issue with gpk and translations, the related fix by 
Richard is here: 
<http://gitweb.freedesktop.org/?p=users/hughsient/gnome-packagekit.git;a=commit;h=5b510d4e569fe9ada386a3a5576aef5324dce3f2>.

To test this fix I tried to install the gpk git checkout into a temp dir in my 
home dir. I did 
  ./autogen.sh --prefix=$HOME/temp
make and make install

Of course trying to run e.g. gpk-prefs from $HOME/temp/bin results in 
libpackagekit not being found, which can be fixed by using
  LD_LIBRARY_PATH=../lib ./gpk-prefs

Then the binary runs, but it won't actually show you the GUI because:
  "could not find glade 
   file '/usr/local/share/gnome-packagekit/gpk-prefs.glade'"

So apparently some parts of the build process aren't taking --prefix into 
account at all. I had to make a symlink from /usr/local/share to my 
~/temp/share/gnome-packagekit dir and do the same for the locale dir to get 
the GUI working with translations.

Could this be fixed somehow? My GNOME and autotools knowledge isn't that good, 
but I can try to look into this.

The good news is that the translation problem was fixed at least in gpk-prefs, 
I'd need to check the other apps as well, though.


-- 
Ville-Pekka Vainio


More information about the PackageKit mailing list