LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Closed Thread
  Search this Thread
Old 01-27-2010, 09:45 AM   #1
lopex
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Rep: Reputation: 0
error: while rebuilding kernel src rpm.


when i run "make rpm", it creates a default kernel.spec,(i did not touch that kernel.spec) and builds kernel-2.6.*.src.rpm. Thats ok. But when i tried to rebuild that *.src.rpm , i got that error :

Quote:
DEPMOD 2.6.32.4
+ cp /var/tmp/kernel-2.6.32.4-root/boot/vmlinuz-2.6.32.4
cp: missing destination file operand after `/var/tmp/kernel-2.6.32.4-root/boot/vmlinuz-2.6.32.4'
Try `cp --help' for more information.
error: Bad exit status from /var/tmp/rpm-tmp.58300 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.58300 (%install)

My kernel.spec is :


Quote:
Name: kernel
Summary: The Linux Kernel
Version: 2.6.32.4
Release: 3
License: GPL
Group: System Environment/Kernel
Vendor: The Linux Community
URL: The Linux Kernel Archives
Source: kernel-2.6.32.4.tar.gz
BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root
Provides: kernel-2.6.32.4
%define __spec_install_post /usr/lib/rpm/brp-compress || :
%define debug_package %{nil}

%description
The Linux Kernel, the operating system core itself

%prep
%setup -q

%build
make clean && make %{?_smp_mflags}

%install
%ifarch ia64
mkdir -p $RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib/modules
mkdir -p $RPM_BUILD_ROOT/lib/firmware
%else
mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib/modules
mkdir -p $RPM_BUILD_ROOT/lib/firmware
%endif
INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{_smp_mflags} KBUILD_SRC= modules_install
%ifarch ia64
cp $KBUILD_IMAGE $RPM_BUILD_ROOT/boot/efi/vmlinuz-2.6.32.4
ln -s efi/vmlinuz-2.6.32.4 $RPM_BUILD_ROOT/boot/
%else
%ifarch ppc64
cp vmlinux arch/powerpc/boot
cp arch/powerpc/boot/$KBUILD_IMAGE $RPM_BUILD_ROOT/boot/vmlinuz-2.6.32.4
%else
cp $KBUILD_IMAGE $RPM_BUILD_ROOT/boot/vmlinuz-2.6.32.4
%endif
%endif
cp System.map $RPM_BUILD_ROOT/boot/System.map-2.6.32.4
cp .config $RPM_BUILD_ROOT/boot/config-2.6.32.4
%ifnarch ppc64
cp vmlinux vmlinux.orig
bzip2 -9 vmlinux
mv vmlinux.bz2 $RPM_BUILD_ROOT/boot/vmlinux-2.6.32.4.bz2
mv vmlinux.orig vmlinux
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
%dir /lib/modules
/lib/modules/2.6.32.4
/lib/firmware
/boot/*

How to fix that issue?
 
Old 01-27-2010, 10:26 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
Old 01-27-2010, 11:37 AM   #3
lopex
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Really sorry, I noticed that after opening a new thread in category linux enterprise, and it was wrong place. Please remove the other thread. Thanks.
 
Old 01-30-2010, 08:16 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by lopex View Post
Really sorry, I noticed that after opening a new thread in category linux enterprise, and it was wrong place. Please remove the other thread. Thanks.
Please report the thread and request it be moved.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error: while rebuilding kernel src rpm. lopex Linux - Enterprise 2 01-27-2010 11:41 AM
rpm -ivh gcc-4.1.1-52.el5.2.src.rpm failed with no error henli Linux - Newbie 5 04-15-2009 01:08 PM
rebuilding dovecot beta src.rpm with mysql 5 error dtra Linux - Software 0 05-08-2006 07:07 AM
rebuilding cyrus-sasl src.rpm w/mysql support fails willwrk4u Red Hat 1 04-17-2004 02:34 PM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration