Re: help with first package (extractpdfmark, bug 1520922)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Many thanks Alex!

Il giorno ven 2 feb 2018 alle 9:59, Alex Cobb <alex.cobb@xxxxxxxxxxxxx> ha scritto:
 Good idea, but I cannot make it work. I've tried this first:

 %install
 %make_install
 rm -f %{_docdir}/extractpdfmark/COPYING

But it seems that it tries to remove the file in my system instead of that
 in chroot?

Try
rm -f %{buildroot}/%{_docdir}/extractpdfmark/COPYING


%{buildroot} helped a lot, but this is not working yet.
This is the tail of the log:

Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.hRFWzw
+ umask 022
+ cd /home/fede/rpmbuild/SPECS/extractpdfmark
+ cd extractpdfmark-1.0.2
+ LICENSEDIR=/home/fede/rpmbuild/BUILDROOT/extractpdfmark-1.0.2-1.fc27.x86_64/usr/share/licenses/extractpdfmark
+ export LC_ALL=C
+ LC_ALL=C
+ export LICENSEDIR
+ /usr/bin/mkdir -p /home/fede/rpmbuild/BUILDROOT/extractpdfmark-1.0.2-1.fc27.x86_64/usr/share/licenses/extractpdfmark + cp -pr COPYING /home/fede/rpmbuild/BUILDROOT/extractpdfmark-1.0.2-1.fc27.x86_64/usr/share/licenses/extractpdfmark
+ exit 0
   File must begin with "/": rm
   File must begin with "/": -f


RPM build errors:
Could not execute local: rpmbuild --define '_sourcedir /home/fede/rpmbuild/SPECS/extractpdfmark' --define '_specdir /home/fede/rpmbuild/SPECS/extractpdfmark' --define '_builddir /home/fede/rpmbuild/SPECS/extractpdfmark' --define '_srcrpmdir /home/fede/rpmbuild/SPECS/extractpdfmark' --define '_rpmdir /home/fede/rpmbuild/SPECS/extractpdfmark' --define 'dist .fc27' --define 'fedora 27' --eval '%undefine rhel' --define 'fc27 1' -ba /home/fede/rpmbuild/SPECS/extractpdfmark/extractpdfmark.spec | tee .build-1.0.2-1.fc27.log




_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux