Why an rpm containing an executable file with "shebang #!/usr/bin/jjs" cannot be installed?

Solution Verified - Updated -

Issue

  • Rpm containing an executable file with shebang #!/usr/bin/jjs cannot be installed even if /usr/bin/jjs exists (installed by java-1.8.0-openjdk-headless).
  • The problem is that java-1.8.0-openjdk-headless does 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/jjs dependency even if the /usr/bin/jjs is installed on the system.

Environment

  • Red Hat Enterprise Linux 7.0
  • java-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.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.