diff options
3 files changed, 80 insertions, 0 deletions
diff --git a/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb b/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb index f0efc51e19..c0f220fa6c 100644 --- a/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb +++ b/meta-oe/recipes-multimedia/cdrkit/cdrkit_1.1.11.bb | |||
| @@ -8,6 +8,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b30d3b2750b668133fc17b401e1b98f8" | |||
| 8 | SRC_URI = "${DEBIAN_MIRROR}/main/c/${BPN}/${BPN}_${PV}.orig.tar.gz \ | 8 | SRC_URI = "${DEBIAN_MIRROR}/main/c/${BPN}/${BPN}_${PV}.orig.tar.gz \ |
| 9 | file://0001-do-not-create-a-run-test-to-determine-order-of-bitfi.patch \ | 9 | file://0001-do-not-create-a-run-test-to-determine-order-of-bitfi.patch \ |
| 10 | file://0001-genisoimage-Fix-fprintf-format-errors.patch \ | 10 | file://0001-genisoimage-Fix-fprintf-format-errors.patch \ |
| 11 | file://0001-define-__THROW-to-avoid-build-issue-with-musl.patch \ | ||
| 12 | file://0002-Do-not-use-rcmd-on-build-with-musl.patch \ | ||
| 11 | " | 13 | " |
| 12 | SRC_URI[md5sum] = "efe08e2f3ca478486037b053acd512e9" | 14 | SRC_URI[md5sum] = "efe08e2f3ca478486037b053acd512e9" |
| 13 | SRC_URI[sha256sum] = "d1c030756ecc182defee9fe885638c1785d35a2c2a297b4604c0e0dcc78e47da" | 15 | SRC_URI[sha256sum] = "d1c030756ecc182defee9fe885638c1785d35a2c2a297b4604c0e0dcc78e47da" |
diff --git a/meta-oe/recipes-multimedia/cdrkit/files/0001-define-__THROW-to-avoid-build-issue-with-musl.patch b/meta-oe/recipes-multimedia/cdrkit/files/0001-define-__THROW-to-avoid-build-issue-with-musl.patch new file mode 100644 index 0000000000..b3beb069eb --- /dev/null +++ b/meta-oe/recipes-multimedia/cdrkit/files/0001-define-__THROW-to-avoid-build-issue-with-musl.patch | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | From 7c3036609494296f7c29413bf3acba829c81f62c Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Romain Naour <romain.naour@openwide.fr> | ||
| 3 | Date: Sat, 8 Aug 2015 22:58:57 +0200 | ||
| 4 | Subject: [PATCH 1/2] define __THROW to avoid build issue with musl | ||
| 5 | |||
| 6 | Fixes: | ||
| 7 | http://autobuild.buildroot.net/results/d27/d2781e70b04a207e2e9397d888032294c7285034/build-end.log | ||
| 8 | |||
| 9 | Signed-off-by: Romain Naour <romain.naour@openwide.fr> | ||
| 10 | --- | ||
| 11 | genisoimage/sha256.h | 4 ++++ | ||
| 12 | genisoimage/sha512.h | 4 ++++ | ||
| 13 | 2 files changed, 8 insertions(+) | ||
| 14 | |||
| 15 | diff --git a/genisoimage/sha256.h b/genisoimage/sha256.h | ||
| 16 | index e7f4cb9..bcae7ef 100644 | ||
| 17 | --- a/genisoimage/sha256.h | ||
| 18 | +++ b/genisoimage/sha256.h | ||
| 19 | @@ -29,6 +29,10 @@ | ||
| 20 | #include <stdint.h> | ||
| 21 | #include <stdio.h> | ||
| 22 | |||
| 23 | +/* define __THROW to avoid build issue when it's not available from the libc */ | ||
| 24 | +#ifndef __THROW | ||
| 25 | +# define __THROW | ||
| 26 | +#endif | ||
| 27 | |||
| 28 | /* Structure to save state of computation between the single steps. */ | ||
| 29 | struct sha256_ctx | ||
| 30 | diff --git a/genisoimage/sha512.h b/genisoimage/sha512.h | ||
| 31 | index 7298355..8cee8b0 100644 | ||
| 32 | --- a/genisoimage/sha512.h | ||
| 33 | +++ b/genisoimage/sha512.h | ||
| 34 | @@ -29,6 +29,10 @@ | ||
| 35 | #include <stdint.h> | ||
| 36 | #include <stdio.h> | ||
| 37 | |||
| 38 | +/* define __THROW to avoid build issue when it's not available from the libc */ | ||
| 39 | +#ifndef __THROW | ||
| 40 | +# define __THROW | ||
| 41 | +#endif | ||
| 42 | |||
| 43 | /* Structure to save state of computation between the single steps. */ | ||
| 44 | struct sha512_ctx | ||
| 45 | -- | ||
| 46 | 2.14.1 | ||
| 47 | |||
diff --git a/meta-oe/recipes-multimedia/cdrkit/files/0002-Do-not-use-rcmd-on-build-with-musl.patch b/meta-oe/recipes-multimedia/cdrkit/files/0002-Do-not-use-rcmd-on-build-with-musl.patch new file mode 100644 index 0000000000..547a21c67f --- /dev/null +++ b/meta-oe/recipes-multimedia/cdrkit/files/0002-Do-not-use-rcmd-on-build-with-musl.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From 510838b2c96a9b097b3ee2694cba1c3623b0bac7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Thu, 21 Sep 2017 22:38:05 -0700 | ||
| 4 | Subject: [PATCH 2/2] Do not use rcmd on build with musl | ||
| 5 | |||
| 6 | cdrkit unconditionally enables code using rcmd(3), which isn't available | ||
| 7 | on musl. | ||
| 8 | |||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | include/xconfig.h.in | 3 ++- | ||
| 12 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 13 | |||
| 14 | diff --git a/include/xconfig.h.in b/include/xconfig.h.in | ||
| 15 | index 476c00b..6b4b298 100644 | ||
| 16 | --- a/include/xconfig.h.in | ||
| 17 | +++ b/include/xconfig.h.in | ||
| 18 | @@ -186,8 +186,9 @@ | ||
| 19 | * Instead use the tests AC_SMALL_FSEEKO/AC_SMALL/STELLO and make sure | ||
| 20 | * they are placed before the large file tests. | ||
| 21 | */ | ||
| 22 | - | ||
| 23 | +#ifdef __GLIBC__ | ||
| 24 | #define HAVE_RCMD 1 /* rcmd() is present in libc/libsocket */ | ||
| 25 | +#endif | ||
| 26 | #define HAVE_SOCKET 1 /* socket() is present in libc/libsocket */ | ||
| 27 | #define HAVE_SOCKETPAIR 1 /* socketpair() is present in libc/libsocket */ | ||
| 28 | #define HAVE_GETSERVBYNAME 1 /* getservbyname() is present in libc/libsocket */ | ||
| 29 | -- | ||
| 30 | 2.14.1 | ||
| 31 | |||
