Your message dated Thu, 07 Aug 2014 21:35:59 +0000
with message-id <[email protected]>
and subject line Bug#752335: fixed in libpreludedb 1.0.0-2.2
has caused the Debian Bug report #752335,
regarding libpreludedb: FTBFS with Perl 5.20: needs SWIG regeneration
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.)
--
752335: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752335
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libpreludedb
Version: 1.0.0-2.1
Severity: important
User: [email protected]
Usertags: perl-5.20-transition
This package fails to build with Perl 5.20 (currently in experimental):
In file included from PreludeDB.c:731:0:
PreludeDB.c: In function 'SWIG_AsCharPtrAndSize':
/usr/lib/x86_64-linux-gnu/perl/5.20/CORE/handy.h:124:34: error: 'bool'
undeclared (first use in this function)
#define cBOOL(cbool) ((cbool) ? (bool)1 : (bool)0)
[...]
make[4]: *** [PreludeDB.o] Error 1
Makefile:334: recipe for target 'PreludeDB.o' failed
make[4]: Leaving directory '/«PKGBUILDDIR»/bindings/perl'
make[3]: *** [perl-build] Error 2
This seems to be fixed in SWIG 2.0.8 by
https://github.com/swig/swig/commit/4305a3cef9b210541c3b88ab2fd03d787c3bca66
but I don't know why the commit message claims it fixes problems with
Perl 5.16 while we encounter them only with the 5.18 -> 5.20 upgrade.
The attached patch fixes the build, but it modifies generated files.
A more correct fix would be a full regeneration step with current SWIG.
I've tested that the package still builds on current sid with the patch,
and fixes the issue with perl_5.20.0-1 from experimental. (It's not quite
enough to make the package build successfully with Perl 5.20, but I'll
file a separate bug about the unrelated other issue.)
--
Niko Tyni [email protected]
>From 3debe06bc39435ff76be0fedbaade83cfdb23006 Mon Sep 17 00:00:00 2001
From: Niko Tyni <[email protected]>
Date: Thu, 19 Jun 2014 23:49:04 +0300
Subject: [PATCH 1/2] Don't undefine bool if defined by C99 stdbool.h
This is adopted from swig 2.0.8, change
https://github.com/swig/swig/commit/4305a3cef9b210541c3b88ab2fd03d787c3bca66
and fixes build failures with Perl 5.20.
Regenerating the file with a current swig version would
be a more correct fix.
---
bindings/perl/PreludeDB.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/bindings/perl/PreludeDB.c b/bindings/perl/PreludeDB.c
index 99ff690..835af24 100644
--- a/bindings/perl/PreludeDB.c
+++ b/bindings/perl/PreludeDB.c
@@ -1441,9 +1441,6 @@ SWIG_Perl_SetModule(swig_module_info *module) {
#ifdef eof
#undef eof
#endif
-#ifdef bool
- #undef bool
-#endif
#ifdef close
#undef close
#endif
@@ -1478,7 +1475,12 @@ SWIG_Perl_SetModule(swig_module_info *module) {
#undef bind
#endif
-
+#ifdef bool
+ /* Leave if macro is from C99 stdbool.h */
+ #ifndef __bool_true_false_are_defined
+ #undef bool
+ #endif
+#endif
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
--
2.0.0
--- End Message ---
--- Begin Message ---
Source: libpreludedb
Source-Version: 1.0.0-2.2
We believe that the bug you reported is fixed in the latest version of
libpreludedb, 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.
Ansgar Burchardt <[email protected]> (supplier of updated libpreludedb 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: Tue, 05 Aug 2014 22:27:33 +0200
Source: libpreludedb
Binary: libpreludedb-dev libpreludedb0 libpreludedb-perl python-preludedb
Architecture: source
Version: 1.0.0-2.2
Distribution: unstable
Urgency: medium
Maintainer: Mickael Profeta <[email protected]>
Changed-By: Ansgar Burchardt <[email protected]>
Description:
libpreludedb-dev - Security Information Management System [ Development files ]
libpreludedb-perl - Security Information Management System [ Base library ]
libpreludedb0 - Security Information Management System [ Base library ]
python-preludedb - Security Information Management System [ Base library ]
Closes: 752335 752336
Changes:
libpreludedb (1.0.0-2.2) unstable; urgency=medium
.
* Non-maintainer upload.
* Force swig to regenerate bindings/perl/PreludeDB.c by removing it
before building and in the clean target. (Closes: #752335)
* Use perl's $Config{vendorarch} instead of /usr/lib/perl5. Thanks
to Niko Tyni for the patch. (Closes: #752336)
Checksums-Sha1:
614c91a0400dddeabf0edcc68e1873d7a8207d77 2082 libpreludedb_1.0.0-2.2.dsc
b9a621031e423fc5d5d336281930ef3c7ea9ab9b 4601 libpreludedb_1.0.0-2.2.diff.gz
Checksums-Sha256:
46175eca00e1c15d829da43bbc6e25a6c4391a41a791832c1a80d5fa7baa0b6b 2082
libpreludedb_1.0.0-2.2.dsc
358e5d9f4e064eba11ce27c8ea1f9ff8915001316959b5a4622f6c172697a88c 4601
libpreludedb_1.0.0-2.2.diff.gz
Files:
9ebabc70270688b94711a99087d42222 2082 libs extra libpreludedb_1.0.0-2.2.dsc
da10e65796a4c48957c467516640f1f4 4601 libs extra libpreludedb_1.0.0-2.2.diff.gz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCgAGBQJT4SwEAAoJEIATJTTdNH3IV/UP/0OsyHQbkle9zhAvJ4tz2stN
EEl9JcQEksn3ZvbtC915q9LsEMLUUmKWXzKKGTeiQkUJAyx1dR3ixr4hmGGXjJHd
32i8RGXRr7fzDhscBtP491YazcUePXgxCa7cdMpMj6QhELDmWiUQ8v2mwE2ISSQ/
ptiz77jOzK0KvKQYn6u0Sfd9KSfAGFszZJHGeRRPIqBOnBGcLLzoYM0zT+PcjKY8
zcsdeehTNjwTwiBoG3q/T7iawjmlYvKKsW4t01cBKZH4eW4ZArt4R0VMqHg/RUQZ
8fbjsmPKEX9xwtMCFrrU4OIa+Zqv+TBnGjrxJT89hMzP0e8bOJduA/6it48LjPFg
8BJkLQb9NxfYUdn1veOvTCCmULTNa+YGmDl2ylkVmCe7R3/vkJtpc2Df/NdjhgWu
DkHLYSKPRqXAJvYgQRsxUyk50H4WncC7aFpYqbSIyWK/0vdxtqVHjMYHZ9U68JFf
sPnDgqmLKPIC/UiVg0V7T5CmQvR2zAzuVzwH/XkkHkBB7vKojDdcjX0S+Z2E7Vr6
K48eKBBgujmg8FKGb5ouiQFwPjXuXb36vDbDtO9CAws/CYI70nJTe5WvpQOxcL9R
53oErvkqnfFvJEQSTWUiOvV+InXCmgByndnrS4BUcWbGfv4jkOEkncchzWzm9++4
387/CyI/DcRSoBA3D29s
=8Gwa
-----END PGP SIGNATURE-----
--- End Message ---