[Freewx-maint] Bug#645411: [libwxgtk2.8-0] support of multiarch same

gregory hainaut gregory.hainaut at gmail.com
Sat Oct 15 15:19:33 UTC 2011

Package: libwxgtk2.8-0
Severity: normal
Tags: patch

--- Please enter the report below this line. ---

Dears Maintainer,

Could you support multiarch same for wxwidget2.8. At least
libwxbase2.8-0 and libwxgtk2.8-0 (see attached patch but can probably
be extended to msw stuff). See here for some multiarch details:

The package was a tough one to convert. So the attached patch will need
a carefully review. I checked that the library are moved in the good
place and are co-installable (amd64 and i386). I also checked that
wx-config returns the good path.

Best regards,


Here a short description of the patch

Control file:
* bump debhelper dependency to 8.1.3 to ${support
* Add multiarch

Postinst and prerm files:
* Add a =MA string that will be replaced with the triplet value in the
  rule file.

Rule file:
* add --libdir=\$${exec_prefix}/lib/$(DEB_HOST_MULTIARCH) to wxbase and
  wxgtk configuration flags.
* install library into /usr/lib/$(DEB_HOST_MULTIARCH).
* Generating the postinst and prerm file.
* create a symlink $(objdir_gtk_shared)/lib/$(DEB_HOST_MULTIARCH) to
$(objdir_gtk_shared)/lib. It works around some issue with the build
system (see below).


Some details on the build system issue:
During the build, libraries are installed into the directory LIBDIRNAME
equal to $(wx_top_builddir)/lib (defined on
build/bakefiles/common.bkl). Various places in the configure script
(configure.in) expect libraries in $(wx_top_builddir)/lib
Unfortunately wx-config script rely on $libdir
(/usr/lib/$DEB_HOST_MULTIARCH) and probably others places. Python try
to look up include file from wx-config but fail because LIBDIRNAME is
different of $libdir.

In my opinion, it would be better to create a variable $(wx_top_libdir)
that depends on $libdir. But it becomes big changes on an already too
complex build process hence I just create a symlink to workaround the
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wxwidget_multiarch.patch
Type: text/x-patch
Size: 14419 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/freewx-maint/attachments/20111015/37eb8a96/attachment.bin>

More information about the Freewx-maint mailing list