Your message dated Thu, 07 Aug 2014 21:35:54 +0000
with message-id <e1xfvlm-0007yl...@franck.debian.org>
and subject line Bug#752333: fixed in libprelude 1.0.0-11.3
has caused the Debian Bug report #752333,
regarding libprelude: 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 ow...@bugs.debian.org
immediately.)


-- 
752333: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752333
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libprelude
Version: 1.0.0-11.2
Severity: important
User: debian-p...@lists.debian.org
Usertags: perl-5.20-transition

This package fails to build with Perl 5.20 (currently in experimental):

  In file included from Prelude.c:731:0:
  Prelude.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[7]: *** [Prelude.o] Error 1
  Makefile:334: recipe for target 'Prelude.o' failed
  make[7]: Leaving directory '/«PKGBUILDDIR»/bindings/low-level/perl'
  make[6]: *** [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   nt...@debian.org
>From e4f8474047ff84385720da3534afbeb5c3fefb50 Mon Sep 17 00:00:00 2001
From: Niko Tyni <nt...@debian.org>
Date: Thu, 19 Jun 2014 23:11:57 +0300
Subject: [PATCH 2/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/low-level/perl/Prelude.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/bindings/low-level/perl/Prelude.c b/bindings/low-level/perl/Prelude.c
index af67ea9..79775df 100644
--- a/bindings/low-level/perl/Prelude.c
+++ b/bindings/low-level/perl/Prelude.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: libprelude
Source-Version: 1.0.0-11.3

We believe that the bug you reported is fixed in the latest version of
libprelude, 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 752...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ansgar Burchardt <ans...@debian.org> (supplier of updated libprelude 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: Tue, 05 Aug 2014 19:29:09 +0200
Source: libprelude
Binary: libprelude-dev libprelude2 libprelude2-dbg libprelude-perl 
python-prelude
Architecture: source
Version: 1.0.0-11.3
Distribution: unstable
Urgency: low
Maintainer: Pierre Chifflier <pol...@debian.org>
Changed-By: Ansgar Burchardt <ans...@debian.org>
Description:
 libprelude-dev - Security Information Management System [ Development files ]
 libprelude-perl - Security Information Management System [ Base library ]
 libprelude2 - Security Information Management System [ Base library ]
 libprelude2-dbg - Security Information Management System [ Debug symbols ]
 python-prelude - Security Information Management System [ Base library ]
Closes: 752333 752334
Changes:
 libprelude (1.0.0-11.3) unstable; urgency=low
 .
   * Non-maintainer upload.
   * Force swig to regenerate bindings/low-level/perl/Prelude.c by
     removing it before building and in the clean target.
     (Closes: #752333)
   * debian/libprelude-perl.install: Use perl's $Config{vendorarch} instead
     of /usr/lib/perl5. Thanks to Niko Tyni for the patch.
     (Closes: #752334)
Checksums-Sha1:
 d3a06b0bc78adb21d8077ab84b5639856f0a6db6 2109 libprelude_1.0.0-11.3.dsc
 49c224260984f6076663d66a052167c11826f6ac 8620 
libprelude_1.0.0-11.3.debian.tar.xz
Checksums-Sha256:
 b362a5a1073e2aafb49948394290a1f3cf03b1359a75f217574cb55fbc30d9f4 2109 
libprelude_1.0.0-11.3.dsc
 34a90ed0e917e2f44f1a60ff37dca0dd61db996ee76ea6d968a43c88bb605e75 8620 
libprelude_1.0.0-11.3.debian.tar.xz
Files:
 76272b733c7a0d2b48aa89726df8925f 2109 libs extra libprelude_1.0.0-11.3.dsc
 e33ed4a6d649a8603656d4756b15db79 8620 libs extra 
libprelude_1.0.0-11.3.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCgAGBQJT4RUsAAoJEIATJTTdNH3I9oEQAK1klqRxCxk8h2WHcXwIUaIj
WC3fOyc7lKDEQXPlmcPH5MODvvbGM7GITWl8LurhKVllxEXr7COeocnt8Cdc/9Tn
KxfJDS4mqfj/n2ohrzwoOWplAwHyRuWMzLoe8h0bt7zwTuiTh6Q1fhXqO6ze0BLS
agj4OohMbcNFi4CnVfqBGbYWgkfX/TgL7Ly7SFpOg8Y4FIke9fUNuaMegrUQxIN8
HajPhf7iiPQr6Hx2u9zhMjr3CCII0ZX3KfO/zzslhed2uQXf31lyVf/vuuBdmvBJ
vgZJxKH3lFi7gCq5vrG/xxUEaxGdZ0R4hZJ2Qq/3k6yQR/GMQj4GOhDlEedwPtI+
1+FS5gxX+3Qy9XxLdGlIeWYBzTLqqu5OSeEYQW5w0ygvhhv/enKy9hJBNgeCu6BS
+TEM9f8kintkP5DR0nHX4H/K0OdWZjV43mdgdZFClGMKhEEhzyKV85UruUpJak68
cKzIjoyEr+WuBDrDpSmDADOMayfFl0sLWsOqllONCnloNTFiZwq7Hk9LVU4WVv2F
8GnJvbYjR8S4PWq/E9ePyttg4IYOXS7oiuC/k4yy6HGoLtmiU7mMuSUEfDhfSUMK
YZ1gSXzCpQq2u1wme0u3w1jWPVh/8PMa05GmFWHnTMF9V4ifJmzak/2OvW/aitU1
Ajsg6dITbvUn+lpkE+b1
=/4kv
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to