Motion - Bug Report 2005x 02x 11x 170019
You are here: Foswiki>Motion Web>BugReports>BugReport2005x02x11x170019 (14 Feb 2005, AngelCarpintero)Edit Attach

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

BugReportForm edit

TopicTitle Error when building RPMs, attempt to mv nonexistant file
BugStatus Released
AssignedBugTo AngelCarpintero
SubmittedBy Paul Beltrani
Topic revision: r4 - 14 Feb 2005, AngelCarpintero
Copyright © 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.