#329 Issue closed: make rpm fails on fedora 20

Labels: documentation

gdha opened issue at 2013-11-15 10:46:

a make rpm on fedora 20 (beta) bails out with the following error:

== Installing documentation ==
make -C doc install
make[2]: Entering directory `/home/gdha/RPM/BUILD/rear-1.15-git201311070742/doc'
install -Dp -m0644 rear.8 /home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/usr/share/man/man8/rear.8
make[2]: Leaving directory `/home/gdha/RPM/BUILD/rear-1.15-git201311070742/doc'
sed -i -e 's,/etc,/etc,' \
        -e 's,/usr/sbin,/usr/sbin,' \
        -e 's,/usr/share,/usr/share,' \
        -e 's,/usr/share/doc/packages,/usr/share/doc,' \
        /home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/usr/share/man/man8/rear.8
make[1]: Leaving directory `/home/gdha/RPM/BUILD/rear-1.15-git201311070742'
+ /usr/bin/install -Dp -m0644 rear.cron /home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/etc/cron.d/rear
+ /usr/lib/rpm/check-buildroot
/home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/usr/sbin/rear:SHARE_DIR="/home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/usr/share/rear"
/home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/usr/sbin/rear:CONFIG_DIR="/home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/etc/rear"
/home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/usr/sbin/rear:VAR_DIR="/home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/var/lib/rear"
Found '/home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64' in installed files; aborting
error: Bad exit status from /var/tmp/rpm-tmp.NF1fek (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.NF1fek (%install)
make: *** [rpm] Error 1

On fedora 19 it works perfectly.

gdha commented at 2013-11-15 13:19:

By adding the following line to your ~.rpmmacros

%__arch_install_post   /usr/lib/rpm/check-rpaths  /usr/lib/rpm/check-buildroot

the rpmbuild works fine. see also http://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath

gdha commented at 2013-11-15 13:30:

After checking the installed rpm found out that the real cause was:

== Installing binary ==
install -Dp -m0755 usr/sbin/rear /home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/usr/sbin/rear
sed -i -e 's,^CONFIG_DIR=.*,CONFIG_DIR="/home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/etc/rear",' \
        -e 's,^SHARE_DIR=.*,SHARE_DIR="/home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/usr/share/rear",' \
        -e 's,^VAR_DIR=.*,VAR_DIR="/home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/var/lib/rear",' \
        /home/gdha/RPM/BUILDROOT/rear-1.15-1.git201311070742.fc20.x86_64/usr/sbin/rear
Nothing to do.

The $(DESTDIR) variable was inserted by SEP SESAM patch. By removing it, it works as before.

schlomo commented at 2013-11-15 13:37:

@sepsesam should look again at their patch and make it compatible with F20


[Export of Github issue for rear/rear.]