1
0
forked from pool/kernel-source
OBS User unknown 2009-05-24 22:39:22 +00:00 committed by Git OBS Bridge
parent d4ad2e2ea3
commit e769c89f5e
28 changed files with 276 additions and 34 deletions

View File

@ -10,13 +10,22 @@ flavor=${1##*-}
/usr/lib/rpm/find-provides "$@" <"$filelist"
(
grep '\.ko$' "$filelist" | \
xargs -r $sourcedir/symsets.pl --list-exported-symbols;
grep '/Module\.symvers$' "$filelist" | while read f; do
$sourcedir/symsets.pl --list-exported-symbols --symvers-file="$f"
done
) | awk -v flavor="$flavor" '
case `uname -m` in
ia64)
image="vmlinuz"
;;
*)
image="vmlinux"
esac
while read f; do
test -e "$f" || continue
case "$f" in
*.ko | */$image* )
echo "$f"
esac
done <"$filelist" | \
xargs -r $sourcedir/symsets.pl --list-exported-symbols | \
awk -v flavor="$flavor" '
{
sub(/^0x0*/, "", $1);
if (!$1)

View File

@ -678,7 +678,7 @@ add_dirs_to_filelist() {
# Collect the file lists.
shopt -s nullglob
> %my_builddir/kernel-devel.files
for file in %buildroot/boot/vmlinux-*gz %buildroot/boot/sym* ; do
for file in %buildroot/boot/sym* ; do
f=${file##%buildroot}
echo "$f" >> %my_builddir/kernel-devel.files
done

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun May 24 10:36:18 CEST 2009 - mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
-------------------------------------------------------------------
Sat May 23 22:18:05 CEST 2009 - mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
-------------------------------------------------------------------
Fri May 22 15:47:01 CEST 2009 - teheo@suse.de

View File

@ -62,7 +62,7 @@
Name: kernel-debug
Summary: A Debug Version of the Kernel
Version: 2.6.30
Release: 2
Release: 3
%if %using_buildservice
%else
%endif
@ -604,7 +604,7 @@ add_dirs_to_filelist() {
# Collect the file lists.
shopt -s nullglob
> %my_builddir/kernel-devel.files
for file in %buildroot/boot/vmlinux-*gz %buildroot/boot/sym* ; do
for file in %buildroot/boot/sym* ; do
f=${file##%buildroot}
echo "$f" >> %my_builddir/kernel-devel.files
done
@ -790,6 +790,12 @@ kernel module packages) against the -debug flavor of the kernel.
%endif
%changelog
* Sun May 24 2009 mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
* Sat May 23 2009 mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
* Fri May 22 2009 teheo@suse.de
- patches.arch/i586-unwind-quick-fix: i586-relocs: ignore NONE
relocation.

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun May 24 10:36:18 CEST 2009 - mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
-------------------------------------------------------------------
Sat May 23 22:18:05 CEST 2009 - mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
-------------------------------------------------------------------
Fri May 22 15:47:01 CEST 2009 - teheo@suse.de

View File

@ -62,7 +62,7 @@
Name: kernel-default
Summary: The Standard Kernel
Version: 2.6.30
Release: 2
Release: 3
%if %using_buildservice
%else
%endif
@ -619,7 +619,7 @@ add_dirs_to_filelist() {
# Collect the file lists.
shopt -s nullglob
> %my_builddir/kernel-devel.files
for file in %buildroot/boot/vmlinux-*gz %buildroot/boot/sym* ; do
for file in %buildroot/boot/sym* ; do
f=${file##%buildroot}
echo "$f" >> %my_builddir/kernel-devel.files
done
@ -802,6 +802,12 @@ kernel module packages) against the -default flavor of the kernel.
%endif
%changelog
* Sun May 24 2009 mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
* Sat May 23 2009 mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
* Fri May 22 2009 teheo@suse.de
- patches.arch/i586-unwind-quick-fix: i586-relocs: ignore NONE
relocation.

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun May 24 10:36:18 CEST 2009 - mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
-------------------------------------------------------------------
Sat May 23 22:18:05 CEST 2009 - mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
-------------------------------------------------------------------
Fri May 22 15:47:01 CEST 2009 - teheo@suse.de

View File

@ -62,7 +62,7 @@
Name: kernel-kdump
Summary: kernel for kdump
Version: 2.6.30
Release: 2
Release: 3
%if %using_buildservice
%else
%endif
@ -606,7 +606,7 @@ add_dirs_to_filelist() {
# Collect the file lists.
shopt -s nullglob
> %my_builddir/kernel-devel.files
for file in %buildroot/boot/vmlinux-*gz %buildroot/boot/sym* ; do
for file in %buildroot/boot/sym* ; do
f=${file##%buildroot}
echo "$f" >> %my_builddir/kernel-devel.files
done
@ -798,6 +798,12 @@ kernel module packages) against the -kdump flavor of the kernel.
%endif
%changelog
* Sun May 24 2009 mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
* Sat May 23 2009 mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
* Fri May 22 2009 teheo@suse.de
- patches.arch/i586-unwind-quick-fix: i586-relocs: ignore NONE
relocation.

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun May 24 10:36:18 CEST 2009 - mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
-------------------------------------------------------------------
Sat May 23 22:18:05 CEST 2009 - mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
-------------------------------------------------------------------
Fri May 22 15:47:01 CEST 2009 - teheo@suse.de

View File

@ -62,7 +62,7 @@
Name: kernel-legacy
Summary: The Standard Kernel
Version: 2.6.30
Release: 2
Release: 3
%if %using_buildservice
%else
%endif
@ -603,7 +603,7 @@ add_dirs_to_filelist() {
# Collect the file lists.
shopt -s nullglob
> %my_builddir/kernel-devel.files
for file in %buildroot/boot/vmlinux-*gz %buildroot/boot/sym* ; do
for file in %buildroot/boot/sym* ; do
f=${file##%buildroot}
echo "$f" >> %my_builddir/kernel-devel.files
done
@ -792,6 +792,12 @@ kernel module packages) against the -legacy flavor of the kernel.
%endif
%changelog
* Sun May 24 2009 mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
* Sat May 23 2009 mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
* Fri May 22 2009 teheo@suse.de
- patches.arch/i586-unwind-quick-fix: i586-relocs: ignore NONE
relocation.

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun May 24 10:36:18 CEST 2009 - mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
-------------------------------------------------------------------
Sat May 23 22:18:05 CEST 2009 - mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
-------------------------------------------------------------------
Fri May 22 15:47:01 CEST 2009 - teheo@suse.de

View File

@ -62,7 +62,7 @@
Name: kernel-ppc64
Summary: Kernel for ppc64 Systems
Version: 2.6.30
Release: 2
Release: 3
%if %using_buildservice
%else
%endif
@ -621,7 +621,7 @@ add_dirs_to_filelist() {
# Collect the file lists.
shopt -s nullglob
> %my_builddir/kernel-devel.files
for file in %buildroot/boot/vmlinux-*gz %buildroot/boot/sym* ; do
for file in %buildroot/boot/sym* ; do
f=${file##%buildroot}
echo "$f" >> %my_builddir/kernel-devel.files
done
@ -853,6 +853,12 @@ Authors:
%endif
%changelog
* Sun May 24 2009 mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
* Sat May 23 2009 mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
* Fri May 22 2009 teheo@suse.de
- patches.arch/i586-unwind-quick-fix: i586-relocs: ignore NONE
relocation.

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun May 24 10:36:18 CEST 2009 - mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
-------------------------------------------------------------------
Sat May 23 22:18:05 CEST 2009 - mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
-------------------------------------------------------------------
Fri May 22 15:47:01 CEST 2009 - teheo@suse.de

View File

@ -62,7 +62,7 @@
Name: kernel-ps3
Summary: kernel for ps3 bootloader
Version: 2.6.30
Release: 2
Release: 3
%if %using_buildservice
%else
%endif
@ -606,7 +606,7 @@ add_dirs_to_filelist() {
# Collect the file lists.
shopt -s nullglob
> %my_builddir/kernel-devel.files
for file in %buildroot/boot/vmlinux-*gz %buildroot/boot/sym* ; do
for file in %buildroot/boot/sym* ; do
f=${file##%buildroot}
echo "$f" >> %my_builddir/kernel-devel.files
done
@ -792,6 +792,12 @@ kernel module packages) against the -default flavor of the kernel.
%endif
%changelog
* Sun May 24 2009 mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
* Sat May 23 2009 mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
* Fri May 22 2009 teheo@suse.de
- patches.arch/i586-unwind-quick-fix: i586-relocs: ignore NONE
relocation.

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun May 24 10:36:18 CEST 2009 - mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
-------------------------------------------------------------------
Sat May 23 22:18:05 CEST 2009 - mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
-------------------------------------------------------------------
Fri May 22 15:47:01 CEST 2009 - teheo@suse.de

View File

@ -62,7 +62,7 @@
Name: kernel-s390
Summary: The Standard Kernel
Version: 2.6.30
Release: 2
Release: 3
%if %using_buildservice
%else
%endif
@ -607,7 +607,7 @@ add_dirs_to_filelist() {
# Collect the file lists.
shopt -s nullglob
> %my_builddir/kernel-devel.files
for file in %buildroot/boot/vmlinux-*gz %buildroot/boot/sym* ; do
for file in %buildroot/boot/sym* ; do
f=${file##%buildroot}
echo "$f" >> %my_builddir/kernel-devel.files
done
@ -790,6 +790,12 @@ kernel module packages) against the -s390 flavor of the kernel.
%endif
%changelog
* Sun May 24 2009 mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
* Sat May 23 2009 mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
* Fri May 22 2009 teheo@suse.de
- patches.arch/i586-unwind-quick-fix: i586-relocs: ignore NONE
relocation.

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun May 24 10:36:18 CEST 2009 - mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
-------------------------------------------------------------------
Sat May 23 22:18:05 CEST 2009 - mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
-------------------------------------------------------------------
Fri May 22 15:47:01 CEST 2009 - teheo@suse.de

View File

@ -42,7 +42,7 @@ Url: http://www.kernel.org/
Name: kernel-source
Summary: The Linux Kernel Sources
Version: 2.6.30
Release: 2
Release: 3
%if %using_buildservice
%else
%endif
@ -235,6 +235,12 @@ done
%endif
%changelog
* Sun May 24 2009 mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
* Sat May 23 2009 mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
* Fri May 22 2009 teheo@suse.de
- patches.arch/i586-unwind-quick-fix: i586-relocs: ignore NONE
relocation.

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun May 24 10:36:18 CEST 2009 - mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
-------------------------------------------------------------------
Sat May 23 22:18:05 CEST 2009 - mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
-------------------------------------------------------------------
Fri May 22 15:47:01 CEST 2009 - teheo@suse.de

View File

@ -33,7 +33,7 @@ Url: http://www.kernel.org/
Name: kernel-syms
Summary: Kernel Symbol Versions (modversions)
Version: 2.6.30
Release: 2
Release: 3
%if %using_buildservice
%else
%define kernel_source_release %(LC_ALL=C rpm -q kernel-source%variant-%version --qf "%{RELEASE}" | grep -v 'not installed' || echo 0)
@ -102,6 +102,12 @@ install -m 644 -D %{SOURCE0} %buildroot/%_docdir/%name/README.SUSE
%_docdir/%name/README.SUSE
%changelog
* Sun May 24 2009 mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
* Sat May 23 2009 mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
* Fri May 22 2009 teheo@suse.de
- patches.arch/i586-unwind-quick-fix: i586-relocs: ignore NONE
relocation.

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun May 24 10:36:18 CEST 2009 - mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
-------------------------------------------------------------------
Sat May 23 22:18:05 CEST 2009 - mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
-------------------------------------------------------------------
Fri May 22 15:47:01 CEST 2009 - teheo@suse.de

View File

@ -62,7 +62,7 @@
Name: kernel-trace
Summary: The Realtime Linux Kernel
Version: 2.6.30
Release: 2
Release: 3
%if %using_buildservice
%else
%endif
@ -609,7 +609,7 @@ add_dirs_to_filelist() {
# Collect the file lists.
shopt -s nullglob
> %my_builddir/kernel-devel.files
for file in %buildroot/boot/vmlinux-*gz %buildroot/boot/sym* ; do
for file in %buildroot/boot/sym* ; do
f=${file##%buildroot}
echo "$f" >> %my_builddir/kernel-devel.files
done
@ -812,6 +812,12 @@ Authors:
%endif
%changelog
* Sun May 24 2009 mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
* Sat May 23 2009 mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
* Fri May 22 2009 teheo@suse.de
- patches.arch/i586-unwind-quick-fix: i586-relocs: ignore NONE
relocation.

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun May 24 10:36:18 CEST 2009 - mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
-------------------------------------------------------------------
Sat May 23 22:18:05 CEST 2009 - mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
-------------------------------------------------------------------
Fri May 22 15:47:01 CEST 2009 - teheo@suse.de

View File

@ -62,7 +62,7 @@
Name: kernel-vanilla
Summary: The Standard Kernel - without any SUSE patches
Version: 2.6.30
Release: 2
Release: 3
%if %using_buildservice
%else
%endif
@ -611,7 +611,7 @@ add_dirs_to_filelist() {
# Collect the file lists.
shopt -s nullglob
> %my_builddir/kernel-devel.files
for file in %buildroot/boot/vmlinux-*gz %buildroot/boot/sym* ; do
for file in %buildroot/boot/sym* ; do
f=${file##%buildroot}
echo "$f" >> %my_builddir/kernel-devel.files
done
@ -790,6 +790,12 @@ kernel module packages) against the -vanilla flavor of the kernel.
%endif
%changelog
* Sun May 24 2009 mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
* Sat May 23 2009 mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
* Fri May 22 2009 teheo@suse.de
- patches.arch/i586-unwind-quick-fix: i586-relocs: ignore NONE
relocation.

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Sun May 24 10:36:18 CEST 2009 - mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
-------------------------------------------------------------------
Sat May 23 22:18:05 CEST 2009 - mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
-------------------------------------------------------------------
Fri May 22 15:47:01 CEST 2009 - teheo@suse.de

View File

@ -62,7 +62,7 @@
Name: kernel-xen
Summary: The Xen Kernel
Version: 2.6.30
Release: 2
Release: 3
%if %using_buildservice
%else
%endif
@ -606,7 +606,7 @@ add_dirs_to_filelist() {
# Collect the file lists.
shopt -s nullglob
> %my_builddir/kernel-devel.files
for file in %buildroot/boot/vmlinux-*gz %buildroot/boot/sym* ; do
for file in %buildroot/boot/sym* ; do
f=${file##%buildroot}
echo "$f" >> %my_builddir/kernel-devel.files
done
@ -798,6 +798,12 @@ kernel module packages) against the -xen flavor of the kernel.
%endif
%changelog
* Sun May 24 2009 mmarek@suse.cz
- rpm/find-provides: fix for kernel-kdump.
* Sat May 23 2009 mmarek@suse.cz
- rpm/find-provides, rpm/kernel-binary.spec.in, rpm/symsets.pl:
workaround to fix provides of built-in symbols: move vmlinux*.gz
back to -base and extract the provides from it.
* Fri May 22 2009 teheo@suse.de
- patches.arch/i586-unwind-quick-fix: i586-relocs: ignore NONE
relocation.

View File

@ -1,3 +1,3 @@
2009-05-22 15:47:06 +0200
GIT Revision: 004d7f8460e6b2588aae824b928acd18fdb74cb4
2009-05-24 10:36:30 +0200
GIT Revision: b74f2b51e1f325297f352ba2ee9648782e4516d7
GIT Branch: master

View File

@ -107,6 +107,7 @@ use warnings;
use Digest::MD5 qw(md5_hex);
use Getopt::Long;
use File::Temp qw(tempfile);
eval { require Pod::Usage; };
if ($@) {
sub pod2usage {
@ -126,6 +127,10 @@ Install Pod::Usage for a better help message.
Pod::Usage->import('pod2usage');
}
my @cleanfiles = ();
END {
unlink @cleanfiles;
}
our ($opt_verbose);
our $kabi_badness = 0;
@ -292,8 +297,20 @@ sub module_exports {
my ($file) = @_;
my (%crcs, %types, @res);
my $mod = $file;
if ($file =~ /\/vmlinu[xz]/) {
$mod = "vmlinux";
} else {
$mod =~ s/.*\/lib\/modules\/[^\/]*\/kernel\///;
$mod =~ s/\.(k?o|a)$//;
}
if ($file =~ /\.gz$|\/vmlinuz/) {
my ($fh, $newfile) = tempfile();
close($fh);
push(@cleanfiles, $newfile);
system("gzip -cd $file >$newfile");
$file = $newfile;
}
open(my $pipe, '-|', 'objdump', '-t', $file) or die "objdump -t $file: $!\n";
while (<$pipe>) {