[Pkg-deepin-devel] Bug#924234: dtkcore: Cross-builds incorrectly, built packages contain paths from build architecture

Dmitry Shachnev mitya57 at debian.org
Sun Mar 10 13:47:35 GMT 2019


Source: dtkcore
Version: 2.0.9.17-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

Dear Maintainer,

When one cross-builds dtkcore package the contents of built libdtkcore-dev
are wrong: some files are installed into /usr/lib/${DEB_BUILD_MULTIARCH}
instead of the expected /usr/lib/${DEB_HOST_MULTIARCH} path.

E.g. in this example, it should be /usr/lib/arm-linux-gnueabihf instead of
/usr/lib/x86_64-linux-gnu:

  $ dpkg-deb -c libdtkcore-dev_2.0.9.17-1_armhf.deb | grep mkspecs         
  drwxr-xr-x root/root         0 2019-02-28 21:00 ./usr/lib/x86_64-linux-gnu/qt5/mkspecs/
  drwxr-xr-x root/root         0 2019-02-28 21:00 ./usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/
  -rw-r--r-- root/root      2378 2019-02-26 02:56 ./usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/dtk_build.prf
  -rw-r--r-- root/root      1578 2019-02-26 02:56 ./usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/dtk_cmake.prf
  -rw-r--r-- root/root       376 2019-02-26 02:56 ./usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/dtk_lib.prf
  -rw-r--r-- root/root      4459 2019-02-26 02:56 ./usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/dtk_module.prf
  -rw-r--r-- root/root      3940 2019-02-26 02:56 ./usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/dtk_qmake.prf
  -rw-r--r-- root/root      1580 2019-02-26 02:56 ./usr/lib/x86_64-linux-gnu/qt5/mkspecs/features/dtk_translation.prf
  drwxr-xr-x root/root         0 2019-02-28 21:00 ./usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/
  -rw-r--r-- root/root       471 2019-02-28 21:00 ./usr/lib/x86_64-linux-gnu/qt5/mkspecs/modules/qt_lib_dtkcore.pri

This happens because src/dtk_module.prf has "qmake -query" call, and qmake
is the build architecture qmake by default.

That subprocess call can be avoided at all, as the QT_HOST_DATA variable is
built-in in qmake.

A patch to fix that is attached.

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-deepin-devel/attachments/20190310/6ab55a48/attachment.sig>


More information about the Pkg-deepin-devel mailing list