Last Updated: February 25, 2016
· dmglab

building RPM with node-webkit (and the libudev.0 problem)

Everybody, who's developing or working with a node-webkit application knows this stupid problem

There are many workarounds, how to start your application without problems.

But when you try to install your self baked RPM package of your node-webkit application, you will get a really annoying error message:

error: Failed dependencies:    is needed by

Even though you linked your to, RPM can't find a package, providing

Problem Source: Auto Dependency from rpmbuild

How does RPM knows, that your software depends on

rpmbuild tries to find requirements automaticly. You can see it at this big output while building:

+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
+ /usr/lib/rpm/redhat/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-java-repack-jars

Processing files: [...]
[...even more output...] rtld(GNU_HASH)

You can read at the end rtld(GNU_HASH)


To prevent rpmbuild, to add to your deps, you can try chromiums's rpmbuild script. They've got similar issues.

Or you can add this little flag to your preamble in your .spec file: AutoReqProv: no

This will deactivate any kind of Automatic Dependency Processing