Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-libs/hdf/files: 4.2.6-autotools.patch
Date: Thu, 22 Dec 2011 17:36:38
Message-Id: 20111222173629.1FD852004C@flycatcher.gentoo.org
1 bicatali 11/12/22 17:36:29
2
3 Added: 4.2.6-autotools.patch
4 Log:
5 Version bump
6
7 (Portage version: 2.1.10.41/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 sci-libs/hdf/files/4.2.6-autotools.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf/files/4.2.6-autotools.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-libs/hdf/files/4.2.6-autotools.patch?rev=1.1&content-type=text/plain
14
15 Index: 4.2.6-autotools.patch
16 ===================================================================
17 diff -Nur hdf-4.2.6.orig/configure.ac hdf-4.2.6/configure.ac
18 --- hdf-4.2.6.orig/configure.ac 2011-12-21 23:40:35.000000000 +0000
19 +++ hdf-4.2.6/configure.ac 2011-12-22 00:36:53.000000000 +0000
20 @@ -199,20 +199,6 @@
21 dnl Build static libraries by default. Furthermore, fortran shared libraries
22 dnl are unsupported. Disallow a user from enabling both shared libraries and
23 dnl fortran.
24 -if test "X${enable_shared}" != "Xyes"; then
25 - enable_shared="no"
26 -fi
27 -
28 -if test "X${enable_shared}" = "Xyes"; then
29 - if test "X${BUILD_FORTRAN}" = "Xyes"; then
30 - AC_MSG_ERROR([Cannot build shared fortran libraries. Please configure with --disable-fortran flag.])
31 - fi
32 -fi
33 -
34 -AC_PROG_INSTALL
35 -AC_PROG_LN_S
36 -
37 -AC_CHECK_PROGS([AR], [ar xar], [:], [$PATH])
38
39 AC_CHECK_PROGS([YACC], ['bison -y' byacc yacc], [none], [])
40
41 @@ -389,7 +375,7 @@
42
43 dnl ----------------------------------------------------------------------
44 dnl Is the szip library present?
45 -AC_SUBST(USE_COMP_SZIP) USE_COMP_SZIP="no"
46 +AC_SUBST([USE_COMP_SZIP]) USE_COMP_SZIP="no"
47 AC_ARG_WITH([szlib],
48 [AC_HELP_STRING([--with-szlib=DIR],
49 [Use szlib library [default=no]])],,
50 @@ -445,14 +431,13 @@
51 fi
52
53 AC_CHECK_LIB([sz], [SZ_BufftoBuffCompress],, [unset HAVE_SZIP])
54 -
55 + ;;
56 +esac
57 if test -z "$HAVE_SZIP"; then
58 AC_MSG_ERROR([couldn't find szlib library])
59 else
60 USE_COMP_SZIP="yes"
61 fi
62 - ;;
63 -esac
64
65 dnl Check to see if SZIP has encoder
66 if test "X$HAVE_SZIP" = "Xyes"; then
67 @@ -702,7 +687,7 @@
68 dnl ======================================================================
69 dnl Libtool initialization
70 dnl ======================================================================
71 -LT_INIT(dlopen disable-shared)
72 +LT_INIT(dlopen)
73 LT_OUTPUT
74
75 dnl ======================================================================
76 @@ -780,11 +765,6 @@
77 dnl ------------------------------------------------------------------------
78 dnl Check to see if libtool has enabled shared libraries. Set a conditional
79 dnl as some Makefiles will build based on availability of shared libraries.
80 -if (./libtool --features | grep '^enable shared libraries' > /dev/null); then
81 - enable_shared=yes
82 -else
83 - enable_shared=no
84 -fi
85
86 dnl ------------------------------------------------------------------------
87 dnl Specify shared library extension the host machine should recognize.
88 @@ -841,26 +821,7 @@
89 dnl Strip anything that looks like a flag off of $F77
90 dnl Report anything stripped as a flag in RFLAGS and
91 dnl only the compiler in F77_VERSION.
92 -F77_NOFLAGS=`echo $F77 | sed 's/ -.*//'`
93 -FFLAGS_TO_ADD=`echo $F77 | grep - | sed 's/.* -/-/'`
94 -if test -n $FFLAGS_TO_ADD; then
95 - FFLAGS="$FFLAGS_TO_ADD$FFLAGS"
96 -fi
97 -
98 -if `echo $F77_NOFLAGS | grep ^/ >/dev/null 2>&1`; then
99 - F77_VERSION="$F77_NOFLAGS"
100 -else
101 - F77_VERSION="$F77";
102 - for x in `echo $PATH | sed -e 's/:/ /g'`; do
103 - if test -x $x/$F77_NOFLAGS; then
104 - F77_VERSION="$x/$F77_NOFLAGS"
105 - break
106 - fi
107 - done
108 -fi
109 -if test -n "$fc_version_info"; then
110 - F77_VERSION="$F77_VERSION ( $fc_version_info)"
111 -fi
112 +F77_VERSION="$F77";
113
114
115 dnl This part doesn't work yet since HDF4 config files do not contain
116 diff -Nur hdf-4.2.6.orig/hdf/test/fortestF.f hdf-4.2.6/hdf/test/fortestF.f
117 --- hdf-4.2.6.orig/hdf/test/fortestF.f 2011-12-21 23:40:35.000000000 +0000
118 +++ hdf-4.2.6/hdf/test/fortestF.f 2011-12-21 23:47:04.000000000 +0000
119 @@ -203,7 +203,7 @@
120
121 if (cmd .NE. 'Test' .AND. cmd .NE. 'test') then
122 print *, 'Unknown Command: ', cmd, param
123 - print *, 'Try one of "Skip", "Test", "Verbosity" or "Cleanup"'
124 + print *, 'Try one of Skip, Test, Verbosity or Cleanup'
125 retcode = -1
126 return
127 endif
128 diff -Nur hdf-4.2.6.orig/mfhdf/libsrc/Makefile.am hdf-4.2.6/mfhdf/libsrc/Makefile.am
129 --- hdf-4.2.6.orig/mfhdf/libsrc/Makefile.am 2011-12-21 23:40:35.000000000 +0000
130 +++ hdf-4.2.6/mfhdf/libsrc/Makefile.am 2011-12-21 23:48:07.000000000 +0000
131 @@ -32,10 +32,11 @@
132 else
133 libmfhdf_la_SOURCES = $(CSOURCES)
134 endif
135 +libmfhdf_la_LIBADD = $(top_builddir)/hdf/src/libdf.la
136
137 if HDF_BUILD_XDR
138 XDRLIB = ../xdr/libxdr.la
139 -libmfhdf_la_LIBADD = $(XDRLIB)
140 +libmfhdf_la_LIBADD += $(XDRLIB)
141 endif
142
143 if HDF_BUILD_NETCDF
144 @@ -50,11 +51,7 @@
145 # fortran has been disabled in configure. The Fortran linker gets confused
146 # when shared libraries are enabled, so when Fortran is not enabled,
147 # this replaces the Fortran link macro with the C link macro.
148 -if HDF_BUILD_FORTRAN
149 - # do nothing
150 -else
151 - F77LINK = $(LINK)
152 -endif
153 +
154
155 #############################################################################
156 ## And the cleanup ##