public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/netcdf/
Date: Wed,  8 Jun 2022 05:25:14 +0000 (UTC)	[thread overview]
Message-ID: <1654665578.d80313248373f4ba7b2ff7ddb940cac16476129e.sam@gentoo> (raw)

commit:     d80313248373f4ba7b2ff7ddb940cac16476129e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jun  8 05:18:39 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Jun  8 05:19:38 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8031324

sci-libs/netcdf: avoid broken libdl hardcoding

Closes: https://bugs.gentoo.org/827188
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/netcdf/netcdf-4.8.1-r2.ebuild | 83 ++++++++++++++++++++++++++++++++++
 1 file changed, 83 insertions(+)

diff --git a/sci-libs/netcdf/netcdf-4.8.1-r2.ebuild b/sci-libs/netcdf/netcdf-4.8.1-r2.ebuild
new file mode 100644
index 000000000000..02d4832a3f3b
--- /dev/null
+++ b/sci-libs/netcdf/netcdf-4.8.1-r2.ebuild
@@ -0,0 +1,83 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake flag-o-matic
+
+DESCRIPTION="Scientific library and interface for array oriented data access"
+HOMEPAGE="https://www.unidata.ucar.edu/software/netcdf/"
+SRC_URI="https://github.com/Unidata/netcdf-c/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-c-${PV}"
+
+LICENSE="UCAR-Unidata"
+# SONAME of libnetcdf.so
+SLOT="0/19"
+KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 -riscv ~x86 ~amd64-linux ~x86-linux"
+IUSE="+dap doc examples hdf +hdf5 mpi szip test tools"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-libs/libxml2
+	dap? ( net-misc/curl:0= )
+	hdf? (
+		media-libs/libjpeg-turbo:=
+		sci-libs/hdf:0=
+		sci-libs/hdf5:0=
+	)
+	hdf5? ( sci-libs/hdf5:0=[hl(+),mpi=,szip=,zlib] )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig
+	doc? ( app-doc/doxygen[dot] )"
+
+REQUIRED_USE="
+	test? ( tools )
+	szip? ( hdf5 )
+	mpi? ( hdf5 )"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-4.8.1-big-endian-build.patch"
+	"${FILESDIR}/${PN}-4.7.4-big-endian-test.patch"
+)
+
+src_prepare() {
+	# skip test that requires network
+	sed -i -e '/run_get_hdf4_files/d' hdf4_test/CMakeLists.txt || die
+
+	cmake_src_prepare
+}
+
+src_configure() {
+	use mpi && export CC=mpicc
+
+	# Temporary workaround for test breakage
+	# https://github.com/Unidata/netcdf-c/issues/1983
+	# bug #827042
+	append-flags -fno-strict-aliasing
+
+	local mycmakeargs=(
+		-DENABLE_DAP_REMOTE_TESTS=OFF
+		# Enable for >4.8.1 (not yet in a release)
+		#-DENABLE_LIBXML2=ON
+		-DBUILD_UTILITIES=$(usex tools)
+		-DENABLE_DAP=$(usex dap)
+		-DENABLE_DOXYGEN=$(usex doc)
+		-DENABLE_EXAMPLES=$(usex examples)
+		-DENABLE_HDF4=$(usex hdf)
+		-DENABLE_NETCDF_4=$(usex hdf5)
+		-DENABLE_TESTS=$(usex test)
+	)
+
+	cmake_src_configure
+}
+
+src_test() {
+	# fails parallel tests: bug #621486
+	cmake_src_test -j1
+}
+
+src_install() {
+	cmake_src_install
+
+	# bug #827188
+	sed -i -e "s:${EPREFIX}/usr/$(get_libdir)/libdl.so;:dl;:" "${ED}/usr/$(get_libdir)/cmake/netCDF/netCDFTargets.cmake" || die
+}


             reply	other threads:[~2022-06-08  5:25 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-08  5:25 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-06-27 14:37 [gentoo-commits] repo/gentoo:master commit in: sci-libs/netcdf/ Michał Górny
2025-06-26 23:56 Sam James
2025-06-26 23:19 Sam James
2025-02-18 22:21 Jakov Smolić
2024-10-19 17:33 Michał Górny
2024-07-27  7:07 Arthur Zamarin
2024-05-30  4:36 Ionen Wolkens
2024-05-29 23:46 Sam James
2024-04-02 11:29 Sam James
2023-03-31 11:42 Arthur Zamarin
2023-03-31 11:42 Arthur Zamarin
2023-03-16 17:41 Arthur Zamarin
2023-03-15 10:50 Sam James
2023-03-15  5:53 Sam James
2023-03-15  5:45 Sam James
2023-03-05  4:13 Sam James
2022-06-13  7:12 Agostino Sarubbo
2022-06-13  7:07 Agostino Sarubbo
2022-06-11  5:02 Sam James
2022-05-11  8:02 Agostino Sarubbo
2022-05-10 13:47 Agostino Sarubbo
2022-01-11 21:37 Jakov Smolić
2022-01-11 21:37 Jakov Smolić
2021-12-28 22:00 Sam James
2021-12-28 22:00 Sam James
2021-08-14 23:15 Marek Szuba
2021-02-25 19:07 Sam James
2021-02-25  8:56 Sam James
2021-02-25  8:56 Sam James
2021-02-25  8:50 Sam James
2021-02-22 18:57 Sam James
2021-02-19 20:12 Thomas Deutschmann
2021-01-17 13:37 Pacho Ramos
2021-01-17 13:37 Pacho Ramos
2020-12-28 16:11 David Seifert
2019-09-14  6:52 Matt Turner
2018-10-13 15:49 Sergei Trofimovich
2018-10-05 17:11 Mikle Kolyada
2018-10-05 12:25 Thomas Deutschmann
2018-09-30 10:10 Pacho Ramos
2018-05-16 22:57 Aaron Bauman
2018-04-24 16:19 Matthias Maier
2018-04-24 15:58 Matthias Maier
2017-08-27 14:03 Sergei Trofimovich
2017-07-15 10:25 Sergei Trofimovich
2017-07-15 10:10 Sergei Trofimovich
2016-12-28 11:25 Pacho Ramos
2016-12-28 11:25 Pacho Ramos
2016-12-28 11:25 Pacho Ramos
2016-01-25  9:52 David Seifert
2016-01-23 20:05 David Seifert
2016-01-20  8:20 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1654665578.d80313248373f4ba7b2ff7ddb940cac16476129e.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox