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?
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.
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: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?