Share your knowledge at the LQ Wiki.
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 02-12-2004, 03:32 PM   #1
Registered: Feb 2004
Posts: 34

Rep: Reputation: 15
setting version string

Below given is part from my .spec file......


%setup -q -n %{name}-%{version} -c
#cd linux-%{version}

cd kernel-%{version}

# Patches 0 through 100 are meant for core subsystem upgrades
while running rpm build command
it goes thru %prep and gave me this error:

cd: kernel-2.4.20: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.33112 (%prep)

I have the idea that I am getting this error because I have
directory named "kernel-2.4.2018.9custom " inside /BUILD

How can I change version string in -- cd kernel-%{version}
so that it goes to the right directory.....
Old 02-13-2004, 10:35 AM   #2
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
change the "Version: " part in the spec file.


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
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 03:54 PM
Parse RPM version string in Bash jimwelc Linux - Newbie 1 02-28-2005 06:22 PM
Is there any benefit to spoofing SSH version string, and how do I do that? Steve Cronje Linux - Security 2 01-19-2005 06:17 PM
java test if string in string array is null. exodist Programming 3 02-21-2004 02:39 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:21 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