BUG: Error when building RPMs, attempt to mv nonexistant file
%makeinstall section of motion.spec (line 33) included with source attempts to mv motion-dist.conf from %{_sysconfdir} directory to %{_sysconfdir}/%{name} directory.
This results in the error:
+ mv /var/tmp/motion-3.1.18-buildroot/etc/motion-dist.conf /var/tmp/motion-3.1.18-buildroot/etc/motion/.
mv: cannot stat `/var/tmp/motion-3.1.18-buildroot/etc/motion-dist.conf': No such file or directory
This appears to be unnecessary as motion-dist.conf is already present in %{_sysconfdir}/%{name} directory by this point in the install process.
Commenting out line 33 appears to resolve the problem without ill effect.
Test case
Environment
Motion version: |
3.1.18 |
ffmpeg version: |
|
Shared libraries: |
curl, xmlrpc, ffmpeg, mysql, postgresql |
Server OS: |
SuSE 9.2 |
--
TWikiGuest - 11 Feb 2005
Follow up
The rpmbuild process has been tested only in red hat / fedora and it works as expected :
+ mv '/var/tmp/motion-%{3.1.18}-buildroot/etc/motion-dist.conf' '/var/tmp/motion-%{3.1.18}-buildroot/etc/motion/.'
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip
So maybe the best choice is to create a spec file for Suse.
--
AngelCarpintero - 12 Feb 2005
Instead of separate test cases for various distros, how about a simple test case?
i.e. Change line 33
from:
mv %{buildroot}%{_sysconfdir}/motion-dist.conf %{buildroot}%{_sysconfdir}/%{name}/.
to:
if [ -f %{buildroot}%{_sysconfdir}/motion-dist.conf ] ; then mv %{buildroot}%{_sysconfdir}/motion-dist.conf %{buildroot}%{_sysconfdir}/%{name}/. ; fi
--
PaulBeltrani - 14 Feb 2005
Fix record
Yes Paul , i'm agree you found a nice solution , that will be include in motion-3.1.19_snap2 .
--
AngelCarpintero - 14 Feb 2005