Bug 510180 - can not build sample kmp.spec because of BuildRequires problems
Summary: can not build sample kmp.spec because of BuildRequires problems
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: redhat-rpm-config
Version: 5.4
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jon Masters
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-08 07:18 UTC by Jan Hutař
Modified: 2011-03-15 14:01 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-08 08:52:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jan Hutař 2009-07-08 07:18:03 UTC
Description of problem:
When I try to build sample kmp.spec, I'm getting buildrequires errors, but IMO I have everything required installed.


Version-Release number of selected component (if applicable):
redhat-rpm-config-8.0.45-32.el5.noarch


How reproducible:
always


Steps to Reproduce:
1. # rpmbuild --define '_topdir /tmp/bz252188-build-p25672' --target x86_64 -bs /tmp/bz252188-build-p25672/kmp.spec -vv


Actual results:
# rpmbuild --define '_topdir /tmp/bz252188-build-p25672' --target x86_64 -bs /tmp/bz252188-build-p25672/kmp.spec -vv
Building target platforms: x86_64
Building for target x86_64
D: opening  db environment /var/lib/rpm/Packages joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: ========== +++ kmp-1.0-0 x86_64/linux 0x0
D: opening  db index       /var/lib/rpm/Depends create mode=0x0
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D: opening  db index       /var/lib/rpm/Pubkeys rdonly mode=0x0
D:  read h#    1021 Header sanity check: OK
D: ========== DSA pubkey id 53268101 37017186 (h#1021)
D:  read h#    1121 Header V3 DSA signature: OK, key ID 37017186
D:  Requires: kernel-devel                                  YES (db provides)
D:  read h#    1579 Header V3 DSA signature: OK, key ID 37017186
D:  read h#    1217 Header sanity check: OK
D: ========== DSA pubkey id fd372689 897da07a (h#1217)
D:  read h#    1723 Header V3 DSA signature: OK, key ID 897da07a
D:  Requires: kernel-devel-x86_64 = package                 NO  
D: package kmp-1.0-0.x86_64 has unsatisfied Requires: kernel-devel-x86_64 = package
D: closed   db index       /var/lib/rpm/Pubkeys
D: closed   db index       /var/lib/rpm/Depends
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
error: Failed build dependencies:
	kernel-devel-x86_64 = package is needed by kmp-1.0-0.x86_64
D: May free Score board((nil))


Expected results:
build should start


Additional info:
# cat /tmp/bz252188-build-p25672/kmp.spec
Name:    kmp
Summary: Dummy summary
Version: 1.0
Release: 0
License: GPL
Group:   System Environment/Kernel

BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %kernel_module_package_buildreqs

%description
Test bug 252188
Example ussage from http://driverupdateprogram.com

%kernel_module_package -v 2.0 -r 1

%changelog
* Tue Oct  9 2007 Foo Bar
- Updated original examples


I have installed:
# rpm -qa | grep kernel | sort
kernel-headers-2.6.18-152.el5.x86_64
kernel-xen-2.6.18-128.1.10.el5.x86_64
kernel-xen-2.6.18-128.1.6.el5.x86_64
kernel-xen-2.6.18-152.el5.x86_64
kernel-xen-devel-2.6.18-128.1.10.el5.x86_64
kernel-xen-devel-2.6.18-128.1.6.el5.x86_64
kernel-xen-devel-2.6.18-152.el5.x86_64
# uname -a
Linux xen69.englab.brq.redhat.com 2.6.18-128.1.10.el5xen #1 SMP Wed Apr 29 14:24:51 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
# rpm -q --provides kernel-xen-devel-2.6.18-128.1.10.el5 | grep kernel-devel-x86_64
kernel-devel-x86_64 = 2.6.18-128.1.10.el5xen


I have seen this while running /CoreOS/redhat-rpm-config/Regression/bz252188-kernel_module_package-v-r RHTS test

Comment 1 Jan Hutař 2009-07-08 08:52:44 UTC
With kernel-debug installed it works. Thank you.


Note You need to log in before you can comment on or make changes to this bug.