From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/dvisvgm/, app-text/dvisvgm/files/
Date: Fri, 4 Nov 2022 05:15:43 +0000 (UTC) [thread overview]
Message-ID: <1667538558.cc40eb6f345c1193e853cb752bc8b727d6602e53.sam@gentoo> (raw)
commit: cc40eb6f345c1193e853cb752bc8b727d6602e53
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 4 05:09:18 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Nov 4 05:09:18 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc40eb6f
app-text/dvisvgm: fix configure w/ clang 16
Signed-off-by: Sam James <sam <AT> gentoo.org>
...{dvisvgm-2.14.ebuild => dvisvgm-2.14-r1.ebuild} | 12 +++++++++++-
.../files/dvisvgm-2.14-configure-clang16.patch | 22 ++++++++++++++++++++++
2 files changed, 33 insertions(+), 1 deletion(-)
diff --git a/app-text/dvisvgm/dvisvgm-2.14.ebuild b/app-text/dvisvgm/dvisvgm-2.14-r1.ebuild
similarity index 84%
rename from app-text/dvisvgm/dvisvgm-2.14.ebuild
rename to app-text/dvisvgm/dvisvgm-2.14-r1.ebuild
index 7a3027f6d6e0..7c440a044d8a 100644
--- a/app-text/dvisvgm/dvisvgm-2.14.ebuild
+++ b/app-text/dvisvgm/dvisvgm-2.14-r1.ebuild
@@ -3,6 +3,8 @@
EAPI=8
+inherit autotools
+
DESCRIPTION="Converts DVI files to SVG"
HOMEPAGE="https://dvisvgm.de/"
SRC_URI="https://github.com/mgieseki/dvisvgm/releases/download/${PV}/${P}.tar.gz"
@@ -43,9 +45,17 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${P}-ghostscript.patch
- "${FILESDIR}"/${PN}-2.14-Add-missing-cstdint-includes-for-GCC-13.patch
+ "${FILESDIR}"/${P}-Add-missing-cstdint-includes-for-GCC-13.patch
+ "${FILESDIR}"/${PN}-2.14-configure-clang16.patch
)
+src_prepare() {
+ default
+
+ # Drop once configure patch merged for clang 16
+ eautoreconf
+}
+
src_configure() {
local myargs=(
--without-ttfautohint
diff --git a/app-text/dvisvgm/files/dvisvgm-2.14-configure-clang16.patch b/app-text/dvisvgm/files/dvisvgm-2.14-configure-clang16.patch
new file mode 100644
index 000000000000..6fe679f551d1
--- /dev/null
+++ b/app-text/dvisvgm/files/dvisvgm-2.14-configure-clang16.patch
@@ -0,0 +1,22 @@
+https://github.com/mgieseki/dvisvgm/pull/200
+
+From e3cfc0976ec1f5bbcd389c318eabc2a783990de0 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@gentoo.org>
+Date: Fri, 4 Nov 2022 05:07:09 +0000
+Subject: [PATCH] configure.ac: fix -Wimplicit-function-declaration
+
+Clang 16 makes -Wimplicit-function-declaration an error by default. We
+need to include <stdlib.h> for exit().
+
+Signed-off-by: Sam James <sam@gentoo.org>
+--- a/configure.ac
++++ b/configure.ac
+@@ -55,6 +55,7 @@ AC_CHECK_LIB([kpathsea], [kpse_find_file],,
+
+ AC_MSG_CHECKING([kpathsea version])
+ AC_RUN_IFELSE([AC_LANG_SOURCE([#include <stdio.h>
++ #include <stdlib.h>
+ #include <kpathsea/kpathsea.h>
+ int main() {
+ FILE *f;
+
next reply other threads:[~2022-11-04 5:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-04 5:15 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-11-04 23:31 [gentoo-commits] repo/gentoo:master commit in: app-text/dvisvgm/, app-text/dvisvgm/files/ Sam James
2023-02-17 10:39 Sam James
2023-03-10 9:55 Sam James
2023-07-03 13:47 Sam James
2024-08-15 0:54 Sam James
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1667538558.cc40eb6f345c1193e853cb752bc8b727d6602e53.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox