From 49b0177859d4f0beca8cbd9dc42302c9cceec5d5 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Fri, 29 Feb 2008 22:49:06 +0000 Subject: [PATCH] - Update to 1.8.0, drop upstreamed patches - Update signal patch - Move static libraries into -static sub-package - Make -devel multiarch (bug #341501) --- .cvsignore | 2 +- h5comp | 10 ++ hdf5-1.6.4-destdir.patch | 60 ---------- hdf5-1.6.4-norpath.patch | 46 -------- hdf5-1.6.4-ppc.patch | 18 --- hdf5-1.6.5-sort.patch | 11 -- hdf5-1.6.5-x86_64.patch | 13 --- hdf5-1.6.6-alias.patch | 42 ------- hdf5-1.6.6-alpha.patch | 17 --- hdf5-1.6.6-s390.patch | 18 --- hdf5-1.6.6-sparc.patch | 18 --- hdf5-1.6.6-tail.patch | 11 -- hdf5-1.8.0-destdir.patch | 61 ++++++++++ hdf5-1.8.0-multiarch.patch | 18 +++ ....6-signal.patch => hdf5-1.8.0-signal.patch | 44 +++++-- hdf5.spec | 108 ++++++++++++------ sources | 2 +- 17 files changed, 198 insertions(+), 301 deletions(-) create mode 100644 h5comp delete mode 100644 hdf5-1.6.4-destdir.patch delete mode 100644 hdf5-1.6.4-norpath.patch delete mode 100644 hdf5-1.6.4-ppc.patch delete mode 100644 hdf5-1.6.5-sort.patch delete mode 100644 hdf5-1.6.5-x86_64.patch delete mode 100644 hdf5-1.6.6-alias.patch delete mode 100644 hdf5-1.6.6-alpha.patch delete mode 100644 hdf5-1.6.6-s390.patch delete mode 100644 hdf5-1.6.6-sparc.patch delete mode 100644 hdf5-1.6.6-tail.patch create mode 100644 hdf5-1.8.0-destdir.patch create mode 100644 hdf5-1.8.0-multiarch.patch rename hdf5-1.6.6-signal.patch => hdf5-1.8.0-signal.patch (57%) diff --git a/.cvsignore b/.cvsignore index f72a6d6..cef9830 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -hdf5-1.6.6.tar.gz +hdf5-1.8.0.tar.gz diff --git a/h5comp b/h5comp new file mode 100644 index 0000000..f7b7cb8 --- /dev/null +++ b/h5comp @@ -0,0 +1,10 @@ +#!/bin/bash + +ARCH=$(uname -m) + +case $ARCH in + x86_64 | ppc64 | ia64 | s390 ) BITS=64;; + * ) BITS=32;; +esac + +exec $0-${BITS} diff --git a/hdf5-1.6.4-destdir.patch b/hdf5-1.6.4-destdir.patch deleted file mode 100644 index 2a8e03a..0000000 --- a/hdf5-1.6.4-destdir.patch +++ /dev/null @@ -1,60 +0,0 @@ ---- hdf5-1.6.4/config/commence.in.BAD 2005-04-03 13:52:00.000000000 -0500 -+++ hdf5-1.6.4/config/commence.in 2005-04-03 13:52:53.000000000 -0500 -@@ -35,11 +35,11 @@ - TRACE=: - - ## Installation points --prefix=@prefix@ --exec_prefix=@exec_prefix@ --bindir=@bindir@ --libdir=@libdir@ --includedir=@includedir@ --docdir=@exec_prefix@/doc -+prefix=$(DESTDIR)@prefix@ -+exec_prefix=$(DESTDIR)@exec_prefix@ -+bindir=$(DESTDIR)@bindir@ -+libdir=$(DESTDIR)@libdir@ -+includedir=$(DESTDIR)@includedir@ -+docdir=$(DESTDIR)@exec_prefix@/doc - PUB_LIB=$(LIB) - ---- hdf5-1.6.4/fortran/config/commence.in.BAD 2005-04-03 14:08:27.000000000 -0500 -+++ hdf5-1.6.4/fortran/config/commence.in 2005-04-03 14:08:48.000000000 -0500 -@@ -40,11 +40,11 @@ - TRACE=: - - ## Installation points --prefix=@prefix@ --exec_prefix=@exec_prefix@ --bindir=@bindir@ --libdir=@libdir@ --includedir=@includedir@ --docdir=@exec_prefix@/doc -+prefix=$(DESTDIR)@prefix@ -+exec_prefix=$(DESTDIR)@exec_prefix@ -+bindir=$(DESTDIR)@bindir@ -+libdir=$(DESTDIR)@libdir@ -+includedir=$(DESTDIR)@includedir@ -+docdir=$(DESTDIR)@exec_prefix@/doc - PUB_LIB=$(LIB) - ---- hdf5-1.6.4/c++/config/commence.in.BAD 2005-04-03 14:07:10.000000000 -0500 -+++ hdf5-1.6.4/c++/config/commence.in 2005-04-03 14:07:35.000000000 -0500 -@@ -32,11 +32,11 @@ - TRACE=: - - ## Installation points --prefix=@prefix@ --exec_prefix=@exec_prefix@ --bindir=@bindir@ --libdir=@libdir@ --includedir=@includedir@ --docdir=@exec_prefix@/doc -+prefix=$(DESTDIR)@prefix@ -+exec_prefix=$(DESTDIR)@exec_prefix@ -+bindir=$(DESTDIR)@bindir@ -+libdir=$(DESTDIR)@libdir@ -+includedir=$(DESTDIR)@includedir@ -+docdir=$(DESTDIR)@exec_prefix@/doc - PUB_LIB=$(LIB) - diff --git a/hdf5-1.6.4-norpath.patch b/hdf5-1.6.4-norpath.patch deleted file mode 100644 index 3112889..0000000 --- a/hdf5-1.6.4-norpath.patch +++ /dev/null @@ -1,46 +0,0 @@ ---- hdf5-1.6.4/config/commence.in.BAD 2005-04-03 18:55:35.000000000 -0500 -+++ hdf5-1.6.4/config/commence.in 2005-04-03 18:55:54.000000000 -0500 -@@ -48,8 +48,8 @@ - DYNAMIC_DIRS=@DYNAMIC_DIRS@ - LT=$(top_builddir)/libtool - LT_COMPILE=$(LT) --mode=compile $(CC) - LT_LINK_LIB=$(LT) --mode=link $(CC) -rpath $(libdir) $(DYNAMIC_DIRS) --LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self -rpath $(libdir) $(DYNAMIC_DIRS) -+LT_LINK_EXE=$(LT) --mode=link $(CC) $(LT_STATIC_EXEC) -dlopen self $(DYNAMIC_DIRS) - LT_RUN=$(LT) --mode=execute - LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM) - LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA) ---- hdf5-1.6.4/c++/config/commence.in.BAD 2005-04-03 18:55:05.000000000 -0500 -+++ hdf5-1.6.4/c++/config/commence.in 2005-04-03 18:55:25.000000000 -0500 -@@ -50,8 +50,8 @@ - DYNAMIC_DIRS=@DYNAMIC_DIRS@ - LT=$(top_builddir)/libtool - LT_COMPILE=$(LT) --mode=compile $(CXX) - LT_LINK_LIB=$(LT) --mode=link $(CXX) -static -rpath $(libdir) $(DYNAMIC_DIRS) --LT_LINK_EXE=$(LT) --mode=link $(CXX) -static $(LT_STATIC_EXEC) -dlopen self -rpath $(bindir) $(DYNAMIC_DIRS) -+LT_LINK_EXE=$(LT) --mode=link $(CXX) -static $(LT_STATIC_EXEC) -dlopen self $(DYNAMIC_DIRS) - LT_RUN=$(LT) --mode=execute - LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM) - LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA) ---- hdf5-1.6.4/fortran/config/commence.in.BAD 2005-04-03 20:05:38.000000000 -0500 -+++ hdf5-1.6.4/fortran/config/commence.in 2005-04-03 20:05:48.000000000 -0500 -@@ -54,7 +54,7 @@ - LT=$(top_builddir)/libtool - LT_CCOMPILE=$(LT) --mode=compile $(CC) - LT_LINK_CLIB=$(LT) --mode=link $(CC) $(DYNAMIC_DIRS) $(LT_STATIC_EXEC) -rpath $(libdir) --LT_LINK_CEXE=$(LT) --mode=link $(CC) $(DYNAMIC_DIRS) -rpath $(bindir) -+LT_LINK_CEXE=$(LT) --mode=link $(CC) $(DYNAMIC_DIRS) - LT_RUN=$(LT) --mode=execute - LT_INSTALL_PROG=$(LT) --mode=install $(INSTALL_PROGRAM) - LT_INSTALL_LIB=$(LT) --mode=install $(INSTALL_DATA) ---- hdf5-1.6.4/configure.norpath 2006-03-15 14:12:46.000000000 -0700 -+++ hdf5-1.6.4/configure 2006-03-15 14:14:09.000000000 -0700 -@@ -5569,7 +5569,7 @@ - - if test "$ld_shlibs" = yes; then - runpath_var=LD_RUN_PATH -- hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' -+ hardcode_libdir_flag_spec='' - export_dynamic_flag_spec='${wl}--export-dynamic' - case $host_os in - cygwin* | mingw* | pw32*) diff --git a/hdf5-1.6.4-ppc.patch b/hdf5-1.6.4-ppc.patch deleted file mode 100644 index 735db35..0000000 --- a/hdf5-1.6.4-ppc.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- hdf5-1.6.4/fortran/src/H5f90i.h.orig 2005-01-10 16:56:29.000000000 -0700 -+++ hdf5-1.6.4/fortran/src/H5f90i.h 2005-11-18 11:06:58.000000000 -0700 -@@ -102,6 +102,15 @@ - typedef int size_t_f; - #define FNAME_POST_UNDERSCORE - -+/* PPC specific definitions */ -+#elif defined __PPC__ -+ -+typedef long long haddr_t_f; -+typedef long long hsize_t_f; -+typedef long long hssize_t_f; -+typedef int size_t_f; -+#define FNAME_POST_UNDERSCORE -+ - /* IA64 specific definitions */ - #elif defined __ia64 - diff --git a/hdf5-1.6.5-sort.patch b/hdf5-1.6.5-sort.patch deleted file mode 100644 index 49d2975..0000000 --- a/hdf5-1.6.5-sort.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- hdf5-1.6.5/bin/ltmain.sh.sort 2007-03-02 16:20:05.000000000 -0700 -+++ hdf5-1.6.5/bin/ltmain.sh 2007-03-02 16:20:12.000000000 -0700 -@@ -3329,7 +3329,7 @@ - fi - - # Try sorting and uniquifying the output. -- if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then -+ if grep -v "^: " < "$nlist" | sort -k 2 | uniq > "$nlist"S; then - : - else - grep -v "^: " < "$nlist" > "$nlist"S diff --git a/hdf5-1.6.5-x86_64.patch b/hdf5-1.6.5-x86_64.patch deleted file mode 100644 index 92e2979..0000000 --- a/hdf5-1.6.5-x86_64.patch +++ /dev/null @@ -1,13 +0,0 @@ ---- hdf5-1.6.5/configure.norpath 2006-03-15 14:12:46.000000000 -0700 -+++ hdf5-1.6.5/configure 2006-03-15 14:14:09.000000000 -0700 -@@ -6097,8 +6097,8 @@ - shlibpath_overrides_runpath=unknown - version_type=none - dynamic_linker="$host_os ld.so" --sys_lib_dlsearch_path_spec="/lib /usr/lib" --sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -+sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" -+sys_lib_search_path_spec="/lib64 /usr/lib64 /usr/local/lib64 /lib /usr/lib /usr/local/lib" - - case $host_os in - aix3*) diff --git a/hdf5-1.6.6-alias.patch b/hdf5-1.6.6-alias.patch deleted file mode 100644 index cbb0e3a..0000000 --- a/hdf5-1.6.6-alias.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- hdf5-1.6.6/test/dtypes.c.alias 2007-08-16 10:12:05.000000000 -0600 -+++ hdf5-1.6.6/test/dtypes.c 2008-02-06 10:14:42.000000000 -0700 -@@ -5645,24 +5645,33 @@ - for (j=0; j ++#if __WORDSIZE == 32 ++#include "H5pubconf-32.h" ++#elif __WORDSIZE == 64 ++#include "H5pubconf-64.h" ++#else ++#error "Unknown word size" ++#endif + + /* API Version macro wrapper definitions */ + #include "H5version.h" diff --git a/hdf5-1.6.6-signal.patch b/hdf5-1.8.0-signal.patch similarity index 57% rename from hdf5-1.6.6-signal.patch rename to hdf5-1.8.0-signal.patch index 9adb635..90ef350 100644 --- a/hdf5-1.6.6-signal.patch +++ b/hdf5-1.8.0-signal.patch @@ -1,15 +1,15 @@ ---- hdf5-1.6.5/src/H5detect.c.orig 2005-09-12 19:18:23.000000000 +0200 -+++ hdf5-1.6.5/src/H5detect.c 2005-11-15 18:25:36.030721792 +0100 -@@ -106,7 +106,7 @@ +--- hdf5-1.8.0/src/H5detect.c.signal 2008-02-12 19:38:32.000000000 -0700 ++++ hdf5-1.8.0/src/H5detect.c 2008-02-27 20:35:03.000000000 -0700 +@@ -109,7 +109,7 @@ static void detect_C99_integers64(void); static void detect_alignments(void); static size_t align_g[] = {1, 2, 4, 8, 16}; -static jmp_buf jbuf_g; +static sigjmp_buf jbuf_g; - + /*------------------------------------------------------------------------- -@@ -360,7 +360,7 @@ +@@ -366,7 +366,7 @@ void (*_handler2)(int) = signal(SIGSEGV, sigsegv_handler); \ \ _buf = (char*)malloc(sizeof(TYPE)+align_g[NELMTS(align_g)-1]); \ @@ -18,16 +18,25 @@ if (_ano 1.8.0-1 +- Update to 1.8.0, drop upstreamed patches +- Update signal patch +- Move static libraries into -static sub-package +- Make -devel multiarch (bug #341501) + * Wed Feb 6 2008 Orion Poplawski 1.6.6-7 - Add patch to fix strict-aliasing - Disable production mode to enable debuginfo diff --git a/sources b/sources index 6d3e974..bce35de 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6c7fcc91f1579555d88bb10c6c9a33a9 hdf5-1.6.6.tar.gz +e68e13685a56b50cab237fd58dc7a59c hdf5-1.8.0.tar.gz