[libdevel-declare-perl] 07/08: debian/rules: remove sparc alignment workaround.
gregor herrmann
gregoa at debian.org
Sun Sep 22 15:47:10 UTC 2013
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libdevel-declare-perl.
commit 16c7530fbb582405c91228bec6965b356f2d4081
Author: gregor herrmann <gregoa at debian.org>
Date: Sun Sep 22 17:45:13 2013 +0200
debian/rules: remove sparc alignment workaround.
This was only needed for perl << 5.10.1. Removing it also gives us all
hardening flags back.
---
debian/rules | 31 -------------------------------
1 file changed, 31 deletions(-)
diff --git a/debian/rules b/debian/rules
index 561149d..2d33f6a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,35 +1,4 @@
#!/usr/bin/make -f
-DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
-PERL ?= /usr/bin/perl
-
-# there are some alignment problems on sparc, fixed in perl 5.10.1
-# we work around them by using -O1, but only on sparc and only for perls before 5.10.1
-PERL_VER=$(shell $(PERL) -e 'my ($$rev, $$ver, $$subver) = $$] =~ /(\d+)\.(\d\d\d)(\d\d\d)/; print join(".", $$rev+0, $$ver+0, $$subver+0)')
-GOOD_PERL=$(shell if dpkg --compare-versions $(PERL_VER) -gt 5.10.1~; then echo "yes"; fi)
-
-CFLAGS = -Wall -g
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- ifeq (sparc,$(DEB_HOST_ARCH))
- ifeq (yes,$(GOOD_PERL))
- $(info Building on sparc, with Perl $(PERL_VER), use -O2)
- CFLAGS+=-O2
- else
- $(info Building on sparc, with Perl $(PERL_VER), use -O1)
- CFLAGS+=-O1
- endif
- else
- $(info Not building on sparc (Perl $(PERL_VER)), use -O2)
- CFLAGS+=-O2
- endif
-endif
-
-override_dh_auto_configure:
- dh_auto_configure -- OPTIMIZE="$(CFLAGS)"
-
-# end of sparc alignment workaround
-
%:
dh $@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdevel-declare-perl.git
More information about the Pkg-perl-cvs-commits
mailing list