[med-svn] [Git][med-team/vmatch][master] fix build with GCC 12
Sascha Steinbiss (@satta)
gitlab at salsa.debian.org
Sat Jun 18 20:59:00 BST 2022
Sascha Steinbiss pushed to branch master at Debian Med / vmatch
Commits:
d3c660f5 by Sascha Steinbiss at 2022-06-18T21:53:40+02:00
fix build with GCC 12
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/gcc-12.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,12 +1,17 @@
-vmatch (2.3.1+dfsg-8) UNRELEASED; urgency=medium
+vmatch (2.3.1+dfsg-8) unstable; urgency=medium
+ [ Andreas Tille ]
* Team upload.
* d/watch:
- Point to Github tags
- Add filenamemangle
* Drop debhelper from Build-Depends
- -- Andreas Tille <tille at debian.org> Tue, 25 Jan 2022 18:53:26 +0100
+ [ Sascha Steinbiss ]
+ * Add patch to fix build with GCC 12.
+ Addresses: #1013064
+
+ -- Sascha Steinbiss <satta at debian.org> Sat, 18 Jun 2022 21:50:11 +0200
vmatch (2.3.1+dfsg-7) unstable; urgency=medium
=====================================
debian/patches/gcc-12.patch
=====================================
@@ -0,0 +1,31 @@
+Description: ensure not to use reallod'c pointer
+Author: Sascna Steinbiss <sascha at steinbiss.name>
+Forwarded: https://github.com/genometools/vstree/pull/13
+Last-Update: 2022-06-18
+--- a/src/kurtz-basic/space.c
++++ b/src/kurtz-basic/space.c
+@@ -269,18 +269,18 @@
+ void *tmpptr;
+ ResourceEntry *reuseresource;
+
+- tmpptr = realloc(ptr,(size_t) (size*number));
+- if(tmpptr == NULL)
++ reuseresource = findthespaceblock(ptr);
++ if(reuseresource == NULL)
+ {
+ ALLOCERRORMSG("reusespaceblock",
+- "not enough space for the space block");
++ "cannot find space block");
+ exit(EXIT_FAILURE);
+ }
+- reuseresource = findthespaceblock(ptr);
+- if(reuseresource == NULL)
++ tmpptr = realloc(ptr,(size_t) (size*number));
++ if(tmpptr == NULL)
+ {
+ ALLOCERRORMSG("reusespaceblock",
+- "cannot find space block");
++ "not enough space for the space block");
+ exit(EXIT_FAILURE);
+ }
+ if(ptr != tmpptr)
=====================================
debian/patches/series
=====================================
@@ -6,3 +6,4 @@ hardening.patch
reproducible-build.patch
pathmax.patch
skproto.patch
+gcc-12.patch
View it on GitLab: https://salsa.debian.org/med-team/vmatch/-/commit/d3c660f5e869c989efd4fc55e39cdb53a47b1a7b
--
View it on GitLab: https://salsa.debian.org/med-team/vmatch/-/commit/d3c660f5e869c989efd4fc55e39cdb53a47b1a7b
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20220618/1cdf4a4e/attachment-0001.htm>
More information about the debian-med-commit
mailing list