Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing portage on other distros, easier than ever
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, ... 11, 12, 13  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Wed Mar 03, 2004 10:59 pm    Post subject: Reply with quote

Rats, it still doesn't work.

I removed the .sh extension and here is the output I got:

Code:
bash-2.05b# ./Portage
./Portage: line 7:  : command not found
./Portage: line 11:  : command not found
./Portage: line 13:  : command not found
./Portage: line 19:  : command not found
./Portage: line 27:  : command not found
./Portage: line 36: syntax error near unexpected token `then'
./Portage: line 36: `    if [ ! -f portage-2.0.50-r1.tar.bz2 ];then '
bash-2.05b#


I guess there is a good reason for this - probably because I didn't understand the other stuff you wrote. (Hey kill me if you want - but I admit I'm not a programmer).

I just want to learn how to do it this once - and if I get it going no matter what distro I am using, I think I will always use Portage.

GJ
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2732
Location: Bay Area, CA

PostPosted: Wed Mar 03, 2004 11:47 pm    Post subject: Reply with quote

it is the bash/sh compatibility issue. A statement like

Code:
if [ "again" == "again" ]; then
echo "DONE"
fi


will execute under bash but not under standard sh.

does the above code cut and pasted directly into a shell, execute? now cut and paste the same thing into a file and execute the file like "/bin/bash -c <filename>", post the results. post the output of "echo $SHELL" as well.
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Thu Mar 04, 2004 1:54 am    Post subject: Reply with quote

Yes it executes cleanly. Here is the output:

Code:
root@raid517:~# if [ "again" == "again" ]; then
>  echo "DONE"
>  fi
DONE
root@raid517:~# ./Test
DONE
root@raid517:~#


Thanks for helping out like this BTW.

GJ
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2732
Location: Bay Area, CA

PostPosted: Thu Mar 04, 2004 2:01 am    Post subject: Reply with quote

cut and paste the script from page 1 (only select green text) again into a new file,
Code:
chmod +x <filename>
and without any editing, do a
Code:
/bin/bash -c <filename>


post the file back here as well, so I can cut and paste it and test it. this is bizzare...
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Thu Mar 04, 2004 2:23 am    Post subject: Reply with quote

As requested - I simply renamed the file test2 - since my last test was test1.

Code:
bash-2.05b# chmod +x test2
bash-2.05b# /bin/bash -c test2
/bin/bash: line 1: test2: command not found
bash-2.05b# /bin/bash -c test2


Code:
#!/bin/bash
 #
 # call with one argument "again" or call it with no arguments at all
 # call it with no arguments first time.
 # call it again with "again" to bypass some operations.
 #
                                                                                
 if [ "$#" == "1" ];then
    again=$1
 else
    again=""
 fi
                                                                                
 if [ "`id -u`" != "0" ]; then
    echo ""
    echo "Su as root and try again."
    echo ""
 fi
                                                                                
 pythonV=`python -V 2>&1`
 if [ "$pythonV" \< "Python 2.2.0" ];then
    echo ""
    echo "Install python 2.2 and then try again"
    echo ""
    exit 1
 fi
                                                                                
 if [ "$again" == "" ];then
    mkdir -p /usr/lib/portage/bin
    mkdir -p /usr/lib/portage/pym
    mkdir -p /usr/portage/profiles
    mkdir /etc/env.d
                                                                                
    wget ftp://gentoo.mirrors.pair.com/distfiles/portage-2.0.50-r1.tar.bz2 -O /tmp/portage-2.0.50-r1.tar.bz2
    cd /tmp
    if [ ! -f portage-2.0.50-r1.tar.bz2 ];then
       echo ""
       echo "Mirror error. Try this script again after a while without any args".
       echo ""
       exit 1
    fi
    tar jxf portage-2.0.50-r1.tar.bz2
                                                                                
    cd portage-2.0.50-r1/bin
    cp * /usr/lib/portage/bin
    export PATH=/usr/lib/portage/bin:$PATH
    cd ../pym ; cp * /usr/lib/portage/pym/
    cd ../man ;cp *.1 /usr/man/man1 ;cp *.5 /usr/man/man5
    cd ../src/python-missingos
    ./setup.py install
    cd ../sandbox-1.1
    make && make install
    cd ../../cnf; cp * /etc
                                                                                
    if [ "`id portage`" == "" ]; then
       groupadd -g 250 portage
       useradd -d /var/tmp/portage -g portage -u 250 portage
    fi
                                                                                
    cd /usr/sbin
    ln -s ../lib/portage/bin/regenworld .
    ln -s ../lib/portage/bin/pkgmerge .
    ln -s ../lib/portage/bin/fixpackages .
    ln -s ../lib/portage/bin/etc-update .
    ln -s ../lib/portage/bin/env-update .
    ln -s ../lib/portage/bin/emerge-webrsync .
    ln -s ../lib/portage/bin/ebuild.sh .
    ln -s ../lib/portage/bin/ebuild .
    ln -s ../lib/portage/bin/dispatch-conf .
    ln -s ../lib/portage/bin/archive-conf .
                                                                                
    cd /usr/bin
    ln -s ../lib/portage/bin/xpak .
    ln -s ../lib/portage/bin/repoman .
    ln -s ../lib/portage/bin/quickpkg .
    ln -s ../lib/portage/bin/portageq .
    ln -s ../lib/portage/bin/g-cpan.pl .
    ln -s ../lib/portage/bin/emerge .
 fi
                    
 export PATH=/usr/lib/portage/bin:$PATH                                                         
 echo "CC=gcc;CXX=g++" > /etc/env.d/compilers.sh
 echo "LDPATH=\"/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib:/usr/kerberos/lib\"" > /etc/env.d/10ldpath
 . /etc/env.d/compilers.sh
 emerge sync
 #
 # emerge sync should get /usr/portage/profiles
 #
 if [ -d /usr/portage/profiles/default-x86-1.4 ];then
    ln -s /usr/portage/profiles/default-x86-1.4 /etc/make.profile
 else
    echo ""
    echo "Something wrong. Get /usr/portage/profiles dir from a working"
    echo "Gentoo system and try again."
    echo ""
    exit 1
 fi
                                                                                
 # inject the "dangerous" packages first.
 glibcP=`emerge -p -O glibc|grep ebuild|cut -d" " -f8`
 emerge inject $glibcP
 gccP=`emerge -p -O gcc|grep ebuild|cut -d" " -f8`
 emerge inject $gccP
 binP=`emerge -p -O binutils|grep ebuild|cut -d" " -f8`
 emerge inject $binP
                                                                                
 # fetch the baselayout.
 emerge -f -O baselayout
                                                                                
 # now inject it too.
 baseP=`emerge -p -O baselayout|grep ebuild|cut -d" " -f8`
 emerge inject $baseP
 
 #was inject success
 ret=`emerge -p baselayout|grep "ebuild   R"`
 
 if [ "$ret" == "" ] ;then
   echo "Inject has failed. Please verify and continue with cut & paste of rest of the steps"
   echo "ERROR."
   exit 1
 fi
                                                                                
 # if it fails with some errors, its fine.
 emerge portage
                                                                                
 cd /tmp
 cp /usr/portage/distfiles/rc-scripts*.tar.bz2 .
 tar xjpf rc-scripts*.tar.bz2
 cd rc-scripts*/sbin
 cp depscan.sh /sbin; cp functions.sh /sbin
 mkdir -p /lib/rcscripts/awk
 cd ../src/awk
 cp *.awk /lib/rcscripts/awk/
 cd /etc/init.d
 ln -s /sbin/depscan.sh .
 ln -s /sbin/functions.sh .
                                                                                
 emerge gawk
 
 # FOLLOWING SHOULD NOT GIVE ANY ERRORS HERE. You screwed up if it did.
 emerge portage
                                                                                
 if ! fgrep -q "/etc/profile.env" /etc/profile ; then
   echo ". /etc/profile.env" >> /etc/profile
 fi
                                                                                
 echo ""
 echo "#############################################################"
 echo "You are now free to enjoy portage. Make sure you tune"
 echo "/etc/make.conf and other portage configuration files to take"
 echo "advantage of portage. If you screwed up, its OK. Pick yourself"
 echo "up and give it another go."
 echo "#############################################################"
 echo ""
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2732
Location: Bay Area, CA

PostPosted: Thu Mar 04, 2004 3:06 am    Post subject: Reply with quote

"." is not in PATH, either add that or run like this
Code:
/bin/bash -c ./test2
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Thu Mar 04, 2004 4:38 am    Post subject: Reply with quote

Dude I will do it tomorrow I promise. It's too late now. But I really do hope you check back. I mean once I get this done - like I said it doesn't matter what distro I use any more - I will always be able to run portage.

I wish there was just some kind of standard Gentoo install I could use like a stage 5 or 6 with full GUI etc so I wouldn't need to do stuff like this. Oh well I guess people have been asking for this for a long time.

There hasn't been much movement unfortunately.

GJ
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Thu Mar 04, 2004 7:16 pm    Post subject: Reply with quote

Ok man.... I did what you said and:

Code:
bash-2.05b# /bin/bash -c ./test2
./test2: line 7:  : command not found
./test2: line 11:  : command not found
./test2: line 13:  : command not found
./test2: line 19:  : command not found
./test2: line 27:  : command not found
./test2: line 36: syntax error near unexpected token `then'
./test2: line 36: `    if [ ! -f portage-2.0.50-r1.tar.bz2 ];then '
bash-2.05b#


I don't know what you mean that I should add "." to my path.

How exactly should I do that?

GJ
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2732
Location: Bay Area, CA

PostPosted: Thu Mar 04, 2004 8:40 pm    Post subject: Reply with quote

Code:
cd /bin
ls -al sh bash
echo $SHELL

post output...
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Thu Mar 04, 2004 10:16 pm    Post subject: Reply with quote

Code:
root@raid517:~# cd /bin
root@raid517:/bin# ls -al sh bash
-rwxr-xr-x    1 root     bin        628640 Jun 24  2003 bash
lrwxrwxrwx    1 root     root            4 Mar  3 08:27 sh -> bash
root@raid517:/bin# echo $SHELL
/bin/bash
root@raid517:/bin#


GJ
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2732
Location: Bay Area, CA

PostPosted: Thu Mar 04, 2004 10:51 pm    Post subject: Reply with quote

I don't know how slackware builds its bash, but one thing is for sure: either the text contains garbage (which editor are you using?) or the installed bash is screwed up, because same text runs fine on my machine.

From the errors, with the bash you have, you won't be able to use portage even if you could get it installed somehow because ebuild.sh (a shell script which portage uses to build packages) uses the same syntax and it will fail with similar "command not found" errors.

I think I am running out of ideas here...may be somebody who knows bash on slackware better, might comment here.

try to find out what options did the slackware install the bash with...post output of:
Code:
/bin/bash +O
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Fri Mar 05, 2004 1:18 am    Post subject: Reply with quote

Code:
root@raid517:~# /bin/bash +O
shopt -u cdable_vars
shopt -u cdspell
shopt -u checkhash
shopt -u checkwinsize
shopt -s cmdhist
shopt -u dotglob
shopt -u execfail
shopt -u expand_aliases
shopt -u extglob
shopt -u histreedit
shopt -u histappend
shopt -u histverify
shopt -s hostcomplete
shopt -u huponexit
shopt -s interactive_comments
shopt -u lithist
shopt -u login_shell
shopt -u mailwarn
shopt -u no_empty_cmd_completion
shopt -u nocaseglob
shopt -u nullglob
shopt -s progcomp
shopt -s promptvars
shopt -u restricted_shell
shopt -u shift_verbose
shopt -s sourcepath
shopt -u xpg_echo
root@raid517:~#


I'm considering moving to Mandrake 10 as soon as possible anyway. I just thought learning how to do this now would help later.

My favoite editor of choice is nano - which is a very simple non-gui text editor I grew used to when I was a regular gentoo user. Either that or emacs - which is a bit bulky comared to nano.

But for cut and paste this time I used emacs.

I could try something else if you think it would help?

GJ
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2732
Location: Bay Area, CA

PostPosted: Fri Mar 05, 2004 1:47 am    Post subject: Reply with quote

If we ever solve this, it would be the bizzarest problem I would have ever seen solved...

your shell opts are same as mine.

if you open the file in "vi", do you see ^M or any other garbage...

try cut &paste into a new file in "vi".
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Fri Mar 05, 2004 1:58 am    Post subject: Reply with quote

Ahh NM I just copied and pasted the text into a conole using nano and it executed cleanly.

Sor we are all sorted now, the only thing is I got a warning message about:

Code:
!!! /etc/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /usr/portage/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)


I guess then because I am merging for the first time (or at least the script does this?) that I can safely ignore this?

Also it keeps crapping out during emerge sync with:

Code:
!!! /etc/make.profile is not a symlink and will probably prevent most merges.
!!! It should point into a profile within /usr/portage/profiles/
!!! (You can safely ignore this message when syncing. It's harmless.)-


Any clues how I can over come this?

It seems i can't do anything until i get it to merge.

GJ
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2732
Location: Bay Area, CA

PostPosted: Fri Mar 05, 2004 2:19 am    Post subject: Reply with quote

I have no idea why this line didn't execute when you executed the script, but anyway , do this manually:
Code:
ln -s /usr/portage/profiles/default-x86-1.4 /etc/make.profile

let me know if you are able to, let's say, 'emerge grep' after this.
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Fri Mar 05, 2004 2:27 am    Post subject: Reply with quote

Code:
If at first you don't succeed, redefine success.

root@raid517:~# ln -s /usr/portage/profiles/default-x86-1.4 /etc/make.profile
root@raid517


Success!

But...

Code:
root@raid517:~# emerge grep
Calculating dependencies ...done!
>>> emerge (1 of 2) sys-devel/libtool-1.4.3-r4 to /
>>> md5 src_uri ;-) libtool-1.4.3.tar.gz
>>> md5 src_uri ;-) libtool-1.3.5.tar.gz
>>> Unpacking source...
>>> Unpacking libtool-1.4.3.tar.gz to /var/tmp/portage/libtool-1.4.3-r4/work
>>> Unpacking libtool-1.3.5.tar.gz to /var/tmp/portage/libtool-1.4.3-r4/work

/usr/sbin/ebuild.sh: line 64: einfo: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found

/usr/sbin/ebuild.sh: line 83: einfo: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 238: einfo: command not found
/usr/sbin/ebuild.sh: line 327: eend: command not found
/usr/sbin/ebuild.sh: line 118: einfo: command not found
>>> Source unpacked.
/usr/sbin/ebuild.sh: line 134: einfo: command not found
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -mcpu=i686 -pipe ) works... yes
checking whether the C compiler (gcc -O2 -mcpu=i686 -pipe ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... gawk
updating cache ./config.cache
creating ./config.status
creating Makefile
creating doc/Makefile
creating tests/Makefile
configuring in libltdl
running /bin/sh ./configure  --host=i686-pc-linux-gnu --prefix=/usr --infodir=/usr/share/info --enable-ltdl-install --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking for a BSD compatible install... (cached) /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -O2 -mcpu=i686 -pipe ) works... yes
checking whether the C compiler (gcc -O2 -mcpu=i686 -pipe ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for working const... yes
checking for inline... inline
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
updating cache .././config.cache
loading cache .././config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking whether the linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/i486-slackware-linux/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache .././config.cache
loading cache .././config.cache
checking which extension is used for shared libraries... .so
checking which variable specifies run-time library path... LD_LIBRARY_PATH
checking for objdir... .libs
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for malloc.h... yes
checking for memory.h... yes
checking for stdlib.h... yes
checking for stdio.h... yes
checking for ctype.h... yes
checking for dlfcn.h... yes
checking for dl.h... no
checking for dld.h... no
checking for string.h... yes
checking for strchr... yes
checking for strrchr... yes
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for dlopen in -ldl... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dld_link in -ldld... no
checking for dlerror... yes
checking command to parse /usr/bin/nm -B output... yes
checking for _ prefix in compiled symbols... (cached) no
updating cache .././config.cache
creating ./config.status
creating Makefile
creating config.h
/usr/sbin/ebuild.sh: line 139: einfo: command not found
rm -f acinclude.m4
cp ./libtool.m4 acinclude.m4
cd . && aclocal
cd . && automake --gnu --include-deps Makefile
cd . && autoconf
/bin/sh ./config.status --recheck
running /bin/sh ./configure  --host=i686-pc-linux-gnu --prefix=/usr --infodir=/usr/share/info --enable-ltdl-install --no-create --no-recursion
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... autom4te: cannot not rename autom4te.cache/traces.0t as autom4te.cache/traces.0: No such file or directory
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
Makefile.am:26: `aclocal_DATA' is used but `aclocaldir' is undefined
DIST_SUBDIRS: variable `CONF_SUBDIRS' is used but `CONF_SUBDIRS' is undefined
make: *** [Makefile.in] Error 1
make: *** Waiting for unfinished jobs....
yes
/var/tmp/portage/libtool-1.4.3-r4/work/libtool-1.3.5/missing: Unknown `--run' option
Try `/var/tmp/portage/libtool-1.4.3-r4/work/libtool-1.3.5/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for i686-pc-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking for gawk... (cached) gawk
configure: creating ./config.status

!!! ERROR: sys-devel/libtool-1.4.3-r4 failed.
!!! Function src_compile, Line 140, Exitcode 2
!!! (no error message)


So unfortunately not. It can't get passed this libtool bug.

It also complains about a lot of command not found errors too.

I've left the funny random Slackware console messages in, as it seems kinda appropriate on this occasion lol.

Any suggestions?

GJ
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2732
Location: Bay Area, CA

PostPosted: Fri Mar 05, 2004 2:36 am    Post subject: Reply with quote

I don't think you executed the script fully...what message did you see after the you ran it?

from "einfo: command not found", this was also not executed:
Code:
cd /etc/init.d
ln -s /sbin/depscan.sh .
ln -s /sbin/functions.sh .


you will have to look at the script and the output of the so called "successful" run and see what all it did and what it didn't. may be just execute those steps manually one by one...
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Fri Mar 05, 2004 4:16 am    Post subject: Reply with quote

Well for some reason my init.d file in Slackware got deleted. I'm not sure how - it was there before I started messing with portage. But anyway I restored it from a back up and ran the script again - so both those shortcuts are now there. Unfortunately it is still borking on libtools. Moreover an awful lot of stuff I would like to get from portage (KDE 3.2, Mozilla 1.6 and many others) all seem to depend very heavily on this libtools package.

I know from my experiences with Gentoo in the past that portage can get stuck like this on certain packages - but it is odd that is should happen so early - and specifically as a part of the process of installing and updating portage itself.

Maybe its about use flags? Do I need and specific flags set to use libtools?

GJ
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2732
Location: Bay Area, CA

PostPosted: Fri Mar 05, 2004 4:40 am    Post subject: Reply with quote

there are packages(gcc, glibc, binutils, baselayout) you should never emerge and should have them injected. make sure you read the first post in this thread carefully.

post your libtool errors...gentoo has a certain way of doing automake/autoconf whereby it points automake executable to shell script which calls 1.4 version by default and expects WANT_AUTOMAKE environment variable set if you want to use 1.78 or later. ||ly for autoconf. so, its not a bug.

you should emerge m4, automake, autoconf and libtool before you start using portage full time. REMEMBER THAT ITS GOING TO OVERWRITE your existing auto* tools, so make up your mind about proceeding with portage all the way.

post output of "emerge zlib"...that should be safest to do w/o any changes.
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Fri Mar 05, 2004 5:29 am    Post subject: Reply with quote

Well just to be clear portage began downloading and updating a bumch of stuff while the script was running - so I had no control over whether to use it or not. I understand what you said about setting up exclusions - but I wonder if any harm was caused because portage downloaded a bunch of stuff during the install process anyway? Is it perhaps possible to set up your script so that it automatically set exclusions on files for non gentoo distributions that probably should never be updated by portage?

In any case I am still stuck on the part of the script where - without my intervention - it and/or portage attempts to download and install libtools.

As requested here is the output:

Code:
:~# emerge libtool
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-devel/libtool-1.4.3-r4 to /
>>> md5 src_uri ;-) libtool-1.4.3.tar.gz
>>> md5 src_uri ;-) libtool-1.3.5.tar.gz
>>> Unpacking source...
>>> Unpacking libtool-1.4.3.tar.gz to /var/tmp/portage/libtool-1.4.3-r4/work
>>> Unpacking libtool-1.3.5.tar.gz to /var/tmp/portage/libtool-1.4.3-r4/work

 * Patching libtool-1.3.5 ...
 * Applying libtool-1.2f-cache.patch...                                   [ ok ]
 * Applying libtool-1.3.5-nonneg.patch...                                 [ ok ]
 * Applying libtool-1.3.5-mktemp.patch...                                 [ ok ]

 * Patching libtool-1.4.3 ...
 * Applying libtool-1.3.5-mktemp.patch...                                 [ ok ]
 * Applying libtool-1.4-nonneg.patch...                                   [ ok ]
 * Applying libtool-1.4.2-s390_x86_64.patch...                            [ ok ]
 * Applying libtool-1.4.2-relink-58664.patch...                           [ ok ]
 * Applying libtool-1.4.2-multilib.patch...                               [ ok ]
 * Applying libtool-1.4.2-demo.patch...                                   [ ok ]
 * Applying libtool-1.4.3-quotes.patch...                                 [ ok ]
 * Applying libtool-1.4.3-lib64.patch...                                  [ ok ]
 * Applying libtool-1.4.2-add-x11r6-lib-in-ignores-for-rpath.patch...     [ ok ]
 * Applying libtool-1.4.2-archive-shared.patch...                         [ ok ]
 * Applying libtool-1.4.3-ltmain-SED.patch...                             [ ok ]
 * Applying libtool-1.4.2-expsym-linux.patch...                           [ ok ]
 * Applying libtool-1.4.3-amd64-alias.patch...                            [ ok ]
 * Applying libtool-1.4.3-libtoolize--config-only.patch...                [ ok ]
 * Applying libtool-1.4.3-pass-thread-flags.patch...                      [ ok ]
 * Applying libtool-1.4.2-portage.patch...                                [ ok ]
 * Generate ltmain.sh ...
>>> Source unpacked.
 * Configuring libtool-1.3.5 ...
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking for gcc... gcc
checking whether the C compiler (gcc -march=athlon-xp -O3 -pipe ) works... yes
checking whether the C compiler (gcc -march=athlon-xp -O3 -pipe ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking for mawk... mawk
updating cache ./config.cache
creating ./config.status
creating Makefile
creating doc/Makefile
creating tests/Makefile
configuring in libltdl
running /bin/sh ./configure  --host=i686-pc-linux-gnu --prefix=/usr --infodir=/usr/share/info --enable-ltdl-install --cache-file=.././config.cache --srcdir=.
loading cache .././config.cache
checking for a BSD compatible install... (cached) /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -march=athlon-xp -O3 -pipe ) works... yes
checking whether the C compiler (gcc -march=athlon-xp -O3 -pipe ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for working const... yes
checking for inline... inline
checking host system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for ranlib... (cached) ranlib
checking for ld used by GCC... (cached) /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... (cached) yes
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
updating cache .././config.cache
loading cache .././config.cache within ltconfig
checking for object suffix... o
checking for executable suffix... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions ... yes
checking if gcc static flag -static works... -static
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking whether the linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking command to parse /usr/bin/nm -B output... ok
checking how to hardcode library paths into programs... immediate
checking for /usr/i486-slackware-linux/bin/ld option to reload object files... -r
checking dynamic linker characteristics... Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for objdir... .libs
creating libtool
updating cache .././config.cache
loading cache .././config.cache
checking which extension is used for shared libraries... .so
checking which variable specifies run-time library path... LD_LIBRARY_PATH
checking for objdir... .libs
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for malloc.h... yes
checking for memory.h... yes
checking for stdlib.h... yes
checking for stdio.h... yes
checking for ctype.h... yes
checking for dlfcn.h... yes
checking for dl.h... no
checking for dld.h... no
checking for string.h... yes
checking for strchr... yes
checking for strrchr... yes
checking whether libtool supports -dlopen/-dlpreopen... yes
checking for dlopen in -ldl... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dld_link in -ldld... no
checking for dlerror... yes
checking command to parse /usr/bin/nm -B output... yes
checking for _ prefix in compiled symbols... (cached) no
updating cache .././config.cache
creating ./config.status
creating Makefile
creating config.h
 * Building libtool-1.3.5 ...
rm -f acinclude.m4
cp ./libtool.m4 acinclude.m4
cd . && aclocal
cd . && automake --gnu --include-deps Makefile
cd . && autoconf
/bin/sh ./config.status --recheck
running /bin/sh ./configure  --host=i686-pc-linux-gnu --prefix=/usr --infodir=/usr/share/info --enable-ltdl-install --no-create --no-recursion
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... autom4te: cannot not rename autom4te.cache/traces.0t as autom4te.cache/traces.0: No such file or directory
configure.in: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.in: You should verify that configure.in invokes AM_INIT_AUTOMAKE,
configure.in: that aclocal.m4 is present in the top-level directory,
configure.in: and that aclocal.m4 was recently regenerated (using aclocal).
Makefile.am:26: `aclocal_DATA' is used but `aclocaldir' is undefined
DIST_SUBDIRS: variable `CONF_SUBDIRS' is used but `CONF_SUBDIRS' is undefined
make: *** [Makefile.in] Error 1
make: *** Waiting for unfinished jobs....
yes
/var/tmp/portage/libtool-1.4.3-r4/work/libtool-1.3.5/missing: Unknown `--run' option
Try `/var/tmp/portage/libtool-1.4.3-r4/work/libtool-1.3.5/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-strip... no
checking for strip... strip
checking for i686-pc-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for ld used by GCC... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking for gawk... (cached) gawk
configure: creating ./config.status

!!! ERROR: sys-devel/libtool-1.4.3-r4 failed.
!!! Function src_compile, Line 140, Exitcode 2
!!! (no error message)


I also can't emerge inject anything. If I try emerge inject GCC (or any other package) this is what I get:

Code:
root@raid517:~# emerge inject gcc
!!! gcc is not a specific cat/pkg-version, skipping...
root@raid517:~#


So I have no clue what is causing that.

As for the other output you requested, here is what i got:

Code:
root@raid517:~# emerge zlib
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-libs/zlib-1.1.4-r2 to /
>>> md5 src_uri ;-) zlib-1.1.4.tar.bz2
>>> Unpacking source...
>>> Unpacking zlib-1.1.4.tar.bz2 to /var/tmp/portage/zlib-1.1.4-r2/work
 * Applying zlib-1.1.4-gentoo.security.patch...                           [ ok ]
>>> Source unpacked.
Checking for gcc...
Checking for shared library support...
Building shared library libz.so.1.1.4 with gcc.
Checking for unistd.h... Yes.
Checking whether to use vsnprintf() or snprintf()... using vsnprintf()
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for errno.h...  Yes.
Checking for mmap support... Yes.
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o example.o example.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o adler32.o adler32.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o compress.o compress.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o crc32.o crc32.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o gzio.o gzio.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o uncompr.o uncompr.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o deflate.o deflate.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o trees.o trees.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o zutil.o zutil.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o inflate.o inflate.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o infblock.o infblock.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o inftrees.o inftrees.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o infcodes.o infcodes.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o infutil.o infutil.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o inffast.o inffast.c
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP   -c -o minigzip.o minigzip.c
gcc -shared -Wl,-soname,libz.so.1 -o libz.so.1.1.4 adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
rm -f libz.so libz.so.1
ln -s libz.so.1.1.4 libz.so
ln -s libz.so.1.1.4 libz.so.1
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP -o example example.o -L. -lz
gcc -march=athlon-xp -O3 -pipe -fPIC -DHAVE_UNISTD_H -DHAS_vsnprintf -DHAS_vsnprintf_return -DUSE_MMAP -o minigzip minigzip.o -L. -lz
hello world
uncompress(): hello, hello!
gzread(): hello, hello!
gzgets() after gzseek: hello!
inflate(): hello, hello!
large_inflate(): OK
after inflateSync(): hello, hello!
inflate with dictionary: hello, hello!
                *** zlib test OK ***
Checking for gcc...
Building static library libz.a version 1.1.4 with gcc.
Checking for unistd.h... Yes.
Checking whether to use vsnprintf() or snprintf()... using vsnprintf()
Checking for vsnprintf() in stdio.h... Yes.
Checking for return value of vsnprintf()... Yes.
Checking for errno.h...  Yes.
Checking for mmap support... Yes.
ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o

>>> Install zlib-1.1.4-r2 into /var/tmp/portage/zlib-1.1.4-r2/image/ category sys-libs
man:
prepallstrip:
strip:
strip:
   usr/lib/libz.so.1.1.4
making executable: /usr/lib/libz.so.1.1.4
>>> Completed installing into /var/tmp/portage/zlib-1.1.4-r2/image/

>>> Merging sys-libs/zlib-1.1.4-r2 to /
--- /usr/
--- /usr/lib/
>>> /usr/lib/libz.so.1 -> libz.so.1.1.4
>>> /usr/lib/libz.so -> libz.so.1.1.4
>>> /usr/lib/libz.a
>>> /usr/lib/libz.so.1.1.4
--- /usr/share/
--- /usr/share/doc/
--- /usr/share/doc/zlib-1.1.4-r2/
--- /usr/share/doc/zlib-1.1.4-r2/txt/
>>> /usr/share/doc/zlib-1.1.4-r2/txt/algorithm.txt.gz
>>> /usr/share/doc/zlib-1.1.4-r2/FAQ.gz
>>> /usr/share/doc/zlib-1.1.4-r2/README.gz
>>> /usr/share/doc/zlib-1.1.4-r2/ChangeLog.gz
--- /usr/share/man/
--- /usr/share/man/man3/
>>> /usr/share/man/man3/zlib.3.gz
--- /usr/include/
>>> /usr/include/zconf.h
>>> /usr/include/zlib.h
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/share/man/man3/zlib.3.gz
--- !mtime obj /usr/share/doc/zlib-1.1.4-r2/txt/algorithm.txt.gz
--- !mtime obj /usr/share/doc/zlib-1.1.4-r2/README.gz
--- !mtime obj /usr/share/doc/zlib-1.1.4-r2/FAQ.gz
--- !mtime obj /usr/share/doc/zlib-1.1.4-r2/ChangeLog.gz
--- !mtime obj /usr/lib/libz.so.1.1.4
--- !mtime obj /usr/lib/libz.a
--- !mtime obj /usr/include/zlib.h
--- !mtime obj /usr/include/zconf.h
--- !empty dir /usr/share/man/man3
--- !empty dir /usr/share/man
--- !empty dir /usr/share/doc/zlib-1.1.4-r2/txt
--- !empty dir /usr/share/doc/zlib-1.1.4-r2
--- !empty dir /usr/share/doc
--- !empty dir /usr/share
--- !empty dir /usr/lib
--- !empty dir /usr/include
--- !empty dir /usr
--- !targe sym /usr/lib/libz.so.1
--- !targe sym /usr/lib/libz.so
>>> original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                        [ ok ]
>>> sys-libs/zlib-1.1.4-r2 merged.

>>> clean: No packages selected for removal.

>>> Auto-cleaning packages ...

>>> No outdated packages were found on your system.


 * GNU info directory index is up-to-date.



You see I am simply waiting for the script to finish completing all the tasks that it set out to accomplish - I am not yet myself trying to use portage - nor am I able to, since if I try to emerge anything it simply tries to start emerging libtools again.

I think maybe we are not that far off with a solution - but what that solution might be currently escapes me.

GJ
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2732
Location: Bay Area, CA

PostPosted: Fri Mar 05, 2004 6:46 am    Post subject: Reply with quote

script does inject the packages it considers unsafe(those fabfour). you should do emerge -p <packagename> before any merge. you can check if those packages are already injected or not and then inject them.

you have to emerge these four in that order: m4, automake, autoconf and libtool to get past the libtool issue.

You did emerge zlib successfully.

emerge inject takes argument like "sys-libs/zlib-1.1.4-r2". That means, you do a "emerge -p gcc" first, see the output and emerge inject that. e.g.
Code:
emerge -p gcc
says


Code:
[ebuild   N   ] sys-devel/gcc-3.2.3-r2


you say

Code:
emerge inject sys-devel/gcc-3.2.3-r2


what does "emerge -p portage" say?
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Fri Mar 05, 2004 8:35 am    Post subject: Reply with quote

Code:

Calculating dependencies ...done!
[ebuild  N    ] sys-devel/libtool-1.5.2-r5
[ebuild  N    ] sys-libs/ncurses-5.4-r1
[ebuild  N    ] sys-apps/texinfo-4.6
[ebuild  N    ] sys-apps/groff-1.19
[ebuild  N    ] sys-apps/cronbase-0.2.1-r3
[ebuild  N    ] sys-apps/man-1.5m
[ebuild  N    ] app-shells/bash-2.05b-r9
[ebuild  N    ] sys-libs/readline-4.3-r5
[ebuild  N    ] dev-libs/openssl-0.9.7c-r1
[ebuild  N    ] dev-util/dialog-0.9_beta20031207
[ebuild  N    ] sys-apps/grep-2.5.1-r1
[ebuild  N    ] app-portage/gentoolkit-0.2.0_pre6
[ebuild  N    ] dev-lang/tcl-8.4.6
[ebuild  N    ] sys-devel/flex-2.5.4a-r5
[ebuild  N    ] dev-libs/glib-1.2.10-r5
[ebuild  N    ] sys-apps/miscfiles-1.3-r1
[ebuild  N    ] sys-devel/gcc-config-1.3.5
[ebuild  N    ] sys-libs/cracklib-2.7-r8
[ebuild  N    ] sys-libs/pam-0.77
[ebuild  N    ] sys-apps/shadow-4.0.4.1
[ebuild  N    ] sys-apps/pam-login-3.14
[ebuild  N    ] app-crypt/hashalot-0.1.0
[ebuild  N    ] sys-apps/util-linux-2.12-r4
[ebuild  N    ] media-libs/libpng-1.2.5-r4
[ebuild  N    ] media-libs/freetype-2.1.5-r1
[ebuild  N    ] x11-misc/ttmkfdir-3.0.9-r1
[ebuild  N    ] dev-libs/expat-1.95.7
[ebuild  N    ] sys-apps/ed-0.2-r3
[ebuild  N    ] media-libs/fontconfig-2.2.1
[ebuild  N    ] app-arch/unzip-5.50-r2
[ebuild  N    ] x11-base/xfree-4.3.0-r5
[ebuild  N    ] dev-lang/tk-8.4.6
[ebuild  N    ] sys-libs/db-1.85-r1
[ebuild  N    ] sys-libs/gdbm-1.8.0-r5
[ebuild  N    ] dev-lang/python-2.3.3
[ebuild  N    ] dev-java/java-config-1.2.6
[ebuild  N    ] dev-java/blackdown-jre-1.4.1
[ebuild  N    ] dev-java/blackdown-jdk-1.4.1
[ebuild  N    ] sys-libs/db-4.1.25_p1-r3
[ebuild  N    ] sys-devel/libperl-5.8.3
[ebuild  N    ] dev-lang/perl-5.8.3
[ebuild  N    ] sys-devel/m4-1.4-r1
[ebuild  N    ] sys-devel/autoconf-2.59-r3
[ebuild  N    ] sys-devel/automake-1.8.2
[ebuild  N    ] dev-perl/Locale-gettext-1.01-r1
[ebuild  N    ] sys-apps/help2man-1.33.1
[ebuild  N    ] sys-apps/coreutils-5.0.91-r4
[ebuild  N    ] sys-apps/debianutils-1.16.7-r4
[ebuild  N    ] sys-apps/portage-2.0.50-r1

root@raid517:~#


I managed to get all the other stuff injected as you said.

The only problem is now that even if I try to install the other things in order, no matter what order I try, yours or anyone else's, the first thing it does is try to install libtool.

It really does seem like unless I can get libtool installed that the script will not be able to work fully.

But we have certainly made some progress! :)

GJ
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


Joined: 24 Oct 2003
Posts: 2732
Location: Bay Area, CA

PostPosted: Fri Mar 05, 2004 4:17 pm    Post subject: Reply with quote

just inject pam, pam-login, shadow, cronbase, python, perl, xfree for now and see what it returns for "emerge -p portage"....it should be pretty minimal stuff.

portage is still not installed. once portage installs properly, you can emerge those.

I didn't have this much trouble running this script and getting portage to work even on Solaris.

Since you are kickstarted by now, at this moment, I would strongly suggest to read man pages on "portage", "emerge", "ebuild". You gonna need to know each one of these in-and-out to get portage working correctly...and keeping it that way.

keep posting your problems here though...I will be more than happy to help you.
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Fri Mar 05, 2004 4:26 pm    Post subject: Reply with quote

Thanks man...

GJ
Back to top
View user's profile Send private message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Fri Mar 05, 2004 7:25 pm    Post subject: Reply with quote

Code:
root@raid517:~# emerge -p portage

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] sys-devel/libtool-1.5.2-r5
[ebuild  N    ] sys-libs/ncurses-5.4-r1
[ebuild  N    ] app-shells/bash-2.05b-r9
[ebuild  N    ] sys-apps/texinfo-4.6
[ebuild  N    ] sys-devel/m4-1.4-r1
[ebuild  N    ] sys-devel/autoconf-2.59-r3
[ebuild  N    ] sys-devel/automake-1.8.2
[ebuild  N    ] dev-perl/Locale-gettext-1.01-r1
[ebuild  N    ] sys-apps/help2man-1.33.1
[ebuild  N    ] sys-apps/coreutils-5.0.91-r4
[ebuild  N    ] sys-apps/debianutils-1.16.7-r4
[ebuild  N    ] sys-apps/portage-2.0.50-r1


So it looks like it is still stuck on libtool.

Any idea how to get round it? I do have libtool installed from Slackware - if somehow that might be useful.

Also a few of those inject operations produced errors like this:

Code:
root@raid517:~# emerge inject dev-lang/perl-5.8.3
!!! BAD COUNTER in 'dev-lang/perl-5.8.3'
>>> Injected dev-lang/perl-5.8.3.


GJ
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, ... 11, 12, 13  Next
Page 2 of 13

 
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