Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-15-2013, 06:04 AM   #1
LQ Newbie
Registered: May 2013
Posts: 5

Rep: Reputation: Disabled
Error on creating RPM package for fedora 6

I m trying to create a RPM package from Fedora 6 source code. But I m getting the below errors on %prep section and I m not able to proceed for compilation.
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.99328

+ umask 022
+ cd /root/src/rpm/BUILD
+ export LANG
+ unset DISPLAY
+ cd /root/src/rpm/BUILD
+ rm -rf kernel-2.6.18.custom_1.4
+ /bin/gzip -dc /root/src/rpm/SOURCES/kernel-2.6.18.custom_1.4.tar.gz
+ tar -xf -
+ '[' 0 -ne 0 ']'
+ cd kernel-2.6.18.custom_1.4
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0

**mv: target `/root/src/rpm/BUILD/kernel-base' is not a directory
Cannot move kernel-{version} dir to kernel-base dir before building**

I have checked all the build directory structures and I feel everything is fine. I have no idea about this error message. Please help me to solve this problem.


Name: kernel

Summary: The Linux Kernel

Version: 2.6.18.custom_1.4

Release: 2

License: GPL

Group: System Environment/Kernel

Vendor: The Linux Community


Source: kernel-2.6.18.custom_1.4-2.tar.gz

BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root

Provides: kernel-2.6.18.custom_1.4

%define __spec_install_post /usr/lib/rpm/brp-compress || :

%define debug_package %{nil}

The Linux Kernel, the operating system core itself

%setup -q

make clean && make %{_smp_mflags}


%ifarch ia64

mkdir -p $RPM_BUILD_ROOT/boot/efi $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules


mkdir -p $RPM_BUILD_ROOT/boot $RPM_BUILD_ROOT/lib $RPM_BUILD_ROOT/lib/modules


INSTALL_MOD_PATH=$RPM_BUILD_ROOT make %{_smp_mflags} modules_install

%ifarch ia64

cp $KBUILD_IMAGE $RPM_BUILD_ROOT/boot/efi/vmlinuz-2.6.18.custom_1.4

ln -s efi/vmlinuz-2.6.18.custom_1.4 $RPM_BUILD_ROOT/boot/


%ifarch ppc64

cp vmlinux arch/powerpc/boot

cp arch/powerpc/boot/$KBUILD_IMAGE $RPM_BUILD_ROOT/boot/vmlinuz-2.6.18.custom_1.4


cp $KBUILD_IMAGE $RPM_BUILD_ROOT/boot/vmlinuz-2.6.18.custom_1.4



cp $RPM_BUILD_ROOT/boot/

cp .config $RPM_BUILD_ROOT/boot/config-2.6.18.custom_1.4


#echo -rf $RPM_BUILD_ROOT


%defattr (-, root, root)

%dir /lib/modules



[root@localhost rpm]# pwd


[root@localhost rpm]# ls


[root@localhost BUILD]# pwd


[root@localhost BUILD]# ls

kernel-2.6.18.custom_1.3 kernel-2.6.18.custom_1.4
kernel-2.6.18.custom_1.3.tar.gz kernel-2.6.18.custom_1.4-2.tar.gz

[root@localhost BUILD]#

If anyone has faced this problem before, Please help me out.
Old 05-15-2013, 08:40 AM   #2
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.7, Centos 5.10
Posts: 16,916

Rep: Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213Reputation: 2213
I'd start by installing & using a current version of Fedora ie v18. It should make things much easier.
Old 05-15-2013, 03:10 PM   #3
John VV
LQ Muse
Registered: Aug 2005
Posts: 15,632

Rep: Reputation: Disabled
fedora 6 is 12 ( soon to be 13 ) versions out of date
It went END OF LIFE all the way back in "2007-12-07"

install the current Fedora 18 first


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Error displayed on creating rpm package on Red Hat Linux. vivekvraj Linux - Newbie 1 08-22-2012 11:04 PM
error in creating rpm package for a simple "Hello World" c program jayasekar Linux - Newbie 8 12-02-2009 01:53 AM
Error in Creating rpm package for a simple "Hello World" Program jayasekar Linux - Software 2 12-01-2009 09:26 AM
Error while creating RPM package kavinsiva Linux - Newbie 3 08-21-2009 07:54 AM

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

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