Package: src:libgnatcoll
Followup-For: Bug #760004

Documentation claims to support Python3, but the attached diffs shows that
* undefined symbol: PyFile_FromString
  The call should be replaced as described in
  http://stackoverflow.com/questions/898136/file-i-o-in-the-python-3-c-api
  but this requires some work and testing from Ada.
* undefined symbols: PyUnicodeUCS4*.
  Python3 is compiled with UCS4 in Debian, though.
#
# old_revision [8f45495524bbc6bb632315cad91d5ba7aa6cf6e7]
#
# patch "debian/changelog"
#  from [f619ae4da827237a2040e58a7c01c9b6ca102623]
#    to [1a4047a4ca5f7f18ec49328bd90b4f2e042710b8]
# 
# patch "debian/control"
#  from [39629224ba31492653f425e0cb448a2261891f88]
#    to [5eb6c97c611bc1976ec6aece0e90a2445a0cbf23]
# 
# patch "debian/rules"
#  from [39c84f5e9e95f14f5f3821dc4d083253a3d4ac9a]
#    to [8ed861a286c3bd007ad65764057594d017ae974d]
#
============================================================
--- debian/changelog	f619ae4da827237a2040e58a7c01c9b6ca102623
+++ debian/changelog	1a4047a4ca5f7f18ec49328bd90b4f2e042710b8
@@ -3,6 +3,7 @@ libgnatcoll (1.6gpl2014-5) UNRELEASED; u
   * Drop PostGreSQL support, which depends on OpenSSL and is thus
     incompatible with the GPL. Closes: #763284.
   * Use gobject-introspection (GIR) instead of older PyGTK binding.
+  * Select python3 instead of 2. Closes: #760004.
   * Standards-Version: 3.9.6 without changes.
 
  -- Nicolas Boulenguez <nico...@debian.org>  Sat, 13 Sep 2014 20:45:34 +0200
============================================================
--- debian/control	39629224ba31492653f425e0cb448a2261891f88
+++ debian/control	5eb6c97c611bc1976ec6aece0e90a2445a0cbf23
@@ -11,7 +11,7 @@ Build-Depends: dpkg-dev (>= 1.16.1), deb
  libgmp-dev,
  libgtkada2.24.4-dev, pkg-config,
  python-gi-dev,
- libpython-dev,
+ libpython3-dev,
  libreadline-dev,
  libsqlite3-dev,
 # dh_sphinxdoc
@@ -90,9 +90,9 @@ Architecture: any
 
 Package: libgnatcoll-python1.6-dev
 Architecture: any
-Depends: libpython-dev, ${misc:Depends}, ${ada:Depends}
+Depends: python3-dev, ${misc:Depends}, ${ada:Depends}
 Recommends: libgnatcoll-doc
-Description: GNATColl, general purpose Ada library (Python)
+Description: GNATColl, general purpose Ada library (Python3)
  The GNAT Component Collection deals with: module tracing, efficient
  file IO, static string searching (Boyer-Moore), e-mails and
  mailboxes, Ravenscar tasking profiles, storage pools, JSON, logging,
@@ -100,7 +100,7 @@ Description: GNATColl, general purpose A
  distributed in separate packages.
  .
  This package contains the static library and Ada specifications
- adding Python as scripting language.
+ adding Python3 as scripting language.
 
 Package: libgnatcoll-python1.6
 Section: libs
@@ -108,14 +108,14 @@ Multi-Arch: same
 Pre-Depends: ${misc:Pre-Depends}
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Multi-Arch: same
-Description: GNATColl, general purpose Ada library (Python runtime)
+Description: GNATColl, general purpose Ada library (Python3 runtime)
  The GNAT Component Collection deals with: module tracing, efficient
  file IO, static string searching (Boyer-Moore), e-mails and
  mailboxes, Ravenscar tasking profiles, storage pools, JSON, logging,
  shell scripting. Components relying on external dependencies are
  distributed in separate packages.
  .
- This package contains the runtime shared library for Python
+ This package contains the runtime shared library for Python3
  scripting.
 
 Package: libgnatcoll-python-dbg
@@ -125,14 +125,14 @@ Suggests: ${ada:Suggests}
 Depends: ${ada:Depends}, ${misc:Depends}
 Recommends: ${ada:Recommends}
 Suggests: ${ada:Suggests}
-Description: GNATColl, general purpose Ada library (Python debugging symbols)
+Description: GNATColl, general purpose Ada library (Python3 debugging symbols)
  The GNAT Component Collection deals with: module tracing, efficient
  file IO, static string searching (Boyer-Moore), e-mails and
  mailboxes, Ravenscar tasking profiles, storage pools, JSON, logging,
  shell scripting. Components relying on external dependencies are
  distributed in separate packages.
  .
- This package contains the detached debugging symbols for Python
+ This package contains the detached debugging symbols for Python3
  scripting.
 
 ######################################################################
============================================================
--- debian/rules	39c84f5e9e95f14f5f3821dc4d083253a3d4ac9a
+++ debian/rules	8ed861a286c3bd007ad65764057594d017ae974d
@@ -40,7 +40,7 @@ BACKED_UP += src/iconv/no_iconv
 BACKED_UP += src/gnatcoll__copy.gpr
 # Iconv is provided by libc.
 BACKED_UP += src/iconv/no_iconv
-# Build-Depends: libpython-dev.
+# Build-Depends: python3-dev.
 BACKED_UP += src/gtk/nopython src/nopython
 # Build-Depends: libc6-dev.
 BACKED_UP += src/nosyslog
@@ -88,6 +88,7 @@ configure-stamp: $(addsuffix .backup,$(B
 configure-stamp: $(addsuffix .backup,$(BACKED_UP))
 	dh_auto_configure -- --enable-gpl --enable-shared \
           --without-postgresql \
+          --with-python-exec=python3 \
           --with-sqlite=/usr/include
 	touch $@
 

Reply via email to