jordansissel / fpm

Effing package management! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.
http://fpm.readthedocs.io/en/latest/
Other
11.08k stars 1.07k forks source link

fpm command-line option --rpm-tag does not function when passed on command line. #2025

Closed phat-pat closed 9 months ago

phat-pat commented 9 months ago

My build machine is running CentOS 7, with fpm 1.15.1 installed. I am using --rpm-tag "Recommends: <package>" as part of my rpm recipe. If I put this argument in a .fpm file, then it is correctly applied to the resulting package. However, when I use it as an argument:

$ fpm `--rpm-tag "Recommends: <package>"`

It is entirely ignored, and the resulting package no longer has the weak dependency. Granted, my setup is a bit strange, since I am aware that CentOS 7 only supports up to rpm 1.12 (which does not support weak dependencies). So I compiled rpm from source, and rpm 1.13 is installed into /usr/local/bin, which comes up earlier on the path. This allows me to build packages with weak dependencies, which are simply ignored if installed on CentOS 7.

Even with my unconventional setup, I was under the impression that passing arguments to the fpm invocation is equivalent to loading them from an .fpm file. Is this behavior I'm seeing a bug?

phat-pat commented 9 months ago

Although it shows up in the fpm build output, I don't believe the rpm-tag is being successfully applied to the resulting package. This is more likely an issue with my rpm installation on the build machine.