Accepting request 245477 from home:michal-m:branches:Base:System

- brp-99-compress-vmlinux: Compress the vmlinux image after
  find-debuginfo (bnc#880848, bnc#884459)

OBS-URL: https://build.opensuse.org/request/show/245477
OBS-URL: https://build.opensuse.org/package/show/Base:System/pesign-obs-integration?expand=0&rev=35
This commit is contained in:
Gary Ching-Pang Lin 2014-08-21 04:08:32 +00:00 committed by Git OBS Bridge
parent 45f8223933
commit 87e166a2f0
4 changed files with 34 additions and 14 deletions

21
brp-99-compress-vmlinux Normal file
View File

@ -0,0 +1,21 @@
#!/bin/bash
# Compress the /boot/vmlinux image after find-debuginfo.sh has done its job
set -e
case "$RPM_PACKAGE_NAME" in
kernel-*)
;;
*)
exit 0
esac
for f in $RPM_BUILD_ROOT/boot/vmlinux-*; do
if test -e "$f" -a -e "$f.gz"; then
echo "gzip $f"
# Deliberately not using gzip -n; the vmlinux image has a
# predictable timestamp (bnc#880848#c20)
gzip -k -9 -f "$f"
fi
done

View File

@ -20,16 +20,4 @@ my $fn = shift @ARGV;
system("fipshmac $buildroot$fn");
#my $out = `sha512hmac "$buildroot$fn"`;
#if ($?) {
# exit 1;
#}
#my @t = split(" ", $out);
#my $hmac = $t[0];
#(my $hmacfn = "$buildroot$fn") =~ s|([^/]*)$|.$1.hmac|;
#open(my $fd, '>', $hmacfn) or die "$0: Cannot open $hmacfn: $!\n";
#print $fd "$hmac $fn\n";
#close($fd);
exit 0;

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Aug 20 15:09:50 UTC 2014 - mmarek@suse.cz
- brp-99-compress-vmlinux: Compress the vmlinux image after
find-debuginfo (bnc#880848, bnc#884459)
-------------------------------------------------------------------
Tue Aug 12 13:38:14 UTC 2014 - meissner@suse.com

View File

@ -40,6 +40,7 @@ Source6: README
Source7: kernel-sign-file
Source8: modsign-repackage
Source9: gen-hmac
Source10: brp-99-compress-vmlinux
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -56,8 +57,12 @@ cp %_sourcedir/{COPYING,README} .
mkdir -p %buildroot/usr/lib/rpm/brp-suse.d %buildroot/usr/lib/rpm/pesign
cd %_sourcedir
install pesign-gen-repackage-spec kernel-sign-file gen-hmac %buildroot/usr/lib/rpm/pesign
install brp-99-pesign %buildroot/usr/lib/rpm/brp-suse.d
install pesign-gen-repackage-spec kernel-sign-file gen-hmac %buildroot/usr/lib/rpm/pesign
install brp-99-pesign %buildroot/usr/lib/rpm/brp-suse.d
# brp-99-compress-vmlinux has nothing to do with signing. It is packaged in
# pesign-obs-integration because this package is already used by the kernel
# build
install brp-99-compress-vmlinux %buildroot/usr/lib/rpm/brp-suse.d
install -m644 pesign-repackage.spec.in %buildroot/usr/lib/rpm/pesign
mkdir -p %buildroot/usr/bin
install modsign-repackage %buildroot/usr/bin/