* [gentoo-commits] repo/gentoo:master commit in: media-libs/volpack/files/, media-libs/volpack/
@ 2022-09-29 5:31 Ionen Wolkens
0 siblings, 0 replies; 2+ messages in thread
From: Ionen Wolkens @ 2022-09-29 5:31 UTC (permalink / raw
To: gentoo-commits
commit: 7943e2bcc08484d66e982da0c73792b766cc5c95
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 29 05:18:02 2022 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Thu Sep 29 05:28:24 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7943e2bc
media-libs/volpack: fix build with clang16 by not building examples
These were installed (full with .libs/* and .o files) in /usr/share,
/and/ also failed with clang16.
Unfortunately by not fixing the sources they will continue to be
poor examples for all.
Closes: https://bugs.gentoo.org/870706
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
.../volpack/files/volpack-1.0_p7-skip-examples.patch | 16 ++++++++++++++++
media-libs/volpack/volpack-1.0_p7-r2.ebuild | 4 ++++
2 files changed, 20 insertions(+)
diff --git a/media-libs/volpack/files/volpack-1.0_p7-skip-examples.patch b/media-libs/volpack/files/volpack-1.0_p7-skip-examples.patch
new file mode 100644
index 000000000000..1476f23084f5
--- /dev/null
+++ b/media-libs/volpack/files/volpack-1.0_p7-skip-examples.patch
@@ -0,0 +1,16 @@
+Building these is broken with clang16 and they are primarily
+intended to be looked rather rather than built.
+
+https://bugs.gentoo.org/870706
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -7,3 +7,2 @@
+ man \
+- examples \
+ doc
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -196,3 +196,2 @@
+ man \
+- examples \
+ doc
diff --git a/media-libs/volpack/volpack-1.0_p7-r2.ebuild b/media-libs/volpack/volpack-1.0_p7-r2.ebuild
index 52cab1b988bf..f7076c8c6c31 100644
--- a/media-libs/volpack/volpack-1.0_p7-r2.ebuild
+++ b/media-libs/volpack/volpack-1.0_p7-r2.ebuild
@@ -17,6 +17,10 @@ IUSE="doc examples"
BDEPEND="sys-devel/m4"
+PATCHES=(
+ "${FILESDIR}"/${P}-skip-examples.patch
+)
+
src_compile() {
emake -j1
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/volpack/files/, media-libs/volpack/
@ 2022-10-11 3:17 Ionen Wolkens
0 siblings, 0 replies; 2+ messages in thread
From: Ionen Wolkens @ 2022-10-11 3:17 UTC (permalink / raw
To: gentoo-commits
commit: bcfdddb51006ad429082201cb2436ab684a544dd
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 11 02:57:01 2022 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Oct 11 03:17:19 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bcfdddb5
media-libs/volpack: further fix w/ upcoming clang16 + -std=gnu89
Forgot the patch for the missing int last time and
only fixed examples.
Bug: https://bugs.gentoo.org/870706
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
media-libs/volpack/files/volpack-1.0_p7-clang16.patch | 8 ++++++++
media-libs/volpack/files/volpack-1.0_p7-skip-examples.patch | 4 ++--
media-libs/volpack/volpack-1.0_p7-r2.ebuild | 9 +++++++++
3 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/media-libs/volpack/files/volpack-1.0_p7-clang16.patch b/media-libs/volpack/files/volpack-1.0_p7-clang16.patch
new file mode 100644
index 000000000000..95bb9efbbb8c
--- /dev/null
+++ b/media-libs/volpack/files/volpack-1.0_p7-clang16.patch
@@ -0,0 +1,8 @@
+https://bugs.gentoo.org/870706
+--- a/src/makeopts.c
++++ b/src/makeopts.c
+@@ -45,3 +45,3 @@
+
+-main(argc, argv)
++int main(argc, argv)
+ int argc;
diff --git a/media-libs/volpack/files/volpack-1.0_p7-skip-examples.patch b/media-libs/volpack/files/volpack-1.0_p7-skip-examples.patch
index 1476f23084f5..9cb0d0b9b508 100644
--- a/media-libs/volpack/files/volpack-1.0_p7-skip-examples.patch
+++ b/media-libs/volpack/files/volpack-1.0_p7-skip-examples.patch
@@ -1,5 +1,5 @@
-Building these is broken with clang16 and they are primarily
-intended to be looked rather rather than built.
+These are intended to be looked at rather than built, this avoids
+installing object files and prevents a build failure with clang16.
https://bugs.gentoo.org/870706
--- a/Makefile.am
diff --git a/media-libs/volpack/volpack-1.0_p7-r2.ebuild b/media-libs/volpack/volpack-1.0_p7-r2.ebuild
index f7076c8c6c31..e3a3ed9dca75 100644
--- a/media-libs/volpack/volpack-1.0_p7-r2.ebuild
+++ b/media-libs/volpack/volpack-1.0_p7-r2.ebuild
@@ -3,6 +3,8 @@
EAPI=8
+inherit flag-o-matic
+
MY_P="${PN}-${PV/_p/c}"
DESCRIPTION="Volume rendering library"
@@ -19,8 +21,15 @@ BDEPEND="sys-devel/m4"
PATCHES=(
"${FILESDIR}"/${P}-skip-examples.patch
+ "${FILESDIR}"/${P}-clang16.patch
)
+src_configure() {
+ append-cflags -std=gnu89 # old codebase, will break with c2x
+
+ default
+}
+
src_compile() {
emake -j1
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-11 3:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-29 5:31 [gentoo-commits] repo/gentoo:master commit in: media-libs/volpack/files/, media-libs/volpack/ Ionen Wolkens
-- strict thread matches above, loose matches on Subject: below --
2022-10-11 3:17 Ionen Wolkens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox