Skip to content

Commit 0471cd0

Browse files
committed
Build on Ubuntu
Skip-checkpatch: true Skip-build: true Quick-build: true Skip-unit-tests: true Skip-test: true Signed-off-by: Brian J. Murrell <[email protected]>
1 parent f66c97d commit 0471cd0

17 files changed

+344
-351
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@
4040
// I.e. for testing library changes
4141
//@Library(value="pipeline-lib@your_branch") _
4242

43-
packageBuildingPipelineDAOSTest(['distros' : ['el8', 'leap15'],
43+
packageBuildingPipelineDAOSTest(['distros' : ['el8', 'leap15', 'ubuntu20.04'],
4444
'test-tag': 'hdf5testsuite'])

debian/changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
hdf5 (1.13.0~rc5) focal; urgency=medium
2+
3+
* New upstream release
4+
* Build for the DAOS project
5+
6+
-- Brian J. Murrell <[email protected]> Thu, 12 Jan 2023 13:38:46 -0500
7+
18
hdf5 (1.10.4+repack-11ubuntu1) focal; urgency=medium
29

310
* Update symbols files for riscv64.

debian/clean

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
src/H5Edefin.h
2+
src/H5Einit.h
3+
src/H5Epubgen.h
4+
src/H5Eterm.h
5+
src/H5overflow.h
6+
src/H5version.h

debian/patches/fix-junit-script.patch

Lines changed: 72 additions & 72 deletions
Large diffs are not rendered by default.

debian/patches/flavor-configure-option.patch

Lines changed: 66 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Index: hdf5/configure.ac
1010
===================================================================
1111
--- hdf5.orig/configure.ac
1212
+++ hdf5/configure.ac
13-
@@ -3424,6 +3424,26 @@ fi
13+
@@ -3988,6 +3988,26 @@ fi
1414
##
1515
AM_CONDITIONAL([HAVE_SHARED_CONDITIONAL], [test "X$enable_shared" = "Xyes"])
1616

@@ -36,7 +36,7 @@ Index: hdf5/configure.ac
3636
+
3737
AC_CONFIG_FILES([src/libhdf5.settings
3838
Makefile
39-
src/Makefile
39+
doxygen/Doxyfile
4040
Index: hdf5/src/libhdf5.settings.in
4141
===================================================================
4242
--- hdf5.orig/src/libhdf5.settings.in
@@ -53,7 +53,7 @@ Index: hdf5/src/Makefile.am
5353
===================================================================
5454
--- hdf5.orig/src/Makefile.am
5555
+++ hdf5/src/Makefile.am
56-
@@ -27,10 +27,10 @@ include $(top_srcdir)/config/lt_vers.am
56+
@@ -29,10 +29,10 @@ include $(top_srcdir)/config/lt_vers.am
5757
noinst_PROGRAMS = H5detect H5make_libsettings
5858

5959
# Our main target, the HDF5 library
@@ -65,22 +65,22 @@ Index: hdf5/src/Makefile.am
6565
+libhdf5@FLAVOR@_la_LDFLAGS= -version-info $(LT_VERS_INTERFACE):$(LT_VERS_REVISION):$(LT_VERS_AGE) $(AM_LDFLAGS)
6666

6767
# H5Tinit.c and H5lib_settings.c are generated files and should be cleaned.
68-
MOSTLYCLEANFILES=H5Tinit.c H5lib_settings.c
69-
@@ -38,7 +38,7 @@ MOSTLYCLEANFILES=H5Tinit.c H5lib_setting
68+
MOSTLYCLEANFILES=H5Tinit.c H5lib_settings.c $(DX_CLEANFILES)
69+
@@ -40,7 +40,7 @@ MOSTLYCLEANFILES=H5Tinit.c H5lib_setting
7070
DISTCLEANFILES=H5pubconf.h
7171

7272
# library sources
73-
-libhdf5_la_SOURCES= H5.c H5checksum.c H5dbg.c H5system.c H5timer.c H5trace.c \
74-
+libhdf5@FLAVOR@_la_SOURCES= H5.c H5checksum.c H5dbg.c H5system.c H5timer.c H5trace.c \
73+
-libhdf5_la_SOURCES= H5.c H5checksum.c H5dbg.c H5lib_settings.c H5system.c \
74+
+libhdf5@FLAVOR@_la_SOURCES= H5.c H5checksum.c H5dbg.c H5lib_settings.c H5system.c \
75+
H5timer.c H5trace.c \
7576
H5A.c H5Abtree2.c H5Adense.c H5Adeprec.c H5Aint.c H5Atest.c \
76-
H5AC.c H5ACdbg.c H5AClog.c H5ACproxy_entry.c \
77-
H5B.c H5Bcache.c H5Bdbg.c \
78-
@@ -119,12 +119,12 @@ libhdf5_la_SOURCES= H5.c H5checksum.c H5
77+
H5AC.c H5ACdbg.c H5ACproxy_entry.c \
78+
@@ -121,27 +121,27 @@ libhdf5_la_SOURCES= H5.c H5checksum.c H5
7979

8080
# Only compile parallel sources if necessary
8181
if BUILD_PARALLEL_CONDITIONAL
82-
- libhdf5_la_SOURCES += H5ACmpio.c H5Cmpio.c H5Dmpio.c H5Fmpi.c H5FDmpi.c H5FDmpio.c H5Smpio.c
83-
+ libhdf5@FLAVOR@_la_SOURCES += H5ACmpio.c H5Cmpio.c H5Dmpio.c H5Fmpi.c H5FDmpi.c H5FDmpio.c H5Smpio.c
82+
- libhdf5_la_SOURCES += H5mpi.c H5ACmpio.c H5Cmpio.c H5Dmpio.c H5Fmpi.c H5FDmpi.c H5FDmpio.c H5Smpio.c
83+
+ libhdf5@FLAVOR@_la_SOURCES += H5mpi.c H5ACmpio.c H5Cmpio.c H5Dmpio.c H5Fmpi.c H5FDmpi.c H5FDmpio.c H5Smpio.c
8484
endif
8585

8686
# Only compile the direct VFD if necessary
@@ -89,8 +89,26 @@ Index: hdf5/src/Makefile.am
8989
+ libhdf5@FLAVOR@_la_SOURCES += H5FDdirect.c
9090
endif
9191

92+
# Only compile the read-only HDFS VFD if necessary
93+
if HDFS_VFD_CONDITIONAL
94+
- libhdf5_la_SOURCES += H5FDhdfs.c
95+
+ libhdf5@FLAVOR@_la_SOURCES += H5FDhdfs.c
96+
endif
97+
98+
# Only compile the mirror VFD if necessary
99+
if MIRROR_VFD_CONDITIONAL
100+
- libhdf5_la_SOURCES += H5FDmirror.c
101+
+ libhdf5@FLAVOR@_la_SOURCES += H5FDmirror.c
102+
endif
103+
104+
# Only compile the read-only S3 VFD if necessary
105+
if ROS3_VFD_CONDITIONAL
106+
- libhdf5_la_SOURCES += H5FDros3.c H5FDs3comms.c
107+
+ libhdf5@FLAVOR@_la_SOURCES += H5FDros3.c H5FDs3comms.c
108+
endif
109+
92110
# Public headers
93-
@@ -143,7 +143,11 @@ include_HEADERS = hdf5.h H5api_adpt.h H5
111+
@@ -162,7 +162,11 @@ include_HEADERS = hdf5.h H5api_adpt.h H5
94112

95113
# install libhdf5.settings in lib directory
96114
settingsdir=$(libdir)
@@ -103,24 +121,16 @@ Index: hdf5/src/Makefile.am
103121

104122
# Number format detection
105123
# The LD_LIBRARY_PATH setting is a kludge.
106-
@@ -185,6 +189,7 @@ $(top_srcdir)/src/H5version.h: $(top_src
107-
$(top_srcdir)/src/H5overflow.h: $(top_srcdir)/src/H5overflow.txt
108-
perl $(top_srcdir)/bin/make_overflow $?
109-
110-
+
111-
# Add TRACE macros to library source files. This is done via the trace script
112-
# in the hdf5/bin directory. If the file contains HDF5 API macros, a "clean"
113-
# version of the source file is saved with a tilde (~) after its name and
114-
@@ -192,7 +197,7 @@ $(top_srcdir)/src/H5overflow.h: $(top_sr
124+
@@ -211,7 +211,7 @@ $(top_srcdir)/src/H5overflow.h: $(top_sr
125+
# tracing information is inserted. trace should have no effect on files
115126
# without HDF5 macros.
116-
.PHONY: trace
117127

118128
-trace: $(libhdf5_la_SOURCES)
119129
+trace: $(libhdf5@FLAVOR@_la_SOURCES)
120130
@for dep in $? dummy; do \
121131
if test $$dep != "dummy" -a -n "$(PERL)"; then \
122132
case "$$dep" in \
123-
@@ -203,4 +208,24 @@ trace: $(libhdf5_la_SOURCES)
133+
@@ -222,5 +222,25 @@ trace: $(libhdf5_la_SOURCES)
124134
fi; \
125135
done
126136

@@ -145,6 +155,7 @@ Index: hdf5/src/Makefile.am
145155
+endif
146156
+
147157
include $(top_srcdir)/config/conclude.am
158+
148159
Index: hdf5/test/testlibinfo.sh.in
149160
===================================================================
150161
--- hdf5.orig/test/testlibinfo.sh.in
@@ -157,7 +168,7 @@ Index: hdf5/test/testlibinfo.sh.in
157168
+ shlib=$(grep dlname ../src/libhdf5@[email protected] | sed -e "s/dlname='//" -e "s/'//")
158169
else
159170
h5libdir=../src
160-
fi
171+
fi
161172
@@ -96,9 +96,9 @@ fi
162173

163174
# Though rare, libhdf5.a may not have been built.
@@ -170,67 +181,6 @@ Index: hdf5/test/testlibinfo.sh.in
170181
fi
171182

172183
# Check if executables has the lib information only if shared lib is not
173-
Index: hdf5/tools/src/misc/h5cc.in
174-
===================================================================
175-
--- hdf5.orig/tools/src/misc/h5cc.in
176-
+++ hdf5/tools/src/misc/h5cc.in
177-
@@ -27,6 +27,7 @@
178-
prefix="@prefix@"
179-
exec_prefix="@exec_prefix@"
180-
libdir="@libdir@"
181-
+libdevdir="@libdir@/hdf5/@FLAVOR_NAME@"
182-
includedir="@includedir@"
183-
HL="@HL@"
184-
185-
@@ -170,7 +171,7 @@ usage() {
186-
# libhdf5.settings file reside in the lib directory.
187-
showconfigure()
188-
{
189-
- cat ${libdir}/libhdf5.settings
190-
+ cat ${libdir}/libhdf5@[email protected]
191-
status=$?
192-
}
193-
194-
@@ -331,7 +332,7 @@ if test "x$do_link" = "xyes"; then
195-
else
196-
libraries=" $libraries -lhdf5 "
197-
fi
198-
- link_args="$link_args -L${libdir}"
199-
+ link_args="$link_args -L${libdevdir}"
200-
201-
case "$kind" in
202-
gcc|linux*)
203-
@@ -350,7 +351,7 @@ if test "x$do_link" = "xyes"; then
204-
esac
205-
206-
if test -n "$flag"; then
207-
- shared_link="${flag}${libdir}"
208-
+ shared_link="${flag}${libdevdir}"
209-
fi
210-
211-
if test "x$USE_SHARED_LIB" != "xyes"; then
212-
@@ -360,10 +361,10 @@ if test "x$do_link" = "xyes"; then
213-
for lib in $libraries; do
214-
case "$lib" in
215-
-lhdf5)
216-
- new_libraries="$new_libraries ${libdir}/libhdf5.a"
217-
+ new_libraries="$new_libraries ${libdevdir}/libhdf5.a"
218-
;;
219-
-lhdf5_hl)
220-
- new_libraries="$new_libraries ${libdir}/libhdf5_hl.a"
221-
+ new_libraries="$new_libraries ${libdevdir}/libhdf5_hl.a"
222-
;;
223-
*)
224-
new_libraries="$new_libraries $lib"
225-
@@ -392,7 +393,7 @@ if test "x$do_link" = "xyes"; then
226-
# paths and libraries from AM_LDFLAGS, LDFLAGS, AM_LIBS or LIBS carried in
227-
# from the hdf5 build. The order of the flags is intended to give precedence
228-
# to the user's flags.
229-
- $SHOW $CLINKER $H5BLD_CPPFLAGS $CPPFLAGS $H5BLD_CFLAGS $CFLAGS $LDFLAGS $clibpath $link_objs $LIBS $link_args $shared_link
230-
+ $SHOW $CLINKER -I$includedir $H5BLD_CPPFLAGS $CPPFLAGS $H5BLD_CFLAGS $CFLAGS $LDFLAGS $clibpath $link_objs $LIBS $link_args $shared_link
231-
status=$?
232-
fi
233-
234184
Index: hdf5/c++/src/h5c++.in
235185
===================================================================
236186
--- hdf5.orig/c++/src/h5c++.in
@@ -382,14 +332,14 @@ Index: hdf5/fortran/src/Makefile.am
382332

383333
# Source files for the library.
384334
-libhdf5_fortran_la_SOURCES=H5f90global.F90 \
385-
+libhdf5@FLAVOR@_fortran_la_SOURCES=H5f90global.f90 \
335+
+libhdf5@FLAVOR@_fortran_la_SOURCES=H5f90global.F90 \
386336
H5fortran_types.F90 H5_ff.F90 H5Aff.F90 H5Dff.F90 H5Eff.F90 \
387337
H5Fff.F90 H5Gff.F90 H5Iff.F90 H5Lff.F90 H5Off.F90 H5Pff.F90 H5Rff.F90 H5Sff.F90 \
388-
H5Tff.F90 H5Zff.F90 H5_gen.F90 H5fortkit.F90 \
338+
H5Tff.F90 H5VLff.F90 H5Zff.F90 H5_gen.F90 H5fortkit.F90 \
389339
@@ -49,7 +49,7 @@ libhdf5_fortran_la_SOURCES=H5f90global.F
390340
H5If.c H5Lf.c H5Of.c H5Pf.c H5Rf.c H5Sf.c H5Tf.c H5Zf.c HDF5.F90
391341

392-
# HDF5 Fortran library depends on HDF5 Library.
342+
# HDF5 Fortran library depends on HDF5 Library.
393343
-libhdf5_fortran_la_LIBADD=$(LIBHDF5)
394344
+libhdf5@FLAVOR@_fortran_la_LIBADD=$(LIBHDF5)
395345

@@ -407,7 +357,7 @@ Index: hdf5/fortran/src/Makefile.am
407357
else
408358
H5FC_NAME = h5fc
409359
endif
410-
@@ -164,4 +168,16 @@ HDF5.lo: $(srcdir)/HDF5.F90
360+
@@ -165,4 +178,16 @@
411361
H5Off.lo H5Pff.lo H5Rff.lo \
412362
H5Sff.lo H5Tff.lo H5Zff.lo H5_gen.lo
413363

@@ -424,6 +374,23 @@ Index: hdf5/fortran/src/Makefile.am
424374
+endif
425375
+
426376
include $(top_srcdir)/config/conclude_fc.am
377+
Index: hdf5/bin/Makefile.am
378+
===================================================================
379+
--- hdf5.orig/bin/Makefile.am
380+
+++ hdf5/bin/Makefile.am
381+
@@ -40,7 +40,11 @@
382+
# h5cc needs custom install and uninstall rules, since it may be
383+
# named h5pcc if hdf5 is being built in parallel mode.
384+
if BUILD_PARALLEL_CONDITIONAL
385+
+if FLAVOR
386+
+ H5CC_NAME = h5pcc.@FLAVOR_NAME@
387+
+else
388+
H5CC_NAME=h5pcc
389+
+endif
390+
else
391+
H5CC_NAME=h5cc
392+
endif
393+
include $(top_srcdir)/config/conclude_fc.am
427394
Index: hdf5/hl/fortran/src/Makefile.am
428395
===================================================================
429396
--- hdf5.orig/hl/fortran/src/Makefile.am
@@ -453,9 +420,9 @@ Index: hdf5/hl/fortran/src/Makefile.am
453420
-libhdf5hl_fortran_la_LIBADD=$(LIBH5_HL) $(LIBH5F)
454421
+libhdf5@FLAVOR@hl_fortran_la_LIBADD=$(LIBH5_HL) $(LIBH5F)
455422

456-
# Fortran module files can have different extensions and different names
457-
# (e.g., different capitalizations) on different platforms. Write rules
458-
@@ -98,4 +98,17 @@ H5IMff.lo: $(srcdir)/H5IMff.F90
423+
# The name of the lib file doesn't follow the same pattern as the other hl lib
424+
# files, namely libhdf5_hl_*. Add a symlink with the compliant name to the
425+
@@ -114,4 +114,17 @@ H5IMff.lo: $(srcdir)/H5IMff.F90
459426
H5TBff.lo: $(srcdir)/H5TBff.F90
460427
H5LTff_gen.lo: H5LTff.lo H5LTff_gen.F90
461428
H5TBff_gen.lo: H5TBff.lo H5LTff_gen.F90 H5TBff_gen.F90
@@ -536,7 +503,7 @@ Index: hdf5/config/commence.am
536503
LIBH5CPP_HL=$(top_builddir)/hl/c++/src/libhdf5_hl_cpp.la
537504

538505
# Install directories that automake doesn't know about
539-
@@ -102,3 +102,4 @@ CHECK_CLEANFILES=*.chkexe *.chklog *.clo
506+
@@ -103,3 +103,4 @@ CHECK_CLEANFILES=*.chkexe *.chklog *.clo
540507
help:
541508
@$(top_srcdir)/bin/makehelp
542509

@@ -583,27 +550,11 @@ Index: hdf5/hl/c++/src/Makefile.am
583550
+endif
584551
+
585552
include $(top_srcdir)/config/conclude.am
586-
Index: hdf5/tools/src/misc/Makefile.am
587-
===================================================================
588-
--- hdf5.orig/tools/src/misc/Makefile.am
589-
+++ hdf5/tools/src/misc/Makefile.am
590-
@@ -43,7 +43,11 @@ LDADD=$(LIBH5TOOLS) $(LIBHDF5)
591-
# h5cc needs custom install and uninstall rules, since it may be
592-
# named h5pcc if hdf5 is being built in parallel mode.
593-
if BUILD_PARALLEL_CONDITIONAL
594-
+if FLAVOR
595-
+ H5CC_NAME=h5pcc.@FLAVOR_NAME@
596-
+else
597-
H5CC_NAME=h5pcc
598-
+endif
599-
else
600-
H5CC_NAME=h5cc
601-
endif
602553
Index: hdf5/java/test/junit.sh.in
603554
===================================================================
604555
--- hdf5.orig/java/test/junit.sh.in
605556
+++ hdf5/java/test/junit.sh.in
606-
@@ -56,7 +56,7 @@ test -d $BLDLIBDIR || mkdir -p $BLDLIBDI
557+
@@ -59,7 +59,7 @@ test -d $BLDLIBDIR || mkdir -p $BLDLIBDI
607558
# Comment '#' without space can be used.
608559
# --------------------------------------------------------------------
609560
LIST_LIBRARY_FILES="
@@ -616,7 +567,7 @@ Index: hdf5/java/examples/datasets/JavaDatasetExample.sh.in
616567
===================================================================
617568
--- hdf5.orig/java/examples/datasets/JavaDatasetExample.sh.in
618569
+++ hdf5/java/examples/datasets/JavaDatasetExample.sh.in
619-
@@ -52,7 +52,7 @@ test -d $BLDLIBDIR || mkdir -p $BLDLIBDI
570+
@@ -53,7 +53,7 @@ test -d $BLDLIBDIR || mkdir -p $BLDLIBDI
620571
# Comment '#' without space can be used.
621572
# --------------------------------------------------------------------
622573
LIST_LIBRARY_FILES="
@@ -629,7 +580,7 @@ Index: hdf5/java/examples/datatypes/JavaDatatypeExample.sh.in
629580
===================================================================
630581
--- hdf5.orig/java/examples/datatypes/JavaDatatypeExample.sh.in
631582
+++ hdf5/java/examples/datatypes/JavaDatatypeExample.sh.in
632-
@@ -49,7 +49,7 @@ test -d $BLDLIBDIR || mkdir -p $BLDLIBDI
583+
@@ -50,7 +50,7 @@ test -d $BLDLIBDIR || mkdir -p $BLDLIBDI
633584
# Comment '#' without space can be used.
634585
# --------------------------------------------------------------------
635586
LIST_LIBRARY_FILES="
@@ -642,7 +593,7 @@ Index: hdf5/java/examples/groups/JavaGroupExample.sh.in
642593
===================================================================
643594
--- hdf5.orig/java/examples/groups/JavaGroupExample.sh.in
644595
+++ hdf5/java/examples/groups/JavaGroupExample.sh.in
645-
@@ -51,7 +51,7 @@ test -d $BLDITERDIR || mkdir -p $BLDITER
596+
@@ -52,7 +52,7 @@ test -d $BLDITERDIR || mkdir -p $BLDITER
646597
# Comment '#' without space can be used.
647598
# --------------------------------------------------------------------
648599
LIST_LIBRARY_FILES="
@@ -655,7 +606,7 @@ Index: hdf5/java/examples/intro/JavaIntroExample.sh.in
655606
===================================================================
656607
--- hdf5.orig/java/examples/intro/JavaIntroExample.sh.in
657608
+++ hdf5/java/examples/intro/JavaIntroExample.sh.in
658-
@@ -49,7 +49,7 @@ test -d $BLDLIBDIR || mkdir -p $BLDLIBDI
609+
@@ -50,7 +50,7 @@ test -d $BLDLIBDIR || mkdir -p $BLDLIBDI
659610
# Comment '#' without space can be used.
660611
# --------------------------------------------------------------------
661612
LIST_LIBRARY_FILES="

0 commit comments

Comments
 (0)