View previous topic :: View next topic |
Author |
Message |
woolsherpahat Guru
Joined: 09 Mar 2004 Posts: 347
|
Posted: Thu Jun 17, 2004 3:09 am Post subject: |
|
|
devsk:
Hmm. I'm not having a very good time with this. I'm emerging kahakai and on average about 50% of the ebuilds seems to fail. Mostly development libraries and media libraries. The majority of these already seemed to be installed via rpm so I injected them into portage and continued on with my emerge. Basicly my question is: Is it normal to have about 50% of your ebuilds fail to compile while using portage on a different distro?
geforce:
Yah, more or less but it doesn't seem to work as seemlessly as it does on a pure-gentoo system. |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 3003 Location: Bay Area, CA
|
Posted: Sat Jun 19, 2004 1:11 am Post subject: |
|
|
if you post some errors, we can see if its the portage internal system which is causing the problem or if its something distro specific....on FC1 and now on FC2, I have used portage fairly well without a single problem....so 50% is kinda large number...I don't get that many errors even on solaris hacked version of portage. |
|
Back to top |
|
|
micolous n00b
Joined: 19 Jun 2004 Posts: 3 Location: The land down-under.
|
Posted: Sat Jun 19, 2004 8:19 pm Post subject: |
|
|
Installing portage on a 'vanilla' debian sarge/testing installation (for x86). This has worked for me using the 20040104 debian-installer CD.
Using tasksel, select Development/C/C++, and install them. I'm too lazy to stuff around with dependencies, and this seems to cover most portage's dependencies without breaking much or installing too much software. I found xfree and a couple of other packages failed to install here, because they weren't on the apt mirror I was using. If this occurs for everyone else, then this is a Debian problem, not a problem with this mini-Howto or Gentoo. A workaround to this is:
Code: | apt-get --fix-missing dselect-upgrade |
And then we continue.
Code: | # Update existing packages that were installed using debian-installer from the CD.
apt-get upgrade
# Remove CVS and Subversion, they're definitely not needed right now.
apt-get remove cvs subversion
# Install python, rysnc, bzip2. Why bzip2 is not in the development stuff or installed by default is honestly beyond me.
apt-get install python2.2 python2.2-dev rsync bzip2
# remove the uucp group (and user).
userdel uucp
# add wheel
groupadd -g 10 wheel
# install gawk using apt.
apt-get install gawk
# run the portage installer (from the start of this thread).
chmod 700 gentooise.sh
./gentooise.sh
# edit /etc/make.conf:
nano -w /etc/make.conf
|
Here you'll need to set your FEATURES flag (about line 270) to include userpriv. Create this on a new line; don't use the template given. You should also setup your USE flags, and CFLAGS.
Code: | # emerge gawk
emerge -Ov gawk
# after the access violation, you'll need to merge the package yourself. Replace [version] with the version number of gawk that's in portage.
cp -rv /var/tmp/portage/gawk-[version]/image/* /
# and tell portage gawk is installed
emerge inject sys-apps/gawk-[version]
# and inject portage's deps, so you don't have complaints later.
emerge inject `emerge -p portage | gawk -F" " '{ print $4 }'`
# emerge openssl, this takes some time, due to the size of the package and the crypto-tests it runs.
emerge openssl
# here I rebooted, merely to test my faith, and see if everything went OK. You can skip this if you like.
reboot
# after reboot, and logging in as root, we need to emerge ncurses. This also takes some time.
emerge ncurses
# you'll need to update the ncurses configs using etc-update. only if emerge asks you to do so, however.
etc-update
# now emerge grep
emerge grep
# this failed for me with an access violation (/var/backups/infodir.bak). so we need to merge grep ourselves.
cp -rvf /var/tmp/portage/grep-[version]/image/* /
emerge inject sys-apps/grep-[version]
# emerge gentoolkit.
emerge gentoolkit
|
If you use any non-ext2/3 partitions, I found Debian (using the 20040103 debian-installer CD) forgets to install the fsck for them. You should do that now, as per section 10c of the Installation Handbook.
Now you should be able to install applications using emerge (Portage). Try to avoid using apt and dpkg now, as they will probably break your install through conflicting dependencies. You should also start to emerge important missing packages like fortune-mod-all
Some portage applications require (real) perl from portage, which we injected (fake installed) earlier. You'll need to emerge it properly:
Code: | emerge gdbm libperl perl |
But bear in mind this will break apt.
Update (2004-06-21): You also should emerge flex.
-----
This should be made into a proper howto, but it seems nobody so far is willing to do this... I could write it, just give me some notice first, and I don't have the time to go and download every distro on the plan, install it, break it, lather, rinse, repeat; so I coudn't write a howto by myself. I could contribute my experience with using Debian and the portage installer, and collect some of the others in this thread, though.
A good patch to the portage installer script is if you get emerge to do a emerge-webrsync then emerge sync. That way, you only have to get one big file over (ht|f)tp, instead of lots of little ones over rsync. Then the emerge sync will only have to get a much smaller amount of files. It's probably faster that way.
And as for uucp, hopefully it's nothing important. On my laptop I plan to run a local apache setup, with php and mono, along with mysql server, so I can do my development work on there.
Last edited by micolous on Mon Jun 21, 2004 8:28 am; edited 1 time in total |
|
Back to top |
|
|
woolsherpahat Guru
Joined: 09 Mar 2004 Posts: 347
|
Posted: Sun Jun 20, 2004 9:33 pm Post subject: |
|
|
Wow, installing portage on debian. You are a brave person! Don't let them know you did that.
I'd love to help work on a howto for this. I can add my experience with Mandrake 10.0. I'll be starting over from scratch sometime soon since I was having unrelated kernel problems. I'll let everyone know how it goes. |
|
Back to top |
|
|
micolous n00b
Joined: 19 Jun 2004 Posts: 3 Location: The land down-under.
|
Posted: Mon Jun 21, 2004 8:37 am Post subject: |
|
|
10k1 wrote: | Wow, installing portage on debian. You are a brave person! Don't let them know you did that. |
Yeah, reading posts on the debian-users mailing list about availiblity of Portage on Debian, they didn't seem terribly happy about the idea
I actually broke it all bigtime later as I got carried away (and tried to use Gentoo stuff for init, and emerge pam, pam-login, baselayout...). I'm going to do a Gentoo Stage3 install on it, with lots of moving around of the USB flashdisk due to lack of immediately working network. I don't want to download everything again, or get another Gentoo ISO, and I have about 2 GB in /usr/portage/distfiles/ I can transfer files from. (Shared distfiles are great ) |
|
Back to top |
|
|
mahir l33t
Joined: 05 Dec 2003 Posts: 725 Location: London
|
Posted: Wed Jul 14, 2004 1:02 am Post subject: updates? |
|
|
any updates on this topic?
bump..
news? events? who uses it
who has it working?
any tweaks... _________________ "wa ma tawfiqi illah billah"
Mahir Sayar |
|
Back to top |
|
|
mahir l33t
Joined: 05 Dec 2003 Posts: 725 Location: London
|
Posted: Wed Jul 14, 2004 1:52 am Post subject: help.... on some things |
|
|
so i /m on fc2... and i'm currently doing a yum update too fc3 test 1..
so i thought i'd try out this portage on fedora
(i am an active gentoo user btw)
ne who
i am doing an emerge -vp system and this is what i get
Code: | [root@jtmahir gnome-themes-extras]# emerge -vp system
These are the packages that I would merge, in order:
Calculating system dependencies ...done!
[ebuild N ] sys-devel/patch-2.5.9 -build -static 197 kB
[ebuild N ] sys-libs/zlib-1.2.1-r2 -build 277 kB
[ebuild N ] sys-devel/gnuconfig-20040214 -(uclibc) 30 kB
[ebuild N ] sys-apps/module-init-tools-3.0-r2 347 kB
[ebuild N ] dev-python/python-fchksum-1.7.1 26 kB
[ebuild N ] sys-libs/ncurses-5.4-r1 -debug 2,103 kB
[ebuild N ] app-shells/bash-2.05b-r9 -build +nls -(uclibc) 1,923 kB
[ebuild N ] sys-libs/readline-4.3-r4 940 kB
[ebuild N ] sys-devel/flex-2.5.4a-r5 372 kB
[ebuild N ] sys-devel/bc-1.06-r5 +readline 272 kB
[ebuild N ] sys-devel/gettext-0.12.1 -emacs +nls 5,592 kB
[ebuild N ] sys-apps/sed-4.0.9 -build +nls -static 751 kB
[ebuild N ] sys-apps/texinfo-4.6 -build +nls -static 1,316 kB
[ebuild N ] sys-apps/groff-1.18.1-r4 +X -cjk 2,310 kB
[ebuild N ] sys-apps/cronbase-0.3 [empty/missing/bad digest]
[ebuild N ] sys-apps/man-1.5l-r6 +nls 213 kB
[ebuild N ] sys-libs/db-4.1.25_p1-r3 -doc -java -tcltk 3,008 kB
[ebuild N ] sys-libs/db-1.85-r1 264 kB
[ebuild N ] sys-libs/gdbm-1.8.0-r5 +berkdb -static 130 kB
[ebuild N ] sys-devel/libperl-5.8.2 +berkdb -debug +gdbm -threads 11,617 kB
[ebuild N ] dev-lang/perl-5.8.2-r1 +berkdb -doc +gdbm -threads -(uclibc) 11,617 kB
[ebuild N ] sys-apps/help2man-1.29 36 kB
[ebuild N ] sys-apps/diffutils-2.8.4-r4 -build +nls -static 809 kB
[ebuild N ] dev-libs/openssl-0.9.7d-r1 -emacs -(uclibc) 4,866 kB
[ebuild N ] dev-libs/expat-1.95.6-r1 285 kB
[ebuild N ] dev-lang/python-2.3.3-r1 +X +berkdb -bootstrap -build -doc +gdbm -ipv6 +ncurses +readline +ssl -tcltk -(uclibc) -ucs2 7,026 kB
[ebuild N ] app-shells/sash-3.6 +readline 49 kB
[ebuild N ] sys-libs/slang-1.4.9 -cjk 616 kB
[ebuild N ] app-editors/nano-1.3.2-r1 -build -debug -justify +ncurses +nls -nomac +slang +spell -wsconvert 922 kB
[ebuild N ] net-misc/dhcpcd-1.3.22_p4-r4 -build -static 148 kB
[ebuild N ] dev-util/yacc-1.9.1-r2 63 kB
[ebuild N ] sys-kernel/linux-headers-2.4.21-r1 27,864 kB
[ebuild N ] sys-devel/libtool-1.4.3-r4 -(uclibc) 1,663 kB
[ebuild N ] sys-devel/m4-1.4.1 +nls 335 kB
[ebuild N ] sys-devel/autoconf-2.59-r3 1,336 kB
[ebuild N ] net-misc/iputils-021109-r3 -ipv6 -static -(uclibc) 418 kB
[ebuild N ] dev-libs/popt-1.7-r1 +nls 561 kB
[ebuild N ] net-misc/rsync-2.6.0-r2 -acl -build -static 517 kB
[ebuild N ] net-misc/wget-1.9-r2 -debug -ipv6 +nls -socks5 +ssl -static -(uclibc) 1,309 kB
[ebuild N ] app-arch/bzip2-1.0.2-r3 -build -debug -static 649 kB
[ebuild N ] sys-apps/kbd-1.12-r2 +nls 864 kB
[ebuild N ] app-arch/cpio-2.5 181 kB
[ebuild N ] sys-devel/automake-1.8.3 2,552 kB
[ebuild N ] sys-apps/coreutils-5.2.1 -acl -build +nls -(selinux) -static -(uclibc) 4,255 kB
[ebuild N ] sys-apps/debianutils-1.16.7-r4 -build -static 25 kB
[ebuild N ] sys-fs/e2fsprogs-1.35 +nls -static 3,078 kB
[ebuild N ] sys-apps/ed-0.2-r3 181 kB
[ebuild N ] sys-apps/fbset-2.1 27 kB
[ebuild N ] sys-apps/file-4.08 -build 356 kB
[ebuild N ] sys-apps/findutils-4.1.20-r1 -afs -build +nls -(selinux) -static 759 kB
[ebuild N ] dev-libs/glib-1.2.10-r5 411 kB
[ebuild N ] sys-apps/miscfiles-1.3-r1 -(uclibc) 2,153 kB
[ebuild N ] sys-devel/gcc-config-1.3.5 [empty/missing/bad digest]
[ebuild N ] sys-libs/cracklib-2.7-r8 -debug 20 kB
[ebuild N ] sys-libs/pam-0.77 +berkdb -pwdb -(selinux) 3,551 kB
[ebuild N ] sys-apps/shadow-4.0.4.1-r3 +nls +pam -(selinux) -(uclibc) 795 kB
[ebuild N ] sys-apps/slocate-2.7-r5 -(uclibc) 110 kB
[ebuild N ] sys-apps/grep-2.5.1-r1 -build +nls -static -(uclibc) 667 kB
[ebuild N ] app-arch/gzip-1.3.3-r4 -build +nls -static 304 kB
[ebuild N ] sys-apps/hdparm-5.4 35 kB
[ebuild N ] sys-apps/less-381 259 kB
[ebuild N ] sys-apps/man-pages-1.67 1,585 kB
[ebuild N ] sys-apps/net-tools-1.60-r8 -build +nls -static -(uclibc) 203 kB
[ebuild N ] sys-apps/procps-3.1.15 -debug 260 kB
[ebuild N ] sys-apps/psmisc-21.2-r4 +nls -(selinux) 252 kB
[ebuild N ] sys-apps/setserial-2.17-r2 51 kB
[ebuild N ] sys-apps/pam-login-3.14 -livecd +nls -(selinux) 137 kB
[ebuild N ] app-arch/sharutils-4.2.1-r9 +nls 298 kB
[ebuild N ] app-arch/ncompress-4.2.4 -build 31 kB
[ebuild N ] app-arch/tar-1.14 -build +nls -static 1,052 kB
[ebuild N ] app-crypt/hashalot-0.3 78 kB
[ebuild N ] sys-apps/util-linux-2.12-r4 +crypt +nls +pam -(selinux) -static -(uclibc) 1,819 kB
[ebuild N ] sys-apps/which-2.16 122 kB
[ebuild N ] sys-devel/bin86-0.16.0 113 kB
[ebuild N ] sys-devel/bison-1.875 +nls -static -(uclibc) 795 kB
[ebuild N ] sys-devel/make-3.80 -build +nls -static -(uclibc) 1,183 kB
[ebuild N ] sys-libs/pwdb-0.62 -(selinux) 130 kB
[ebuild N ] sys-apps/tcp-wrappers-7.6-r8 -ipv6 -static 115 kB
[ebuild N ] net-misc/openssh-3.8.1_p1-r1 -X509 -chroot -ipv6 -kerberos -ldap +pam -(selinux) -skey -smartcard -static +tcpd -(uclibc) 939 kB
[ebuild N ] sys-fs/devfsd-1.3.25-r6 41 kB
Total size of downloads: 122,600 kB
[root@jtmahir gnome-themes-extras]#
|
would this cause any problems??
if so
what problems.. _________________ "wa ma tawfiqi illah billah"
Mahir Sayar |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 3003 Location: Bay Area, CA
|
Posted: Wed Jul 14, 2004 3:35 am Post subject: |
|
|
a lot of problems...lot of FC scripts use perl and python. upgrading (or downgrading) these will always call for re-emerge of dependent modules and porting of those FC scripts. these should be left alone(injected and yummed)
module-init-tools, devfsd, cronbase, pam, linux-headers, shadow, hdparm, pwdb, pam-login, dhcpd: all can create pain of multiple config files and reconfigurations...two basic benefits of compiling from source don't apply to these mostly: faster code and bleeding edge software. so inject and yum them, and live happily. unless, of course, you are hell bent on converting your FC system into a gentoo clone....) |
|
Back to top |
|
|
xRay_ n00b
Joined: 16 Jun 2004 Posts: 18
|
Posted: Tue Jul 27, 2004 1:37 am Post subject: |
|
|
Hey, thanks for that script.
Gentoo will always be my 1st love but i decided to use Arch for the meantime, pretty cool to have portage still
Ill probably come crawling back like I always do...:p |
|
Back to top |
|
|
raid517 l33t
Joined: 06 Mar 2003 Posts: 946
|
Posted: Tue Jul 27, 2004 2:59 am Post subject: |
|
|
Hi, has anyone got any tips for getting portage working on Windows - via Windows Services for Unix? I tried unpacking the rescue tarball to do it, but tar and untar in SFU doesn't respond to any of the usual switches - so I can't even unpack it. Why do it? Well there is portage on Mac OS X, so why not Windows? SFU will be included as an integral part of Longhorn anyway - so unix will be a real part of MS' next OS. Also SFU feels a lot more 'intergrated' right now than Cygwin does. And also because it would just be plumb 'cool' to do it. There is even an Xwindow manager for SFU with full accelerated opengl support. So it would be a very neat thing to do.
GJ |
|
Back to top |
|
|
Legout n00b
Joined: 02 Oct 2003 Posts: 11 Location: Wuerzburg/Germany
|
Posted: Tue Jul 27, 2004 11:32 am Post subject: |
|
|
HI Guys!!
I found this discussion!! I used Gentoo for a while. But i change to Arch Linux, because i can install binaries there. i don like the long time to compile something. But i loved at gentoo, that nearly every programm/app i wanted to install, was in portage. So i tried to port portage/emerge to my Distro!!
I found an interesting Project that did exactly what i was looking for:
Have a look at "emerde". Itś very easy to install and it works great for me!!
http://emerde.freaknet.org |
|
Back to top |
|
|
xRay_ n00b
Joined: 16 Jun 2004 Posts: 18
|
Posted: Tue Jul 27, 2004 1:53 pm Post subject: |
|
|
Legout wrote: | HI Guys!!
I found this discussion!! I used Gentoo for a while. But i change to Arch Linux, because i can install binaries there. i don like the long time to compile something. But i loved at gentoo, that nearly every programm/app i wanted to install, was in portage. So i tried to port portage/emerge to my Distro!!
I found an interesting Project that did exactly what i was looking for:
Have a look at "emerde". Itś very easy to install and it works great for me!!
http://emerde.freaknet.org |
Very cool ! Thanks for the link. |
|
Back to top |
|
|
raid517 l33t
Joined: 06 Mar 2003 Posts: 946
|
Posted: Wed Jul 28, 2004 9:34 pm Post subject: |
|
|
Thanks for that, yes it is indeed very cool. the only thing is I fuzzed it up slightly. When the install process finishes it recommends that you install various packages in order for it to function properly. Unfortunately I accidentally dismissed this window - and I don't know what these packages were. I can't find it anywhere in the docs, and I tried emailing the list and the author, but they didn't respond. The question is, what are these packages?
I'd prefer to avoid as many problems as possible.
Any input would be appreciated.
GJ |
|
Back to top |
|
|
Legout n00b
Joined: 02 Oct 2003 Posts: 11 Location: Wuerzburg/Germany
|
Posted: Thu Jul 29, 2004 4:32 pm Post subject: |
|
|
make a copy of /usr/portage and reinstall it with autoinstall -norsync!!! |
|
Back to top |
|
|
raid517 l33t
Joined: 06 Mar 2003 Posts: 946
|
Posted: Thu Jul 29, 2004 4:44 pm Post subject: |
|
|
OK, I don't know if that answers what I asked. But I will try. I guess this means I will get the info I want but reinstalling will be much quicker this time?
The one disavantage with this is that you don't seem to be able to update portage at all. I mean I often get a message that 'an update to portage is avaiable, it is recomended that you update.' But when I try to emerge the new version of portage it just says I can't and that I should inject the package to skip that dependency.
It also toasted my module-init tools install for my 2.6x kernel, when a version it decided it would download refused to compile. The result was that my Slackware got very sick and couldn't load any of my modules correctly.
Manually installing it didn't help either unfortunately.
But oh well, I guess even portage isn't quite perfect.
GJ |
|
Back to top |
|
|
unattachme n00b
Joined: 22 Nov 2003 Posts: 6 Location: Kansas City, MO - USA
|
Posted: Wed Aug 18, 2004 8:39 am Post subject: /etc/make.profile - Fedora Core 2 BEAUTIFUL |
|
|
OK, I just ran the script posted in the beggining. It told me, after erroring, that it needed the portage user & group, even gave me a line for each to copy in /etc/passwd & /etc/group. The only problem I had (spent all of about 1.5 minutes on it) was when I changed my $PORTDIR in make.conf, I forgot to update the symlink @ /etc/make.profile.
My thanx to the maker of ths script, and my bad if the 'make.profile' thing's already been gone over. _________________ Universally,
unattachme
"Try? There is no 'try'! There is do, and there is do not!" ---Yoda |
|
Back to top |
|
|
unattachme n00b
Joined: 22 Nov 2003 Posts: 6 Location: Kansas City, MO - USA
|
Posted: Wed Aug 18, 2004 8:41 am Post subject: Now all we need is Portage 4 Windows..... |
|
|
......couldn't resist _________________ Universally,
unattachme
"Try? There is no 'try'! There is do, and there is do not!" ---Yoda |
|
Back to top |
|
|
chrisl456 n00b
Joined: 12 Jan 2004 Posts: 18
|
Posted: Sun Aug 22, 2004 11:18 pm Post subject: Hint for Portage on Mandrake 9.2 |
|
|
Just wanted add a tip for installing Portage on Mandrake 9.2.
After getting Portage up & going, I found I couldn't get KDE working (X looked like it started, but then it just quit). I had to change my /etc/env.d/10ldpath to: Code: | LDPATH="/usr/X11R6/lib:/usr/lib/qt3/lib:/usr/lib/wine:/lib:/usr/lib:/usr/local/lib:/usr/kerberos/lib" | Everything's worked fine so far, but I haven't done anything too crazy yet - I've only upgraded nano.
HTH someone. _________________ -chris |
|
Back to top |
|
|
plb n00b
Joined: 19 Dec 2002 Posts: 34
|
Posted: Mon Sep 13, 2004 8:20 pm Post subject: |
|
|
I installed this using the script on a Redhat 9 box and it seemed to work flawlesly. However after restarting I can no longer log into the system. I can't ssh into the box either. Fortunately, I had webmin installed so I can at least look through the logs and run basic commands. Anyone have an idea what could hae gone wrong? I'm thinking bin/bash is hosed.
Thanks!
Edit to add more info:
Trying to ssh into the box, I get connection reset by peer.
Trying to log into the console there is no error message, but it doesnt accept any input from the login promt. |
|
Back to top |
|
|
garnie Tux's lil' helper
Joined: 09 Jan 2004 Posts: 108 Location: Vinderup, Denmark
|
Posted: Tue Sep 14, 2004 10:56 am Post subject: |
|
|
trying to do this on a debian . . hard work though . . i have got it running but every single package i try fails not one have completed compiling . heres the error code i apt-get install gcc gawk
but perhaps i need some more ??
debian:/# emerge patch
Calculating dependencies ...done!
Code: |
>>> emerge (1 of 1) sys-devel/patch-2.5.9 to /
>>> md5 src_uri ;-) patch-2.5.9.tar.gz
>>> Unpacking source...
>>> Unpacking patch-2.5.9.tar.gz to /var/tmp/portage/patch-2.5.9/work
tar: Read 8704 bytes from /usr/portage/distfiles/patch-2.5.9.tar.gz
>>> Source unpacked.
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 i686-pc-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** No targets specified and no makefile found. Stop.
!!! ERROR: sys-devel/patch-2.5.9 failed.
!!! Function src_compile, Line 38, Exitcode 2
!!! emake failed
debian:/# |
This eror comes with almost all of the packages . . (some like portage comes with no error message)
EDIT: i did the apt-get install make and guess what i found a package named "make" lame that it is no there as standard . .but anyway it seems to be gcc there is the main problm here . . how ever i been looking over some docs how ever nothing i could find . . |
|
Back to top |
|
|
BlindSpy Apprentice
Joined: 20 Mar 2004 Posts: 263
|
Posted: Fri Sep 17, 2004 3:13 pm Post subject: |
|
|
great guide! thanks _________________ Symlinks to:
xorg.conf |
|
Back to top |
|
|
gch n00b
Joined: 20 Sep 2003 Posts: 32 Location: Pittsburgh, PA
|
Posted: Tue Sep 21, 2004 7:49 pm Post subject: |
|
|
Hi everyone,
I've been trying this out on a RH9 machine. The machine is administered by my school, and has a lot of useful software installed, which is why I don't want to ditch it for Gentoo altogether. This is why installing portage atop it is very useful, particularly for keeping certain software up-to-date. (I never want to have to use GARNOME again).
Anyways, I get the rescue tarball installed, and am able to inject some packages, and emerge some others so that I can finally emerge a new version of portage, which goes fine.
Throughout the process I get lots of errors having to do with
Code: | einfo: command not found |
But I'm guessing that's from the rescue version of portage not having it.
Anyways, after I get the new portage installed, it fails to work. Whenever I run emerge, it hangs before it does anything. Pressing CTRL-C gives me the Python stack trace:
Code: |
mymachine root # emerge -p some_package
Traceback (most recent call last):
File "/usr/bin/emerge", line 278, in ?
tmpsettings = portage.config(clone=portage.settings)
File "/usr/lib/portage/pym/portage.py", line 1297, in __init__
self.regenerate()
File "/usr/lib/portage/pym/portage.py", line 1388, in regenerate
self.configdict["auto"]["USE"]=autouse(db[root]["vartree"],use_cache=use_cache)
File "/usr/lib/portage/pym/portage.py", line 1117, in autouse
myresult=dep_check(mydep,myvartree.dbapi,None,use="no",use_cache=use_cache)
File "/usr/lib/portage/pym/portage.py", line 3305, in dep_check
mylist=flatten(dep_listcleanup(dep_zapdeps(mysplit,mysplit2)))
File "/usr/lib/portage/pym/portage.py", line 3048, in dep_zapdeps
myresult=dep_zapdeps(unreduced[x],reduced[x])
File "/usr/lib/portage/pym/portage.py", line 3034, in dep_zapdeps
elif myportapi.match(x):
File "/usr/lib/portage/pym/portage.py", line 4724, in match
return self.xmatch("match-visible",mydep)
File "/usr/lib/portage/pym/portage.py", line 4711, in xmatch
myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep,mykey))
File "/usr/lib/portage/pym/portage.py", line 4697, in xmatch
myval=self.gvisible(self.visible(self.cp_list(mykey)))
File "/usr/lib/portage/pym/portage.py", line 4792, in gvisible
myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"])
File "/usr/lib/portage/pym/portage.py", line 4544, in aux_get
myret=doebuild(myebuild,"depend","/",self.mysettings,dbkey=mydbkey)
File "/usr/lib/portage/pym/portage.py", line 2069, in doebuild
mysettings.reset(use_cache=use_cache)
File "/usr/lib/portage/pym/portage.py", line 1334, in reset
self.regenerate(use_cache=use_cache)
File "/usr/lib/portage/pym/portage.py", line 1388, in regenerate
self.configdict["auto"]["USE"]=autouse(db[root]["vartree"],use_cache=use_cache)
File "/usr/lib/portage/pym/portage.py", line 1117, in autouse
myresult=dep_check(mydep,myvartree.dbapi,None,use="no",use_cache=use_cache)
File "/usr/lib/portage/pym/portage.py", line 3305, in dep_check
mylist=flatten(dep_listcleanup(dep_zapdeps(mysplit,mysplit2)))
File "/usr/lib/portage/pym/portage.py", line 3048, in dep_zapdeps
myresult=dep_zapdeps(unreduced[x],reduced[x])
File "/usr/lib/portage/pym/portage.py", line 3034, in dep_zapdeps
elif myportapi.match(x):
File "/usr/lib/portage/pym/portage.py", line 4724, in match
return self.xmatch("match-visible",mydep)
File "/usr/lib/portage/pym/portage.py", line 4711, in xmatch
myval=match_from_list(mydep,self.xmatch("list-visible",None,mydep,mykey))
File "/usr/lib/portage/pym/portage.py", line 4697, in xmatch
myval=self.gvisible(self.visible(self.cp_list(mykey)))
File "/usr/lib/portage/pym/portage.py", line 4792, in gvisible
myaux=db["/"]["porttree"].dbapi.aux_get(mycpv, ["KEYWORDS"])
File "/usr/lib/portage/pym/portage.py", line 4542, in aux_get
mylock = lockfile(mydbkey,unlinkfile=1)
File "/usr/lib/portage/pym/portage.py", line 89, in lockfile
fcntl.flock(myfd,fcntl.LOCK_EX)
KeyboardInterrupt
|
It's obviously failing to get the lock on some DB file, I think. Any ideas??? |
|
Back to top |
|
|
ilikelinux n00b
Joined: 19 Dec 2003 Posts: 50
|
Posted: Thu Oct 07, 2004 7:05 am Post subject: |
|
|
Can any help witht his problem?
Code: | [root@server root]# /etc/init.d/sendmail start
/sbin/depscan.sh: line 6: /etc/init.d/functions.sh: No such file or directory
/sbin/depscan.sh: line 8: ebegin: command not found
/sbin/depscan.sh: line 14: eerror: command not found
* Could not get SVCDIR!
* Could not get SVCDIR!
gawk: /lib/rcscripts/awk/gendepends.awk:440: fatal: expression for `>>' redirection has null string value
/depcache: /depcache: No such file or directory
* Error running '/sbin/depscan.sh'!
* Please correct any problems above.
[root@server root]#
|
This happens when i try to start sendmail |
|
Back to top |
|
|
jamapii l33t
Joined: 16 Sep 2004 Posts: 637
|
Posted: Thu Oct 07, 2004 5:57 pm Post subject: |
|
|
/sbin/depscan.sh belongs to sys-apps/baselayout
I did something like
Code: |
mkdir -p /tmp/1
ROOT=/tmp/1 emerge --nodeps baselayout
|
then find the files in /tmp/1 that don't conflict with the existing "baselayout" and copy them over. Then do something like Code: | emerge --inject sys-apps/baselayout-0.0 |
[/code] |
|
Back to top |
|
|
ilikelinux n00b
Joined: 19 Dec 2003 Posts: 50
|
Posted: Thu Oct 07, 2004 6:00 pm Post subject: |
|
|
thanks that fixed it, either that or it was something else i did. |
|
Back to top |
|
|
|
|
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
|
|