[Mageia-dev] libproxy vs biarch & libexecdir

Christiaan Welvaart cjw at daneel.dyndns.org
Wed Jun 22 17:49:20 CEST 2011


hi,

I'm trying to make sense of libproxy packaging. It consists of a regular 
library and several modules. Currently, the library follows policy but the 
module packages are named libproxy-foo, so they have the same name on x86 
and x86-64:

i586		x86-64		description
==========================================================
libproxy1	lib64proxy1	main library
libproxy-gnome	libproxy-gnome	gnome proxy config support
libproxy-webkit	libproxy-webkit	webkit pacrunner (?)
etc.

- modules are in /usr/lib(64)/libproxy/%{version}/modules/
- libproxy-gnome also has a binary /usr/lib(64)/pxgconf (in 0.4.6 for
   gnome2) or /usr/lib(64)/pxgsettings (in 0.4.7 for gnome3).

This looks wrong because:
- on a biarch system, it is not possible to have e.g. gnome3 settings
   support for both archs
- the helper app (?) pxgsettings is put in libexecdir by upstream, so
   IMHO it should be in /usr/lib or /usr/libexec, not %{_libdir} which
   %{_libexecdir} expands to.

The specfile I have locally changes this to:

i586		x86-64				change
================================================================
libproxy1	lib64proxy1			same
libproxy-gnome	lib64proxy-gnome		biarch support
libproxy-webkit	lib64proxy-webkit		biarch support
libproxy-gxsettings libproxy-gxsettings		new pkg
etc.

What should dependencies on these modules look like:
Requires: %mklibname proxy-gnome  ?


     Christiaan


More information about the Mageia-dev mailing list