Mailinglist Archive: opensuse-packaging (249 mails)
| < Previous | Next > |
[opensuse-packaging] Question about chmod
- From: "Sascha 'saigkill' Manns" <samannsml@xxxxxxxxxxxxx>
- Date: Sun, 14 Nov 2010 17:22:46 +0100
- Message-id: <201011141722.51913@xxxxxxxxxxxxxxxxxxx>
Hello Mates,
i have a short Question about chmod.
I've a tar.bz2. Inside that folder, i can find the binary under program/
Now i tried the following to make it executable:
%install
# install binary
find %{buildroot} -name %{name} -type f -print0 | xargs -0 chmod 755
%__install -d ${RPM_BUILD_ROOT}%{_bindir}
%__install program/%{name} ${RPM_BUILD_ROOT}%{_bindir}
But the find function breaks with:
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.OLvIbg
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd whohas-0.24
+ find /usr/src/packages/BUILDROOT/whohas-0.24-0.x86_64 -name whohas -
type f -print0
+ xargs -0 chmod 755
chmod: missing operand after `755'
Have i forgotten anything?
--
Sincerely yours
Sascha Manns
open-slx GmbH
openSUSE Community & Support Agent
openSUSE Marketing Team
Blog: http://saigkill.wordpress.com
Web: http://www.saschamanns.de
Web: http://www.open-slx.de (openSUSE Box Support German)
Web: http://www.open-slx.com (openSUSE Box Support English)
Open-SLX : Linux convenient, simple, secure and complete
i have a short Question about chmod.
I've a tar.bz2. Inside that folder, i can find the binary under program/
Now i tried the following to make it executable:
%install
# install binary
find %{buildroot} -name %{name} -type f -print0 | xargs -0 chmod 755
%__install -d ${RPM_BUILD_ROOT}%{_bindir}
%__install program/%{name} ${RPM_BUILD_ROOT}%{_bindir}
But the find function breaks with:
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.OLvIbg
+ umask 022
+ cd /usr/src/packages/BUILD
+ cd whohas-0.24
+ find /usr/src/packages/BUILDROOT/whohas-0.24-0.x86_64 -name whohas -
type f -print0
+ xargs -0 chmod 755
chmod: missing operand after `755'
Have i forgotten anything?
--
Sincerely yours
Sascha Manns
open-slx GmbH
openSUSE Community & Support Agent
openSUSE Marketing Team
Blog: http://saigkill.wordpress.com
Web: http://www.saschamanns.de
Web: http://www.open-slx.de (openSUSE Box Support German)
Web: http://www.open-slx.com (openSUSE Box Support English)
Open-SLX : Linux convenient, simple, secure and complete
| < Previous | Next > |