Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/netcdf-cxx/, sci-libs/netcdf-cxx/files/
Date: Wed, 08 Sep 2021 05:06:44
Message-Id: 1631077592.df3e6bd9f56dd0d323e19abe242182f37fe802a2.sam@gentoo
1 commit: df3e6bd9f56dd0d323e19abe242182f37fe802a2
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 8 05:06:15 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 8 05:06:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df3e6bd9
7
8 sci-libs/netcdf-cxx: fix build with slibtool
9
10 Closes: https://bugs.gentoo.org/778200
11 Thanks-to: orbea <orbea <AT> riseup.net>
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 .../files/netcdf-cxx-4.3.1-slibtool.patch | 42 ++++++++++++++++++++++
15 sci-libs/netcdf-cxx/netcdf-cxx-4.3.1.ebuild | 4 +++
16 2 files changed, 46 insertions(+)
17
18 diff --git a/sci-libs/netcdf-cxx/files/netcdf-cxx-4.3.1-slibtool.patch b/sci-libs/netcdf-cxx/files/netcdf-cxx-4.3.1-slibtool.patch
19 new file mode 100644
20 index 00000000000..72db4dbd2c7
21 --- /dev/null
22 +++ b/sci-libs/netcdf-cxx/files/netcdf-cxx-4.3.1-slibtool.patch
23 @@ -0,0 +1,42 @@
24 +https://github.com/Unidata/netcdf-cxx4/pull/103
25 +https://bugs.gentoo.org/778200
26 +
27 +From: orbea <orbea@××××××.net>
28 +Date: Thu, 25 Mar 2021 12:24:57 -0700
29 +Subject: [PATCH 1/2] cxx4: Move -lnetcdf to LIBADD so its used.
30 +
31 +--- a/cxx4/Makefile.am
32 ++++ b/cxx4/Makefile.am
33 +@@ -3,15 +3,13 @@
34 +
35 + # This file builds the new C++-4 interface.
36 +
37 +-# Point pre-preprocessor to netcdf-4 directory (libsrc4).
38 +-LDADD = $(top_builddir)/cxx4/libnetcdf_c++4.la -lnetcdf
39 +-
40 + # This is our output library.
41 + lib_LTLIBRARIES = libnetcdf_c++4.la
42 +
43 + # For rules updating the version info, see
44 + # http://www.gnu.org/s/libtool/manual/html_node/Updating-version-info.html
45 + libnetcdf_c__4_la_LDFLAGS = -version-info 2:0:1 -no-undefined
46 ++libnetcdf_c__4_la_LIBADD = -lnetcdf
47 +
48 + # These headers will be installed in the users header directory.
49 + include_HEADERS = netcdf ncAtt.h ncCheck.h ncDim.h ncException.h \
50 +
51 +From a6dd5eb862d9a845b8458591b957b07c527e0d20 Mon Sep 17 00:00:00 2001
52 +From: orbea <orbea@××××××.net>
53 +Date: Thu, 25 Mar 2021 12:25:33 -0700
54 +Subject: [PATCH 2/2] plugins: Add a missing -lhdf5 linker flag.
55 +
56 +--- a/plugins/Makefile.am
57 ++++ b/plugins/Makefile.am
58 +@@ -20,6 +20,7 @@ lib_LTLIBRARIES = libh5bzip2.la
59 +
60 + libh5bzip2_la_SOURCES = ${HDF5PLUGINSRC}
61 + libh5bzip2_la_LDFLAGS = -module -avoid-version -shared -export-dynamic -no-undefined
62 ++libh5bzip2_la_LIBADD = -lhdf5
63 +
64 + libmisc_la_SOURCES = H5Zmisc.c H5Zutil.c h5misc.h
65 + libmisc_la_LDFLAGS = -module -avoid-version -shared -export-dynamic -no-undefined -rpath ${abs_builddir}
66
67 diff --git a/sci-libs/netcdf-cxx/netcdf-cxx-4.3.1.ebuild b/sci-libs/netcdf-cxx/netcdf-cxx-4.3.1.ebuild
68 index 31c7a79c7e9..11abdd911ef 100644
69 --- a/sci-libs/netcdf-cxx/netcdf-cxx-4.3.1.ebuild
70 +++ b/sci-libs/netcdf-cxx/netcdf-cxx-4.3.1.ebuild
71 @@ -20,6 +20,10 @@ DEPEND="${RDEPEND}"
72
73 S="${WORKDIR}/${MYP}"
74
75 +PATCHES=(
76 + "${FILESDIR}"/${P}-slibtool.patch
77 +)
78 +
79 src_configure() {
80 econf --disable-static
81 }