The following commit has been merged in the master branch:
commit 0ec24654d9d1da12611d436e20275b5c6ec80989
Author: Francesco Paolo Lovergine <>
Date:   Wed Mar 16 18:01:15 2011 +0100

    Fixed perl path used by current swing binding.

diff --git a/debian/rules b/debian/rules
index 5e8fd56..8be1294 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,9 @@ PYVERS=$(shell pyversions -v -r debian/control)
 PYDEF=$(shell pyversions -dv)
 RUBYDEF=$(shell ruby --version|cut -d' ' -f2|cut -d. -f1,2)
 PERLDEF=$(shell perl -V:version|cut -d\' -f2)
+PERL_VENDOR_ARCH=$(shell perl -V:vendorarch|cut -d\' -f2)
+PERL_ARCH_NAME=$(shell perl -V:archname|cut -d\' -f2)
 SWIGVER=$(shell swig -version |grep Version|cut -d' ' -f3|sed -e 's/\.//g')
 GDALVER=$(shell cat VERSION|sed -e 's/\./ /g')
@@ -168,15 +171,15 @@ install: build
        # removing license file
        rm -f $(CURDIR)/debian/tmp/usr/share/gdal/1.8/LICENSE.TXT
        # removing empty packlist MakeMaker files 
-       -find $(CURDIR)/debian/tmp/usr/local/lib/perl -type f -name .packlist 
-exec rm -f {} \;
+       -find $(CURDIR)/debian/tmp$(PERL_PATH) -type f -name .packlist -exec rm 
-f {} \;
        # removing embedded rpath in perl shlibs
-       -find $(CURDIR)/debian/tmp/usr/local/lib/perl -type f -name "*.so" 
-exec chrpath --delete {} \;
+       -find $(CURDIR)/debian/tmp/$(PERL_PATH) -type f -name "*.so" -exec 
chrpath --delete {} \;
        # moves ruby/perl stuff the right dirs
        install -o root -g root -d $(CURDIR)/debian/tmp/usr/lib/perl5/auto
        install -o root -g root -d $(CURDIR)/debian/tmp/usr/lib/ruby/$(RUBYDEF)
-       mv $(CURDIR)/debian/tmp/usr/local/lib/perl/$(PERLDEF)/auto/* 
-       mv $(CURDIR)/debian/tmp/usr/local/lib/perl/$(PERLDEF)/Geo 
+       mv $(CURDIR)/debian/tmp$(PERL_PATH)/auto/* 
+       mv $(CURDIR)/debian/tmp$(PERL_PATH)/lib/perl/$(PERLDEF)/Geo 
        mv $(CURDIR)/debian/tmp/usr/local/lib/site_ruby/$(RUBYDEF)/* 
        # copy sample programs for python-gdal
        install -o root -g root -d 

GDAL/OGR library and tools

Pkg-grass-devel mailing list

Reply via email to