[quagga-users 13966] SPEC file broken since 0.99.24

Timo Schöler timo at riscworks.net
Wed Apr 15 09:53:46 BST 2015


Hi,

when trying to build Quagga 0.99.24 or 0.99.24.1 from source,
rpmbuild(8) spits out following error message:

rpmbuild -ba rpmbuild/SPECS/quagga.spec
error: Macro %default_dist has empty body
error: parse error in expression
error: /home/tis/rpmbuild/SPECS/quagga.spec:306:
parseExpressionBoolean returns -1

0.99.23.1 builds fine.

Platforms tested:

* CentOS release 5.11 (Final), x86_64

* CentOS release 6.6 (Final), x86_64

[tis at pptp-test ~]$ diff -uN quagga-0.99.23.1/redhat/quagga.spec
quagga-0.99.24/redhat/quagga.spec
--- quagga-0.99.23.1/redhat/quagga.spec	2014-08-25 19:02:49.000000000
+0200
+++ quagga-0.99.24/redhat/quagga.spec	2015-03-03 00:59:52.000000000 +0100
@@ -89,8 +89,8 @@

 Summary: Routing daemon
 Name:		quagga
-Version:	0.99.23.1
-Release:	20140825%{release_rev}
+Version:	0.99.24
+Release:	20150303%{release_rev}
 License:	GPL
 Group: System Environment/Daemons
 Source0:	http://www.quagga.net/snapshots/cvs/%{name}-%{version}.tar.gz
@@ -303,6 +303,9 @@
 %if %{with_isisd}
 zebra_spec_add_service isisd    2608/tcp "ISISd vty"
 %endif
+%if %{with_pimd}
+zebra_spec_add_service pimd     2611/tcp "PIMd vty"
+%endif

 for daemon in %daemon_list ; do
 	/sbin/chkconfig --add ${daemon}

After "fixing" it (just gave it a try commenting out "%if
%{with_pimd}" clause) it seems install-sh is missing in 0.99.24, while
it exists (see find run at the end) in 0.99.23.1:

[tis at pptp-test ~]$ rpmbuild -ba rpmbuild/SPECS/quagga.spec
error: Macro %default_dist has empty body
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.pb6H6S
+ umask 022
+ cd /home/tis/rpmbuild/BUILD
+ cd /home/tis/rpmbuild/BUILD
+ rm -rf quagga-0.99.24
+ /bin/tar -xf -
+ /usr/bin/gzip -dc /home/tis/rpmbuild/SOURCES/quagga-0.99.24.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd quagga-0.99.24
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Vejyy5
+ umask 022
+ cd /home/tis/rpmbuild/BUILD
+ cd quagga-0.99.24
+ CFLAGS='-O2 -g'
+ export CFLAGS
+ CXXFLAGS='-O2 -g'
+ export CXXFLAGS
+ FFLAGS='-O2 -g'
+ export FFLAGS
+ ./configure --host=x86_64-redhat-linux-gnu
--build=x86_64-redhat-linux-gnu --program-prefix= --prefix=/usr
--exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin
--sysconfdir=/etc/quagga --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib64/quagga
--libexecdir=/usr/libexec/quagga --localstatedir=/var/run/quagga
--sharedstatedir=/var/lib --mandir=/usr/share/man
--infodir=/usr/share/info --enable-ipv6 --enable-snmp
--enable-multipath=64 --enable-nssa --enable-opaque-lsa
--enable-ospf-te --enable-vtysh --enable-ospfclient=yes
--enable-ospfapi=yes --enable-irdp=yes --enable-rtadv=yes
--enable-isisd --with-libpam --enable-user=quagga
--enable-group=quagga --enable-vty-group=quaggavty --enable-netlink
--enable-gcc-rdynamic
configure: WARNING: unrecognized options: --enable-ipv6,
--enable-nssa, --enable-netlink
configure: error: cannot find install-sh, install.sh, or shtool in "."
"./.." "./../.."
error: Bad exit status from /var/tmp/rpm-tmp.Vejyy5 (%build)


RPM build errors:
    Macro %default_dist has empty body
    Bad exit status from /var/tmp/rpm-tmp.Vejyy5 (%build)
[tis at pptp-test ~]$ sudo find -name install-sh
[sudo] password for tis:
./quagga-0.99.23.1/install-sh
./rpmbuild/BUILD/quagga-0.99.23.1/install-sh

Best,

Timo


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <http://lists.quagga.net/pipermail/quagga-users/attachments/20150415/2d3decac/attachment.sig>


More information about the Quagga-users mailing list