LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2009, 07:39 AM   #1
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
rpmbuild problem: Dependency tokens must begin with alpha-numeric, '_' or '/':


I'm far from an expert on rpm building but until now have generally been able to figure out enough to get by. I'm currently completely stuck though.

Whilst attempting to build an rpm using the attached spec file on SLED 11 I'm getting:

Code:
Finding  Provides: /usr/lib/rpm/find-provides google-earth
error: line 33: Dependency tokens must begin with alpha-numeric, '_' or '/':

error: Failed to find Provides:
Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/mike/rpmbuild/tmp/google-earth-build
Checking for unpackaged file(s): /usr/lib/rpm/check-files /home/mike/rpmbuild/tmp/google-earth-build


RPM build errors:
    line 35: Dependency tokens must begin with alpha-numeric, '_' or '/': - First release


    Failed to find Provides:
I'm fairly sure the problem isn't actually with line 35 because if I remove the changelog section then the error still occurs and the line number changes to whatever the last line of the file then is.

Can anyone explain what that error means and how I stop it occuring? Nothing I've found via Google has enlightened me.
Attached Files
File Type: txt google-earth.spec.txt (577 Bytes, 111 views)
 
Old 05-04-2009, 10:16 AM   #2
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Original Poster
Rep: Reputation: 198Reputation: 198
Quite possibly I didn't include enough information in my previous post but I've found the solution now.
The problem is caused by the inclusion of .so files in the source. My source consisted of a .tar.gz file of the directory in which I'd installed Google Earth having run the installer. (I know a few files get put elsewhere and I'll get them included.) If I removed all the .so files from the source then the rpm built OK, though obviously the result was useless. The solution to the error I was getting is to add a line

AutoReqProv: no

to the spec file. For further details see http://www.lysium.de/blog/index.php?...-analysis.html
 
Old 05-05-2009, 05:00 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
I found an interesting "spec file", you might like to see.

It is quite different, and actually deletes some internal
libraries from google-earth.
( Libraries which already are available on the OS. )

Attached file 'googleearth.spec' from
googleearth-4.3.7284.3916-3.fc9.nosrc.rpm

This is not an answer to your post, is information only.
.....
Attached Files
File Type: txt googleearth.spec.txt (4.9 KB, 339 views)
 
Old 05-05-2009, 02:43 PM   #4
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Original Poster
Rep: Reputation: 198Reputation: 198
Quote:
Originally Posted by knudfl View Post
I found an interesting "spec file", you might like to see.

It is quite different, and actually deletes some internal
libraries from google-earth.
( Libraries which already are available on the OS. )
Interesting, but seems like someone way trying to make life overly complicated. Removing libraries which are already on the system is cunning in a way, but it saves what is ultimately a trivial amount of disk space whilst introducing the possibility for GE to stop working when you update your system. Each to their own I guess.
 
  


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
rpmbuild --rebuild problem mago Linux - General 3 09-04-2008 03:31 PM
problem in comparing numeric with string naren_0101bits Programming 1 01-28-2008 08:10 AM
Please Help :: I am facing problem in rpmbuild as given here... amarjitsingh Fedora 1 06-10-2007 07:06 AM
rpmbuild problem Lobais Linux - Software 0 10-08-2004 06:25 AM
left numeric keyboard is typing numbers (problem with NumLock on/off) zstingx Linux - General 0 11-10-2003 09:59 AM

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

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