From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8A7BC15864F for ; Sat, 25 Mar 2023 04:08:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AABEFE08AD; Sat, 25 Mar 2023 04:08:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 73B41E08AD for ; Sat, 25 Mar 2023 04:08:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5F0B5335C3D for ; Sat, 25 Mar 2023 04:08:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1147393A for ; Sat, 25 Mar 2023 04:08:44 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1679717170.5721e7de2e4933b397da2c74b20f599575f6c763.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/siril/files/, sci-astronomy/siril/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-astronomy/siril/files/siril-1.0-execinfo-r2.patch sci-astronomy/siril/files/siril-1.0-prototypes.patch sci-astronomy/siril/siril-1.0.6-r2.ebuild X-VCS-Directories: sci-astronomy/siril/files/ sci-astronomy/siril/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 5721e7de2e4933b397da2c74b20f599575f6c763 X-VCS-Branch: master Date: Sat, 25 Mar 2023 04:08:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a3fdf6c2-f868-4203-a622-2cc4d0070dc6 X-Archives-Hash: bf3b0051f20bb6ff858dd8fde5ea7976 commit: 5721e7de2e4933b397da2c74b20f599575f6c763 Author: Mario Haustein hrz tu-chemnitz de> AuthorDate: Mon Feb 27 17:20:56 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat Mar 25 04:06:10 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5721e7de sci-astronomy/siril: fix build with MUSL Closes: https://bugs.gentoo.org/898108 Signed-off-by: Mario Haustein hrz.tu-chemnitz.de> Closes: https://github.com/gentoo/gentoo/pull/29837 Signed-off-by: Sam James gentoo.org> .../siril/files/siril-1.0-execinfo-r2.patch | 46 ++++++++++++++++++++++ .../siril/files/siril-1.0-prototypes.patch | 41 +++++++++++++++++++ sci-astronomy/siril/siril-1.0.6-r2.ebuild | 1 + 3 files changed, 88 insertions(+) diff --git a/sci-astronomy/siril/files/siril-1.0-execinfo-r2.patch b/sci-astronomy/siril/files/siril-1.0-execinfo-r2.patch index ffef786d0d8e..55ce90558b64 100644 --- a/sci-astronomy/siril/files/siril-1.0-execinfo-r2.patch +++ b/sci-astronomy/siril/files/siril-1.0-execinfo-r2.patch @@ -6,6 +6,8 @@ Date: Thu Aug 4 00:27:08 2022 +0200 Bug: https://bugs.gentoo.org/873016 Upstream: https://gitlab.com/free-astro/siril/-/merge_requests/284 +Bug: https://bugs.gentoo.org/898108 +Upstream: https://gitlab.com/free-astro/siril/-/merge_requests/442 diff --git a/src/core/signals.c b/src/core/signals.c index 74100b3a..0eefd460 100644 @@ -43,3 +45,47 @@ index 0eefd460..bbce5fa7 100644 #include #ifdef _WIN32 #include +From 6f959a02d27fb507cda1898a3aa785766e77d404 Mon Sep 17 00:00:00 2001 +From: Mario Haustein +Date: Mon, 27 Feb 2023 17:34:43 +0100 +Subject: [PATCH] fix HAVE_EXECINFO_H logic + +--- + src/core/signals.c | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/src/core/signals.c b/src/core/signals.c +index 42b369d6..d4745909 100644 +--- a/src/core/signals.c ++++ b/src/core/signals.c +@@ -55,13 +55,7 @@ static void signal_handled(int s) { + g_printf(ANSI_COLOR_RED"%s"ANSI_COLOR_RESET"\n", visit); + } + +-#if (!defined _WIN32 && defined HAVE_EXECINFO_H) +- void *stack[STACK_DEPTH]; +- +- size_t size = backtrace(stack, sizeof(stack) / sizeof(void*)); +- +- backtrace_symbols_fd(stack, size, fileno((FILE*) stdout)); +-#else ++#ifdef _WIN32 + unsigned int i; + void *stack[STACK_DEPTH]; + unsigned short size; +@@ -84,6 +78,12 @@ static void signal_handled(int s) { + } + + free(symbol); ++#elif HAVE_EXECINFO_H ++ void *stack[STACK_DEPTH]; ++ ++ size_t size = backtrace(stack, sizeof(stack) / sizeof(void*)); ++ ++ backtrace_symbols_fd(stack, size, fileno((FILE*) stdout)); + #endif + } + undo_flush(); +-- +2.39.2 + diff --git a/sci-astronomy/siril/files/siril-1.0-prototypes.patch b/sci-astronomy/siril/files/siril-1.0-prototypes.patch new file mode 100644 index 000000000000..8b72fef41b49 --- /dev/null +++ b/sci-astronomy/siril/files/siril-1.0-prototypes.patch @@ -0,0 +1,41 @@ +From 6c06d62579234e1d0030bad985a9cfcf7249b5d7 Mon Sep 17 00:00:00 2001 +From: Mario Haustein +Date: Mon, 27 Feb 2023 17:49:41 +0100 +Subject: [PATCH 1/2] fix prototypes for functions with parameters +Bug: https://bugs.gentoo.org/898108 +Upstream: https://gitlab.com/free-astro/siril/-/merge_requests/443 + +--- + src/core/processing.h | 2 +- + src/gui/save_dialog.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/core/processing.h b/src/core/processing.h +index 1eba970b..89f24bd3 100644 +--- a/src/core/processing.h ++++ b/src/core/processing.h +@@ -162,7 +162,7 @@ void wait_for_script_thread(); + gboolean end_generic(gpointer arg); + guint siril_add_idle(GSourceFunc idle_function, gpointer data); + +-struct generic_seq_args *create_default_seqargs(); ++struct generic_seq_args *create_default_seqargs(sequence *seq); + + int check_threading(threading_type *threads); + int limit_threading(threading_type *threads, int min_iterations_per_thread, size_t total_iterations); +diff --git a/src/gui/save_dialog.h b/src/gui/save_dialog.h +index c724abb1..586a2ca3 100644 +--- a/src/gui/save_dialog.h ++++ b/src/gui/save_dialog.h +@@ -20,7 +20,7 @@ enum { + }; + + void on_header_save_as_button_clicked(); +-void on_header_snapshot_button_clicked(); ++void on_header_snapshot_button_clicked(gboolean clipboard); + void on_header_save_button_clicked(); + + #endif /* SRC_GUI_SAVE_DIALOG_H_ */ +-- +2.39.2 + diff --git a/sci-astronomy/siril/siril-1.0.6-r2.ebuild b/sci-astronomy/siril/siril-1.0.6-r2.ebuild index 5de589b0f985..81e303d7c5dd 100644 --- a/sci-astronomy/siril/siril-1.0.6-r2.ebuild +++ b/sci-astronomy/siril/siril-1.0.6-r2.ebuild @@ -51,6 +51,7 @@ PATCHES=( "${FILESDIR}/${PN}-docfiles.patch" "${FILESDIR}/${PN}-$(ver_cut 1-2)-dependencies.patch" "${FILESDIR}/${PN}-$(ver_cut 1-2)-execinfo-r2.patch" + "${FILESDIR}/${PN}-$(ver_cut 1-2)-prototypes.patch" ) DOCS=( README.md NEWS ChangeLog AUTHORS )