[opensuse-packaging] Question about script-without-shebang
Hello Mates, atm i'm updating the Packages in medical. In one case a have a lot of messages like: freediams.x86_64: W: script-without-shebang /usr/share/freediams/doc/freediams/en/html/_export/xhtml/en/manuals/freediams/install_usb.xhtml To solve that i've tried: for all in %{buildroot}%{_datadir}/%{name}/doc/%{name} `find -type f`; do chmod -x $all done But now i'm got: + for all in /usr/src/packages/BUILDROOT/freediams-0.5.4-1.x86_64/usr/share/freediams/doc/freediams '`find -type f`' + chmod -x ./doc/api-Doxyfile + for all in /usr/src/packages/BUILDROOT/freediams-0.5.4-1.x86_64/usr/share/freediams/doc/freediams '`find -type f`' + chmod -x ./doc/usermanuals chmod: cannot access `./doc/usermanuals': No such file or directory Does anyone know why it searches explicit doc/usermanuals if they aren't present? Best Sascha -- Sincerely Yours Sascha Manns open-slx Community & Support Agent openSUSE Membership Comitee openSUSE Marketing Team Web: http://saigkill.homelinux.net German Community Portal: http://community.open-slx.de -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Tue, Mar 22, 2011 at 7:47 PM, Sascha Manns
Hello Mates,
atm i'm updating the Packages in medical.
In one case a have a lot of messages like: freediams.x86_64: W: script-without-shebang /usr/share/freediams/doc/freediams/en/html/_export/xhtml/en/manuals/freediams/install_usb.xhtml
To solve that i've tried: for all in %{buildroot}%{_datadir}/%{name}/doc/%{name} `find -type f`; do chmod -x $all done
That command is troublesome. Try find "%{buildroot}%{_datadir}/%{name}/doc/%{name}" -type f -exec chmod -x "{}" + -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hello Claudio,
Claudio Freire
find "%{buildroot}%{_datadir}/%{name}/doc/%{name}" -type f -exec chmod -x "{}" + Wow, that works much better. Thanks a lot for helping :-) -- Sincerely Yours
Sascha Manns open-slx Community & Support Agent openSUSE Membership Comitee openSUSE Marketing Team Web: http://saigkill.homelinux.net German Community Portal: http://community.open-slx.de -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Claudio Freire wrote:
On Tue, Mar 22, 2011 at 7:47 PM, Sascha Manns
wrote: Hello Mates,
atm i'm updating the Packages in medical.
In one case a have a lot of messages like: freediams.x86_64: W: script-without-shebang /usr/share/freediams/doc/freediams/en/html/_export/xhtml/en/manuals/freediams/install_usb.xhtml
To solve that i've tried: for all in %{buildroot}%{_datadir}/%{name}/doc/%{name} `find -type f`; do chmod -x $all done
That command is troublesome.
Try
find "%{buildroot}%{_datadir}/%{name}/doc/%{name}" -type f -exec chmod -x "{}" +
or find "%{buildroot}%{_datadir}/%{name}/doc/%{name}" -type f -print0 | xargs -r -0 chmod -x -- Per Jessen, Zürich (9.8°C) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On 03/23/2011 12:47 AM, Sascha Manns wrote:
Hello Mates,
atm i'm updating the Packages in medical.
In one case a have a lot of messages like: freediams.x86_64: W: script-without-shebang /usr/share/freediams/doc/freediams/en/html/_export/xhtml/en/manuals/freediams/install_usb.xhtml
To solve that i've tried: for all in %{buildroot}%{_datadir}/%{name}/doc/%{name} `find -type f`; do chmod -x $all done
I use variations of this : # Remove executables from buildroot/_docdir}/name if test -z `find %{buildroot}%{_docdir}/%{name} -name *.py -perm 0755 -print0|xargs -0r grep -l '#!'`; \ then break; else chmod -f 0644 `find %{buildroot}%{_docdir}/%{name} -name *.py -perm 0755 -print0|xargs -0r grep -l '#!'`; \ fi Scripts without '#!' shouldn't have their executable bit set, this particular instance I've used it to remove the executable bit because executables aren’t allowed in %_docdir Regards Dave P -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Claudio Freire
-
Dave Plater
-
Per Jessen
-
Sascha Manns