Your message dated Sat, 20 Oct 2018 11:37:24 +0000
with message-id <[email protected]>
and subject line Bug#907711: fixed in libsdl2 2.0.8+dfsg1-5
has caused the Debian Bug report #907711,
regarding libsdl2 FTCBFS: lintian tag 
autotools-pkg-config-macro-not-cross-compilation-safe
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 [email protected]
immediately.)


-- 
907711: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907711
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: libsdl2
Version: 2.0.8+dfsg1-1
Tags: patch upstream
User: [email protected]
Usertags: rebootstrap

libsdl2 fails to cross build from source, because it uses the build
architecture pkg-config and thus fails finding a number of dependencies.
Lintian has a more detailed explanation. The attached patch fixes that
and makes libsdl2 cross build successfully. Please consider applying it.

Helmut
--- libsdl2-2.0.8+dfsg1.orig/configure.in
+++ libsdl2-2.0.8+dfsg1/configure.in
@@ -56,6 +56,7 @@
 AC_PROG_INSTALL
 AC_PROG_MAKE_SET
 AC_CHECK_TOOL(WINDRES, [windres], [:])
+PKG_PROG_PKG_CONFIG
 
 dnl Make sure that srcdir is a full pathname
 case "$host" in
@@ -861,9 +862,8 @@
 
         JACK_REQUIRED_VERSION=0.125
 
-        AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
         AC_MSG_CHECKING(for JACK $JACK_REQUIRED_VERSION support)
-        if test x$PKG_CONFIG != xno; then
+        if test x$PKG_CONFIG != x; then
         if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $JACK_REQUIRED_VERSION jack; then
                 JACK_CFLAGS=`$PKG_CONFIG --cflags jack`
                 JACK_LIBS=`$PKG_CONFIG --libs jack`
@@ -953,9 +953,8 @@
 
         PULSEAUDIO_REQUIRED_VERSION=0.9
 
-        AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
         AC_MSG_CHECKING(for PulseAudio $PULSEAUDIO_REQUIRED_VERSION support)
-        if test x$PKG_CONFIG != xno; then
+        if test x$PKG_CONFIG != x; then
         if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $PULSEAUDIO_REQUIRED_VERSION libpulse-simple; then
                 PULSEAUDIO_CFLAGS=`$PKG_CONFIG --cflags libpulse-simple`
                 PULSEAUDIO_LIBS=`$PKG_CONFIG --libs libpulse-simple`
@@ -1165,9 +1164,8 @@
 
         FUSIONSOUND_REQUIRED_VERSION=1.1.1
 
-        AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
         AC_MSG_CHECKING(for FusionSound $FUSIONSOUND_REQUIRED_VERSION support)
-        if test x$PKG_CONFIG != xno; then
+        if test x$PKG_CONFIG != x; then
             if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $FUSIONSOUND_REQUIRED_VERSION fusionsound; then
                 FUSIONSOUND_CFLAGS=`$PKG_CONFIG --cflags fusionsound`
                 FUSIONSOUND_LIBS=`$PKG_CONFIG --libs fusionsound`
@@ -1386,10 +1384,9 @@
                   ,enable_video_wayland_qt_touch=yes)
 
     if test x$enable_video = xyes -a x$enable_video_wayland = xyes; then
-        AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
         AC_MSG_CHECKING(for Wayland support)
         video_wayland=no
-        if  test x$PKG_CONFIG != xno && \
+        if  test x$PKG_CONFIG != x && \
             test x$video_opengl_egl = xyes && \
             test x$video_opengles_v2 = xyes; then
             if $PKG_CONFIG --exists wayland-client wayland-scanner wayland-protocols wayland-egl wayland-cursor egl xkbcommon ; then
@@ -1472,10 +1469,9 @@
                   ,enable_video_mir=no)
 
     if test x$enable_video = xyes -a x$enable_video_mir = xyes; then
-        AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
         AC_MSG_CHECKING(for Mir support)
         video_mir=no
-        if test x$PKG_CONFIG != xno; then
+        if test x$PKG_CONFIG != x; then
             if $PKG_CONFIG --exists mirclient egl xkbcommon ; then
                 MIR_CFLAGS=`$PKG_CONFIG --cflags mirclient egl xkbcommon`
                 MIR_LIBS=`$PKG_CONFIG --libs mirclient egl xkbcommon`
@@ -1571,8 +1567,7 @@
 AC_HELP_STRING([--enable-video-rpi], [use Raspberry Pi video driver [[default=yes]]]),
                   , enable_video_rpi=yes)
     if test x$enable_video = xyes -a x$enable_video_rpi = xyes; then
-        AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-        if test x$PKG_CONFIG != xno && $PKG_CONFIG --exists bcm_host; then
+        if test x$PKG_CONFIG != x && $PKG_CONFIG --exists bcm_host; then
             RPI_CFLAGS=`$PKG_CONFIG --cflags bcm_host brcmegl`
             RPI_LDFLAGS=`$PKG_CONFIG --libs bcm_host brcmegl`
         elif test x$ARCH = xnetbsd; then
@@ -2112,8 +2107,7 @@
         DIRECTFB_REQUIRED_VERSION=1.0.0
         AC_PATH_PROGS(DIRECTFBCONFIG, directfb-config, no, [$prefix/bin:$PATH])
         if test x$DIRECTFBCONFIG = xno; then
-            AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-            if test x$PKG_CONFIG != xno; then
+            if test x$PKG_CONFIG != x; then
                 if $PKG_CONFIG --atleast-pkgconfig-version 0.7 && $PKG_CONFIG --atleast-version $DIRECTFB_REQUIRED_VERSION directfb; then
                     DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags directfb`
                     DIRECTFB_LIBS=`$PKG_CONFIG --libs directfb`
@@ -2194,8 +2188,7 @@
         LIBDRM_REQUIRED_VERSION=2.4.46
         LIBGBM_REQUIRED_VERSION=9.0.0
 
-        AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-        if test x$PKG_CONFIG != xno; then
+        if test x$PKG_CONFIG != x; then
             if $PKG_CONFIG --atleast-pkgconfig-version 0.7; then
                 if $PKG_CONFIG --atleast-version $LIBDRM_REQUIRED_VERSION libdrm; then
                     LIBDRM_CFLAGS=`$PKG_CONFIG --cflags libdrm`
@@ -2625,8 +2618,7 @@
 AC_HELP_STRING([--enable-dbus], [enable D-Bus support [[default=yes]]]),
                         , enable_dbus=yes)
     if test x$enable_dbus = xyes; then
-        AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-        if test x$PKG_CONFIG != xno; then
+        if test x$PKG_CONFIG != x; then
             DBUS_CFLAGS=`$PKG_CONFIG --cflags dbus-1`
             save_CFLAGS="$CFLAGS"
             CFLAGS="$save_CFLAGS $DBUS_CFLAGS"
@@ -2662,8 +2654,7 @@
 AC_HELP_STRING([--enable-ibus], [enable IBus support [[default=yes]]]),
                   , enable_ibus=yes)
     if test x$enable_ibus = xyes; then
-        AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-        if test x$PKG_CONFIG != xno; then
+        if test x$PKG_CONFIG != x; then
             IBUS_CFLAGS=`$PKG_CONFIG --cflags ibus-1.0`
             save_CFLAGS="$CFLAGS"
             CFLAGS="$save_CFLAGS $IBUS_CFLAGS"
@@ -2701,8 +2692,7 @@
 AC_HELP_STRING([--enable-fcitx], [enable fcitx support [[default=yes]]]),
                   , enable_fcitx=yes)
     if test x$enable_fcitx = xyes; then
-        AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
-        if test x$PKG_CONFIG != xno; then
+        if test x$PKG_CONFIG != x; then
             FCITX_CFLAGS=`$PKG_CONFIG --cflags fcitx`
             CFLAGS="$CFLAGS $FCITX_CFLAGS"
             AC_CHECK_HEADER(fcitx/frontend.h,

--- End Message ---
--- Begin Message ---
Source: libsdl2
Source-Version: 2.0.8+dfsg1-5

We believe that the bug you reported is fixed in the latest version of
libsdl2, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Manuel A. Fernandez Montecelo <[email protected]> (supplier of updated libsdl2 
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 [email protected])


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

Format: 1.8
Date: Sat, 20 Oct 2018 12:51:58 +0200
Source: libsdl2
Binary: libsdl2-2.0-0 libsdl2-dev libsdl2-doc
Architecture: source amd64 all
Version: 2.0.8+dfsg1-5
Distribution: unstable
Urgency: medium
Maintainer: Debian SDL packages maintainers 
<[email protected]>
Changed-By: Manuel A. Fernandez Montecelo <[email protected]>
Description:
 libsdl2-2.0-0 - Simple DirectMedia Layer
 libsdl2-dev - Simple DirectMedia Layer development files
 libsdl2-doc - Reference manual for libsdl2
Closes: 907711
Changes:
 libsdl2 (2.0.8+dfsg1-5) unstable; urgency=medium
 .
   * Bump Policy Standards-Version to 4.2.1 (no changes needed)
   * d/rules: include /usr/share/dpkg/architecture.mk and .../pkg-info.mk
     to provide DEB_HOST_ARCH_CPU, DEB_HOST_MULTIARCH and
     SOURCE_DATE_EPOCH, instead of getting them through shell invocations.
   * d/watch: Switch to version=4
   * Switch to debhelper compat level v11
     - Force examples to be installed in libsdl2-doc
   * d/patches:
     - add fix-cross-building-907711.patch to fix cross-building by using
       the right pkg-config depending on the architecture (Closes: #907711)
       Thanks Helmut Grohne for the report and the patch.
Checksums-Sha1:
 8cfdd636dad496c40396ad0c9ec35d75efaa5206 2799 libsdl2_2.0.8+dfsg1-5.dsc
 6efca7899eb5434818450e39afb405049f478a26 19164 
libsdl2_2.0.8+dfsg1-5.debian.tar.xz
 a44b0f9109cbc762db3eab6efd1d7c7495b6882c 2346328 
libsdl2-2.0-0-dbgsym_2.0.8+dfsg1-5_amd64.deb
 5aae469bb6e41f47e6903d29b6ecbfe3e4d28b9f 388216 
libsdl2-2.0-0_2.0.8+dfsg1-5_amd64.deb
 b815502a7cb39a6c5fd3c62a0a11fc4f1c2e32c1 688472 
libsdl2-dev_2.0.8+dfsg1-5_amd64.deb
 23bedea9ae75d83ee482090a9ece7ae0c95e441d 11068300 
libsdl2-doc_2.0.8+dfsg1-5_all.deb
 80b5adbc5f248b8c5f216dbe7c6c06bff63de401 12292 
libsdl2_2.0.8+dfsg1-5_amd64.buildinfo
Checksums-Sha256:
 18e6c46ee70ec251aeb3e89f2aaf2206a9220706980442946ff0b6cc922f4c93 2799 
libsdl2_2.0.8+dfsg1-5.dsc
 89c223c2d63548fbd56d524c2c84ef9055497eda3830c94e3635033ee54beba7 19164 
libsdl2_2.0.8+dfsg1-5.debian.tar.xz
 4e71ce7ce62de60ef3bad5fbd6f61d96c1cfb49359778b7e7b5452e3f6cb2ba9 2346328 
libsdl2-2.0-0-dbgsym_2.0.8+dfsg1-5_amd64.deb
 c450cd9024072d680e7dda5ad045c6abef0aeec21167c01c1a7db8bd5d675c8c 388216 
libsdl2-2.0-0_2.0.8+dfsg1-5_amd64.deb
 f99ec8e0dda71e86ab40facf44ca3ba46b9be5ab6baa0aaee6860e5f286b3407 688472 
libsdl2-dev_2.0.8+dfsg1-5_amd64.deb
 a4b7099a48ac3f99d61a0545602c58c35dce763f97ed482fb32f44b0b3365345 11068300 
libsdl2-doc_2.0.8+dfsg1-5_all.deb
 e136c2a83fa6d33f37ff8c16afa4a09b1d5652afd9d090834b75263876ffe3f1 12292 
libsdl2_2.0.8+dfsg1-5_amd64.buildinfo
Files:
 d7f8a9ba534604007ea1f60e131e2b60 2799 libs optional libsdl2_2.0.8+dfsg1-5.dsc
 3434475af91a291f4f3c154d51714e42 19164 libs optional 
libsdl2_2.0.8+dfsg1-5.debian.tar.xz
 b68b5e6cc6af750836340a4f2ac64341 2346328 debug optional 
libsdl2-2.0-0-dbgsym_2.0.8+dfsg1-5_amd64.deb
 dcfbac0cf77a403df3de9c25c0e5b78e 388216 libs optional 
libsdl2-2.0-0_2.0.8+dfsg1-5_amd64.deb
 9c0f1154b3ab938c43c98ecff3153310 688472 libdevel optional 
libsdl2-dev_2.0.8+dfsg1-5_amd64.deb
 06224a03f417c86840b0fe7a997727cd 11068300 doc optional 
libsdl2-doc_2.0.8+dfsg1-5_all.deb
 c8273aa021a33a91212c9d86d2f3847e 12292 libs optional 
libsdl2_2.0.8+dfsg1-5_amd64.buildinfo

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

iQJEBAEBCgAuFiEEKo6AUFxIYphDDdCTf3YGpEXcqA4FAlvLCtQQHG1hZm1AZGVi
aWFuLm9yZwAKCRB/dgakRdyoDphPEACS+DQ5kVM8POfen31t26TURPqIMa7jP6TF
O86XqENo8aClVJfqTDteYPz9a2wcPYHJIYj03wTeivQwOZwUkYO9FgEkz+SwfWP9
6CEkm6VR7yMiRS5M2wBanU4GhEsUEIyXMZdHun74u/1gpfOQFzjnuxuuI4ckeVpZ
IuKHQfiQPXrTszCmnENlbH3cAUciPICMNRv1hBuydbGczoJ2ob5jwTOrleh/DTI7
RP96JQqPQVsSmxcleuIWWG/nt/PgnTT/FvHRbf26dillLm1mow9KYQoX1xTUSH/p
4Qv6SbaplygBGkKCZYwFbq6LvTqnXoN4/I5EiWbzjDeICWvw/YMEhLubvkv0gI1v
PrJ4d3PJ+pCdFOF34iuf93CynCpuxgI8w9TQmnv/9czoO2Z/Fty7E2xJlJL+l5Av
/GaovPZyTpTaWm10VMk8YngzfBy1z8ELyYTt/DMxaII12J7c7FN4cTU3vQEr87UA
xkp816eKk+mEdUDPgiZVyQhQ8jOMLOOBWN3EBjLlkbJinQy1sM99guNtlEeCHk2P
9wdEJyVWTtUqWqGGRFNLSbLaKsRih6cSnKfPSpfX+0E1sipYmBFqajhsP2Qyyx6J
m/UOuvCAXZgSEGFM+544cce8sD9l8EVyTqgitBQjNxTvWGO9ktjjeA63cm3gcpp9
uH+xGXp3IQ==
=IDTN
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to