[opensuse-packaging] Permisson denied in %{_docdir}?
Hello mates, i'm just asking about a little thing in my shutter package. I have in my %install # create a Folder in docdir and move all relevant content to it %{__install} -d -m 644 %{buildroot}%{_docdir}/%{name} %{__cp} -pfr share/doc/%{name}/* %{buildroot}%{_docdir}/%{name} %{__cp} %{S:1} %{buildroot}%{_docdir}/%{name} The buildlog says: + /usr/bin/install -d -m 644 /home/abuild/rpmbuild/BUILDROOT/shutter-0.88.1-19.1.i386/usr/share/doc/packages/shutter + /bin/cp -pfr share/doc/shutter/COPYING share/doc/shutter/README /home/abuild/rpmbuild/BUILDROOT/shutter-0.88.1-19.1.i386/usr/share/doc/packages/shutter /bin/cp: cannot stat `/home/abuild/rpmbuild/BUILDROOT/shutter-0.88.1-19.1.i386/usr/share/doc/packages/shutter/COPYING': Permission denied /bin/cp: cannot stat `/home/abuild/rpmbuild/BUILDROOT/shutter-0.88.1-19.1.i386/usr/share/doc/packages/shutter/README': Permission denied Have i misunderstood anything? cu Sascha -- Sincerly yours Sascha Manns Community &Support Agent open-slx GmbH http://www.open-slx.de This mail is written with Balsam Professional 12.1
On Thu, 2011-12-08 at 16:14 +0100, Sascha Manns wrote:
%{__install} -d -m 644 %{buildroot}%{_docdir}/%{name}
You create a directory with read and write permission, but you lack eXecute on the directory. On a directory, execute means 'being allowed to enter the directory' Thus, create the dir with mode 755 and all is fine. Dominique -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Am Donnerstag, 8. Dezember 2011, 16:36:35 schrieb Dimstar / Dominique Leuenberger:
On Thu, 2011-12-08 at 16:14 +0100, Sascha Manns wrote:
%{__install} -d -m 644 %{buildroot}%{_docdir}/%{name}
You create a directory with read and write permission, but you lack eXecute on the directory.
On a directory, execute means 'being allowed to enter the directory'
Thus, create the dir with mode 755 and all is fine. That was it. Thanks for helping :-) -- Sincerly yours
Sascha Manns Community &Support Agent open-slx GmbH http://www.open-slx.de This mail is written with Balsam Professional 12.1
Hi; On 12/08/2011 04:14 PM, Sascha Manns wrote:
Hello mates,
i'm just asking about a little thing in my shutter package.
I have in my %install # create a Folder in docdir and move all relevant content to it %{__install} -d -m 644 %{buildroot}%{_docdir}/%{name} %{__cp} -pfr share/doc/%{name}/* %{buildroot}%{_docdir}/%{name} %{__cp} %{S:1} %{buildroot}%{_docdir}/%{name}
The buildlog says: + /usr/bin/install -d -m 644 /home/abuild/rpmbuild/BUILDROOT/shutter-0.88.1-19.1.i386/usr/share/doc/packages/shutter + /bin/cp -pfr share/doc/shutter/COPYING share/doc/shutter/README /home/abuild/rpmbuild/BUILDROOT/shutter-0.88.1-19.1.i386/usr/share/doc/packages/shutter /bin/cp: cannot stat `/home/abuild/rpmbuild/BUILDROOT/shutter-0.88.1-19.1.i386/usr/share/doc/packages/shutter/COPYING': Permission denied /bin/cp: cannot stat `/home/abuild/rpmbuild/BUILDROOT/shutter-0.88.1-19.1.i386/usr/share/doc/packages/shutter/README': Permission denied
Have i misunderstood anything?
Try using 755 instead of 644, the executable bit is needed to actually read the contents of directory. Regards. -- İsmail Dönmez - openSUSE Booster SUSE LINUX Products GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (3)
-
Dimstar / Dominique Leuenberger
-
Ismail Dönmez
-
Sascha Manns