* [gentoo-commits] repo/gentoo:master commit in: media-libs/libcdaudio/, media-libs/libcdaudio/files/
@ 2022-02-23 15:42 Ben Kohler
0 siblings, 0 replies; 2+ messages in thread
From: Ben Kohler @ 2022-02-23 15:42 UTC (permalink / raw
To: gentoo-commits
commit: c9a7edb15e642ddc4ca6cac06c758bc0fe3c4ef0
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 23 15:40:27 2022 +0000
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Wed Feb 23 15:41:51 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9a7edb1
media-libs/libcdaudio: fix hardcoded /usr/lib in libcdaudio-config
Bug: https://bugs.gentoo.org/832199
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
.../files/libcdaudio-0.99.12-libdir-fix.patch | 12 ++++++++++
media-libs/libcdaudio/libcdaudio-0.99.12-r3.ebuild | 28 ++++++++++++++++++++++
2 files changed, 40 insertions(+)
diff --git a/media-libs/libcdaudio/files/libcdaudio-0.99.12-libdir-fix.patch b/media-libs/libcdaudio/files/libcdaudio-0.99.12-libdir-fix.patch
new file mode 100644
index 000000000000..96ee6fabf69d
--- /dev/null
+++ b/media-libs/libcdaudio/files/libcdaudio-0.99.12-libdir-fix.patch
@@ -0,0 +1,12 @@
+diff -ur a/libcdaudio-config.in b/libcdaudio-config.in
+--- a/libcdaudio-config.in 2022-02-23 09:34:38.948920631 -0600
++++ b/libcdaudio-config.in 2022-02-23 09:34:56.239410252 -0600
+@@ -49,7 +49,7 @@
+ echo @LIB_LDADD@
+ ;;
+ --libs)
+- libdir=-L${exec_prefix}/lib
++ libdir=-L${exec_prefix}@libdir@
+ echo $libdir -lcdaudio @LIBS@
+ ;;
+ *)
diff --git a/media-libs/libcdaudio/libcdaudio-0.99.12-r3.ebuild b/media-libs/libcdaudio/libcdaudio-0.99.12-r3.ebuild
new file mode 100644
index 000000000000..041695340a12
--- /dev/null
+++ b/media-libs/libcdaudio/libcdaudio-0.99.12-r3.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Library of cd audio related routines"
+HOMEPAGE="http://libcdaudio.sourceforge.net/"
+SRC_URI="mirror://sourceforge/libcdaudio/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.99-CAN-2005-0706.patch
+ "${FILESDIR}"/${P}-bug245649.patch
+ "${FILESDIR}"/${P}-libdir-fix.patch
+)
+
+src_configure() {
+ econf --enable-threads --disable-static
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/libcdaudio/, media-libs/libcdaudio/files/
@ 2022-09-22 15:04 Ben Kohler
0 siblings, 0 replies; 2+ messages in thread
From: Ben Kohler @ 2022-09-22 15:04 UTC (permalink / raw
To: gentoo-commits
commit: 89279f0e1818dadb84e8e40beae90359898c10c2
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 22 14:35:37 2022 +0000
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Thu Sep 22 15:04:39 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89279f0e
media-libs/libcdaudio: patch for m4 test program to fix clang-16 failure
Reverse deps of libcdaudio may fail the check for libcdaudio under
clang-16 (or gcc with -Werror=implicit-function-declaration) due to a
missing include in the m4 test program.
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
.../libcdaudio-0.99.12-m4-testprogram-fix.patch | 10 ++++++++
media-libs/libcdaudio/libcdaudio-0.99.12-r4.ebuild | 29 ++++++++++++++++++++++
2 files changed, 39 insertions(+)
diff --git a/media-libs/libcdaudio/files/libcdaudio-0.99.12-m4-testprogram-fix.patch b/media-libs/libcdaudio/files/libcdaudio-0.99.12-m4-testprogram-fix.patch
new file mode 100644
index 000000000000..491b330d196a
--- /dev/null
+++ b/media-libs/libcdaudio/files/libcdaudio-0.99.12-m4-testprogram-fix.patch
@@ -0,0 +1,10 @@
+--- a/libcdaudio.m4
++++ b/libcdaudio.m4
+@@ -68,6 +68,7 @@
+ #include <cdaudio.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+
+ char* my_strdup (char *str)
+ {
diff --git a/media-libs/libcdaudio/libcdaudio-0.99.12-r4.ebuild b/media-libs/libcdaudio/libcdaudio-0.99.12-r4.ebuild
new file mode 100644
index 000000000000..4f8d95f04e0d
--- /dev/null
+++ b/media-libs/libcdaudio/libcdaudio-0.99.12-r4.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Library of cd audio related routines"
+HOMEPAGE="http://libcdaudio.sourceforge.net/"
+SRC_URI="mirror://sourceforge/libcdaudio/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE=""
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.99-CAN-2005-0706.patch
+ "${FILESDIR}"/${P}-bug245649.patch
+ "${FILESDIR}"/${P}-libdir-fix.patch
+ "${FILESDIR}"/${P}-m4-testprogram-fix.patch
+)
+
+src_configure() {
+ econf --enable-threads --disable-static
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-22 15:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-23 15:42 [gentoo-commits] repo/gentoo:master commit in: media-libs/libcdaudio/, media-libs/libcdaudio/files/ Ben Kohler
-- strict thread matches above, loose matches on Subject: below --
2022-09-22 15:04 Ben Kohler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox