[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#842441: marked as done (m17n-lib FTCBFS: uses build architecture pkg-config)



Your message dated Wed, 08 Dec 2021 05:52:41 +0000
with message-id <E1mupsf-000Ecf-FQ@fasolo.debian.org>
and subject line Bug#842441: fixed in m17n-lib 1.8.0-3.1
has caused the Debian Bug report #842441,
regarding m17n-lib FTCBFS: uses build architecture pkg-config
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
842441: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842441
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: m17n-lib
Version: 1.7.0-3
Tags: patch
User: helmutg@debian.org
Usertags: rebootstrap

m17n-lib fails to cross build from source, because it uses the build
architecture pkg-config. That leads to it not finding relevant libraries
(which are only requested for the host architecture) and finally symbol
differences (adjust_anchor goes missing because otf is not found).

The attached patch fixes the remaining pkg-config invocations to use a
triplet-prefixed PKG_CONFIG (correctly detected by the
PKG_PROG_PKG_CONFIG macro). It also changes configure.ac to prefer
pkg-config over libotf-config, because the latter does also uses the
build architecture pkg-config.

Please consider applying the attached patch.

Helmut
diff --minimal -Nru m17n-lib-1.7.0/debian/changelog m17n-lib-1.7.0/debian/changelog
--- m17n-lib-1.7.0/debian/changelog
+++ m17n-lib-1.7.0/debian/changelog
@@ -1,3 +1,10 @@
+m17n-lib (1.7.0-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: cross.patch: use triplet-prefixed pkg-config (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de>  Sat, 29 Oct 2016 10:48:13 +0200
+
 m17n-lib (1.7.0-3) unstable; urgency=low
 
   * debian/control: libm17n-dev depends on dpkg-dev
diff --minimal -Nru m17n-lib-1.7.0/debian/patches/0003-cross.patch m17n-lib-1.7.0/debian/patches/0003-cross.patch
--- m17n-lib-1.7.0/debian/patches/0003-cross.patch
+++ m17n-lib-1.7.0/debian/patches/0003-cross.patch
@@ -0,0 +1,74 @@
+From: Helmut Grohne <helmut@subdivi.de>
+Subject: use triplet-prefixed pkg-config
+
+Also prefer pkg-config over libotf-config, which is not cross-aware.
+
+Index: m17n-lib-1.7.0/configure.ac
+===================================================================
+--- m17n-lib-1.7.0.orig/configure.ac
++++ m17n-lib-1.7.0/configure.ac
+@@ -118,7 +118,7 @@
+ 
+ M17N_EXT_LIBS=
+ 
+-AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes)
++PKG_PROG_PKG_CONFIG
+ 
+ if test "x$no_x" != "xyes"; then
+   AC_DEFINE(HAVE_X11, 1, [Define to 1 if you have X11.])
+@@ -167,16 +167,15 @@
+ if test "x$with_libotf" != "xno"; then
+   save_CPPFLAGS="$CPPFLAGS"
+   save_LIBS="$LIBS"
+-  AC_CHECK_PROG(HAVE_OTFLIB_CONFIG, libotf-config, yes)
+-  OTF_LD_FLAGS=-lotf
+-  if test "x$HAVE_OTFLIB_CONFIG" = "xyes"; then
+-    CPPFLAGS="$CPPFLAGS `libotf-config --cflags`"
+-    OTF_LD_FLAGS="`libotf-config --libs`"
+-    LIBS="$LIBS $OTF_LD_FLAGS"
+-  elif test "x$HAVE_PKG_CONFIG" = "xyes" ; then
+-    if pkg-config libotf ; then
+-      CPPFLAGS="$CPPFLAGS `pkg-config --cflags libotf`"
+-      OTF_LD_FLAGS="`pkg-config --libs libotf`"
++  if test "x$PKG_CONFIG" != x && $PKG_CONFIG libotf; then
++    CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags libotf`"
++    OTF_LD_FLAGS="`$PKG_CONFIG --libs libotf`"
++  else
++    AC_CHECK_PROG(HAVE_OTFLIB_CONFIG, libotf-config, yes)
++    if test "x$HAVE_OTFLIB_CONFIG" = "xyes"; then
++      CPPFLAGS="$CPPFLAGS `libotf-config --cflags`"
++      OTF_LD_FLAGS="`libotf-config --libs`"
++      LIBS="$LIBS $OTF_LD_FLAGS"
+     fi
+   fi
+   ## We check the availability of OTF_check_features
+@@ -241,10 +240,10 @@
+ if test "x$HAVE_XFT_CONFIG" = "xyes"; then
+   CPPFLAGS="$CPPFLAGS `xft-config --cflags`"
+   XFT2_LD_FLAGS="`xft-config --libs`"
+-elif test "x$HAVE_PKG_CONFIG" = "xyes" ; then
+-  if pkg-config xft ; then
+-    CPPFLAGS="$CPPFLAGS `pkg-config --cflags xft`"
+-    XFT2_LD_FLAGS="`pkg-config --libs xft`"
++elif test "x$PKG_CONFIG" != "x" ; then
++  if $PKG_CONFIG xft ; then
++    CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags xft`"
++    XFT2_LD_FLAGS="`$PKG_CONFIG --libs xft`"
+   fi
+ fi
+ LIBS="$LIBS $XFT2_LD_FLAGS"
+@@ -273,10 +272,10 @@
+   save_CPPFLAGS="$CPPFLAGS"
+   save_LIBS="$LIBS"
+   FONTCONFIG_LD_FLAGS=-lfontconfig
+-  if test "x$HAVE_PKG_CONFIG" = "xyes"; then
+-    if pkg-config --exists fontconfig; then
+-      CPPFLAGS="$CPPFLAGS `pkg-config --cflags fontconfig`"
+-      FONTCONFIG_LD_FLAGS="`pkg-config --libs fontconfig`"
++  if test "x$PKG_CONFIG" != "x"; then
++    if $PKG_CONFIG --exists fontconfig; then
++      CPPFLAGS="$CPPFLAGS `$PKG_CONFIG --cflags fontconfig`"
++      FONTCONFIG_LD_FLAGS="`$PKG_CONFIG --libs fontconfig`"
+       LIBS="$LIBS $FONTCONFIG_LD_FLAGS"
+     fi
+   fi
diff --minimal -Nru m17n-lib-1.7.0/debian/patches/series m17n-lib-1.7.0/debian/patches/series
--- m17n-lib-1.7.0/debian/patches/series
+++ m17n-lib-1.7.0/debian/patches/series
@@ -1,2 +1,3 @@
 0001-m17n-config-remove-libtool-user-switches.patch
 0002-m17n-config-modify-to-support-multi-arch.patch
+0003-cross.patch

--- End Message ---
--- Begin Message ---
Source: m17n-lib
Source-Version: 1.8.0-3.1
Done: Helmut Grohne <helmut@subdivi.de>

We believe that the bug you reported is fixed in the latest version of
m17n-lib, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 842441@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Helmut Grohne <helmut@subdivi.de> (supplier of updated m17n-lib package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 28 Nov 2021 05:58:00 +0100
Source: m17n-lib
Architecture: source
Version: 1.8.0-3.1
Distribution: unstable
Urgency: medium
Maintainer: Debian Input Method Team <debian-input-method@lists.debian.org>
Changed-By: Helmut Grohne <helmut@subdivi.de>
Closes: 842441
Changes:
 m17n-lib (1.8.0-3.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Fix FTCBFS: Use the host architecture pkg-config. (Closes: #842441)
Checksums-Sha1:
 e562540a506a2d826c81ceafe0e7093589d9218c 2352 m17n-lib_1.8.0-3.1.dsc
 e147ad049b721d8a8ff48fc9ed794d6e79c3e8b2 11608 m17n-lib_1.8.0-3.1.debian.tar.xz
 fbc8061cdfd13b6f8930835257ae1147a1f1708d 9529 m17n-lib_1.8.0-3.1_amd64.buildinfo
Checksums-Sha256:
 bf3f88d82049727ca7a8efa5548f39a4294a3c6614e5fcff9bf12030ab7d92c2 2352 m17n-lib_1.8.0-3.1.dsc
 25996015da79ead9351844c7e81128ede96f7b542d469d992b823efbfc618437 11608 m17n-lib_1.8.0-3.1.debian.tar.xz
 6346815a5171dfbb5cf39e039577cf99f6cde867d3ed796b173172e882e9210c 9529 m17n-lib_1.8.0-3.1_amd64.buildinfo
Files:
 a563bdba2a244db93a018bf73dbadb21 2352 utils optional m17n-lib_1.8.0-3.1.dsc
 53554c40be25fc1c10216b1e760c0cca 11608 utils optional m17n-lib_1.8.0-3.1.debian.tar.xz
 bed31aee913dcc51b5f30cd5bdfce690 9529 utils optional m17n-lib_1.8.0-3.1_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIyBAEBCgAdFiEETMLS2QqNFlTb+HOqLRqqzyREREIFAmGjDo0ACgkQLRqqzyRE
REJPCQ/2Nli2k/T3RxsiMptY9c59YyiA9F7mBvQWKqtS237bZnP5VUDaXUlLQMEq
yWAmakIJHNH8LmwKqpP5YhgVVIF/+JH3EVdEvG19r6w35E/MHcZnWCMwnRlaSN33
028ORP64kcVKf3YHp6nQ/fJXUZKrTXKVZaITpsI9yvbW89IH6NiF5PMNEw2yS00D
CjLd42fYKnzPERD9k5BzyYTXVpoz2VYZYdqIT/rW4pVCFSmJb8Rwx7e3+dVmJ4GC
ErvDz1wqgrH6O7h6s0gqKQ4i8wDkWJZ0QQlJ21Mcg2WIQXqEju+oG3HOMzyxjI1g
KlWpTFh9YiDjhuzhzElDtc4VqzZj/q4qf46ihv4T5lWVjJJrOImKemAK57z0UW+p
SH3khcltag4wlL5bpjxfC/ZUs5hlq/7Mj+whRxRVMnktt4GrKdbwS6GGErXf92at
NeKulrlimDt+qrJ+2cRW7AcOHrc5HO+eY2yLWVqVVR092WwAkFztpJBc3kV7wK+8
2owYOnoZTlXGLdrpS22x9OF15V5PpnYwsJJoQ6eWUN6ih+s61S0KDEsvK1bRapPR
hih2gvyb/YFWOLEiC54GZgszL0JZ74n3xmqh6YRKoWQCEvbMLG7aUNh++ylaL6KY
jv0h4UuDLJC2zigipoVC2wPi0XAWyYVGV5ECEF4YPoEs9SYJSQ==
=p0g1
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: