r77529 - in /trunk/liblocale-gettext-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sat Jul 16 17:53:22 UTC 2011


Author: gregoa
Date: Sat Jul 16 17:53:21 2011
New Revision: 77529

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=77529
Log:
* Configure perl C compilation for cross builds
  + Initial patch from Peter Pearse <peter.pearse at linaro.org>
  Closes: #633949

Modified:
    trunk/liblocale-gettext-perl/debian/changelog
    trunk/liblocale-gettext-perl/debian/rules

Modified: trunk/liblocale-gettext-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblocale-gettext-perl/debian/changelog?rev=77529&op=diff
==============================================================================
--- trunk/liblocale-gettext-perl/debian/changelog (original)
+++ trunk/liblocale-gettext-perl/debian/changelog Sat Jul 16 17:53:21 2011
@@ -1,6 +1,12 @@
 liblocale-gettext-perl (1.05-7) UNRELEASED; urgency=low
 
+  [ gregor herrmann ]
   * debian/rules: switch order of arguments to dh.
+
+  [ Steve McIntyre ]
+  * Configure perl C compilation for cross builds
+    + Initial patch from Peter Pearse <peter.pearse at linaro.org>
+    Closes: #633949
 
  -- gregor herrmann <gregoa at debian.org>  Wed, 28 Jul 2010 14:32:52 -0400
 

Modified: trunk/liblocale-gettext-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/liblocale-gettext-perl/debian/rules?rev=77529&op=diff
==============================================================================
--- trunk/liblocale-gettext-perl/debian/rules (original)
+++ trunk/liblocale-gettext-perl/debian/rules Sat Jul 16 17:53:21 2011
@@ -1,4 +1,21 @@
 #!/usr/bin/make -f
+
+DEB_BUILD_GNU_TYPE      := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_GNU_TYPE       := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+        HOST_PERL = $(shell which perl)
+        PERL_VER = $(shell $(HOST_PERL) -v | $(HOST_PERL) -e 'while(<>) {/v(\d+\.\d+\.\d+)/ and print "$$1\n";}')
+
+        export PERL5LIB=/usr/$(DEB_HOST_GNU_TYPE)/lib/perl/$(PERL_VER)
+clean:
+	@if [ ! -f $(PERL5LIB)/Config.pm ] || [ ! -f $(PERL5LIB)/Config_heavy.pl ]	;\
+	then	\
+		echo "Config.pm & Config_heavy.pl for cross building not found in $(PERL5LIB)"	;\
+	exit 1	;\
+	fi
+	dh $@
+endif
 
 %:
 	dh $@ --with quilt




More information about the Pkg-perl-cvs-commits mailing list