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 B336B15864F for ; Sat, 25 Mar 2023 04:08:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DA996E0895; Sat, 25 Mar 2023 04:08:46 +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 79389E0898 for ; Sat, 25 Mar 2023 04:08:46 +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 7F67B335D5D for ; Sat, 25 Mar 2023 04:08:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F1153939 for ; Sat, 25 Mar 2023 04:08:43 +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: <1679717151.e46f341c307105de27df5f04c715433d25f1d3bd.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-astronomy/siril/, sci-astronomy/siril/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-astronomy/siril/files/siril-1.2-openmp.patch sci-astronomy/siril/siril-1.2.0_beta1.ebuild X-VCS-Directories: sci-astronomy/siril/ sci-astronomy/siril/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: e46f341c307105de27df5f04c715433d25f1d3bd X-VCS-Branch: master Date: Sat, 25 Mar 2023 04:08:43 +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: a81c469c-b511-421f-a89b-2f89126ca684 X-Archives-Hash: ecc818b1523272ad9ee7bdb79cfdb5de commit: e46f341c307105de27df5f04c715433d25f1d3bd Author: Mario Haustein hrz tu-chemnitz de> AuthorDate: Fri Mar 24 17:39:33 2023 +0000 Commit: Sam James gentoo org> CommitDate: Sat Mar 25 04:05:51 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e46f341c sci-astronomy/siril: fix build without OpenMP Closes: https://bugs.gentoo.org/902833 Signed-off-by: Mario Haustein hrz.tu-chemnitz.de> Closes: https://github.com/gentoo/gentoo/pull/30333 Signed-off-by: Sam James gentoo.org> sci-astronomy/siril/files/siril-1.2-openmp.patch | 19 +++++++++++++++++++ sci-astronomy/siril/siril-1.2.0_beta1.ebuild | 1 + 2 files changed, 20 insertions(+) diff --git a/sci-astronomy/siril/files/siril-1.2-openmp.patch b/sci-astronomy/siril/files/siril-1.2-openmp.patch new file mode 100644 index 000000000000..eba90448f422 --- /dev/null +++ b/sci-astronomy/siril/files/siril-1.2-openmp.patch @@ -0,0 +1,19 @@ +From: Mario Haustein +Date: Fri, 24 Mar 2023 18:24:26 +0100 +Subject: [PATCH] Add ifdef around openmp function +Bug: https://bugs.gentoo.org/902833 +Upstream: https://gitlab.com/free-astro/siril/-/merge_requests/482 + +--- a/src/algos/quantize.c ++++ b/src/algos/quantize.c +@@ -1396,8 +1396,10 @@ row of the image. + #pragma omp parallel num_threads(threads) if (threads>1) + #endif + { ++#ifdef _OPENMP + if (threads > 1 && omp_get_num_threads() != threads) + siril_debug_print("actual number of threads: %d of %d requested (level %d)\n", omp_get_num_threads(), threads, omp_get_level()); ++#endif + float *rowpix, v1; + double mean, stdev; + float *differences; diff --git a/sci-astronomy/siril/siril-1.2.0_beta1.ebuild b/sci-astronomy/siril/siril-1.2.0_beta1.ebuild index 45dd80e9e5b2..e02693c80ab7 100644 --- a/sci-astronomy/siril/siril-1.2.0_beta1.ebuild +++ b/sci-astronomy/siril/siril-1.2.0_beta1.ebuild @@ -54,6 +54,7 @@ PATCHES=( "${FILESDIR}/${PN}-$(ver_cut 1-2)-htmesh.patch" "${FILESDIR}/${PN}-$(ver_cut 1-2)-execinfo.patch" "${FILESDIR}/${PN}-$(ver_cut 1-2)-prototypes.patch" + "${FILESDIR}/${PN}-$(ver_cut 1-2)-openmp.patch" ) DOCS=( README.md NEWS ChangeLog AUTHORS )