Why an rpm containing an executable file with "shebang #!/usr/bin/jjs" cannot be installed?
Issue
- Rpm containing an executable file with
shebang #!/usr/bin/jjscannot be installed even if/usr/bin/jjsexists (installed by java-1.8.0-openjdk-headless). - The problem is that
java-1.8.0-openjdk-headlessdoes not specify that it provides /usr/bin/jjs executable. - Steps to reproduce : create spec file, build the rpm and try to install it.
- This will fail because of unsatisfied
Requires: /usr/bin/jjsdependency even if the /usr/bin/jjs is installed on the system.
Environment
Red Hat Enterprise Linux 7.0java-1.7.0-openjdk-headless-1.7.0.91-2.6.2.1.el7_1.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
