r77532 - in /trunk/libalgorithm-diff-xs-perl/debian: changelog rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Sat Jul 16 18:07:24 UTC 2011
Author: gregoa
Date: Sat Jul 16 18:07:22 2011
New Revision: 77532
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=77532
Log:
Configure perl C compilation for cross builds
Closes: #633950
Modified:
trunk/libalgorithm-diff-xs-perl/debian/changelog
trunk/libalgorithm-diff-xs-perl/debian/rules
Modified: trunk/libalgorithm-diff-xs-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libalgorithm-diff-xs-perl/debian/changelog?rev=77532&op=diff
==============================================================================
--- trunk/libalgorithm-diff-xs-perl/debian/changelog (original)
+++ trunk/libalgorithm-diff-xs-perl/debian/changelog Sat Jul 16 18:07:22 2011
@@ -1,3 +1,10 @@
+libalgorithm-diff-xs-perl (0.04-1.1) unstable; urgency=low
+
+ * Configure perl C compilation for cross builds
+ Closes: #633950
+
+ -- Steve McIntyre <steve.mcintyre at linaro.org> Fri, 15 Jul 2011 11:44:27 +0111
+
libalgorithm-diff-xs-perl (0.04-1) unstable; urgency=low
* Initial Release (Closes: #556949)
Modified: trunk/libalgorithm-diff-xs-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libalgorithm-diff-xs-perl/debian/rules?rev=77532&op=diff
==============================================================================
--- trunk/libalgorithm-diff-xs-perl/debian/rules (original)
+++ trunk/libalgorithm-diff-xs-perl/debian/rules Sat Jul 16 18:07:22 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 $@
More information about the Pkg-perl-cvs-commits
mailing list