-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set default _initconfdir directory #3617
Conversation
The _initconfdir macro is normally provided by global rpm macros file for use in the spec file. However, older distributions such as CentOS 6 do not define it. To prevent a build failure in this case the spec file has been updated to use a reasonable default when the value is undefined. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
The
And
|
@FransUrbo yes that's true, I should have been clearer in the commit message. The issue I ran in to was that it is not possible to rebuild the source rpm without explicitly defining _initconfdir when building on CentOS 6. You must pass in some value either through the ZFS build system or manually. Doing the following fails and it should succeed.
Sane defaults should be provided either by the macros file installed on the target build platform or in the spec file itself (which is what this adds). This patch only sets the value when it's otherwise undefined so the logic in |
The _initconfdir macro is normally provided by global rpm macros file for use in the spec file. However, older distributions such as CentOS 6 do not define it. To prevent a build failure in this case the spec file has been updated to use a reasonable default when the value is undefined. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#3617
The _initconfdir macro is normally provided by global rpm macros file for use in the spec file. However, older distributions such as CentOS 6 do not define it. To prevent a build failure in this case the spec file has been updated to use a reasonable default when the value is undefined. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes openzfs#3617
The _initconfdir macro is normally provided by global rpm macros
file for use in the spec file. However, older distributions such
as CentOS 6 do not define it. To prevent a build failure in this
case the spec file has been updated to use a reasonable default
when the value is undefined.
Signed-off-by: Brian Behlendorf behlendorf1@llnl.gov