Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libilbc/files/, media-libs/libilbc/
Date: Sat, 14 May 2022 03:00:51
Message-Id: 1652497043.07e1c81337936a0341e9fa30e23931943fd994f2.sam@gentoo
1 commit: 07e1c81337936a0341e9fa30e23931943fd994f2
2 Author: matoro <matoro <AT> users <DOT> noreply <DOT> github <DOT> com>
3 AuthorDate: Tue May 3 04:07:55 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat May 14 02:57:23 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07e1c813
7
8 media-libs/libilbc: Keyword 3.0.4 ia64, #610546
9
10 Closes: https://bugs.gentoo.org/610546
11 Signed-off-by: matoro <matoro <AT> users.noreply.github.com>
12 Closes: https://github.com/gentoo/gentoo/pull/25297
13 Signed-off-by: Sam James <sam <AT> gentoo.org>
14
15 .../libilbc/files/libilbc-3.0.4-support-ia64.patch | 32 ++++++++++++++++++++++
16 media-libs/libilbc/libilbc-3.0.4.ebuild | 5 ++--
17 media-libs/libilbc/libilbc-9999.ebuild | 5 ++--
18 3 files changed, 38 insertions(+), 4 deletions(-)
19
20 diff --git a/media-libs/libilbc/files/libilbc-3.0.4-support-ia64.patch b/media-libs/libilbc/files/libilbc-3.0.4-support-ia64.patch
21 new file mode 100644
22 index 000000000000..7d992b722d23
23 --- /dev/null
24 +++ b/media-libs/libilbc/files/libilbc-3.0.4-support-ia64.patch
25 @@ -0,0 +1,32 @@
26 +From b9d5baa0c7daca577b5c846504bc6f5f71087582 Mon Sep 17 00:00:00 2001
27 +From: matoro <matoro@××××××××××××××××××××.com>
28 +Date: Mon, 2 May 2022 14:02:37 -0400
29 +Subject: [PATCH] add platform definition for IA64
30 +
31 +How I tested:
32 + * built ffmpeg with libilbc enabled
33 + * obtained a sample file from
34 + https://web.archive.org/web/2016*/http://www.andrews-corner.org/samples/luckynight.lbc
35 + * converted it to wav using ffmpeg on ia64 host
36 + * compared to file converted on amd64 host
37 + * did the same in reverse (converted wav to lbc)
38 +
39 +All comparisons were identical and sounded the same.
40 +---
41 + rtc_base/system/arch.h | 3 +++
42 + 1 file changed, 3 insertions(+)
43 +
44 +diff --git a/rtc_base/system/arch.h b/rtc_base/system/arch.h
45 +index be2367b85f..e00150b65f 100644
46 +--- a/rtc_base/system/arch.h
47 ++++ b/rtc_base/system/arch.h
48 +@@ -79,6 +79,9 @@
49 + #elif defined(__EMSCRIPTEN__)
50 + #define WEBRTC_ARCH_32_BITS
51 + #define WEBRTC_ARCH_LITTLE_ENDIAN
52 ++#elif defined(_M_IA64) || defined(__ia64__) || defined(__ia64)
53 ++#define WEBRTC_ARCH_64_BITS
54 ++#define WEBRTC_ARCH_LITTLE_ENDIAN
55 + #else
56 + #error Please add support for your architecture in rtc_base/system/arch.h
57 + #endif
58
59 diff --git a/media-libs/libilbc/libilbc-3.0.4.ebuild b/media-libs/libilbc/libilbc-3.0.4.ebuild
60 index 285925de2aed..13ec15608964 100644
61 --- a/media-libs/libilbc/libilbc-3.0.4.ebuild
62 +++ b/media-libs/libilbc/libilbc-3.0.4.ebuild
63 @@ -1,4 +1,4 @@
64 -# Copyright 1999-2021 Gentoo Authors
65 +# Copyright 1999-2022 Gentoo Authors
66 # Distributed under the terms of the GNU General Public License v2
67
68 EAPI=7
69 @@ -11,7 +11,7 @@ if [[ ${PV} == *9999 ]]; then
70 EGIT_REPO_URI="https://github.com/TimothyGu/${PN}"
71 else
72 SRC_URI="https://github.com/TimothyGu/${PN}/releases/download/v${PV}/${P}.tar.gz"
73 - KEYWORDS="amd64 arm arm64 ppc ppc64 ~riscv ~sparc x86"
74 + KEYWORDS="amd64 arm arm64 ~ia64 ppc ppc64 ~riscv ~sparc x86"
75 fi
76
77 DESCRIPTION="Packaged version of iLBC codec from the WebRTC project"
78 @@ -22,4 +22,5 @@ SLOT="0/3"
79
80 PATCHES=(
81 "${FILESDIR}/${PN}-3.0.4-respect-CFLAGS.patch"
82 + "${FILESDIR}/${P}-support-ia64.patch"
83 )
84
85 diff --git a/media-libs/libilbc/libilbc-9999.ebuild b/media-libs/libilbc/libilbc-9999.ebuild
86 index 9f2f31bf171f..afb3f5bc0e3c 100644
87 --- a/media-libs/libilbc/libilbc-9999.ebuild
88 +++ b/media-libs/libilbc/libilbc-9999.ebuild
89 @@ -1,4 +1,4 @@
90 -# Copyright 1999-2021 Gentoo Authors
91 +# Copyright 1999-2022 Gentoo Authors
92 # Distributed under the terms of the GNU General Public License v2
93
94 EAPI=7
95 @@ -11,7 +11,7 @@ if [[ ${PV} == *9999 ]]; then
96 EGIT_REPO_URI="https://github.com/TimothyGu/${PN}"
97 else
98 SRC_URI="https://github.com/TimothyGu/${PN}/releases/download/v${PV}/${P}.tar.gz"
99 - KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
100 + KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
101 fi
102
103 DESCRIPTION="Packaged version of iLBC codec from the WebRTC project"
104 @@ -22,4 +22,5 @@ SLOT="0/3"
105
106 PATCHES=(
107 "${FILESDIR}/${PN}-3.0.4-respect-CFLAGS.patch"
108 + "${FILESDIR}/${P}-support-ia64.patch"
109 )