* [gentoo-commits] repo/gentoo:master commit in: media-sound/vorbisgain/, media-sound/vorbisgain/files/
@ 2022-06-20 5:04 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2022-06-20 5:04 UTC (permalink / raw
To: gentoo-commits
commit: a8781219bf8117d216e3a8cf157abb8a615c0664
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 20 03:26:09 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun 20 05:03:50 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8781219
media-sound/vorbisgain: fix -Wformat-security
Closes: https://bugs.gentoo.org/634994
Thanks-to: René Rhéaume <rene.rheaume <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>
.../files/vorbisgain-0.37-wformat-security.patch | 13 +++++++++
media-sound/vorbisgain/vorbisgain-0.37-r4.ebuild | 33 ++++++++++++++++++++++
2 files changed, 46 insertions(+)
diff --git a/media-sound/vorbisgain/files/vorbisgain-0.37-wformat-security.patch b/media-sound/vorbisgain/files/vorbisgain-0.37-wformat-security.patch
new file mode 100644
index 000000000000..eecf45675fac
--- /dev/null
+++ b/media-sound/vorbisgain/files/vorbisgain-0.37-wformat-security.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/634994
+--- a/misc.c
++++ b/misc.c
+@@ -57,8 +57,7 @@
+ vfprintf(stderr, message, args);
+ va_end(args);
+
+- fprintf(stderr, strerror(err_num));
+- fprintf(stderr, "\n");
++ fprintf(stderr, "%s\n", strerror(err_num));
+ }
+
+
diff --git a/media-sound/vorbisgain/vorbisgain-0.37-r4.ebuild b/media-sound/vorbisgain/vorbisgain-0.37-r4.ebuild
new file mode 100644
index 000000000000..30c144f471c9
--- /dev/null
+++ b/media-sound/vorbisgain/vorbisgain-0.37-r4.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Calculator of perceived sound level for Ogg Vorbis files"
+HOMEPAGE="https://sjeng.org/vorbisgain.html"
+SRC_URI="https://sjeng.org/ftp/vorbis/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+ media-libs/libogg
+ media-libs/libvorbis"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ # bug 200931
+ "${FILESDIR}"/${P}-fix-errno-and-warnings.patch
+ # bug 634994
+ "${FILESDIR}"/${P}-wformat-security.patch
+)
+
+src_configure() {
+ econf --enable-recursive
+}
+
+src_install() {
+ default
+ dodoc vorbisgain.txt
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-20 5:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-20 5:04 [gentoo-commits] repo/gentoo:master commit in: media-sound/vorbisgain/, media-sound/vorbisgain/files/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox