Accepting request 245529 from Base:System
1 OBS-URL: https://build.opensuse.org/request/show/245529 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/pesign-obs-integration?expand=0&rev=15
This commit is contained in:
commit
1da5d58403
21
brp-99-compress-vmlinux
Normal file
21
brp-99-compress-vmlinux
Normal 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
|
||||
|
12
gen-hmac
12
gen-hmac
@ -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;
|
||||
|
@ -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
|
||||
|
||||
|
@ -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/
|
||||
|
Loading…
Reference in New Issue
Block a user