This commit is contained in:
parent
07ed9e7319
commit
fd5d96af53
@ -29,7 +29,7 @@ Index: scripts/find-requires.ksyms
|
|||||||
===================================================================
|
===================================================================
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ scripts/find-requires.ksyms
|
+++ scripts/find-requires.ksyms
|
||||||
@@ -0,0 +1,58 @@
|
@@ -0,0 +1,59 @@
|
||||||
+#! /bin/bash
|
+#! /bin/bash
|
||||||
+
|
+
|
||||||
+IFS=$'\n'
|
+IFS=$'\n'
|
||||||
@ -82,9 +82,10 @@ Index: scripts/find-requires.ksyms
|
|||||||
+ | sort -u \
|
+ | sort -u \
|
||||||
+ | awk '
|
+ | awk '
|
||||||
+ { FS = "\t" ; OFS = "\t" }
|
+ { FS = "\t" ; OFS = "\t" }
|
||||||
+ NF == 3 { print "kernel(" $2 ") = " $3
|
|
||||||
+ next }
|
|
||||||
+ { split($1, arr, "/")
|
+ { split($1, arr, "/")
|
||||||
+ print "ksym(" arr[3] ") = " arr[2] }
|
+ flavor = gensub(/.*-/, "", "", arr[1]) }
|
||||||
|
+ NF == 3 { print "kernel(" flavor ":" $2 ") = " $3
|
||||||
|
+ next }
|
||||||
|
+ { print "ksym(" flavor ":" arr[3] ") = " arr[2] }
|
||||||
+ '
|
+ '
|
||||||
+fi
|
+fi
|
||||||
|
@ -1,16 +1,15 @@
|
|||||||
Index: scripts/find-supplements.ksyms
|
|
||||||
===================================================================
|
|
||||||
--- scripts/find-supplements.ksyms
|
--- scripts/find-supplements.ksyms
|
||||||
+++ scripts/find-supplements.ksyms
|
+++ scripts/find-supplements.ksyms
|
||||||
@@ -1,5 +1,6 @@
|
@@ -1,6 +1,8 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
+RPM_SOURCE_DIR=/usr/src/packages/SOURCES
|
+RPM_SOURCE_DIR=/usr/src/packages/SOURCES
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
|
+PACKAGE=$1
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
@@ -46,11 +47,43 @@ combine_modaliases() {
|
kernel-module-*) ;; # Fedora kernel module package names start with
|
||||||
print_modaliases "$class" "$variants" "$pos"
|
@@ -47,10 +49,53 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
-for module in $(grep -E '/lib/modules/.+\.ko$'); do
|
-for module in $(grep -E '/lib/modules/.+\.ko$'); do
|
||||||
@ -20,12 +19,23 @@ Index: scripts/find-supplements.ksyms
|
|||||||
- | sed -nre "s,(.+:.+),modalias(kernel-${krel##*-}:\\1),p"
|
- | sed -nre "s,(.+:.+),modalias(kernel-${krel##*-}:\\1),p"
|
||||||
-done \
|
-done \
|
||||||
+aliases_of_filelist() {
|
+aliases_of_filelist() {
|
||||||
|
+ modlist=$(mktemp)
|
||||||
|
+ have_module=1
|
||||||
+ for module in $(grep -E '/lib/modules/.+\.ko$'); do
|
+ for module in $(grep -E '/lib/modules/.+\.ko$'); do
|
||||||
+ vermagic=$(/sbin/modinfo -F vermagic "$module")
|
+ vermagic=$(/sbin/modinfo -F vermagic "$module")
|
||||||
+ krel=${vermagic%% *}
|
+ krel=${vermagic%% *}
|
||||||
|
+ if ! test -x /sbin/modinfo; then
|
||||||
|
+ echo "ERROR: add module-init-tools to BuildRequires" >&2
|
||||||
|
+ exit 1
|
||||||
|
+ fi
|
||||||
|
+ have_module=0
|
||||||
+ /sbin/modinfo -F alias "$module" \
|
+ /sbin/modinfo -F alias "$module" \
|
||||||
+ | sed -nre "s,(.+:.+),modalias(kernel-${krel##*-}:\\1),p"
|
+ | sed -nre "s,(.+:.+),modalias(kernel-${krel##*-}:\\1),p" | tee -a $modlist
|
||||||
+ done
|
+ done
|
||||||
|
+ if ! test -s "$modlist" && test $have_module = 0; then
|
||||||
|
+ echo "packageand(kernel-${krel##*-}:$PACKAGE-kmp)"
|
||||||
|
+ fi
|
||||||
|
+ rm -f $modlist
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+aliases_of_specfile_macro() {
|
+aliases_of_specfile_macro() {
|
||||||
|
@ -17,7 +17,7 @@ for obsoleted packages. It's just too dangerous.
|
|||||||
mi = rpmtsInitIterator(ts, RPMTAG_BASENAMES, Name, 0);
|
mi = rpmtsInitIterator(ts, RPMTAG_BASENAMES, Name, 0);
|
||||||
else
|
else
|
||||||
- mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, Name, 0);
|
- mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, Name, 0);
|
||||||
+ mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, Name, 0);
|
+ mi = rpmtsInitIterator(ts, RPMTAG_NAME, Name, 0);
|
||||||
|
|
||||||
xx = rpmdbPruneIterator(mi,
|
xx = rpmdbPruneIterator(mi,
|
||||||
ts->removedPackages, ts->numRemovedPackages, 1);
|
ts->removedPackages, ts->numRemovedPackages, 1);
|
||||||
|
@ -17,7 +17,7 @@ License: GPL v2 or later
|
|||||||
Group: System/Packages
|
Group: System/Packages
|
||||||
Summary: Python Bindings for Manipulating RPM Packages
|
Summary: Python Bindings for Manipulating RPM Packages
|
||||||
Version: 4.4.2
|
Version: 4.4.2
|
||||||
Release: 231
|
Release: 239
|
||||||
Requires: rpm = %{version}
|
Requires: rpm = %{version}
|
||||||
%py_requires
|
%py_requires
|
||||||
Source99: rpm.spec
|
Source99: rpm.spec
|
||||||
|
20
rpm.changes
20
rpm.changes
@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 6 18:01:34 CEST 2008 - mls@suse.de
|
||||||
|
|
||||||
|
- enable all parts of the noprovides patch again, making our rpm
|
||||||
|
compatible to rpm4
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 2 15:50:17 CEST 2008 - dmueller@suse.de
|
||||||
|
|
||||||
|
- add at least one supplements prefering the right kernel flavour
|
||||||
|
if no modalias could be generated (bnc#384084)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 1 22:43:17 CEST 2008 - agruen@suse.de
|
||||||
|
|
||||||
|
- For kernel modules, require "kernel(flavor:symset) = version"
|
||||||
|
instead of "kernel(symset) = version". This disambiguates
|
||||||
|
the case where several kernel flavors end up with the same
|
||||||
|
modver checksums (190163, 355628).
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 16 17:57:43 CEST 2008 - jblunck@suse.de
|
Wed Apr 16 17:57:43 CEST 2008 - jblunck@suse.de
|
||||||
|
|
||||||
|
17
rpm.spec
17
rpm.spec
@ -21,7 +21,7 @@ PreReq: %insserv_prereq %fillup_prereq permissions
|
|||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
Summary: The RPM Package Manager
|
Summary: The RPM Package Manager
|
||||||
Version: 4.4.2
|
Version: 4.4.2
|
||||||
Release: 189
|
Release: 193
|
||||||
Source: rpm-%{version}.tar.bz2
|
Source: rpm-%{version}.tar.bz2
|
||||||
Source1: RPM-HOWTO.tar.bz2
|
Source1: RPM-HOWTO.tar.bz2
|
||||||
Source2: RPM-Tips.html.tar.bz2
|
Source2: RPM-Tips.html.tar.bz2
|
||||||
@ -354,7 +354,7 @@ Summary: A C library for parsing command line parameters
|
|||||||
License: LGPL v2.1 or later
|
License: LGPL v2.1 or later
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Version: 1.7
|
Version: 1.7
|
||||||
Release: 417
|
Release: 421
|
||||||
#
|
#
|
||||||
|
|
||||||
%description -n popt
|
%description -n popt
|
||||||
@ -377,7 +377,7 @@ Summary: C Library for Parsing Command Line Parameters
|
|||||||
License: LGPL v2.1 or later
|
License: LGPL v2.1 or later
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Version: 1.7
|
Version: 1.7
|
||||||
Release: 417
|
Release: 421
|
||||||
Requires: popt = 1.7
|
Requires: popt = 1.7
|
||||||
Requires: glibc-devel
|
Requires: glibc-devel
|
||||||
|
|
||||||
@ -412,6 +412,17 @@ Authors:
|
|||||||
%doc %{_mandir}/man3/popt.3*
|
%doc %{_mandir}/man3/popt.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue May 06 2008 mls@suse.de
|
||||||
|
- enable all parts of the noprovides patch again, making our rpm
|
||||||
|
compatible to rpm4
|
||||||
|
* Fri May 02 2008 dmueller@suse.de
|
||||||
|
- add at least one supplements prefering the right kernel flavour
|
||||||
|
if no modalias could be generated (bnc#384084)
|
||||||
|
* Fri May 02 2008 agruen@suse.de
|
||||||
|
- For kernel modules, require "kernel(flavor:symset) = version"
|
||||||
|
instead of "kernel(symset) = version". This disambiguates
|
||||||
|
the case where several kernel flavors end up with the same
|
||||||
|
modver checksums (190163, 355628).
|
||||||
* Wed Apr 16 2008 jblunck@suse.de
|
* Wed Apr 16 2008 jblunck@suse.de
|
||||||
- Get rid of noise when no debuginfo was generated
|
- Get rid of noise when no debuginfo was generated
|
||||||
- Never strip static libraries in find-debuginfo script
|
- Never strip static libraries in find-debuginfo script
|
||||||
|
Loading…
Reference in New Issue
Block a user