Skip to content

Commit

Permalink
Set default _initconfdir directory
Browse files Browse the repository at this point in the history
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 #3617
  • Loading branch information
behlendorf committed Jul 21, 2015
1 parent 53b1d97 commit 3b79cef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rpm/generic/zfs.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
%endif
%endif

# Set the default _initconfdir when undefined.
%if %{undefined _initconfdir}
%global _initconfdir /etc/sysconfig
%endif

%bcond_with debug
%bcond_with blkid
%bcond_with systemd
Expand Down

1 comment on commit 3b79cef

@FransUrbo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@behlendorf I see that you didn't bother to fix the commit log...

Please sign in to comment.