Bug 154979 - Kernel rpm build fails with "File listed twice" /boot/System.map-* and /boot/config-*
Kernel rpm build fails with "File listed twice" /boot/System.map-* and /boot/...
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
3
All Linux
medium Severity low
: ---
: ---
Assigned To: Dave Jones
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-15 05:56 EDT by Tomasz Ostrowski
Modified: 2015-01-04 17:18 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-04-21 19:00:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Changes to kernel build files (2.61 KB, patch)
2005-04-15 05:56 EDT, Tomasz Ostrowski
no flags Details | Diff

  None (edit)
Description Tomasz Ostrowski 2005-04-15 05:56:02 EDT
Description of problem:
I was trying to build custom kernel for my environment - I need Cyclades driver,
which is not included in distribution kernel. I made it to compile optimised for
my processor (Pentium III). All the changes I made are in attached file in diff
format.

I made also a link ~/bin/gcc to /usr/bin/gcc4. ~/bin is is the first directory
in my $PATH.

"rpmbuild -ba kernel-2.6.spec --target=i686" fails with:
RPM build errors:
    File listed twice: /boot/System.map-2.6.11-1.14_FC3szalupa
    File listed twice: /boot/config-2.6.11-1.14_FC3szalupa
    Installed (but unpackaged) file(s) found:
   /usr/lib/debug/lib/modules/2.6.11-1.14_FC3szalupa/vmlinux

In %files section of kernel-2.6.spec file there is:
/%{image_install_path}/*-%{KVERREL}
/boot/System.map-%{KVERREL}
/boot/config-%{KVERREL}
When %{image_install_path} macro has value: "boot". So the files are indeed
listed twice.

I don't know why the "unpackaged files" bug occured.

Version-Release number of selected component (if applicable):
kernel-2.6.11-1.14_FC3
Comment 1 Tomasz Ostrowski 2005-04-15 05:56:02 EDT
Created attachment 113216 [details]
Changes to kernel build files
Comment 2 Tomasz Ostrowski 2005-04-15 06:06:22 EDT
I just found in mailing list archives a possible cause:
%debug_package %{nil}
in .rpmmacros. I'm rebuilding the kernel without it but this will take a couple
of hours.
Comment 3 Dave Jones 2005-04-21 19:00:08 EDT
yes, this is related to the debug package options.
the 'listed twice' messages are just informational.

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