commit:     78c22f568a3feaa88baa273e19c5e0c65c235d9f
Author:     Martin Dummer <martin.dummer <AT> gmx <DOT> net>
AuthorDate: Thu Jun 30 21:29:49 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Jul  5 09:47:13 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78c22f56

media-plugins/vdr-streamdev: fix Makefiles calling ar directly

Closes: https://bugs.gentoo.org/854885
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net>
Closes: https://github.com/gentoo/gentoo/pull/26174
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 .../files/vdr-streamdev-0.6.3-Makefile.patch       | 36 ++++++++++++++++++++++
 .../vdr-streamdev/vdr-streamdev-0.6.3.ebuild       |  7 ++++-
 2 files changed, 42 insertions(+), 1 deletion(-)

diff --git 
a/media-plugins/vdr-streamdev/files/vdr-streamdev-0.6.3-Makefile.patch 
b/media-plugins/vdr-streamdev/files/vdr-streamdev-0.6.3-Makefile.patch
new file mode 100644
index 000000000000..282108476c7b
--- /dev/null
+++ b/media-plugins/vdr-streamdev/files/vdr-streamdev-0.6.3-Makefile.patch
@@ -0,0 +1,36 @@
+diff -Naur vdr-plugin-streamdev-0.6.3.orig/libdvbmpeg/Makefile 
vdr-plugin-streamdev-0.6.3/libdvbmpeg/Makefile
+--- vdr-plugin-streamdev-0.6.3.orig/libdvbmpeg/Makefile        2022-01-22 
17:07:53.000000000 +0100
++++ vdr-plugin-streamdev-0.6.3/libdvbmpeg/Makefile     2022-06-30 
23:15:50.274114529 +0200
+@@ -15,7 +15,7 @@
+ 
+ .PHONY: clean
+ libdvbmpegtools.a: $(OBJS)
+-      ar -rcs libdvbmpegtools.a $(OBJS) 
++      $(AR) -rcs libdvbmpegtools.a $(OBJS)
+ 
+ ### Implicit rules:
+ 
+diff -Naur vdr-plugin-streamdev-0.6.3.orig/remux/Makefile 
vdr-plugin-streamdev-0.6.3/remux/Makefile
+--- vdr-plugin-streamdev-0.6.3.orig/remux/Makefile     2022-01-22 
17:07:53.000000000 +0100
++++ vdr-plugin-streamdev-0.6.3/remux/Makefile  2022-06-30 23:15:18.845454583 
+0200
+@@ -11,7 +11,7 @@
+ 
+ .PHONY: clean
+ remux.a: $(OBJS)
+-      ar -rcs remux.a $^
++      $(AR) -rcs remux.a $^
+ 
+ ### Implicit rules:
+ 
+diff -Naur vdr-plugin-streamdev-0.6.3.orig/tools/Makefile 
vdr-plugin-streamdev-0.6.3/tools/Makefile
+--- vdr-plugin-streamdev-0.6.3.orig/tools/Makefile     2022-01-22 
17:07:53.000000000 +0100
++++ vdr-plugin-streamdev-0.6.3/tools/Makefile  2022-06-30 23:16:14.494623068 
+0200
+@@ -11,7 +11,7 @@
+ 
+ .PHONY: clean
+ sockettools.a: $(OBJS)
+-      ar -rcs sockettools.a $(OBJS) 
++      $(AR) -rcs sockettools.a $(OBJS)
+ 
+ ### Implicit rules:
+ 

diff --git a/media-plugins/vdr-streamdev/vdr-streamdev-0.6.3.ebuild 
b/media-plugins/vdr-streamdev/vdr-streamdev-0.6.3.ebuild
index 3565a40465d6..02b5e7e2ae29 100644
--- a/media-plugins/vdr-streamdev/vdr-streamdev-0.6.3.ebuild
+++ b/media-plugins/vdr-streamdev/vdr-streamdev-0.6.3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit vdr-plugin-2
+inherit toolchain-funcs vdr-plugin-2
 
 DESCRIPTION="VDR Plugin: Client/Server and http streaming plugin"
 HOMEPAGE="https://github.com/vdr-projects/vdr-plugin-streamdev";
@@ -24,6 +24,7 @@ RDEPEND="${DEPEND}"
 QA_FLAGS_IGNORED="
        usr/lib/vdr/plugins/libvdr-streamdev-.*
        usr/lib64/vdr/plugins/libvdr-streamdev-.*"
+PATCHES=( "${FILESDIR}/${P}-Makefile.patch" )
 
 # vdr-plugin-2.eclass changes
 PO_SUBDIR="client server"
@@ -51,6 +52,10 @@ src_prepare() {
        fix_vdr_libsi_include server/livestreamer.c
 }
 
+src_compile() {
+       emake AR="$(tc-getAR)"
+}
+
 src_install() {
        vdr-plugin-2_src_install
 

Reply via email to