Bug 78950

Summary: the default skernel src.rpm's do not build all targets on an i686
Product: [Retired] Red Hat Linux Reporter: Phil Copeland <copeland>
Component: kernelAssignee: Arjan van de Ven <arjanv>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-12-04 02:00:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Phil Copeland 2002-12-03 21:20:31 UTC
Description of Problem:
The default kernel src.rpm's do not build all targets on an i686

I'm using a i686 box to rebuild the kernel-2.4.18-8.0.src.rpm
expecting to obtain the standard *.i686.rpm stuff that you would normally
get off the RHN updates ftp site

by default the rpmbuild --rebuild kernel-2.4.18-18.8.0.src.rpm
produces the src.rpm, the doc and headers and ONLY the BOOT kernel

I know that rpmbuild --target=i686 --rebuild kernel-2.4.18-18.8.0.src.rpm
will generate the rpm's thats I want but I'm curious as to if this is something
that I'm supposed to stipulate originally or if rpm is supposed to work out
'gosh, a i686!' and automagically insert that option.

If (as I suspect) this isn't rpm's fault then please reassign to the kernel folk
where I'd like to suggest that this type of information should be part of the
initial build output ie

"Build will produce X,Y,Z rpm's'
"To build i586 use --target=i586"
"To build i686 and debug kernel use --target=i686"

Something like that because it's not obvious or directly explained in
documentation what to do to obtain the 686/debug/i586/up/smp/(also true in AS)
enterprise kernels fom the src.rpm

Version-Release number of selected component (if applicable):

rpm -q rpm
rpm-4.1-1.06


How Reproducible:
On an i686, expecting to build 
rpmbuild --rebuild kernel-2.4.18-18.8.0.src.rpm


Actual Results:
Wrote: /usr/src/redhat/RPMS/i386/kernel-2.4.18-18.8.0.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/kernel-source-2.4.18-18.8.0.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/kernel-doc-2.4.18-18.8.0.i386.rpm
Wrote: /usr/src/redhat/RPMS/i386/kernel-BOOT-2.4.18-18.8.0.i386.rpm



Expected Results:
Wrote: /usr/src/redhat/RPMS/i686/kernel-2.4.18-18.8.0.i686.rpm
Wrote: /usr/src/redhat/RPMS/i686/kernel-smp-2.4.18-18.8.0.i686.rpm
Wrote: /usr/src/redhat/RPMS/i686/kernel-bigmem-2.4.18-18.8.0.i686.rpm
Wrote: /usr/src/redhat/RPMS/i686/kernel-uml-2.4.18-18.8.0.i686.rpm
Wrote: /usr/src/redhat/RPMS/i686/kernel-debug-2.4.18-18.8.0.i686.rpm


Additional Information:
I'm being fussy?

Phil
=--=

Comment 1 Jeff Johnson 2002-12-04 02:00:49 UTC
Hi Phil!

rpm uses the canonical target -- i386 -- by default.

Everything else is done within package and/or invocation
config.