Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Marek <mmarek@suse.cz>2010-01-14 10:25:44 +0100
committerMichal Marek <mmarek@suse.cz>2010-01-14 10:25:44 +0100
commitffbdc9e1ab8a7f43265d45f982170f2877b717be (patch)
tree35e9e1ff2ea4e84a6a0b414c453658d56e2bf560
parent862f8cb601a13e5eb08a1448669d13ca1244b791 (diff)
- rpm/find-provides, rpm/kernel-binary.spec.in: really fix ppc
symbol provides.
-rw-r--r--kernel-source.changes6
-rw-r--r--rpm/find-provides6
-rw-r--r--rpm/kernel-binary.spec.in6
3 files changed, 13 insertions, 5 deletions
diff --git a/kernel-source.changes b/kernel-source.changes
index ee432faf91..4b76010722 100644
--- a/kernel-source.changes
+++ b/kernel-source.changes
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Thu Jan 14 10:25:21 CET 2010 - mmarek@suse.de
+
+- rpm/find-provides, rpm/kernel-binary.spec.in: really fix ppc
+ symbol provides.
+
+-------------------------------------------------------------------
Wed Jan 13 13:53:04 CET 2010 - mmarek@suse.de
- rpm/kernel-binary.spec.in, rpm/find-provides: extract exported
diff --git a/rpm/find-provides b/rpm/find-provides
index fde0b51ee8..0ca619abdd 100644
--- a/rpm/find-provides
+++ b/rpm/find-provides
@@ -5,14 +5,16 @@ filelist=$(mktemp -t ${0##*/}.XXXXXXXXXX)
grep -v '/kernel/drivers/staging/.*\.ko$' >"$filelist"
shopt -s nullglob
+builddir=$1
+shift
+
# pretend that /boot/vmlinux-* is in the -base package and not in -devel
if grep -q '/boot/System\.map\>' "$filelist"; then
prefix=$(sed -rn 's:(.*)/boot/System\.map\>.*:\1:p; T; q' "$filelist")
for f in "$prefix"/boot/vmlinux*; do
echo "$f" >>"$filelist"
- if test -e "$f.provides"; then
+ if test -e "$builddir/$(basename "$f").provides"; then
cat "$_"
- rm "$_"
fi
done
else
diff --git a/rpm/kernel-binary.spec.in b/rpm/kernel-binary.spec.in
index 338b076238..bafac037f9 100644
--- a/rpm/kernel-binary.spec.in
+++ b/rpm/kernel-binary.spec.in
@@ -207,7 +207,7 @@ Obsoletes: ocfs2-kmp-%build_flavor
Obsoletes: quickcam-kmp-%build_flavor < 0.6.7
# Provide the exported symbols as "ksym(symbol) = hash"
-%define __find_provides %_sourcedir/find-provides %name
+%define __find_provides %_sourcedir/find-provides %my_builddir %name
# Will modules not listed in supported.conf abort the kernel build (0/1)?
%define supported_modules_check 0
@@ -394,8 +394,8 @@ add_vmlinux()
# (TODO: fix find-debuginfo.sh instead)
chmod +x %buildroot/$vmlinux
# exctact the provided symbols before they are stripped away
- echo %buildroot/$vmlinux | /usr/lib/rpm/find-provides.ksyms > \
- %buildroot/$vmlinux.provides
+ echo %buildroot/$vmlinux | /usr/lib/rpm/find-provides.ksyms %name > \
+ %my_builddir/$(basename $vmlinux).provides
fi
%endif
if $compressed; then