http://bugzilla.novell.com/show_bug.cgi?id=517432 Summary: how to determine kernel version for rpm Requires: field Classification: openSUSE Product: openSUSE 11.0 Version: Final Platform: Other OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: brian@clusterfs.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.11) Gecko/2009060308 Ubuntu/9.04 (jaunty) Firefox/3.0.11 I am writing an RPM spec for a kernel module for SLES (10 & 11 in fact) and would like to bind the module to the kernel it was built against. To that end, my spec file has a: Requires: kernel = %{krequires} in it. The question becomes given a SLES kernel tree (or /lib/modules/$(uname -r)/build), where do I get the value of krequires from? Given that a SLES kernel RPM has the following provides in it (amongst others): kernel = 2.6.16.60-0.37_f594963d kernel-smp = 2.6.16.60-0.37_f594963d and given that in the kernel source make kernelrelease (and kernelversion) return strings with the flavor appended: 2.6.16.60-0.37_f594963d-smp Which is also what version.h (or utsrelease.h for more recent kernel versions) show for UTS_RELEASE: include/linux/version.h:#define UTS_RELEASE "2.6.16.60-0.37_f594963d-smp" How can I determine the kernel version, minus flavor, suitable for binding back to the binary kernel RPM's provides tags? Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.