summaryrefslogtreecommitdiff
path: root/media-libs
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-18 20:36:58 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-18 20:36:58 +0100
commite26a7b5ef1fe42a66a3c91fe878da93c7cf83737 (patch)
tree69f8a3ce38afa952085fc96f7f7baaa8ad9fd0c8 /media-libs
parent3a1b8b124a5b405562b6e0ccf04e7bd2ddc131a4 (diff)
gentoo auto-resync : 18:07:2022 - 20:36:57
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/Manifest.gzbin66152 -> 66155 bytes
-rw-r--r--media-libs/harfbuzz/Manifest2
-rw-r--r--media-libs/harfbuzz/harfbuzz-4.3.0.ebuild2
-rw-r--r--media-libs/libinsane/Manifest3
-rw-r--r--media-libs/libinsane/files/libinsane-1.0.9-musl.patch238
-rw-r--r--media-libs/libinsane/libinsane-1.0.9.ebuild6
6 files changed, 246 insertions, 5 deletions
diff --git a/media-libs/Manifest.gz b/media-libs/Manifest.gz
index 59435c80a391..d98a0b0c52bb 100644
--- a/media-libs/Manifest.gz
+++ b/media-libs/Manifest.gz
Binary files differ
diff --git a/media-libs/harfbuzz/Manifest b/media-libs/harfbuzz/Manifest
index ba62b0d23b5f..028ae9188030 100644
--- a/media-libs/harfbuzz/Manifest
+++ b/media-libs/harfbuzz/Manifest
@@ -3,7 +3,7 @@ DIST harfbuzz-4.3.0.tar.gz 29200217 BLAKE2B dfe5e3b47e3d89a5ad7c6eaf6d274027a0eb
DIST harfbuzz-4.4.0.tar.gz 29226048 BLAKE2B 6534002bc750f12b960289aaff7129b15b2d53a043e67f6273f65fc311cb1767b9649eeb885b90358b595a12ac2f20e83dbe9252518852c8d0e2b213ff004004 SHA512 dd0a9768fa6c60c100d8b053ebc2ce06d236c9b06af0b99ca30ac6567298e94744d22d94ea1c8d8a0af8dcefaeda9328804964b80b8d278dab8978f933ef66d1
DIST harfbuzz-4.4.1.tar.gz 29231251 BLAKE2B 3947084ea2eedd76d64acfc5286ecd14d772ce0507163bc2c54a86579556a8799959ff4d47ea2919ee8472f8fe50d0266d325e3d0a7024f2ae8dcdf48d14f37e SHA512 bbc415d7b74408b1e8d34bfbc19a3cab002471fdd56d71b469c3129f0eae5532d5c7aaae7bb5cc3942fea6008d2ed9e96a7b20b10f4f5e46db63cecfa5c0248e
EBUILD harfbuzz-4.2.1.ebuild 2568 BLAKE2B cd0fd13772b43e47a8c90a5912ed5839c09599766e865e5fd7633a0694b9f379ad4c19c7c4b28af4aebaa839e5eefe45138254b075954427a9b105fa0247a52c SHA512 6d4ab2b384c575df4da788cb4042ce3ea88010d1513d1a84a340881e26efeefec5eb46179758eb06b377bedeba5ad999f69ef9a5e33c0779c4d25394b9d1aaf7
-EBUILD harfbuzz-4.3.0.ebuild 2573 BLAKE2B 38e1412570ddd7f0f27bcf56ce5e421585d69597518ce499b8a4742296fbf19684d6ee0070090a615927d56bbffdfe591d6ce9c2ccd424edb9f6abe7eea3be44 SHA512 b5740b418c4000e7d23709ed2fb14885345b4e78d731455338b8403493390626d228c0501f50b08ff63d7aa2db0894206dbb0b03152875ba99a860740ba99fc3
+EBUILD harfbuzz-4.3.0.ebuild 2572 BLAKE2B 328ac27229b8a050ff376a88681611ef8c4c3676dd81d28d15f75ceb10b4c21d38ec10cd767f8876ae3ae20760057b4e22a9988a7056a183e32af9bd572c0e94 SHA512 ad17fbdb7cf2b48eb50f06c7f65f3b1dd93f3246915c30d3172b334c3af52c69d4aee1bdf84acca6648dd801520eb332903bae6ba23b3714671cb470adcada3c
EBUILD harfbuzz-4.4.0.ebuild 2576 BLAKE2B 09004b39b15d8579369e445f9ed43969fe07bae360d3ff8f64c9652427bb1f5ca4aceb444b126b1b5b3fc84317b3edba9d88fec4009392685ad153006bd08838 SHA512 cae3657529a8ae6448d54a705b2ea7665b02256b078bdff2ee4d38f6a3eb1a8ec981c076c2d39bb944978ed6a68778ae7ef22d4273ca85395b1110f8aa03c21e
EBUILD harfbuzz-4.4.1.ebuild 2576 BLAKE2B 09004b39b15d8579369e445f9ed43969fe07bae360d3ff8f64c9652427bb1f5ca4aceb444b126b1b5b3fc84317b3edba9d88fec4009392685ad153006bd08838 SHA512 cae3657529a8ae6448d54a705b2ea7665b02256b078bdff2ee4d38f6a3eb1a8ec981c076c2d39bb944978ed6a68778ae7ef22d4273ca85395b1110f8aa03c21e
EBUILD harfbuzz-9999.ebuild 2569 BLAKE2B b0d0ee97ba2e80f55c7ebd237fd10ba16c3be21fb4cdfae92a8332f130e67ab1cf6d8a5bebd40fd14e1f114802f82be2d66a509c4dc693eba9df5863d14ae625 SHA512 072199bab29c5d69097a34a3a67e31a7f092ef4aa5ff14b9f8d543348b7853beb90df791f9f7c9425158f586b506b8b1a9ad19d7cd3d435114568c78ad6f3d5d
diff --git a/media-libs/harfbuzz/harfbuzz-4.3.0.ebuild b/media-libs/harfbuzz/harfbuzz-4.3.0.ebuild
index 312db83be556..b57c2f01c73e 100644
--- a/media-libs/harfbuzz/harfbuzz-4.3.0.ebuild
+++ b/media-libs/harfbuzz/harfbuzz-4.3.0.ebuild
@@ -15,7 +15,7 @@ if [[ ${PV} = 9999 ]] ; then
inherit git-r3
else
SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
- KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+ KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
fi
LICENSE="Old-MIT ISC icu"
diff --git a/media-libs/libinsane/Manifest b/media-libs/libinsane/Manifest
index 2964faefe12a..37d12803b3c3 100644
--- a/media-libs/libinsane/Manifest
+++ b/media-libs/libinsane/Manifest
@@ -1,4 +1,5 @@
AUX libinsane-1.0.1-meson_options.patch 2038 BLAKE2B b14ba254604f214c2cd1a15e705ea361b635bac7faae4995811477456ea8a8d8bf969fefb4330b3b6f05cd498cd2f01b8b065c2f8f3c88e21e62ea6ef204de15 SHA512 c0d5d3ce5d763d04327ea500229c9f26d989aa8072dec569adb3766c70e0cab9e00629e3099c5ab8bd4e3c84b86925ad108fe78eeae9066164de1302e2226572
+AUX libinsane-1.0.9-musl.patch 8877 BLAKE2B 00a344cc995342ee4d8025be142a277ecb031e39a7a9d415d98ac0e45e0cbf4ee234f55473bbd1bb1fbe24d24ab2245027085f63841438f04db3b71e83c18652 SHA512 97660a9f1a074bdefcddebed21603dad89c39a1138a48571ddf360953c12d9369b63efaaeb21c750de11b1260fb87a1cc2041604e01f57d14c142ed3abae6787
DIST libinsane-1.0.9.tar.gz 965461 BLAKE2B ee464d8b3328e8205dbc04d779c8c55133c3bab8b5483ab151870c22311f5d5c000a535baba95ea6362d130f57b6f185e9391017f808dec4bf23a93109546337 SHA512 a3d5ef16363454956c39767968515db76d1c279035e3a4c6a7db77a3e99e409b77cdacd27ccfba0fe80f5bf36d8c37d700aed551645b6038f3b770b2eaec10e2
-EBUILD libinsane-1.0.9.ebuild 960 BLAKE2B 2a1a06eb5298f55876733c54b44429ae5b725fde3d58107be717d6b66f6b7b536eb3dc7f3bbbeb9605e1143075dd5d3f787c698254298df1a2a98a9085e4af0a SHA512 a5b1eb340dbeaadd6874e3dd4feef06c115bd6c0bae62fa95dd0288ffd85b45c2745a8095283f150b32bf5f8bded24755075937ebcc1d6caf3dae0bf3219144c
+EBUILD libinsane-1.0.9.ebuild 992 BLAKE2B 0cbcca0c7c505512b16692fd3d0ded8b2d4d1d42850f26fb1c2eec5366ac6640e051d23fa7f5cbf6a138da68595382e2717e3b71c11b5dba9cce38adb785a54c SHA512 f5df12a6e92428fb62ec42f1ea9f4d680a83c5eed8c12e0958d487853174e05632993ecbd7cad20b25e66d8735beadd633f4ea4cb63e80709d2afa6e4baebba3
MISC metadata.xml 1016 BLAKE2B a332e663ae5b286f57990c4e48d0c3767a54b6e5f6059986367783b75618dabbd13c2118de34e8c750765f3bed207cc40a8eaeca02e2fb8b5d2557799457d5b5 SHA512 b8870c17184ef366edf70710deb5f40e16819301870478c8902471bf09820fb08c9cfd85ae14d844c2a0b8ad3ba1f99cf6c84a7d47c5029a40de5584ab73efa7
diff --git a/media-libs/libinsane/files/libinsane-1.0.9-musl.patch b/media-libs/libinsane/files/libinsane-1.0.9-musl.patch
new file mode 100644
index 000000000000..319c1473c29b
--- /dev/null
+++ b/media-libs/libinsane/files/libinsane-1.0.9-musl.patch
@@ -0,0 +1,238 @@
+From 43bde093ca66f430ae9c78204fcf02e6edf28833 Mon Sep 17 00:00:00 2001
+From: Bernard Cafarelli <bernard.cafarelli@gmail.com>
+Date: Fri, 15 Jul 2022 17:38:43 +0200
+Subject: [PATCH 1/2] dedicated_process: only enable backtrace when GLIBC is
+ used
+
+This is a GNU-specific extension so will not compile (and execinfo.h not
+found) with other libc like MUSL
+---
+ .../libinsane/src/workarounds/dedicated_process/worker.c | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/subprojects/libinsane/src/workarounds/dedicated_process/worker.c b/subprojects/libinsane/src/workarounds/dedicated_process/worker.c
+index 51a9209..826ae8a 100644
+--- a/subprojects/libinsane/src/workarounds/dedicated_process/worker.c
++++ b/subprojects/libinsane/src/workarounds/dedicated_process/worker.c
+@@ -1,5 +1,7 @@
+ #include <errno.h>
++#ifdef __GLIBC__
+ #include <execinfo.h>
++#endif
+ #include <signal.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -144,8 +146,10 @@ static void worker_log_callback(enum lis_log_level lvl, const char *msg)
+ #ifndef DISABLE_CRASH_HANDLER
+ static void crash_handler(int sig) {
+ pid_t mypid;
++#ifdef __GLIBC__
+ void *stack[16];
+ size_t size;
++#endif
+ unsigned int i;
+
+ mypid = getpid();
+@@ -165,6 +169,7 @@ static void crash_handler(int sig) {
+ );
+ }
+
++#ifdef __GLIBC__
+ fprintf(stderr, "======== START OF BACKTRACE ========\n");
+
+ // get void*'s for all entries on the stack
+@@ -175,6 +180,7 @@ static void crash_handler(int sig) {
+
+ fsync(STDERR_FILENO);
+ fprintf(stderr, "======== END OF BACKTRACE ========\n");
++#endif
+
+ if (kill(mypid, sig) < 0) {
+ fprintf(stderr, "KILL FAILED\n");
+--
+GitLab
+
+
+From 4a9eeb0df231668fd3760761f6fbe99c4e81d3ab Mon Sep 17 00:00:00 2001
+From: Bernard Cafarelli <bernard.cafarelli@gmail.com>
+Date: Fri, 15 Jul 2022 18:10:48 +0200
+Subject: [PATCH 2/2] dedicated_process: rename stderr communication pipes
+
+On some systems, stdin, stdout, and stderr are macros that you cannot
+assign to in the normal way [1]. This uses std_err instead
+
+[1] https://www.gnu.org/software/libc/manual/html_node/Standard-Streams.html
+---
+ .../workarounds/dedicated_process/master.c | 10 ++---
+ .../workarounds/dedicated_process/protocol.c | 42 +++++++++----------
+ .../workarounds/dedicated_process/protocol.h | 4 +-
+ .../workarounds/dedicated_process/worker.c | 4 +-
+ 4 files changed, 30 insertions(+), 30 deletions(-)
+
+diff --git a/subprojects/libinsane/src/workarounds/dedicated_process/master.c b/subprojects/libinsane/src/workarounds/dedicated_process/master.c
+index a48098a..be7f3f5 100644
+--- a/subprojects/libinsane/src/workarounds/dedicated_process/master.c
++++ b/subprojects/libinsane/src/workarounds/dedicated_process/master.c
+@@ -183,7 +183,7 @@ static void *log_thread(void *_pipes)
+ );
+ lis_log_debug(
+ "Stderr pipe: Read: %d - Write: %d",
+- pipes->sorted.stderr[0], pipes->sorted.stderr[1]
++ pipes->sorted.std_err[0], pipes->sorted.std_err[1]
+ );
+
+ lis_log_info("Log thread started");
+@@ -1158,8 +1158,8 @@ enum lis_error lis_api_workaround_dedicated_process(
+ private->pipes.sorted.msgs_w2m[0] = -1;
+ close(private->pipes.sorted.logs[0]);
+ private->pipes.sorted.logs[0] = -1;
+- close(private->pipes.sorted.stderr[0]);
+- private->pipes.sorted.stderr[0] = -1;
++ close(private->pipes.sorted.std_err[0]);
++ private->pipes.sorted.std_err[0] = -1;
+
+ lis_worker_main(to_wrap, &private->pipes);
+ abort(); // lis_worker_main() must never return
+@@ -1172,8 +1172,8 @@ enum lis_error lis_api_workaround_dedicated_process(
+ private->pipes.sorted.msgs_w2m[1] = -1;
+ close(private->pipes.sorted.logs[1]);
+ private->pipes.sorted.logs[1] = -1;
+- close(private->pipes.sorted.stderr[1]);
+- private->pipes.sorted.stderr[1] = -1;
++ close(private->pipes.sorted.std_err[1]);
++ private->pipes.sorted.std_err[1] = -1;
+
+ lis_log_info("Child process PID: %u", (int)private->worker);
+
+diff --git a/subprojects/libinsane/src/workarounds/dedicated_process/protocol.c b/subprojects/libinsane/src/workarounds/dedicated_process/protocol.c
+index 58c3b2d..813eaaa 100644
+--- a/subprojects/libinsane/src/workarounds/dedicated_process/protocol.c
++++ b/subprojects/libinsane/src/workarounds/dedicated_process/protocol.c
+@@ -214,38 +214,38 @@ static enum lis_error read_stderr(struct lis_pipes *pipes, enum lis_log_level *l
+ {
+ *lvl = LIS_LOG_LVL_INFO;
+
+- if (pipes->sorted.stderr[0] < 0) {
++ if (pipes->sorted.std_err[0] < 0) {
+ // pipe has been closed on purpose
+ return LIS_ERR_IO_ERROR;
+ }
+
+- if (pipes->stderr.total <= 0) {
+- pipes->stderr.current = 0;
+- memset(pipes->stderr.buf, 0, sizeof(pipes->stderr.buf));
+- pipes->stderr.total = read(pipes->sorted.stderr[0], pipes->stderr.buf, sizeof(pipes->stderr.buf) - 1);
+- if (pipes->stderr.total < 0) {
++ if (pipes->std_err.total <= 0) {
++ pipes->std_err.current = 0;
++ memset(pipes->std_err.buf, 0, sizeof(pipes->std_err.buf));
++ pipes->std_err.total = read(pipes->sorted.std_err[0], pipes->std_err.buf, sizeof(pipes->std_err.buf) - 1);
++ if (pipes->std_err.total < 0) {
+ lis_log_error("read() failed: %d, %s", errno, strerror(errno));
+ return LIS_ERR_IO_ERROR;
+ }
+- if (pipes->stderr.total == 0) {
++ if (pipes->std_err.total == 0) {
+ *msg = NULL;
+ return LIS_OK;
+ }
+ }
+
+- *msg = pipes->stderr.buf + pipes->stderr.current;
++ *msg = pipes->std_err.buf + pipes->std_err.current;
+
+- for ( ; pipes->stderr.current < pipes->stderr.total ; pipes->stderr.current++) {
+- if (pipes->stderr.buf[pipes->stderr.current] == '\n') {
+- pipes->stderr.buf[pipes->stderr.current] = '\0';
+- pipes->stderr.current += 1;
++ for ( ; pipes->std_err.current < pipes->std_err.total ; pipes->std_err.current++) {
++ if (pipes->std_err.buf[pipes->std_err.current] == '\n') {
++ pipes->std_err.buf[pipes->std_err.current] = '\0';
++ pipes->std_err.current += 1;
+ return LIS_OK;
+- } else if (pipes->stderr.buf[pipes->stderr.current] == '\0') {
++ } else if (pipes->std_err.buf[pipes->std_err.current] == '\0') {
+ break;
+ }
+ }
+- pipes->stderr.current = 0;
+- pipes->stderr.total = 0;
++ pipes->std_err.current = 0;
++ pipes->std_err.total = 0;
+
+ if ((*msg)[0] == '\0') {
+ *msg = NULL;
+@@ -265,7 +265,7 @@ enum lis_error lis_protocol_log_read(struct lis_pipes *pipes, enum lis_log_level
+ .revents = 0,
+ },
+ {
+- .fd = pipes->sorted.stderr[0],
++ .fd = pipes->sorted.std_err[0],
+ .events = POLLIN,
+ .revents = 0,
+ },
+@@ -275,7 +275,7 @@ enum lis_error lis_protocol_log_read(struct lis_pipes *pipes, enum lis_log_level
+
+ *msg = NULL;
+
+- if (pipes->stderr.total > 0) {
++ if (pipes->std_err.total > 0) {
+ return read_stderr(pipes, lvl, msg);
+ }
+
+@@ -320,11 +320,11 @@ enum lis_error lis_protocol_log_read(struct lis_pipes *pipes, enum lis_log_level
+ close(pipes->sorted.logs[0]);
+ pipes->sorted.logs[0] = -1;
+ }
+- if (fds[i].fd == pipes->sorted.stderr[0]) {
+- close(pipes->sorted.stderr[0]);
+- pipes->sorted.stderr[0] = -1;
++ if (fds[i].fd == pipes->sorted.std_err[0]) {
++ close(pipes->sorted.std_err[0]);
++ pipes->sorted.std_err[0] = -1;
+ }
+- if (pipes->sorted.logs[0] < 0 && pipes->sorted.stderr[0] < 0) {
++ if (pipes->sorted.logs[0] < 0 && pipes->sorted.std_err[0] < 0) {
+ return LIS_ERR_IO_ERROR;
+ }
+ return LIS_OK;
+diff --git a/subprojects/libinsane/src/workarounds/dedicated_process/protocol.h b/subprojects/libinsane/src/workarounds/dedicated_process/protocol.h
+index 82b8d3d..40bc47a 100644
+--- a/subprojects/libinsane/src/workarounds/dedicated_process/protocol.h
++++ b/subprojects/libinsane/src/workarounds/dedicated_process/protocol.h
+@@ -61,7 +61,7 @@ struct lis_pipes
+ int msgs_m2w[2]; /* messages ; query (master -> worker) */
+ int msgs_w2m[2]; /* messages ; reply (worker -> master) */
+ int logs[2]; /* worker to master only ; prefixed by log level + msg len */
+- int stderr[2]; /* worker to master only */
++ int std_err[2]; /* worker to master only */
+ } sorted;
+ int all[4][2];
+ };
+@@ -72,7 +72,7 @@ struct lis_pipes
+ char buf[1024]; // to avoid a malloc() on each stderr line
+ ssize_t current;
+ ssize_t total;
+- } stderr;
++ } std_err;
+ };
+
+
+diff --git a/subprojects/libinsane/src/workarounds/dedicated_process/worker.c b/subprojects/libinsane/src/workarounds/dedicated_process/worker.c
+index 826ae8a..b85df09 100644
+--- a/subprojects/libinsane/src/workarounds/dedicated_process/worker.c
++++ b/subprojects/libinsane/src/workarounds/dedicated_process/worker.c
+@@ -767,8 +767,8 @@ void lis_worker_main(struct lis_api *to_wrap, struct lis_pipes *pipes)
+ #endif
+
+ #ifndef DISABLE_REDIRECT_STDERR
+- if (dup2(pipes->sorted.stderr[1], STDOUT_FILENO) < 0
+- || dup2(pipes->sorted.stderr[1], STDERR_FILENO) < 0) {
++ if (dup2(pipes->sorted.std_err[1], STDOUT_FILENO) < 0
++ || dup2(pipes->sorted.std_err[1], STDERR_FILENO) < 0) {
+ lis_log_warning(
+ "Failed to redirect stderr and stdout: %d, %s", errno, strerror(errno)
+ );
+--
+GitLab
+
diff --git a/media-libs/libinsane/libinsane-1.0.9.ebuild b/media-libs/libinsane/libinsane-1.0.9.ebuild
index 56d97e6d53c0..5210a84e8534 100644
--- a/media-libs/libinsane/libinsane-1.0.9.ebuild
+++ b/media-libs/libinsane/libinsane-1.0.9.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -33,7 +33,9 @@ BDEPEND="dev-util/glib-utils
# https://wiki.gentoo.org/wiki/Debugging
RESTRICT="test"
-PATCHES=( "${FILESDIR}"/${PN}-1.0.1-meson_options.patch )
+PATCHES=( "${FILESDIR}"/${PN}-1.0.1-meson_options.patch
+ "${FILESDIR}"/${P}-musl.patch
+ )
src_prepare() {
vala_src_prepare