LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   rpmbuild problem: Dependency tokens must begin with alpha-numeric, '_' or '/': (https://www.linuxquestions.org/questions/linux-software-2/rpmbuild-problem-dependency-tokens-must-begin-with-alpha-numeric-_-or-723537/)

arizonagroovejet 05-04-2009 07:39 AM

rpmbuild problem: Dependency tokens must begin with alpha-numeric, '_' or '/':
 
1 Attachment(s)
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.

arizonagroovejet 05-04-2009 10:16 AM

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

knudfl 05-05-2009 05:00 AM

1 Attachment(s)
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.
.....

arizonagroovejet 05-05-2009 02:43 PM

Quote:

Originally Posted by knudfl (Post 3530583)
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.


All times are GMT -5. The time now is 08:32 PM.