[opensuse-packaging] Question about chmod
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
* Sascha 'saigkill' Manns
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}
You can simply replace all of the above with %__install -D -p -m 755 program/%{name} %{buildroot}%{_bindir}/%{name} -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hello Guido, hello list, Am Sonntag, 14. November 2010 17:47:03 wrote Guido Berhoerster:
* Sascha 'saigkill' Manns
[2010-11-14 [...] You can simply replace all of the above with %__install -D -p -m 755 program/%{name} %{buildroot}%{_bindir}/%{name} Thanks for answering. I've tried it out, but the Package installs only a File without execution permissions in /usr/bin. Maybe i have anything misconfigured.
If you like to see the buildlog, you can see it in: home:saigkill/whohas. Have a nice evening... -- 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
On Sun, 14 Nov 2010 18:46:45 +0100
"Sascha 'saigkill' Manns"
Hello Guido, hello list,
Am Sonntag, 14. November 2010 17:47:03 wrote Guido Berhoerster:
* Sascha 'saigkill' Manns
[2010-11-14 [...] You can simply replace all of the above with %__install -D -p -m 755 program/%{name} %{buildroot}%{_bindir}/%{name} Thanks for answering. I've tried it out, but the Package installs only a File without execution permissions in /usr/bin. Maybe i have anything misconfigured.
If you like to see the buildlog, you can see it in: home:saigkill/whohas.
Have a nice evening...
Hi Just set the attribute in the %files section... %attr(0755,root,root) %{_bindir}/%{name} -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.24-0.2-default up 2 days 2:07, 2 users, load average: 0.05, 0.14, 0.17 GPU GeForce 8600 GTS Silent - Driver Version: 260.19.21 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Am Sonntag, 14. November 2010 19:05:24 wrote Malcolm:
On Sun, 14 Nov 2010 18:46:45 +0100
"Sascha 'saigkill' Manns"
wrote: Hello Guido, hello list,
Am Sonntag, 14. November 2010 17:47:03 wrote Guido Berhoerster:
* Sascha 'saigkill' Manns
[2010-11-14 [...]
You can simply replace all of the above with
%__install -D -p -m 755 program/%{name} %{buildroot}%{_bindir}/%{name}
Thanks for answering. I've tried it out, but the Package installs only a File without execution permissions in /usr/bin. Maybe i have anything misconfigured.
If you like to see the buildlog, you can see it in: home:saigkill/whohas.
Have a nice evening...
Hi Just set the attribute in the %files section...
%attr(0755,root,root) %{_bindir}/%{name} Great thats works. Thank you very much for helping :-) -- 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
Am Sonntag, 14. November 2010 19:05:24 wrote Malcolm:
On Sun, 14 Nov 2010 18:46:45 +0100
"Sascha 'saigkill' Manns"
wrote: Hello Guido, hello list,
Am Sonntag, 14. November 2010 17:47:03 wrote Guido Berhoerster:
* Sascha 'saigkill' Manns
[2010-11-14 [...]
You can simply replace all of the above with
%__install -D -p -m 755 program/%{name} %{buildroot}%{_bindir}/%{name}
Thanks for answering. I've tried it out, but the Package installs only a File without execution permissions in /usr/bin. Maybe i have anything misconfigured.
If you like to see the buildlog, you can see it in: home:saigkill/whohas.
Have a nice evening...
Hi Just set the attribute in the %files section...
%attr(0755,root,root) %{_bindir}/%{name} Great thats works. Thank you very much for helping :-) Looks like some patching of the perl script (you might want to change
On Sun, 14 Nov 2010 19:41:32 +0100
"Sascha 'saigkill' Manns"
Am Sonntag, 14. November 2010 19:50:57 wrote Malcolm:
On Sun, 14 Nov 2010 19:41:32 +0100
"Sascha 'saigkill' Manns"
wrote: Am Sonntag, 14. November 2010 19:05:24 wrote Malcolm:
On Sun, 14 Nov 2010 18:46:45 +0100
"Sascha 'saigkill' Manns"
wrote: Hello Guido, hello list,
Am Sonntag, 14. November 2010 17:47:03 wrote Guido Berhoerster:
* Sascha 'saigkill' Manns
[2010-11-14 [...]
You can simply replace all of the above with
%__install -D -p -m 755 program/%{name} %{buildroot}%{_bindir}/%{name}
Thanks for answering. I've tried it out, but the Package installs only a File without execution permissions in /usr/bin. Maybe i have anything misconfigured.
If you like to see the buildlog, you can see it in: home:saigkill/whohas.
Have a nice evening...
Hi Just set the attribute in the %files section...
%attr(0755,root,root) %{_bindir}/%{name}
Great thats works. Thank you very much for helping :-)
Looks like some patching of the perl script (you might want to change the comment in your spec file from binary ;) ) to get it working with openSUSE, it's still set to 11.2 and the search method has changed... Just now done :-) -- 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
On Sun, 14 Nov 2010 20:21:01 +0100
"Sascha 'saigkill' Manns"
Am Sonntag, 14. November 2010 19:50:57 wrote Malcolm:
On Sun, 14 Nov 2010 19:41:32 +0100
"Sascha 'saigkill' Manns"
wrote: Am Sonntag, 14. November 2010 19:05:24 wrote Malcolm:
On Sun, 14 Nov 2010 18:46:45 +0100
"Sascha 'saigkill' Manns"
wrote: Hello Guido, hello list,
Am Sonntag, 14. November 2010 17:47:03 wrote Guido Berhoerster:
* Sascha 'saigkill' Manns
[2010-11-14 [...]
You can simply replace all of the above with
%__install -D -p -m 755 program/%{name} %{buildroot}%{_bindir}/%{name}
Thanks for answering. I've tried it out, but the Package installs only a File without execution permissions in /usr/bin. Maybe i have anything misconfigured.
If you like to see the buildlog, you can see it in: home:saigkill/whohas.
Have a nice evening...
Hi Just set the attribute in the %files section...
%attr(0755,root,root) %{_bindir}/%{name}
Great thats works. Thank you very much for helping :-)
Looks like some patching of the perl script (you might want to change the comment in your spec file from binary ;) ) to get it working with openSUSE, it's still set to 11.2 and the search method has changed... Just now done :-) Hi Still not enough ;)
For example; whohas medit |grep "medit" | sort I get; Tried fetching "http://software.opensuse.org/search/search/?q=medit&baseproject=openSUSE:11.3" five times. Giving up. The search is; http://software.opensuse.org/search?q=medit&baseproject=openSUSE%3A11.3&lang=en Hmmmm... -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.24-0.2-default up 2 days 3:44, 3 users, load average: 0.02, 0.05, 0.08 GPU GeForce 8600 GTS Silent - Driver Version: 260.19.21 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi Malcolm, Am Sonntag, 14. November 2010 20:44:27 wrote Malcolm: > whohas medit |grep "medit" | sort > > I get; > Tried fetching > "http://software.opensuse.org/search/search/?q=medit&baseproject=ope > nSUSE:11.3" five times. Giving up. > > The search is; > http://software.opensuse.org/search?q=medit&baseproject=openSUSE%3A11 > .3&lang=en > > Hmmmm... Very strange. I've added a patch that changes the Release from 11.2 to 11.3. And i've fixed the URL from: - my $opensusebase = "http://software.opensuse.org/search/search/"; + my $opensusebade = "http://software.opensuse.org/search/"; Later it is used in (ATM unchanged): my @lines = split /\n/, &fetchdoc($opensusebase."?q=". $_[0]."&baseproject=openSUSE:".$release_string); With this patch i'm getting output from all other Distros, but no openSUSE is listed. But the Error "Tried to fetch ..." is away. @Malcolm. Can you try to use it please? Can you confirm that? cu Sascha -- 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
On Sun, 14 Nov 2010 21:51:50 +0100
"Sascha 'saigkill' Manns"
Hi Malcolm,
@Malcolm. Can you try to use it please? Can you confirm that?
Hi Sascha Here is the diff to make it work; http://susepaste.org/81309738 However, it still needs work to get branches added. Also some more coding to add the project url on https://build.opensuse.org so will add some code, branch the package and push a SR through if you want? -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.24-0.2-default up 2 days 8:53, 3 users, load average: 0.02, 0.04, 0.06 GPU GeForce 8600 GTS Silent - Driver Version: 260.19.21 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
Hi Malcolm. Am Montag, 15. November 2010 02:03:58 wrote Malcolm:
Here is the diff to make it work; http://susepaste.org/81309738 Great :-) That works. I've updated the patch and commited it to the repo.
However, it still needs work to get branches added. Also some more coding to add the project url on https://build.opensuse.org so will add some code, branch the package and push a SR through if you want? Sure, you're welcome. Please send SR zu home:saigkill not openSUSE:Factory:Contrib.
ATM it looks very good. The only thing, i miss is, that the program doesn't shows the Versionnumbers in openSUSE. Greetings Sascha -- 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
On Mon, 15 Nov 2010 10:28:12 +0100
"Sascha 'saigkill' Manns"
Hi Malcolm.
Am Montag, 15. November 2010 02:03:58 wrote Malcolm:
Here is the diff to make it work; http://susepaste.org/81309738 Great :-) That works. I've updated the patch and commited it to the repo.
However, it still needs work to get branches added. Also some more coding to add the project url on https://build.opensuse.org so will add some code, branch the package and push a SR through if you want? Sure, you're welcome. Please send SR zu home:saigkill not openSUSE:Factory:Contrib.
ATM it looks very good. The only thing, i miss is, that the program doesn't shows the Versionnumbers in openSUSE.
Greetings Sascha
Hi It does if you just use; whohas <name> -- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.32.24-0.2-default up 2 days 20:43, 3 users, load average: 0.40, 0.17, 0.05 GPU GeForce 8600 GTS Silent - Driver Version: 260.19.21 -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
* Sascha 'saigkill' Manns
Hello Guido, hello list,
Am Sonntag, 14. November 2010 17:47:03 wrote Guido Berhoerster:
* Sascha 'saigkill' Manns
[2010-11-14 [...] You can simply replace all of the above with %__install -D -p -m 755 program/%{name} %{buildroot}%{_bindir}/%{name} Thanks for answering. I've tried it out, but the Package installs only a File without execution permissions in /usr/bin. Maybe i have anything misconfigured.
Seems like it because the above is correct. Why are you using all these find calls instead of just a simple chmod on all the files? Anyway, I've attached a fixed version of the specfile which simply chmods the documentation and uses install for the manpages and script. -- Guido Berhoerster
* Sascha 'saigkill' Manns
[2010-11-14 18:47]: Hello Guido, hello list,
Am Sonntag, 14. November 2010 17:47:03 wrote Guido Berhoerster:
* Sascha 'saigkill' Manns
[2010-11-14 [...]
You can simply replace all of the above with
%__install -D -p -m 755 program/%{name} %{buildroot}%{_bindir}/%{name}
Thanks for answering. I've tried it out, but the Package installs only a File without execution permissions in /usr/bin. Maybe i have anything misconfigured.
Seems like it because the above is correct. Why are you using all these find calls instead of just a simple chmod on all the files? Anyway, I've attached a fixed version of the specfile which simply chmods the documentation and uses install for the manpages and script. Your proposal looks many better than mine. Thank you. I've fixed these
Am Sonntag, 14. November 2010 19:58:21 wrote Guido Berhoerster: things in the spec :-) -- 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
On Sunday 14 November 2010, Sascha 'saigkill' Manns wrote:
+ 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?
the find does not find anything, for whatever reason. to avoid the error message, add "--no-run-if-empty" to xargs invocation. Greetings, Dirk -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (4)
-
Dirk Müller
-
Guido Berhoerster
-
Malcolm
-
Sascha 'saigkill' Manns