Discussion:
compilation of mlt-freeworld-6.12.0 fails
Martin Gansser
2018-11-29 14:12:09 UTC
Permalink
Hi,

want to compile new mlt-freeworld-6.12.0 [1], but it fails in the %install section

...
%install
%make_install
#before remove it print it to check with main mlt package
find %{buildroot} | grep -vP "mlt/avformat|libmltavformat.so"
# remove all execept avformat (ffmpeg part)
find %{buildroot} -type f | grep -vP "mlt/avformat|libmltavformat.so" | xargs rm
find %{buildroot} -type l -delete
find %{buildroot} -type d -empty -delete
..

The error message is:

+ find /home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64 -type f
+ xargs rm
+ grep -vP 'mlt/avformat|libmltavformat.so'
rm: cannot remove '/home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64/usr/share/mlt/presets/consumer/avformat/lossless/Ut': No such file or directory
rm: cannot remove 'Video': No such file or directory
rm: cannot remove '/home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64/usr/share/mlt/presets/consumer/avformat/alpha/Quicktime': No such file or directory
rm: cannot remove 'Animation': No such file or directory
rm: cannot remove '/home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64/usr/share/mlt/presets/consumer/avformat/alpha/Ut': No such file or directory
rm: cannot remove 'Video': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.KGk9Ye (%install)

[1] https://martinkg.fedorapeople.org/Packages/test/mlt-freeworld.spec

Thanks
Martin
_______________________________________________
devel mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to devel-***@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/***@lists.f
J. Randall Owens
2018-11-29 14:21:47 UTC
Permalink
There are spaces in the file names, so it sees something like "Ut Video"
and xargs parses it as meaning "Ut" and "Video". Easiest way to fix it
is probably to change the paths to be null-terminated, by adding -print0
to the find and -0 to the xargs, like so:

find %{buildroot} -type f -print0 | grep -vP
"mlt/avformat|libmltavformat.so" | xargs -0 rm

Hope that helps; xargs isn't something I know especially well, just
enough to be dangerous.
Post by Martin Gansser
Hi,
want to compile new mlt-freeworld-6.12.0 [1], but it fails in the %install section
...
%install
%make_install
#before remove it print it to check with main mlt package
find %{buildroot} | grep -vP "mlt/avformat|libmltavformat.so"
# remove all execept avformat (ffmpeg part)
find %{buildroot} -type f | grep -vP "mlt/avformat|libmltavformat.so" | xargs rm
find %{buildroot} -type l -delete
find %{buildroot} -type d -empty -delete
..
+ find /home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64 -type f
+ xargs rm
+ grep -vP 'mlt/avformat|libmltavformat.so'
rm: cannot remove '/home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64/usr/share/mlt/presets/consumer/avformat/lossless/Ut': No such file or directory
rm: cannot remove 'Video': No such file or directory
rm: cannot remove '/home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64/usr/share/mlt/presets/consumer/avformat/alpha/Quicktime': No such file or directory
rm: cannot remove 'Animation': No such file or directory
rm: cannot remove '/home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64/usr/share/mlt/presets/consumer/avformat/alpha/Ut': No such file or directory
rm: cannot remove 'Video': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.KGk9Ye (%install)
[1] https://martinkg.fedorapeople.org/Packages/test/mlt-freeworld.spec
Thanks
Martin
--
J. Randall Owens | http://www.GhiaPet.net/
J. Randall Owens
2018-11-29 14:28:14 UTC
Permalink
Oh, and I think the grep will also have to be tweaked with a -z to take
the null termination into account:

find %{buildroot} -type f -print0 | grep -vPz
"mlt/avformat|libmltavformat.so" | xargs -0 rm
Post by J. Randall Owens
There are spaces in the file names, so it sees something like "Ut Video"
and xargs parses it as meaning "Ut" and "Video". Easiest way to fix it
is probably to change the paths to be null-terminated, by adding -print0
find %{buildroot} -type f -print0 | grep -vP
"mlt/avformat|libmltavformat.so" | xargs -0 rm
Hope that helps; xargs isn't something I know especially well, just
enough to be dangerous.
Post by Martin Gansser
Hi,
want to compile new mlt-freeworld-6.12.0 [1], but it fails in the %install section
...
%install
%make_install
#before remove it print it to check with main mlt package
find %{buildroot} | grep -vP "mlt/avformat|libmltavformat.so"
# remove all execept avformat (ffmpeg part)
find %{buildroot} -type f | grep -vP "mlt/avformat|libmltavformat.so" | xargs rm
find %{buildroot} -type l -delete
find %{buildroot} -type d -empty -delete
..
+ find /home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64 -type f
+ xargs rm
+ grep -vP 'mlt/avformat|libmltavformat.so'
rm: cannot remove '/home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64/usr/share/mlt/presets/consumer/avformat/lossless/Ut': No such file or directory
rm: cannot remove 'Video': No such file or directory
rm: cannot remove '/home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64/usr/share/mlt/presets/consumer/avformat/alpha/Quicktime': No such file or directory
rm: cannot remove 'Animation': No such file or directory
rm: cannot remove '/home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64/usr/share/mlt/presets/consumer/avformat/alpha/Ut': No such file or directory
rm: cannot remove 'Video': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.KGk9Ye (%install)
[1] https://martinkg.fedorapeople.org/Packages/test/mlt-freeworld.spec
Thanks
Martin
--
J. Randall Owens | http://www.GhiaPet.net/
Martin Gansser
2018-11-29 14:36:45 UTC
Permalink
Many thanks, now it works.

Martin
_______________________________________________
devel mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to devel-***@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives

Martin Gansser
2018-11-29 14:29:24 UTC
Permalink
thanks for your answer, but there a new error message:

/home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64/usr/bin/melt
+ grep -vP 'mlt/avformat|libmltavformat.so'
+ find /home/martin/rpmbuild/BUILDROOT/mlt-freeworld-6.12.0-1.fc29.x86_64 -type f -print0
+ xargs -0 rm
rm: cannot remove 'Binary file (standard input) matches'$'\n': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.xUeMnu (%install)

RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.xUeMnu (%install)
_______________________________________________
devel mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to devel-***@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/***@lists.fedorap
Loading...