Your message dated Sun, 14 Aug 2011 20:33:27 +0000
with message-id <e1qshn9-00046r...@franck.debian.org>
and subject line Bug#633736: fixed in swig2.0 2.0.4-2.1
has caused the Debian Bug report #633736,
regarding swig2.0: python/std_map.i doesn't honor all template arguments
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.)


-- 
633736: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633736
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: swig2.0
Version: 2.0.4-2
Severity: serious
Tags: patch
Justification: causes FTBFS

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

std::map has four template arguments, but the code in swig's python/std_map.i
only honors the first two. This makes e.g swiginac [1] and syfi [2] fail to
build with swig 2.0.4.

The attached patch fixes this bug. I've also submitted the patch upstream [3].

[1] http://bugs.debian.org/633710
[2] At least accoording to https://bugs.launchpad.net/fenics-syfi/+bug/793984
[3] 
https://sourceforge.net/tracker/?func=detail&aid=3365908&group_id=1645&atid=301645

- -- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (650, 'unstable'), (601, 'testing'), (600, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages swig2.0 depends on:
ii  libc6                   2.13-10          Embedded GNU C Library: Shared lib
ii  libgcc1                 1:4.6.1-3        GCC support library
ii  libpcre3                8.12-3           Perl 5 Compatible Regular Expressi
ii  libstdc++6              4.6.1-3          GNU Standard C++ Library v3
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

swig2.0 recommends no packages.

Versions of packages swig2.0 suggests:
pn  swig2.0-doc                   <none>     (no description available)
pn  swig2.0-examples              <none>     (no description available)

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJOHXVsAAoJEGny/FFupxmTPOgQAJq5epY245HOgQA8xDn1lWA/
NF/XSnFWQA28axPbXTdppm2TQfqDweiCuNSfAYbsaccZUkd2dsrHYHJvCPkcqMb5
KMxBF6ui9piQPzEZ+PhKIGtcXJoX7uiXLu+Me3fJm2jB47iGSLOydL2wV/IgBfYz
R/tZoTzj/7976Jj/izUffPJFwj2sWgwbi2aD1gV9dIlO+vgO2QROJaf8wF46s4DB
QBqrkWhCHgpjt7PCNMK+j1919U/H40vKepYMQfpQVTPFi+jlh8A9pIQ4kjnRqrF1
i7FPRRLTdBkfSI6CJ/1tCUQOyokY+OcnvwhWXf/OrlGF1nDcs+sxH8GHp//uvszT
Nve+Ro9zr8hJc1SEpo7nNmbrffrKsHGHOTmN4x9szXEBQCApey4nvvELRUwSXRyE
GLweMHL5GC1VSJY5vqL3JfLRuZBUXzPXo50kRPeszui1O/z29xSZOAKPplL5hMf9
jLqK0zNOGyj/Tc4l6oFp9dn1/N9g+cZpEiQnVBsHCXWr2ZKa2h+I6umUgxS0hyjv
MV8jVMlewFuP2LPjOF30274fY4JOWfM8h/i91aKCN14vMxg/51ST/j4IAGMUfcg6
x7uEMpJt9Msq1BlwBWFsKnW0pPSpMcriM43+4CxIRZwbJj9b8L6kImONQ5HcBEjF
5i88JxWYw8p9wTTzO3bu
=/ozt
-----END PGP SIGNATURE-----
Index: std_map.i
===================================================================
--- std_map.i	(revision 12755)
+++ std_map.i	(working copy)
@@ -5,19 +5,19 @@
 %fragment("StdMapTraits","header",fragment="StdSequenceTraits")
 {
   namespace swig {
-    template <class SwigPySeq, class K, class T >
+    template <class SwigPySeq, class K, class T, class C, class A>
     inline void
-    assign(const SwigPySeq& swigpyseq, std::map<K,T > *map) {
-      typedef typename std::map<K,T>::value_type value_type;
+    assign(const SwigPySeq& swigpyseq, std::map<K,T,C,A> *map) {
+      typedef typename std::map<K,T,C,A>::value_type value_type;
       typename SwigPySeq::const_iterator it = swigpyseq.begin();
       for (;it != swigpyseq.end(); ++it) {
 	map->insert(value_type(it->first, it->second));
       }
     }
 
-    template <class K, class T>
-    struct traits_asptr<std::map<K,T> >  {
-      typedef std::map<K,T> map_type;
+    template <class K, class T, class C, class A>
+    struct traits_asptr<std::map<K,T,C,A> >  {
+      typedef std::map<K,T,C,A> map_type;
       static int asptr(PyObject *obj, map_type **val) {
 	int res = SWIG_ERROR;
 	SWIG_PYTHON_THREAD_BEGIN_BLOCK;
@@ -27,7 +27,7 @@
           /* In Python 3.x the ".items()" method returns a dict_items object */
           items = PySequence_Fast(items, ".items() didn't return a sequence!");
 %#endif
-	  res = traits_asptr_stdseq<std::map<K,T>, std::pair<K, T> >::asptr(items, val);
+	  res = traits_asptr_stdseq<std::map<K,T,C,A>, std::pair<K, T> >::asptr(items, val);
 	} else {
 	  map_type *p;
 	  res = SWIG_ConvertPtr(obj,(void**)&p,swig::type_info<map_type>(),0);
@@ -38,9 +38,9 @@
       }      
     };
       
-    template <class K, class T >
-    struct traits_from<std::map<K,T> >  {
-      typedef std::map<K,T> map_type;
+    template <class K, class T, class C, class A>
+    struct traits_from<std::map<K,T,C,A> >  {
+      typedef std::map<K,T,C,A> map_type;
       typedef typename map_type::const_iterator const_iterator;
       typedef typename map_type::size_type size_type;
 

--- End Message ---
--- Begin Message ---
Source: swig2.0
Source-Version: 2.0.4-2.1

We believe that the bug you reported is fixed in the latest version of
swig2.0, which is due to be installed in the Debian FTP archive:

swig-doc_2.0.4-2.1_all.deb
  to main/s/swig2.0/swig-doc_2.0.4-2.1_all.deb
swig-examples_2.0.4-2.1_all.deb
  to main/s/swig2.0/swig-examples_2.0.4-2.1_all.deb
swig2.0-doc_2.0.4-2.1_all.deb
  to main/s/swig2.0/swig2.0-doc_2.0.4-2.1_all.deb
swig2.0-examples_2.0.4-2.1_all.deb
  to main/s/swig2.0/swig2.0-examples_2.0.4-2.1_all.deb
swig2.0_2.0.4-2.1.debian.tar.gz
  to main/s/swig2.0/swig2.0_2.0.4-2.1.debian.tar.gz
swig2.0_2.0.4-2.1.dsc
  to main/s/swig2.0/swig2.0_2.0.4-2.1.dsc
swig2.0_2.0.4-2.1_amd64.deb
  to main/s/swig2.0/swig2.0_2.0.4-2.1_amd64.deb
swig_2.0.4-2.1_amd64.deb
  to main/s/swig2.0/swig_2.0.4-2.1_amd64.deb



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 633...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Luca Falavigna <dktrkr...@debian.org> (supplier of updated swig2.0 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...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sun, 14 Aug 2011 17:27:18 +0200
Source: swig2.0
Binary: swig swig2.0 swig-examples swig2.0-examples swig-doc swig2.0-doc
Architecture: source all amd64
Version: 2.0.4-2.1
Distribution: unstable
Urgency: low
Maintainer: Torsten Landschoff <tors...@debian.org>
Changed-By: Luca Falavigna <dktrkr...@debian.org>
Description: 
 swig       - Generate scripting interfaces to C/C++ code
 swig-doc   - HTML documentation for SWIG
 swig-examples - Examples for applications of SWIG
 swig2.0    - Generate scripting interfaces to C/C++ code
 swig2.0-doc - HTML documentation for SWIG
 swig2.0-examples - Examples for applications of SWIG
Closes: 633736
Changes: 
 swig2.0 (2.0.4-2.1) unstable; urgency=low
 .
   * Non-maintainer upload.
 .
   [ Sebastian Ramacher ]
   * debian/patches/python_map.patch:
     - Let std::map honour all four template arguments to fix FTBFS in
       related packages (Closes: #633736).
Checksums-Sha1: 
 9b43c46251ffbcfc1430b2aace074f1407fde9a0 2082 swig2.0_2.0.4-2.1.dsc
 171e6ec0eb3cbc3a0139785c03f95f9011c9bc64 57491 swig2.0_2.0.4-2.1.debian.tar.gz
 f3ddc53cac19ff2e43231dcb6954489686a3b2d1 264090 swig-examples_2.0.4-2.1_all.deb
 8fc6fb1792e5adee85533cd0917d5f8fad3863a2 1288974 
swig2.0-examples_2.0.4-2.1_all.deb
 b2cb2da1cf0e073462cf01774cb90d2e9a8f2d01 264072 swig-doc_2.0.4-2.1_all.deb
 708e4125d748011f4de3193d904e64366767c0de 2695854 swig2.0-doc_2.0.4-2.1_all.deb
 96749434095d255151fff548436660bcd0d6b339 271130 swig_2.0.4-2.1_amd64.deb
 1ea5023decb88a77977385131065f7393b6db8b8 1394218 swig2.0_2.0.4-2.1_amd64.deb
Checksums-Sha256: 
 33548750670f8761e1be438092bd1a6ef4e5b8a2fe2474b2eaad1a347b960416 2082 
swig2.0_2.0.4-2.1.dsc
 1fed0558acb52d939227caf8075a4b1e02df49d643cb28d0f592f9fd96248f52 57491 
swig2.0_2.0.4-2.1.debian.tar.gz
 9b8855411eace635b35c077432bef57fa1f39b1d6c0e2a1dccb467398b3bbd3e 264090 
swig-examples_2.0.4-2.1_all.deb
 202c227e8df90195b0ef688ead1b48022d1a2bb6b1fb2ac9846ed3f4acaf6946 1288974 
swig2.0-examples_2.0.4-2.1_all.deb
 9b0e67bd8f638f0577ff9959e2e78bafba5ea3acff26b2c457747d16ccd287b8 264072 
swig-doc_2.0.4-2.1_all.deb
 5d025f31261a9c0d63c749483f236482b80d8bdc0ce1508d5bc8687cb363aaf2 2695854 
swig2.0-doc_2.0.4-2.1_all.deb
 827fc28bede3ab2908389c0918399e1d5fac124584a88685ee45b701c6d5e234 271130 
swig_2.0.4-2.1_amd64.deb
 e9df50c4cd01d4ae1d67d22b232db4a258ff1d548aa8e9933c00eaa3f792ef3a 1394218 
swig2.0_2.0.4-2.1_amd64.deb
Files: 
 69f5b72aad178152e5d4332d03d459ca 2082 interpreters optional 
swig2.0_2.0.4-2.1.dsc
 5d8f04f0cbb14fe934b25d32cd895772 57491 interpreters optional 
swig2.0_2.0.4-2.1.debian.tar.gz
 2817c2b101a9d7a04665ec4e0d821eff 264090 interpreters optional 
swig-examples_2.0.4-2.1_all.deb
 36fe5034aca2a3413dceca0d33b22a6f 1288974 interpreters optional 
swig2.0-examples_2.0.4-2.1_all.deb
 c40df0ab399eb5498ca10737f6ad4e54 264072 doc optional swig-doc_2.0.4-2.1_all.deb
 6a2db474ac226c77adba88942daf05c0 2695854 doc optional 
swig2.0-doc_2.0.4-2.1_all.deb
 b342aa45f0353083550452f8b30fe7ed 271130 interpreters optional 
swig_2.0.4-2.1_amd64.deb
 788f10d1eb18a76608cac66deb4adbe0 1394218 interpreters optional 
swig2.0_2.0.4-2.1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJOR+vAAAoJEEkIatPr4vMflBAP/jPJeyFAF1JKwMjYZLzIO9Ja
wvBX6k/hHXNwvDK1uR+S9gHNvTtavUpbrKdczHMB6iMNdMRI2p3blQLpd/c6Uxto
XQoEULTeLyG/vSUDPSpQlGNmoyOzKAqOMNAlSDOwxej+IvqOLBsY+VTcHueDYxNw
19Y7Hq5RTDlvs8rKdLC6RLxyx2RumZoL97E0IkroSbteWJviIKzxyxhp97zljW/8
azgUbm8JJ7z7Ro4dReS0e0X44JQIzNR7Sn6kYkHdzFk4UNMYnbJeoU/gak3RbPMJ
QaklrSEAgZx1bVtOT8LXiIBKawzAb8n4o0zc24HEJ2qS9zuCxRRzn3XSoJ+ycmY6
jdpXaW7/rddL7OVD58lXGQT90OlwvzYKfbKEMZEn0XLgi86EN6j9KaYFDmEbn/3X
6D4f7b0GllwYOPfkc0SSfdNss18EJ+B5yZvqQ9Mpr/XYkougG4U5ArCcL2Xt/N8H
bqntJnmxx65ZzJA5hlC8hmDgxpq+xQHFIv2ZuqVxD3W0cYSuXdcO+6vhzzjGCsNT
/p7G259xBldL2B2kdXw4qwFqk4ZcDJU7iqB7havSPUajnuVT2Rn9Nh+LHiN05OXI
8Z8fCV8SJpkuayvct+wRU+FqGymATDdqzVaG3u4pgb8Su6uVX4VDPZQ7RmW3qJZ7
caJdoRaTbF+wTzXBHswo
=pJKt
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to