[debhelper-devel] Bug#641051: debhelper: cmake and multiarch -- possible patches (ibus-qt)

Osamu Aoki osamu at debian.org
Sat Feb 8 13:43:08 UTC 2014


Hi,

I was unlucky enough to handle cmake+multiarch issue for ibus-qt (*).
Since there were no support from dh, I used override to do it.

>From that practical experience and some experiments and reading of
cmake documentations lead me to propose two possible patches.  I
attach these 2 patches to debhelper (9.20131227) here for your review.

Patch #1 (CMAKE_INSTALL_LIBDIR):
The seemingly correct approach is the one with CMAKE_INSTALL_LIBDIR.
This is also proposed by Chow Loong Jin in merged bug#722697.
But this one requires me to patch the upstream src/CMakeLists.txt.

Patch #2 (LIBDIR):
The practical solution with LIBDIR inspired by the SPEC file handling of
${_libdir} will work on ibus-qt well but may not be safe solution.

Other approaches:
As I read my old http://bugs.debian.org/704812 , it seems I originally
used bug fix proposed by Miura-san of setting
-DCMAKE_LIBRARY_ARCHITECTURE=$(DEB_HOST_MULTIARCH). This seems to be
another approach other than moving library by the brute-force mentioned
in the bug #704812 report. (Thanks Scott helping out multiarch issues for
ibus-qt in the past.)

So many ways to address this issue and I am snot sure which one is the
right one for debhelper.

I also found the following info which seems to be interesting. (but
beyond what I can make out of.)

http://www.cmake.org/cmake/help/v2.8.12/cmake.html#module:GNUInstallDirs
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=43f83d2ee523a38648322f629559694c71d5bb52

I think it is about time to have *recommended* and sane way to fix
multiarch for cmake in debhelper.

Since Alex made the Debian multiarch patch committed to cmake, I am
wondering if Alex can also help Debian on how packages with cmake should
be packaged?

Regards,

Osamu

(*) ibus-qt:  http://packages.qa.debian.org/i/ibus-qt.html
    http://anonscm.debian.org/gitweb/?p=pkg-ime/ibus-qt.git
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pass-multiarch-path-to-DCMAKE_INSTALL_LIBDIR.patch
Type: text/x-diff
Size: 2401 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20140208/54402ac3/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-pass-multiarch-path-to-DLIBDIR.patch
Type: text/x-diff
Size: 1367 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20140208/54402ac3/attachment-0003.patch>


More information about the debhelper-devel mailing list