summaryrefslogtreecommitdiff
diff options
authorÉtienne Mollier <emollier@debian.org>2024-07-03 23:22:55 +0200
committergit-ubuntu importer <ubuntu-devel-discuss@lists.ubuntu.com>2024-07-04 10:36:26 +0000
commit3d7852c7bbe3c2dcfe1cdd4253af170fbd54cf00 (patch)
treef3608a35d4c733b6dfda05f87c23b3304a1e2ba5
parentd9d38ca86c42f0b2023c221028e2a130d42b60ef (diff)
Imported using git-ubuntu import.
Notes
Notes: * d/control: declare compliance to standards version 4.7.0. * d/control: add myself to uploaders. * d/control: indicate that architecture-is-little-endian. * gcc-14.patch: new: fix incompatible pointer type conversion. (Closes: #1075421)
-rw-r--r--debian/changelog10
-rw-r--r--debian/control14
-rw-r--r--debian/patches/gcc-14.patch30
-rw-r--r--debian/patches/series1
4 files changed, 50 insertions, 5 deletions
diff --git a/debian/changelog b/debian/changelog
index 6f176e3..a3b676d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+python-py2bit (0.3.1-3) unstable; urgency=medium
+
+ * d/control: declare compliance to standards version 4.7.0.
+ * d/control: add myself to uploaders.
+ * d/control: indicate that architecture-is-little-endian.
+ * gcc-14.patch: new: fix incompatible pointer type conversion.
+ (Closes: #1075421)
+
+ -- Étienne Mollier <emollier@debian.org> Wed, 03 Jul 2024 23:22:55 +0200
+
python-py2bit (0.3.1-2) unstable; urgency=medium
* Team upload.
diff --git a/debian/control b/debian/control
index 5b06ccb..8c2fc16 100644
--- a/debian/control
+++ b/debian/control
@@ -2,10 +2,14 @@ Source: python-py2bit
Section: science
Priority: optional
Maintainer: Debian Med Packaging Team <debian-med-packaging@lists.alioth.debian.org>
-Uploaders: Steffen Moeller <moeller@debian.org>
-Build-Depends: debhelper-compat (= 13), dh-sequence-python3,
- python3-all-dev, python3-setuptools
-Standards-Version: 4.6.2
+Uploaders: Steffen Moeller <moeller@debian.org>,
+ Étienne Mollier <emollier@debian.org>
+Build-Depends: debhelper-compat (= 13),
+ architecture-is-little-endian,
+ dh-sequence-python3,
+ python3-all-dev,
+ python3-setuptools
+Standards-Version: 4.7.0
Homepage: https://github.com/deeptools/py2bit/
Vcs-Browser: https://salsa.debian.org/med-team/python-py2bit
Vcs-Git: https://salsa.debian.org/med-team/python-py2bit.git
@@ -14,7 +18,7 @@ Rules-Requires-Root: no
Package: python3-py2bit
Section: python
-Architecture: any-amd64 ppc64el any-ia64 arm64 armel armhf any-i386 loong64 mips64el mipsel alpha riscv64 sh4 x32
+Architecture: any
Depends: ${python3:Depends}, ${misc:Depends}, ${shlibs:Depends}
Description: access to 2bit files
From https://genome.ucsc.edu/FAQ/FAQformat.html#format7:
diff --git a/debian/patches/gcc-14.patch b/debian/patches/gcc-14.patch
new file mode 100644
index 0000000..00e79d3
--- /dev/null
+++ b/debian/patches/gcc-14.patch
@@ -0,0 +1,30 @@
+Description: fix potential pointer bug flagged by gcc-14.
+ Since gcc 14, a whole range of warnings have become errors, notably the
+ casting from incompatible pointer types. In the case of py2bit, this
+ seems to flag a real pointer arithmetic bug. The symptom on build time
+ is:
+ .
+ py2bit.c:35:24: error: initialization of ‘pyTwoBit_t *’ from incompatible pointer type ‘TwoBit *’ [-Wincompatible-pointer-types]
+ 35 | pyTwoBit_t *pytb = self->tb;
+ | ^~~~
+ .
+ Transmitting the self pointer straight to the pytb pointer newly
+ created without referencing to the TwoBit_t pointer, fixes the issue.
+
+Author: Étienne Mollier <emollier@debian.org>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075421
+Forwarded: https://github.com/deeptools/py2bit/pull/14
+Last-Update: 2024-07-03
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- python-py2bit.orig/py2bit.c
++++ python-py2bit/py2bit.c
+@@ -32,7 +32,7 @@
+ }
+
+ PyObject *py2bitEnter(pyTwoBit_t *self, PyObject *args) {
+- pyTwoBit_t *pytb = self->tb;
++ pyTwoBit_t *pytb = self;
+
+ if(!pytb) {
+ PyErr_SetString(PyExc_RuntimeError, "The 2bit file handle is not open!");
diff --git a/debian/patches/series b/debian/patches/series
index e78b3cb..83bd7f7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
enable-tests.patch
+gcc-14.patch