LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


Hi,
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
+ LANG=C
+ 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 -
+ STATUS=0
+ '[' 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.

kernel.spec
___________

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

URL: http://www.kernel.org

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}

%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 $RPM_BUILD_ROOT/lib/modules

%else

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

%endif

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/

%else

%ifarch ppc64

cp vmlinux arch/powerpc/boot

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

%else

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

%endif

%endif

cp System.map $RPM_BUILD_ROOT/boot/System.map-2.6.18.custom_1.4

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

%clean

#echo -rf $RPM_BUILD_ROOT

%files

%defattr (-, root, root)

%dir /lib/modules

/lib/modules/2.6.18.custom_1.4

/boot/*


[root@localhost rpm]# pwd

/root/src/rpm

[root@localhost rpm]# ls

BUILD RPMS SOURCES SPECS SRPMS

[root@localhost BUILD]# pwd

/root/src/rpm/BUILD

[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, 07:40 AM   #2
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,401

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

Rep: Reputation: 1913Reputation: 1913Reputation: 1913Reputation: 1913Reputation: 1913Reputation: 1913Reputation: 1913Reputation: 1913Reputation: 1913Reputation: 1913Reputation: 1913
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
 
  


Reply


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 10:04 PM
error in creating rpm package for a simple "Hello World" c program jayasekar Linux - Newbie 8 12-02-2009 12:53 AM
Error in Creating rpm package for a simple "Hello World" Program jayasekar Linux - Software 2 12-01-2009 08:26 AM
Error while creating RPM package kavinsiva Linux - Newbie 3 08-21-2009 06:54 AM


All times are GMT -5. The time now is 07:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration