rpmbuild problem: Dependency tokens must begin with alpha-numeric, '_' or '/':
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.