Package: libhdf4
Version: 4.2r4-12
Severity: normal
Tags: patch

Hello, 

the (to be) attached patch simplifies the build system as well as reducing the
number of files being patched. By using libtoolize and autoreconf all
patches referring to  aclocal.m4, configure, Makefile.in, h4config.h.in,
depcomp, install-sh, ltmain.sh, missing, mkinstalldirs, config.guess,
config.sub are not needed any longer. The debian/rules part of the patch
is inlined below:

diff -ur libhdf4-4.2r4/debian/rules libhdf4-4.2r4.linux/debian/rules
--- libhdf4-4.2r4/debian/rules  2011-08-29 15:29:22.000000000 +0200
+++ libhdf4-4.2r4.linux/debian/rules    2011-08-29 17:05:22.000000000 +0200
@@ -93,16 +93,16 @@
        rm -f HDF4 && ln -sf HDF$(RELEASE) HDF4
        # build the 'regular' netcdf-clashing flavor.
        cd HDF4 \
-               && cp /usr/share/misc/config.sub bin/. &&
cp /usr/share/misc/config.guess bin/. \
-               && cp /usr/share/misc/config.sub hdf/fmpool/. &&
cp /usr/share/misc/config.guess hdf/fmpool/. \
+               && libtoolize \
+               && autoreconf \
                && F77="$(F77)" CC="$(CC)" CXX="$(CXX)" ./configure 
--prefix=/usr
--includedir=/usr/include/hdf \
                                                             --enable-shared  
--enable-fortran
        # ./hdf/fmpool/config.sub
        #
        # build a netcdf compatible flavor, without fortran functions.
        cd HDF4_ALT \
-               && cp /usr/share/misc/config.sub bin/. &&
cp /usr/share/misc/config.guess bin/. \
-               && cp /usr/share/misc/config.sub hdf/fmpool/. &&
cp /usr/share/misc/config.guess hdf/fmpool/. \
+               && libtoolize \
+               && autoreconf \
                && CC="$(CC)" CXX="$(CXX)" ./configure --prefix=/usr
--includedir=/usr/include/hdf --disable-netcdf \
                                                              --enable-shared 
--disable-fortran
        touch $@

Build tested on GNU/Linux amd64.

Update: Since the patch is 1.3MB large it seems to get stuck in the bug
submission system. I can upload the patch later on depending on your
instructions. Resending to get a bug number for this bug.

Thanks!






_______________________________________________
Pkg-grass-devel mailing list
Pkg-grass-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grass-devel

Reply via email to