summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrançois Bissey <frp.bissey@gmail.com>2022-05-21 12:41:54 +1200
committerMichael Orlitzky <mjo@gentoo.org>2022-05-27 08:19:48 -0400
commit8048b1fee105984f879fa67e52bfbc8ab161242f (patch)
tree02f44f41bcb45917c3acf02456d583ad4a329410 /sci-mathematics/singular
parentsci-mathematics/singular: Add François Bissey as proxy maintainer (diff)
downloadgentoo-8048b1fee105984f879fa67e52bfbc8ab161242f.tar.gz
gentoo-8048b1fee105984f879fa67e52bfbc8ab161242f.tar.bz2
gentoo-8048b1fee105984f879fa67e52bfbc8ab161242f.zip
sci-mathematics/singular: update gcc12 patch
Closes: https://bugs.gentoo.org/841248 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: François René Pierre Bissey <frp.bissey@gmail.com> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Diffstat (limited to 'sci-mathematics/singular')
-rw-r--r--sci-mathematics/singular/files/singular-4.3.0_p1-gcc12.patch11
1 files changed, 1 insertions, 10 deletions
diff --git a/sci-mathematics/singular/files/singular-4.3.0_p1-gcc12.patch b/sci-mathematics/singular/files/singular-4.3.0_p1-gcc12.patch
index 7654f1710191..570d0be87a29 100644
--- a/sci-mathematics/singular/files/singular-4.3.0_p1-gcc12.patch
+++ b/sci-mathematics/singular/files/singular-4.3.0_p1-gcc12.patch
@@ -1,12 +1,3 @@
-From 5155427417fa722a27c110b2c1939c0979c6dcbc Mon Sep 17 00:00:00 2001
-From: Hans Schoenemann <hannes@mathematik.uni-kl.de>
-Date: Tue, 10 May 2022 16:52:42 +0200
-Subject: [PATCH] fix: gcc-12 does not like offsetof ?
-
----
- kernel/oswrapper/vspace.cc | 24 ++++++++++++++++++++++++
- 1 file changed, 24 insertions(+)
-
diff --git a/kernel/oswrapper/vspace.cc b/kernel/oswrapper/vspace.cc
index fa42bf5e28..aefa661600 100644
--- a/kernel/oswrapper/vspace.cc
@@ -52,7 +43,7 @@ index fa42bf5e28..aefa661600 100644
void vmem_free(vaddr_t vaddr) {
lock_allocator();
+ #if defined(__GNUC__) && (__GNUC__>11)
-+ vaddr_t vaddr -= (sizeof(vaddr_t)*2);
++ vaddr -= (sizeof(vaddr_t)*2);
+ #else
vaddr -= offsetof(Block, data);
+ #endif