diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-11-26 23:23:20 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-11-27 20:07:16 -0800 |
commit | 324dec2a5521faa04fc120242f95a48d3e5fc1be (patch) | |
tree | 4ce2965813ccbb93a0d099e7184309f034aac0de /meta-oe/recipes-multimedia | |
parent | e95c5b704b8c7b7fa99065c69e4ea39c00537e4d (diff) | |
download | meta-openembedded-324dec2a5521faa04fc120242f95a48d3e5fc1be.tar.gz |
a2jmidid: Upgrade to release 9
- Switch to using git for SRC_URI, since 9 is not available in original location
- Drop upstreamed aarch64 support patch
- Drop waf patch as it uses meson now
- Disable lto for now, meson needs to pass full CC to LTO plugin otherwise
we get linking errors since LTO objects are not compiled with right ABI
especially on arm ( mixing hard/soft float)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-multimedia')
5 files changed, 32 insertions, 110 deletions
diff --git a/meta-oe/recipes-multimedia/jack/a2jmidid/0001-wscript-add-pthread-library-dependency-to-fix-linkin.patch b/meta-oe/recipes-multimedia/jack/a2jmidid/0001-wscript-add-pthread-library-dependency-to-fix-linkin.patch deleted file mode 100644 index d17d311bd..000000000 --- a/meta-oe/recipes-multimedia/jack/a2jmidid/0001-wscript-add-pthread-library-dependency-to-fix-linkin.patch +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | From 488dc9b00239976caac6bd9ed76b38d9d1659dd9 Mon Sep 17 00:00:00 2001 | ||
2 | From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> | ||
3 | Date: Tue, 4 Oct 2016 23:44:49 +0200 | ||
4 | Subject: [PATCH] wscript: add pthread library dependency to fix linking | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | Stolen from [1] | ||
10 | |||
11 | [1] http://pkgs.fedoraproject.org/cgit/rpms/a2jmidid.git/tree/a2jmidid-linking.patch | ||
12 | |||
13 | Upstream-Status: Pending | ||
14 | |||
15 | Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com> | ||
16 | --- | ||
17 | wscript | 3 ++- | ||
18 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
19 | |||
20 | diff --git a/wscript b/wscript | ||
21 | index 664625b..66a532a 100644 | ||
22 | --- a/wscript | ||
23 | +++ b/wscript | ||
24 | @@ -67,6 +67,7 @@ def configure(conf): | ||
25 | conf.env['DBUS_ENABLED'] = False | ||
26 | |||
27 | conf.env['LIB_DL'] = ['dl'] | ||
28 | + conf.env['LIB_PTHREAD'] = ['pthread'] | ||
29 | |||
30 | #conf.check_header('expat.h', mandatory=True) | ||
31 | #conf.env['LIB_EXPAT'] = ['expat'] | ||
32 | @@ -152,7 +153,7 @@ def build(bld): | ||
33 | |||
34 | prog.includes = '.' # make waf dependency tracking work | ||
35 | prog.target = 'a2jmidid' | ||
36 | - prog.uselib = 'ALSA JACK DL' | ||
37 | + prog.uselib = 'ALSA JACK DL PTHREAD' | ||
38 | if bld.env()['DBUS_ENABLED']: | ||
39 | prog.uselib += " DBUS-1" | ||
40 | prog = bld.create_obj('cc', 'program') | ||
41 | -- | ||
42 | 2.5.5 | ||
43 | |||
diff --git a/meta-oe/recipes-multimedia/jack/a2jmidid/0002-aarch64.patch b/meta-oe/recipes-multimedia/jack/a2jmidid/0002-aarch64.patch deleted file mode 100644 index b344f5427..000000000 --- a/meta-oe/recipes-multimedia/jack/a2jmidid/0002-aarch64.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | Consider compiler define for aarch64 | ||
2 | |||
3 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
4 | Upstream-Status:Pending | ||
5 | |||
6 | Index: a2jmidid-8/sigsegv.c | ||
7 | =================================================================== | ||
8 | --- a2jmidid-8.orig/sigsegv.c | ||
9 | +++ a2jmidid-8/sigsegv.c | ||
10 | @@ -91,18 +91,18 @@ static void signal_segv(int signum, sigi | ||
11 | a2j_error("info.si_errno = %d", info->si_errno); | ||
12 | a2j_error("info.si_code = %d (%s)", info->si_code, si_codes[info->si_code]); | ||
13 | a2j_error("info.si_addr = %p", info->si_addr); | ||
14 | -#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) | ||
15 | +#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) && !defined(__aarch64__) | ||
16 | for(i = 0; i < NGREG; i++) | ||
17 | a2j_error("reg[%02d] = 0x" REGFORMAT, i, | ||
18 | #if defined(__powerpc__) | ||
19 | ucontext->uc_mcontext.uc_regs[i] | ||
20 | -#elif defined(__sparc__) && defined(__arch64__) | ||
21 | +#elif defined(__sparc__) || defined(__arch64__) | ||
22 | ucontext->uc_mcontext.mc_gregs[i] | ||
23 | #else | ||
24 | ucontext->uc_mcontext.gregs[i] | ||
25 | #endif | ||
26 | ); | ||
27 | -#endif /* alpha, ia64, kFreeBSD, arm, hppa */ | ||
28 | +#endif /* alpha, ia64, kFreeBSD, arm, hppa aarch64 */ | ||
29 | |||
30 | #if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64) | ||
31 | # if defined(SIGSEGV_STACK_IA64) | ||
diff --git a/meta-oe/recipes-multimedia/jack/a2jmidid/riscv_ucontext.patch b/meta-oe/recipes-multimedia/jack/a2jmidid/riscv_ucontext.patch index 23618f18a..af6612e85 100644 --- a/meta-oe/recipes-multimedia/jack/a2jmidid/riscv_ucontext.patch +++ b/meta-oe/recipes-multimedia/jack/a2jmidid/riscv_ucontext.patch | |||
@@ -12,13 +12,13 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
12 | +#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) && !defined(__aarch64__) && !defined(__riscv) | 12 | +#if !defined(__alpha__) && !defined(__ia64__) && !defined(__FreeBSD_kernel__) && !defined(__arm__) && !defined(__hppa__) && !defined(__sh__) && !defined(__aarch64__) && !defined(__riscv) |
13 | for(i = 0; i < NGREG; i++) | 13 | for(i = 0; i < NGREG; i++) |
14 | a2j_error("reg[%02d] = 0x" REGFORMAT, i, | 14 | a2j_error("reg[%02d] = 0x" REGFORMAT, i, |
15 | #if defined(__powerpc__) | 15 | #if defined(__powerpc__) && !defined(__powerpc64__) |
16 | @@ -102,7 +102,7 @@ static void signal_segv(int signum, sigi | 16 | @@ -104,7 +104,7 @@ static void signal_segv(int signum, sigi |
17 | ucontext->uc_mcontext.gregs[i] | 17 | ucontext->uc_mcontext.gregs[i] |
18 | #endif | 18 | #endif |
19 | ); | 19 | ); |
20 | -#endif /* alpha, ia64, kFreeBSD, arm, hppa aarch64 */ | 20 | -#endif /* alpha, ia64, kFreeBSD, arm, hppa, aarch64 */ |
21 | +#endif /* alpha, ia64, kFreeBSD, arm, hppa aarch64 riscv */ | 21 | +#endif /* alpha, ia64, kFreeBSD, arm, hppa, aarch64 riscv */ |
22 | 22 | ||
23 | #if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64) | 23 | #if defined(SIGSEGV_STACK_X86) || defined(SIGSEGV_STACK_IA64) |
24 | # if defined(SIGSEGV_STACK_IA64) | 24 | # if defined(SIGSEGV_STACK_IA64) |
diff --git a/meta-oe/recipes-multimedia/jack/a2jmidid_8.bb b/meta-oe/recipes-multimedia/jack/a2jmidid_8.bb deleted file mode 100644 index a0aa41223..000000000 --- a/meta-oe/recipes-multimedia/jack/a2jmidid_8.bb +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | SUMMARY = "a2jmidid is daemon for exposing ALSA sequencer applications as JACK MIDI" | ||
2 | SECTION = "libs/multimedia" | ||
3 | |||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = " \ | ||
6 | file://gpl2.txt;md5=751419260aa954499f7abaabaa882bbe \ | ||
7 | " | ||
8 | |||
9 | DEPENDS = "alsa-lib jack dbus" | ||
10 | DEPENDS_append_libc-musl = " libexecinfo" | ||
11 | |||
12 | SRC_URI = " \ | ||
13 | http://download.gna.org/${BPN}/${BPN}-${PV}.tar.bz2 \ | ||
14 | file://0001-wscript-add-pthread-library-dependency-to-fix-linkin.patch \ | ||
15 | file://0002-aarch64.patch \ | ||
16 | file://riscv_ucontext.patch \ | ||
17 | " | ||
18 | SRC_URI[md5sum] = "9cf4edbc3ad2ddeeaf6c8c1791ff3ddd" | ||
19 | SRC_URI[sha256sum] = "2a9635f62aabc59edb54ada07048dd47e896b90caff94bcee710d3582606f55f" | ||
20 | |||
21 | inherit waf pkgconfig | ||
22 | |||
23 | LDFLAGS_append_libc-musl = " -lexecinfo" | ||
24 | |||
25 | export LINKFLAGS="${LDFLAGS}" | ||
26 | |||
27 | do_configure() { | ||
28 | sed -i 's|/usr/bin/.*python$|/usr/bin/env python2|' ${S}/a2j_control ${S}/waf ${S}/wscript | ||
29 | (cd ${B} && ${S}/waf configure --prefix=${prefix} ${WAF_EXTRA_CONF} ${EXTRA_OECONF}) | ||
30 | } | ||
31 | |||
32 | FILES_${PN} += "${datadir}/dbus-1/services" | ||
diff --git a/meta-oe/recipes-multimedia/jack/a2jmidid_9.bb b/meta-oe/recipes-multimedia/jack/a2jmidid_9.bb new file mode 100644 index 000000000..5fffe77c2 --- /dev/null +++ b/meta-oe/recipes-multimedia/jack/a2jmidid_9.bb | |||
@@ -0,0 +1,28 @@ | |||
1 | SUMMARY = "a2jmidid is daemon for exposing ALSA sequencer applications as JACK MIDI" | ||
2 | SECTION = "libs/multimedia" | ||
3 | |||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = " \ | ||
6 | file://LICENSE;md5=751419260aa954499f7abaabaa882bbe \ | ||
7 | " | ||
8 | |||
9 | DEPENDS = "alsa-lib jack dbus" | ||
10 | DEPENDS_append_libc-musl = " libexecinfo" | ||
11 | |||
12 | SRCREV = "de37569c926c5886768f892c019e3f0468615038" | ||
13 | SRC_URI = " \ | ||
14 | git://github.com/linuxaudio/a2jmidid;protocol=https \ | ||
15 | file://riscv_ucontext.patch \ | ||
16 | " | ||
17 | |||
18 | S = "${WORKDIR}/git" | ||
19 | |||
20 | inherit meson pkgconfig | ||
21 | |||
22 | EXTRA_OEMESON = "-Db_lto=false" | ||
23 | |||
24 | LDFLAGS_append_libc-musl = " -lexecinfo" | ||
25 | |||
26 | export LINKFLAGS="${LDFLAGS}" | ||
27 | |||
28 | FILES_${PN} += "${datadir}/dbus-1/services" | ||