Re: [gentoo-user] emerge failes

2003-11-27 Thread Michael Spohn
> Hi,
> 
> Try the script:
> 
> #! /bin/sh
> echo "Hello World!"
> 
> This IMHO shouldn't work
> 
> Regards
> Frank

Hi,

it does 

Regards, Michael


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] emerge failes

2003-11-27 Thread Frank Schäfer
On Wed, 2003-11-26 at 19:03, Michael Spohn wrote:
> > Are you able to run /bin/sh by itself?  My hunch is a hard drive problem
> > because everything else looks OK.
> 
> No problem at all.
> 
> Even a script "hello"
> 
> #!/bin/sh
> echo "Hello World"
> 
> produces "Hello World"
> 
> It drives me crazygggrrr
> 
> Michael
> 
> 
> 
> --
> [EMAIL PROTECTED] mailing list

Hi,

Try the script:

#! /bin/sh
echo "Hello World!"

This IMHO shouldn't work

Regards
Frank



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] emerge failes

2003-11-26 Thread Michael Spohn

> Are you able to run /bin/sh by itself?  My hunch is a hard drive problem
> because everything else looks OK.

No problem at all.

Even a script "hello"

#!/bin/sh
echo "Hello World"

produces "Hello World"

It drives me crazygggrrr

Michael



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] emerge failes

2003-11-26 Thread John Ziniti
Michael Spohn wrote:
It gives #! /bin/sh but thats ok I thing.

lrwxrwxrwx1 root root4 2003-11-12 22:34 sh -> bash
Are you able to run /bin/sh by itself?  My hunch is a hard drive problem
because everything else looks OK.


--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] emerge failes

2003-11-26 Thread Michael Spohn

> If "head -n 1 configure" gives you "#/bin/sh" then there is a problem with 
> either the symlink /bin/sh or the executable /bin/bash. Your running from 
> bash, so I suspect the symlink is missing or pointing to the wrong file.

It gives #! /bin/sh but thats ok I thing.

[EMAIL PROTECTED] bin # ls -ahl *sh
-rwxr-xr-x1 root root 719K 2003-11-12 22:34 bash
lrwxrwxrwx1 root root9 2003-11-01 20:36 csh ->
/bin/tcsh
lrwxrwxrwx1 root root   10 2003-11-06 11:11 ksh ->
/bin/ksh93
lrwxrwxrwx1 root root4 2003-11-12 22:34 rbash ->
bash
-rwxr-xr-x1 root root  71K 2003-10-31 19:48 sash
lrwxrwxrwx1 root root4 2003-11-12 22:34 sh -> bash
-r-xr-xr-x1 root root 381K 2003-11-01 20:36 tcsh

Since I can't emerge bash anymore, is there a possibility to get the
binary to replace the existing file ?

Michael



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] emerge failes

2003-11-26 Thread Jason Stubbs
On Wednesday 26 November 2003 23:10, Michael Spohn wrote:
(B> > The sandboxing is what you turned off earlier. After a failed bash
(B> > emerge, try going to /var/tmp/portage/bash-/work/bash-
(B> > and then running ./configure and seeing what happens. If it's not a
(B> > problem with sandboxing and you have a /bin/sh symlink then I have no
(B> > idea what is wrong, though.
(B>
(B> [EMAIL PROTECTED] bash-2.05b # ./configure
(B> bash: ./configure: /bin/sh: bad interpreter: Permission denied
(B
(BIf "head -n 1 configure" gives you "#/bin/sh" then there is a problem with 
(Beither the symlink /bin/sh or the executable /bin/bash. Your running from 
(Bbash, so I suspect the symlink is missing or pointing to the wrong file.
(B
(BJason
(B
(B--
(B[EMAIL PROTECTED] mailing list

Re: [gentoo-user] emerge failes

2003-11-26 Thread Michael Spohn
> The sandboxing is what you turned off earlier. After a failed bash emerge, try 
> going to /var/tmp/portage/bash-/work/bash- and then 
> running ./configure and seeing what happens. If it's not a problem with 
> sandboxing and you have a /bin/sh symlink then I have no idea what is wrong, 
> though.

[EMAIL PROTECTED] bash-2.05b # ./configure
bash: ./configure: /bin/sh: bad interpreter: Permission denied


Michael




--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] emerge failes

2003-11-26 Thread Jason Stubbs
On Wednesday 26 November 2003 21:55, Michael Spohn wrote:
(B> > > ACCEPT_KEYWORDS="x86 ~x86"
(B> >
(B> > The x86 is redundant but shouldn't cause a problem.
(B>
(B> By a mistake I had this once ACCEPT_KEYWORDS="x86 ~x86"in my make.conf -
(B> I changed it two or three weeks ago to: ACCEPT_KEYWORDS="~x86"
(B>
(B> > > FEATURES="sandbox ccache autoaddcvs"
(B> >
(B> > sandbox should be okay but try bash with 'FEATURES="-sandbox" emerge
(B> > bash' just to be sure. If it does work, it's not a perminent solution but
(B> > it's a start.
(B>
(B> Ok. But same result.
(B>
(B> > > USE="x86 oss avi crypt cups encode foomaticdb gif jpeg kde libg++ mad
(B> > > mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms
(B> > > xv ...
(B> > > tiff transcode trusted uclibc usagi usb v4l videos xfs xine xinerama
(B> > > xosd xvid -apm"
(B> >
(B> > That's a lot of use flags!
(B>
(B> I used ufed and checked them just to be sure ...
(B>
(B> > I take it whois doesn't use a configure script. Actually, another idea
(B> > would be to kill your PORTAGE_TMPDIR (rm -rf /var/tmp/portage). Try that
(B> > before the above because the problem should be fixed if it works.
(B> > Otherwise, sounds like something wrong with sandboxing.
(B>
(B> Did rm -rf /var/tmp/portage - nothing. Whats that sandboxing thing. Can
(B> I disable or emerge it? I really don't want to install and compile it
(B> all again.
(B
(BThe sandboxing is what you turned off earlier. After a failed bash emerge, try 
(Bgoing to /var/tmp/portage/bash-/work/bash- and then 
(Brunning ./configure and seeing what happens. If it's not a problem with 
(Bsandboxing and you have a /bin/sh symlink then I have no idea what is wrong, 
(Bthough.
(B
(BJason
(B
(B--
(B[EMAIL PROTECTED] mailing list

Re: [gentoo-user] emerge failes

2003-11-26 Thread Michael Spohn
> > ACCEPT_KEYWORDS="x86 ~x86"
> 
> The x86 is redundant but shouldn't cause a problem.
> 
By a mistake I had this once ACCEPT_KEYWORDS="x86 ~x86"in my make.conf -
I changed it two or three weeks ago to: ACCEPT_KEYWORDS="~x86"

> > FEATURES="sandbox ccache autoaddcvs"
> 
> sandbox should be okay but try bash with 'FEATURES="-sandbox" emerge bash' 
> just to be sure. If it does work, it's not a perminent solution but it's a 
> start.
> 
Ok. But same result.

> > USE="x86 oss avi crypt cups encode foomaticdb gif jpeg kde libg++ mad
> > mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv
> > ...
> > tiff transcode trusted uclibc usagi usb v4l videos xfs xine xinerama
> > xosd xvid -apm"
> 
> That's a lot of use flags!

I used ufed and checked them just to be sure ...

> I take it whois doesn't use a configure script. Actually, another idea would 
> be to kill your PORTAGE_TMPDIR (rm -rf /var/tmp/portage). Try that before the 
> above because the problem should be fixed if it works. Otherwise, sounds like 
> something wrong with sandboxing.

Did rm -rf /var/tmp/portage - nothing. Whats that sandboxing thing. Can
I disable or emerge it? I really don't want to install and compile it
all again.

Michael



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] emerge failes

2003-11-26 Thread Jason Stubbs
On Wednesday 26 November 2003 19:56, Michael Spohn wrote:
(B> ACCEPT_KEYWORDS="x86 ~x86"
(B
(BThe x86 is redundant but shouldn't cause a problem.
(B
(B> FEATURES="sandbox ccache autoaddcvs"
(B
(Bsandbox should be okay but try bash with 'FEATURES="-sandbox" emerge bash' 
(Bjust to be sure. If it does work, it's not a perminent solution but it's a 
(Bstart.
(B
(B> USE="x86 oss avi crypt cups encode foomaticdb gif jpeg kde libg++ mad
(B> mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv
(B> zlib directfb gtkhtml alsa gdbm berkdb slang readline arts tetex aalib
(B> bonobo svga tcltk mysql X sdl gpm tcpd pam libwww ssl perl python esd
(B> imlib oggvorbis gnome gtk qt motif opengl mozilla gphoto2 ldap cdr
(B> scanner aavm acpi acpi4linux apache2 bluetooth cgi doc dv dvd evms2 evo
(B> fbcon fbdev ffmpeg foreign-package foreign-sysvinit gb gstreamer gtk2
(B> imagemagick imap ipv6 irda irmc java javascript lcms libgda lirc maildir
(B> mcal md5sum mdb mmx oav offensive pcmcia php samba sdk sqlite stroke
(B> tiff transcode trusted uclibc usagi usb v4l videos xfs xine xinerama
(B> xosd xvid -apm"
(B
(BThat's a lot of use flags!
(B
(B> I emerged whois without any problems, but when emerging bash for example
(B> it stops with:
(B>
(B> ...
(B>  * Applying
(B> bash-2.05b-empty-herestring.patch...   
(B> [ ok ] * Applying
(B> bash-2.05b-rbash.patch...  
(B> [ ok ]>>> Source unpacked.
(B> /usr/sbin/ebuild.sh: ./configure: /bin/sh: bad interpreter: No
(B> Permission
(B>
(B> !!! ERROR: app-shells/bash-2.05b-r8 failed.
(B> !!! Function econf, Line 338, Exitcode 126
(B> !!! econf failed
(B
(BI take it whois doesn't use a configure script. Actually, another idea would 
(Bbe to kill your PORTAGE_TMPDIR (rm -rf /var/tmp/portage). Try that before the 
(Babove because the problem should be fixed if it works. Otherwise, sounds like 
(Bsomething wrong with sandboxing.
(B
(BJason
(B
(B--
(B[EMAIL PROTECTED] mailing list

Re: [gentoo-user] emerge failes

2003-11-26 Thread Michael Spohn

> Other than python being 902K - mine's only 688K? Everything looks fine. Does 
> python work? What about if you run "python /usr/bin/emerge "? 
> Actually, just looking at your original e-mail, I think that it will work 
> (the same) and I'm way off track. What does emerge info give you?
> 
> Jason

Hello Jason,

thank you for your help so far!

[EMAIL PROTECTED] root # emerge info
Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9,
2.6.0-test9-gentoo)
=
System uname: 2.6.0-test9-gentoo i686 Intel(R) Pentium(R) 4 Mobile CPU
1.80GHz
Gentoo Base System version 1.4.3.12
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -mcpu=i686 -funroll-loops -pipe
-fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/X11R6/lib/X11/xkb /usr/kde/3.2/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/xdvi/ /usr/share/config /var/qmail/control
/var/qmail/alias"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -mcpu=i686 -funroll-loops -pipe
-fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="http://212.219.247.18/sites/www.ibiblio.org/gentoo/
http://212.219.247.20/sites/www.ibiblio.org/gentoo/
http://212.219.247.14/sites/www.ibiblio.org/gentoo/
http://212.219.247.15/sites/www.ibiblio.org/gentoo/
http://212.219.247.19/sites/www.ibiblio.org/gentoo/";
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss avi crypt cups encode foomaticdb gif jpeg kde libg++ mad
mikmod mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv
zlib directfb gtkhtml alsa gdbm berkdb slang readline arts tetex aalib
bonobo svga tcltk mysql X sdl gpm tcpd pam libwww ssl perl python esd
imlib oggvorbis gnome gtk qt motif opengl mozilla gphoto2 ldap cdr
scanner aavm acpi acpi4linux apache2 bluetooth cgi doc dv dvd evms2 evo
fbcon fbdev ffmpeg foreign-package foreign-sysvinit gb gstreamer gtk2
imagemagick imap ipv6 irda irmc java javascript lcms libgda lirc maildir
mcal md5sum mdb mmx oav offensive pcmcia php samba sdk sqlite stroke
tiff transcode trusted uclibc usagi usb v4l videos xfs xine xinerama
xosd xvid -apm"

I emerged whois without any problems, but when emerging bash for example
it stops with:

...
 * Applying
bash-2.05b-empty-herestring.patch...   
 [ ok ] * Applying bash-2.05b-rbash.patch...   
[ ok ]>>> Source 
unpacked.
/usr/sbin/ebuild.sh: ./configure: /bin/sh: bad interpreter: No
Permission

!!! ERROR: app-shells/bash-2.05b-r8 failed.
!!! Function econf, Line 338, Exitcode 126
!!! econf failed
 
Michael




--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] emerge failes

2003-11-26 Thread Jason Stubbs
On Wednesday 26 November 2003 19:09, Michael Spohn wrote:
(B> > Check out /usr/bin/python then.
(B> >
(B> > Jason
(B>
(B> ls -ahl /usr/bin/pyt*
(B>
(B> lrwxrwxrwx1 root root9 2003-11-13 01:05
(B> /usr/bin/python -> python2.2
(B> lrwxrwxrwx1 root root9 2003-11-13 01:05
(B> /usr/bin/python2 -> python2.2
(B> -rwxr-xr-x1 root root 902K 2003-11-13 01:04
(B> /usr/bin/python2.2
(B> -rwxr-xr-x1 root root  178 2003-11-13 01:04
(B> /usr/bin/python-config
(B>
(B> Does that look that ok ?
(B
(BOther than python being 902K - mine's only 688K? Everything looks fine. Does 
(Bpython work? What about if you run "python /usr/bin/emerge "? 
(BActually, just looking at your original e-mail, I think that it will work 
(B(the same) and I'm way off track. What does emerge info give you?
(B
(BJason
(B
(B--
(B[EMAIL PROTECTED] mailing list

Re: [gentoo-user] emerge failes

2003-11-26 Thread Michael Spohn

> Check out /usr/bin/python then.
> 
> Jason

ls -ahl /usr/bin/pyt*

lrwxrwxrwx1 root root9 2003-11-13 01:05
/usr/bin/python -> python2.2
lrwxrwxrwx1 root root9 2003-11-13 01:05
/usr/bin/python2 -> python2.2
-rwxr-xr-x1 root root 902K 2003-11-13 01:04
/usr/bin/python2.2
-rwxr-xr-x1 root root  178 2003-11-13 01:04
/usr/bin/python-config

Does that look that ok ?

Michael


--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] emerge failes

2003-11-25 Thread Jason Stubbs
On Wednesday 26 November 2003 04:43, Michael Spohn wrote:
(B> > Does /bin/sh exist? It should be a symlink to /bin/bash. To fix that:
(B> > ln -sf /bin/bash /bin/sh
(B> >
(B> > Also, check permissions on /bin/bash (although I'd think that you'd be
(B> > operating from bash). Should be:
(B> > bash-2.05b$ ls -l /bin/bash
(B> > -rwxr-xr-x1 root root   632976 Nov  1 23:47 /bin/bash
(B> >
(B> > Fix it with (if you have permission to):
(B> > chmod 755 /bin/bash
(B> > chown root:root /bin/bash
(B>
(B> It's all like it should be. Something else must be going wrong. :-(
(B
(BCheck out /usr/bin/python then.
(B
(BJason
(B
(B--
(B[EMAIL PROTECTED] mailing list

Re: [gentoo-user] emerge failes

2003-11-25 Thread Michael Spohn

> Does /bin/sh exist? It should be a symlink to /bin/bash. To fix that:
> ln -sf /bin/bash /bin/sh
> 
> Also, check permissions on /bin/bash (although I'd think that you'd be 
> operating from bash). Should be:
> bash-2.05b$ ls -l /bin/bash
> -rwxr-xr-x1 root root   632976 Nov  1 23:47 /bin/bash
> 
> Fix it with (if you have permission to):
> chmod 755 /bin/bash
> chown root:root /bin/bash

It's all like it should be. Something else must be going wrong. :-(

Michael



--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] emerge failes

2003-11-25 Thread Jason Stubbs
On Tuesday 25 November 2003 21:23, Michael Spohn wrote:
(B> Hello all,
(B>
(B> I got stuck with emerge and don't know whats going wrong. Whatever I try
(B> to emerge it failes with:
(B>
(B> /usr/sbin/ebuild.sh: ./configure: /bin/sh: bad interpreter: permission
(B> denied
(B
(BDoes /bin/sh exist? It should be a symlink to /bin/bash. To fix that:
(Bln -sf /bin/bash /bin/sh
(B
(BAlso, check permissions on /bin/bash (although I'd think that you'd be 
(Boperating from bash). Should be:
(Bbash-2.05b$ ls -l /bin/bash
(B-rwxr-xr-x1 root root   632976 Nov  1 23:47 /bin/bash
(B
(BFix it with (if you have permission to):
(Bchmod 755 /bin/bash
(Bchown root:root /bin/bash
(B
(BJason
(B
(B--
(B[EMAIL PROTECTED] mailing list