Bug 128210 - rebuild kernel src rpm fails to build i386 packages (kernel-source etc)
Summary: rebuild kernel src rpm fails to build i386 packages (kernel-source etc)
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 1
Hardware: athlon
OS: Linux
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2004-07-20 06:45 UTC by Matt Hansen
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Clone Of:
Last Closed: 2004-09-29 20:32:56 UTC

Attachments (Terms of Use)

Description Matt Hansen 2004-07-20 06:45:44 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1)

Description of problem:
Trying to build a custom kernel rpm from
kernel-2.4.22-1.2197.nptl.src.rpm fails each time for target i386 at
the start of the %install stage:

$ rpmbuild -bi --short-circuit SPECS/kernel-2.4.spec
Executing(%install): /bin/sh -e /home/helios/rpmbuild/tmp/rpm-tmp.17829
+ umask 022
+ cd /home/helios/rpmbuild/BUILD
+ cd kernel-2.4.22
+ export LANG
+ unset DISPLAY
+ cd linux-2.4.22
+ mkdir -p
+ rm -f
+ ln -sf ../../../usr/src/linux-2.4.22-1.2197.nptl.matt
ln: creating symbolic link
to `../../../usr/src/linux-2.4.22-1.2197.nptl.matt': No such file or
error: Bad exit status from /home/helios/rpmbuild/tmp/rpm-tmp.17829
RPM build errors:
    Bad exit status from /home/helios/rpmbuild/tmp/rpm-tmp.17829

Although I don't know why the SPEC file doesn't create it
automatically, manually creating a symlink from
/usr/src/linux-2.4.22-1.2197.nptl.matt to
/usr/src/linux-2.4.22-1.2197.nptl did not fix the error. (NOTE that it
DID fix it on one occassion but I've yet to be able to reproduce
success at any other time since with that symlink..)

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

How reproducible:

Steps to Reproduce:
1. installed kernel-source
2. rpm -ivh kernel-2.4.22-1.2197.nptl.src.rpm
3. vi kernel-2.4.spec: disabled 'build{smp,BOOT}'/appended ".matt" to
end of 'Release' field/updated %changelog
4. cd /usr/src/linux-2.4/ && make xconfig: configured options and
saved to /usr/src/linux-2.4/configs/kernel-2.4.22-athlon.config
5. cd ~/rpmbuild/SPECS ; rpmbuild -ba --target i386,athlon --clean
--rmsource --without doc kernel-2.4.spec

Actual Results:  Build process fails each time at the start of
%install while trying to create a symlink from
to /usr/src/linux-2.4.22-1.2197.nptl.matt because it thinks the target
is non-existent.

Expected Results:  It should build a kernel-source rpm.

Additional info:

Note that specifying target athlon alone will successfully build the
kernel-*-athlon.rpm and kernel-*-athlon.src.rpm packages.

It also seems the SPEC file can't find the source files located in
/usr/src/linux-2.4 (kernel-source is installed):

$ rpmbuild -bl SPECS/kernel-2.4.spec
Processing files: kernel-source-2.4.22-1.2197.nptl
error: File not found:
error: File not found by glob:
error: File not found:
error: File not found:
error: File not found:

Comment 1 David Lawrence 2004-09-29 20:32:56 UTC
Thanks for the bug report. However, Red Hat no longer maintains this version of
the product. Please upgrade to the latest version and open a new bug if the problem

The Fedora Legacy project (http://fedoralegacy.org/) maintains some older releases, 
and if you believe this bug is interesting to them, please report the problem in
the bug tracker at: http://bugzilla.fedora.us/

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