Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge gdk-pixbuf=> mkdir: /usr/share...:Permission Denie
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Wed Jul 24, 2002 12:02 am    Post subject: emerge gdk-pixbuf=> mkdir: /usr/share...:Permission Denie Reply with quote

I encountered a very strange problem when I was trying to emerge gdk-pixbuf needed by galeon, even when I was root.

gentoo $ uname -a
Linux gentoo 2.4.19-gentoo-r7 #8 Tue Jul 23 18:55:41 EDT 2002 i686 GenuineIntel
Here is the error message:
================
/bin/sh ../mkinstalldirs /usr/share/gnome/html/gdk-pixbuf
mkdir /usr/share/gnome/html/gdk-pixbuf
ACCESS DENIED mkdir: /usr/share/gnome/html/gdk-pixbuf
mkdir: cannot create directory `/usr/share/gnome/html/gdk-pixbuf': Permission de
nied
make[2]: *** [install-data-local] Error 1
make[2]: Leaving directory `/var/tmp/portage/gdk-pixbuf-0.18.0-r1/work/gdk-pixbu
f-0.18.0/doc'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/gdk-pixbuf-0.18.0-r1/work/gdk-pixbu
f-0.18.0/doc'
make: *** [install-recursive] Error 1

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line 4, Exitcode 2
!!! (no error message)

--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-gdk-pixbuf-0.18.0-r1-18521.log"

mkdir: /usr/share/gnome/html/gdk-pixbuf
mkdir: /usr/share/gnome/html/gdk-pixbuf
--------------------------------------------------------------------------------
!!! emerge aborting on /usr/portage/media-libs/gdk-pixbuf/gdk-pixbuf-0.18.0-r1.
================

Any idea why?

Rowsen[/quote]
Back to top
enloop
n00b
n00b


Joined: 13 Jul 2002
Posts: 16

PostPosted: Wed Jul 24, 2002 1:00 am    Post subject: Reply with quote

Same thing happened here at just about the same time. I'd just finished a new install and emerged Galeon to pull in Mozilla and chunks of Gnome. The Galeon emerge worked just fine a few days ago in similar circumstances.
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Jul 24, 2002 4:28 am    Post subject: solved Reply with quote

There is a workaround to solve this:

export SANDBOX_DISABLED=1
Back to top
Guest
Guest





PostPosted: Wed Jul 24, 2002 11:22 am    Post subject: edit ebuild file Reply with quote

Hi,

another workaround, which I hope is correct, since I have been using gentoo for just 2 days now is the following. It worked for me:

Edit the file:

gdk-pixbuf-0.18.0-r1.ebuild

in /usr/portage/media-libs/gdk-pixbuf

and change the src_install() function as follows (add one line about datadir)

src_install() {

make prefix=${D}/usr \
datadir=${D}/usr/share \
sysconfdir=${D}/etc/X11/gdk-pixbuf \
install || die

#fix permissions on the loaders
chmod a+rx ${D}/usr/lib/gdk-pixbuf/loaders
chmod a+r ${D}/usr/lib/gdk-pixbuf/loaders/*

dodoc AUTHORS COPYING* ChangeLog INSTALL README NEWS TODO
}

emerge gdk-pixbuf again and it works... (at least for me ;-) )

Grtx,

Anton.
Back to top
Guest






PostPosted: Thu Jul 25, 2002 12:59 am    Post subject: Reply with quote

One change to the above fix, the file I had to edit was:
/usr/portage/media-libs/gdk-pixbuf/gdk-pixbuf-0.18.0.ebuild

the r1 file does not have the necessary setting of the prefix var.

cheers,
Back to top
bazik
Retired Dev
Retired Dev


Joined: 22 Jul 2002
Posts: 277
Location: Behind you.

PostPosted: Thu Jul 25, 2002 8:11 am    Post subject: Reply with quote

I try to install Gentoo on my main box since three days and it always fails at the first "emerge system", because of the same error (access denied) in the Perl package.
I will try the SANDBOX_DISABLED trick and hope it works, because everytime this bug happens, emerge is fscked up..even after a reboot :(
_________________
Gentoo Linux/Sparc Developer
http://dev.gentoo.org/~bazik/
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Jul 25, 2002 8:19 am    Post subject: Reply with quote

bAZiK wrote:
I try to install Gentoo on my main box since three days and it always fails at the first "emerge system", because of the same error (access denied) in the Perl package.

There used to be a problem between the Perl ebuild, libsandbox, and GCC 3 on certain architectures; see the GCC3 forum archives for details. The fix was to build libsandbox with -march=i486, and it should work that way automatically if you are on x86, but you might want to double-check the next time you remerge portage, and make sure that it is being compiled that way, or else Perl will probably not be the last of your sandbox compatibility problems.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
bazik
Retired Dev
Retired Dev


Joined: 22 Jul 2002
Posts: 277
Location: Behind you.

PostPosted: Thu Jul 25, 2002 9:35 am    Post subject: Reply with quote

rac wrote:
bAZiK wrote:
I try to install Gentoo on my main box since three days and it always fails at the first "emerge system", because of the same error (access denied) in the Perl package.

There used to be a problem between the Perl ebuild, libsandbox, and GCC 3 on certain architectures; see the GCC3 forum archives for details. The fix was to build libsandbox with -march=i486, and it should work that way automatically if you are on x86, but you might want to double-check the next time you remerge portage, and make sure that it is being compiled that way, or else Perl will probably not be the last of your sandbox compatibility problems.


Erm... I use Gentoo 1.2 with GCC 2.95.3 :)
Strange is, that it worked fine before on my Laptop with the same Boot CD (and the same version of Perl). Maybe it is a compiler problem... but I will try the DISABLED flag later today.

Thanks for your reply!
_________________
Gentoo Linux/Sparc Developer
http://dev.gentoo.org/~bazik/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum