Your message dated Mon, 21 Nov 2022 23:04:40 +0000
with message-id <e1oxfqc-00hbbt...@fasolo.debian.org>
and subject line Bug#1024423: fixed in csync2 2.0-42-g83b3644-2
has caused the Debian Bug report #1024423,
regarding csync2 FTCBFS: hard codes the 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 ow...@bugs.debian.org
immediately.)
--
1024423: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024423
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: csync2
Version: 2.0-42-g83b3644-1
Tags: upstream patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs
csync2 fails to cross build from source, because its configure.ac hard
codes the build architecture pkg-config in a number of places. I'm
attaching a patch to fix that for your convenience.
Helmut
--- csync2-2.0-42-g83b3644.orig/configure.ac
+++ csync2-2.0-42-g83b3644/configure.ac
@@ -126,10 +126,10 @@
[enable/disable Postgres support (default is disabled)])],
[], [ enable_postgres=no ])
-if test "$enable_mysql" == yes
-then
+AS_IF([test "$enable_mysql" == yes],[
+ PKG_CHECK_MODULES([MYSQL],[mysqlclient])
# Check for mysql.
- CFLAGS="$CFLAGS `pkg-config --cflags mysqlclient`"
+ CFLAGS="$CFLAGS $MYSQL_CFLAGS"
# Check MySQL development header
AC_CHECK_HEADERS([mysql.h], , [AC_MSG_ERROR([[mysql header not found; install mysql-devel and dependencies for MySQL Support]])])
@@ -137,24 +137,26 @@
AC_DEFINE([HAVE_MYSQL], 1, [Define if mysql support is wanted])
# [] quotes, or autofoo will strip the character class [] in sed, breaking the regex.
- [LIBMYSQLCLIENT_SO=$( readlink $(pkg-config --variable=libdir mysqlclient)/libmysqlclient.so | sed -e 's,^.*/,,;s/\(\.so\.[0-9]*\)\..*$/\1/')]
+ [LIBMYSQLCLIENT_SO=$( readlink $($PKG_CONFIG --variable=libdir mysqlclient)/libmysqlclient.so | sed -e 's,^.*/,,;s/\(\.so\.[0-9]*\)\..*$/\1/')]
test -n "$LIBMYSQLCLIENT_SO" || AC_MSG_ERROR([Could not determine library name to be used in dlopen for mysql support])
-fi
+])
AC_DEFINE_UNQUOTED([LIBMYSQLCLIENT_SO], ["$LIBMYSQLCLIENT_SO"], [library name to be used in dlopen for mysql support])
-if test "$enable_postgres" == yes
-then
- CFLAGS="$CFLAGS `pkg-config --cflags libpq`"
+AS_IF([test "$enable_postgres" == yes],[
+ PKG_CHECK_MODULES([LIBPQ],[libpq])
+ CFLAGS="$CFLAGS $LIBPQ_CFLAGS"
AC_CHECK_HEADERS([libpq-fe.h], , [AC_MSG_ERROR([[postgres header not found; install libpq-dev and dependencies for Postgres support]])])
AC_DEFINE([HAVE_POSTGRES], 1, [Define if postgres support is wanted])
- # Hmpf. libdir not included in libpq.pc; use pg_config
- # LIBPQ_SO=$( readlink $(pkg-config --variable=libdir libpq)/libpq.so | sed -e 's,^.*/,,;s/\(\.so\.[0-9]*\)\..*$/\1/')
+ LIBPQ_LIBDIR=`$PKG_CONFIG --variable=libdir libpq`
+ if test -z "$LIBPQ_LIBDIR"; then
+ LIBPQ_LIBDIR=`pg_config --libdir`
+ fi
# [] quotes, or autofoo will strip the character class [] in sed, breaking the regex.
- [LIBPQ_SO=$( readlink $(pg_config --libdir)/libpq.so | sed -e 's,^.*/,,;s/\(\.so\.[0-9]*\)\..*$/\1/')]
+ [LIBPQ_SO=$( readlink $LIBPQ_LIBDIR/libpq.so | sed -e 's,^.*/,,;s/\(\.so\.[0-9]*\)\..*$/\1/')]
test -n "$LIBPQ_SO" || AC_MSG_ERROR([Could not determine library name to be used in dlopen for postgres support])
-fi
+])
AC_DEFINE_UNQUOTED([LIBPQ_SO], ["$LIBPQ_SO"], [library name to be used in dlopen for postgres support])
# at least one db backend must be configured.
--- End Message ---
--- Begin Message ---
Source: csync2
Source-Version: 2.0-42-g83b3644-2
Done: Valentin Vidic <vvi...@debian.org>
We believe that the bug you reported is fixed in the latest version of
csync2, 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 1024...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Valentin Vidic <vvi...@debian.org> (supplier of updated csync2 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 ftpmas...@ftp-master.debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Mon, 21 Nov 2022 23:04:01 +0100
Source: csync2
Architecture: source
Version: 2.0-42-g83b3644-2
Distribution: unstable
Urgency: medium
Maintainer: Debian HA Maintainers
<debian-ha-maintain...@lists.alioth.debian.org>
Changed-By: Valentin Vidic <vvi...@debian.org>
Closes: 1024423
Changes:
csync2 (2.0-42-g83b3644-2) unstable; urgency=medium
.
* Add patch to fix cross build (Closes: #1024423)
* Remove old NEWS file
Checksums-Sha1:
cd6613c7f499b525dd4a516efee2d2adfacefd51 2257 csync2_2.0-42-g83b3644-2.dsc
5e2a4f5eb98b16ed9674c5ad6925c5d30fa5fce2 9896
csync2_2.0-42-g83b3644-2.debian.tar.xz
e87dc6242cacf54a3f199efc61a7a7e2a76fbf0f 6627
csync2_2.0-42-g83b3644-2_source.buildinfo
Checksums-Sha256:
b5f352a20ec813a8e32dd74d46beea67680fe2888fa38f748df3dab2c942d2c7 2257
csync2_2.0-42-g83b3644-2.dsc
f86e90751cd7cea922ea41bd64c264cdeb29f3bf7ad8f3ce151a685d59bdf44f 9896
csync2_2.0-42-g83b3644-2.debian.tar.xz
7df19c494df5a5ed12c1af77eff37195758fa1bcc0f8fa33d9e3e17c69ce3fb4 6627
csync2_2.0-42-g83b3644-2_source.buildinfo
Files:
91a4048d54227eb2bf543b41278fcfec 2257 admin optional
csync2_2.0-42-g83b3644-2.dsc
b9dcba2c044785f02a4ee65ed5d7de27 9896 admin optional
csync2_2.0-42-g83b3644-2.debian.tar.xz
3674eadbfae5f6c7b308a8b7b62cf4c5 6627 admin optional
csync2_2.0-42-g83b3644-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJGBAEBCgAwFiEExaW53cM9k/u2PWfIMofYmpfNqHsFAmN7/6cSHHZ2aWRpY0Bk
ZWJpYW4ub3JnAAoJEDKH2JqXzah7J2gP/2L+OsNGIkqeNF0eoMFkIkntHgby1Wc+
b2V2QpZI1CUWaVmYT/EQ05ExVLi5+eNFttbN6bIrUtpgnt16p8wKmbGIhV8sdVCy
Y6lrEfiWakqFEP9gINDFgK5AOoFV/dEEszSyLDcg3Pav0sK5RuAKSQNskJAWwq+r
aSme5MhKrsyAkcoP4NPksonw5aUPq/m77T44MrE8kHqMYZw90JU2H+3WEQTBm4ok
1g/7QFKnNb5CIUy5vd45X559H0bsBy+w0ed9+Anr0jm9p2YrHFz1ix6YOd4aZRw8
mSpT68dslQyG+TJE4aCBlZzjgXJK00+Z6fYl/DOj4SR/WFt431mLGmKH9d0TGyLg
BgTw9ja3juvnElnE7KQCSB5bFx1Nmn4btvPzbHfQzOPGeJJDgXveZZ1O84UiJeSB
LOtsJUP0Qo0NhK0zc+NPPD+Fcl4JU/GIxDJyoj0dX9g83MXmJRL+jQdQaD1wUGst
54gBYyd84BgEi1nnYdK2wD3fhP5wfsHXc3EVnfKG5zJL2bvDrMb9Bdo4B3wNaN4W
H8t9OQjAIkn0OXaoQU5MUoAq8ZaKt1PN/LzTzGKAizHilSnRlIS8sxcVBeko4hXl
EnoI6oBUq3YfahpEVmB4fxYbi6fuYIAw8p/C4NnZhoYxaZyZRBBHMU4cUIa9MyO6
CgVTU2T8GuOe
=2xG3
-----END PGP SIGNATURE-----
--- End Message ---