summaryrefslogtreecommitdiff
path: root/media-libs/glu
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-02-15 01:59:31 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-02-15 01:59:31 +0000
commit7b744169f910185aacfd39dbd71d58b58a2e1d2f (patch)
tree1a81b82134de57caaca49c598db383ff87721640 /media-libs/glu
parent330454de22a51b01089472bf131acd28ea0c64ec (diff)
gentoo auto-resync : 15:02:2023 - 01:59:31
Diffstat (limited to 'media-libs/glu')
-rw-r--r--media-libs/glu/Manifest3
-rw-r--r--media-libs/glu/files/glu-9.0.2-clang-16-register.patch30
-rw-r--r--media-libs/glu/glu-9.0.2.ebuild6
3 files changed, 37 insertions, 2 deletions
diff --git a/media-libs/glu/Manifest b/media-libs/glu/Manifest
index 8aeadbc62161..f858c7df081c 100644
--- a/media-libs/glu/Manifest
+++ b/media-libs/glu/Manifest
@@ -1,4 +1,5 @@
+AUX glu-9.0.2-clang-16-register.patch 1070 BLAKE2B 99d59d6752fe1d1c51bce59c1a1b9abb28a4d3995e1bb86e72b723054a14599115ba5660731518ca9402a92451911e9c8a2af9d0d4de3a03570fbbd417cff1bf SHA512 862aec1612ff0d35b38ff7f53d31d95ed8790e57e3f4ebf5dd017ab6ec514daaa808369851280b113d161395a3330b4c8e604aad75ef004248b5a9e5b3ab2567
DIST glu-9.0.2.tar.xz 436176 BLAKE2B 90485938e4809ce7bb56da25bd60be9f3f7b7f40d511ea6635e40d749e519d1dca6241d891224d3cf331b911f545df4ef9aa2101baf4e3b18df69244edbcb8a4 SHA512 2517d7406bb643d12c017a95dcb5d8716f307344332638bcbdf274a90752a7c22165d34745f1b082ed916bb07d40e62d1d1d67d96426225be63166f3480d6f64
-EBUILD glu-9.0.2.ebuild 901 BLAKE2B c6df3be717dfdaf36be56cbfa12f9ddbdd4284a91bb5510a983f5881b40dafcfd8ea41693270a1d9b4ad78f94cf174490e97f9ad9c0215050de0cd6caab5354e SHA512 5cbd208dd237c5cbf1a1feacfdcbdee1dc562e0becb2daeb4afe1491614ee71782383d752006ff5ac45841d4d98e801bf06a8aae3f7514af5323b120fc01a0f3
+EBUILD glu-9.0.2.ebuild 965 BLAKE2B f8c27587ce93d8dd3c2a6f21f2be2bce1f1b34bd8ba19a0c6bc66a670e8ec1a640f9c06dc375858e75a0397658198def5576b6426d2eef3bdb1fe860bfe71b70 SHA512 fc600a6c2290aa2ad37c1dbb55837e2f15a66f124f02b343af4f0069039c057ebcd4a7331895c0d7d8c5b477720f7814f1d18a88588da478e7d173576b185a2d
EBUILD glu-9999.ebuild 901 BLAKE2B 2377cc6c78fd9bca5a1c31e2ad14cb30e5f97cb0e7f9be7d2900874e6b1d8481766afd939a6c312f98a6e55d3d35cc7eb30ed1f971e4ea5473f4572fa3b01f85 SHA512 4bc9bd397157b3bdc2767b75537650829502a278276479d8b5d153649286c32e39504ba8dbddfe79cb090f3d874eb730cb959af201374c89b7af3fb0aae8da0d
MISC metadata.xml 330 BLAKE2B c701978981b17870680d98907aeab6ced8e56af401a502cf0545a1f22188e86820b580714fe4e141c7d2b2f7d5f892ca85a47fc2529e79c05b7823addd059136 SHA512 768536ef9f7996f6e7f8028abbe275036bee70c5abb91096e0d2d24e4c14ac3d28377860bb75d153c883b755bec67c47430ae577c1788f2cd596628905cad922
diff --git a/media-libs/glu/files/glu-9.0.2-clang-16-register.patch b/media-libs/glu/files/glu-9.0.2-clang-16-register.patch
new file mode 100644
index 000000000000..c06d893f1151
--- /dev/null
+++ b/media-libs/glu/files/glu-9.0.2-clang-16-register.patch
@@ -0,0 +1,30 @@
+https://bugs.gentoo.org/894314
+https://gitlab.freedesktop.org/mesa/glu/-/merge_requests/10
+
+From b6c308172993dfd0f76ee9f4fe083cff8c51ced8 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Fri, 13 Jan 2023 20:58:07 -0800
+Subject: [PATCH] Remove deprecated register in C++17
+
+Fixes errors like
+
+src/libnurbs/internals/varray.cc:76:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
+ register long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]);
+ ^~~~~~~~~
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+--- a/src/libnurbs/internals/varray.cc
++++ b/src/libnurbs/internals/varray.cc
+@@ -73,8 +73,8 @@ Varray::~Varray( void )
+ inline void
+ Varray::update( Arc_ptr arc, long dir[2], REAL val )
+ {
+- register long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]);
+- register long dt = sgn(arc->tail()[1] - arc->prev->tail()[1]);
++ long ds = sgn(arc->tail()[0] - arc->prev->tail()[0]);
++ long dt = sgn(arc->tail()[1] - arc->prev->tail()[1]);
+
+ if( dir[0] != ds || dir[1] != dt ) {
+ dir[0] = ds;
+--
+GitLab
diff --git a/media-libs/glu/glu-9.0.2.ebuild b/media-libs/glu/glu-9.0.2.ebuild
index da35e84be92a..bb010d61a62e 100644
--- a/media-libs/glu/glu-9.0.2.ebuild
+++ b/media-libs/glu/glu-9.0.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -28,6 +28,10 @@ IUSE="static-libs"
DEPEND=">=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]"
RDEPEND="${DEPEND}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-9.0.2-clang-16-register.patch
+)
+
multilib_src_configure() {
local emesonargs=(
-Ddefault_library=$(usex static-libs both shared)