Skip to content

Commit da809c6

Browse files
committed
rpm: fix "configure: WARNING: invalid host type"
This commit fixes the above warning when "make rpm". This happens if you ./configure without --enable-zookeeper or --enable-sheepfs before "make rpm". This is because %{fuse_configure_args} and/or %{zookeeper_configure_args} are not expanded at configure step during "make rpm". Now I set each of them to %{nil} as default if the corresponding ./configure option was not given. Signed-off-by: Takashi Menjo <menjo.takashi@lab.ntt.co.jp>
1 parent 3579b74 commit da809c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sheepdog.spec.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66
# Configure args
77
%if 0%{?enable_fuse} == 1
88
%define fuse_configure_args $(echo "--enable-sheepfs")
9+
%else
10+
%define fuse_configure_args %{nil}
911
%endif
1012
%if 0%{?enable_zookeeper} == 1
1113
%define zookeeper_configure_args $(echo "--enable-zookeeper")
14+
%else
15+
%define zookeeper_configure_args %{nil}
1216
%endif
1317

1418
Name: sheepdog

0 commit comments

Comments
 (0)