Always override statically-linked-binary Lintian tag for kernel.img;

dynamic linking makes no sense here.
This commit is contained in:
Colin Watson 2010-06-01 13:33:59 +01:00
parent ec52f53bb7
commit 34e604bba2
2 changed files with 10 additions and 5 deletions

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
grub2 (1.98+20100527-2) UNRELEASED; urgency=low
* Always override statically-linked-binary Lintian tag for kernel.img;
dynamic linking makes no sense here.
-- Colin Watson <cjwatson@debian.org> Tue, 01 Jun 2010 13:31:46 +0100
grub2 (1.98+20100527-1) unstable; urgency=low
* New Bazaar snapshot.

4
debian/rules vendored
View File

@ -122,11 +122,9 @@ install/grub-pc install/grub-efi-ia32 install/grub-efi-amd64 install/grub-ieee12
mkdir -p $(CURDIR)/debian/$(subst install/,,$@)/usr/share/lintian/overrides
echo "$(subst install/,,$@): unstripped-binary-or-object *.mod" \
>> $(CURDIR)/debian/$(subst install/,,$@)/usr/share/lintian/overrides/$(subst install/,,$@)
if [ "$@" != "install/grub-pc" ] && [ "$(DEB_HOST_ARCH_CPU)" != "sparc" ] && [ "$(DEB_HOST_ARCH_CPU)" != "mipsel" ] ; then \
cd $(CURDIR)/debian/$(subst install/,,$@) && find ./usr/lib/grub -name kernel.img \
| sed -e "s%.*%$(subst install/,,$@): statically-linked-binary &%g" \
>> $(CURDIR)/debian/$(subst install/,,$@)/usr/share/lintian/overrides/$(subst install/,,$@) ; \
fi
>> $(CURDIR)/debian/$(subst install/,,$@)/usr/share/lintian/overrides/$(subst install/,,$@)
if [ "$@" = "install/grub-efi-amd64" ] && [ "$(DEB_HOST_ARCH_CPU)" = "i386" ] ; then \
echo "$(subst install/,,$@): binary-from-other-architecture *.mod" \
>> $(CURDIR)/debian/$(subst install/,,$@)/usr/share/lintian/overrides/$(subst install/,,$@) ; \