| View previous topic :: View next topic |
| Author |
Message |
tony11235 Apprentice

Joined: 15 May 2006 Posts: 198
|
Posted: Wed Oct 03, 2007 2:20 pm Post subject: |
|
|
Yes, but only for the main tools like gcc, binutils, etc. Now I'm not so sure that I want to have to deal with putting everything that I already have installed in that file. I think I'll just forget about this. _________________ "What can be asserted without evidence can also be dismissed without evidence" |
|
| Back to top |
|
 |
zecora l33t


Joined: 17 Aug 2004 Posts: 627 Location: Minnetonka, Minnesota
|
Posted: Wed Oct 17, 2007 6:44 pm Post subject: |
|
|
| Code: |
>>> Updating Portage cache: 100%
!!! Problem with sandbox binary. Disabling...
!!! Problem with sandbox binary. Disabling...
!!! ARCH is not set... Are you missing the /etc/make.profile symlink?
!!! Is the symlink correct? Is your portage tree complete?
!!! Problem with sandbox binary. Disabling...
*** --inject has been deprecated.
*** If you manage a piece of software yourself, add it's name and
*** version (eg foo/bar-1.0) to /etc/portage/profile/package.provided.
*** If you want to prevent portage from upgrading a package, add it to
*** /etc/portage/package.mask prepending it with '>' (eg >foo/bar-1.0)
*** For more information on fine-grained portage control, please see
*** the portage man page.
emerge: please specify at least one cat/pkg-ver to inject.
!!! Problem with sandbox binary. Disabling...
!!! ARCH is not set... Are you missing the /etc/make.profile symlink?
!!! Is the symlink correct? Is your portage tree complete?
!!! Problem with sandbox binary. Disabling...
*** --inject has been deprecated.
*** If you manage a piece of software yourself, add it's name and
*** version (eg foo/bar-1.0) to /etc/portage/profile/package.provided.
*** If you want to prevent portage from upgrading a package, add it to
*** /etc/portage/package.mask prepending it with '>' (eg >foo/bar-1.0)
*** For more information on fine-grained portage control, please see
*** the portage man page.
emerge: please specify at least one cat/pkg-ver to inject.
!!! Problem with sandbox binary. Disabling...
!!! ARCH is not set... Are you missing the /etc/make.profile symlink?
!!! Is the symlink correct? Is your portage tree complete?
!!! Problem with sandbox binary. Disabling...
*** --inject has been deprecated.
*** If you manage a piece of software yourself, add it's name and
*** version (eg foo/bar-1.0) to /etc/portage/profile/package.provided.
*** If you want to prevent portage from upgrading a package, add it to
*** /etc/portage/package.mask prepending it with '>' (eg >foo/bar-1.0)
*** For more information on fine-grained portage control, please see
*** the portage man page.
emerge: please specify at least one cat/pkg-ver to inject.
!!! Problem with sandbox binary. Disabling...
!!! ARCH is not set... Are you missing the /etc/make.profile symlink?
!!! Is the symlink correct? Is your portage tree complete?
!!! Problem with sandbox binary. Disabling...
!!! ARCH is not set... Are you missing the /etc/make.profile symlink?
!!! Is the symlink correct? Is your portage tree complete?
!!! Problem with sandbox binary. Disabling...
*** --inject has been deprecated.
*** If you manage a piece of software yourself, add it's name and
*** version (eg foo/bar-1.0) to /etc/portage/profile/package.provided.
*** If you want to prevent portage from upgrading a package, add it to
*** /etc/portage/package.mask prepending it with '>' (eg >foo/bar-1.0)
*** For more information on fine-grained portage control, please see
*** the portage man page.
emerge: please specify at least one cat/pkg-ver to inject.
!!! Problem with sandbox binary. Disabling...
!!! ARCH is not set... Are you missing the /etc/make.profile symlink?
!!! Is the symlink correct? Is your portage tree complete?
Inject has failed. Please verify and continue with cut & paste of rest of the steps
ERROR.
|
I run the script and this is the msg I get. I am trying to set this up on Ubuntu v7.04. If you could please help me out with this msg. |
|
| Back to top |
|
 |
zecora l33t


Joined: 17 Aug 2004 Posts: 627 Location: Minnetonka, Minnesota
|
Posted: Fri Oct 19, 2007 4:26 pm Post subject: |
|
|
| Code: | sent 2605 bytes received 3696631 bytes 93651.54 bytes/sec
total size is 178693700 speedup is 48.31
>>> Updating Portage cache: 100%
* An update to portage is available. It is _highly_ recommended
* that you update portage now, before any other packages are updated.
* Please do so and then update ALL of your configuration files.
[root@localhost init.d]# emerge -pv portage
These are the packages that I would merge, in order:
!!! ARCH is not set... Are you missing the /etc/make.profile symlink?
!!! Is the symlink correct? Is your portage tree complete?
[root@localhost init.d]# |
I reinstalled the system and switched to Fedora. I get this msg after I emerge --sync and then try to update portage. |
|
| Back to top |
|
 |
zecora l33t


Joined: 17 Aug 2004 Posts: 627 Location: Minnetonka, Minnesota
|
Posted: Fri Oct 19, 2007 7:27 pm Post subject: |
|
|
I fixed that issue by doing | Code: | | ln -sf /usr/portage/profiles/default-linux/x86/2006.1 /etc/make.profile | it seems it is not working when I try to .
Here is the msg I get.
| Code: | [root@localhost ~]# emerge portage
!!! Problem with sandbox binary. Disabling...
Calculating dependencies ...done!
>>> emerge (1 of 46) dev-libs/expat-2.0.1 to /
>>> md5 files ;-) expat-2.0.1.ebuild
>>> md5 files ;-) expat-1.95.8.ebuild
>>> md5 files ;-) expat-1.95.7.ebuild
>>> md5 files ;-) expat-1.95.7-r1.ebuild
>>> md5 files ;-) expat-2.0.0.ebuild
>>> md5 files ;-) files/digest-expat-2.0.1
>>> md5 files ;-) files/digest-expat-1.95.8
>>> md5 files ;-) files/expat-2.0.0-test-cpp.patch
>>> md5 files ;-) files/digest-expat-2.0.0
>>> md5 files ;-) files/digest-expat-1.95.7-r1
>>> md5 files ;-) files/digest-expat-1.95.7
>>> md5 files ;-) files/expat-2.0.0-test-64bit.patch
>>> md5 src_uri ;-) expat-2.0.1.tar.gz
>>> Unpacking source...
>>> Unpacking expat-2.0.1.tar.gz to /var/tmp/portage/expat-2.0.1/work
>>> Source unpacked.
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --build=i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... no
checking for gcc... no
checking for i686-pc-linux-gnu-cc... no
checking for cc... no
checking for cc... no
checking for i686-pc-linux-gnu-cl... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/expat-2.0.1/work/expat-2.0.1/config.log
!!! ERROR: dev-libs/expat-2.0.1 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.
[root@localhost ~]# |
EDIT: Says I need a working Compiler. So How do I get that setup? |
|
| Back to top |
|
 |
pwiddy n00b

Joined: 26 Oct 2007 Posts: 1
|
Posted: Tue Oct 30, 2007 7:37 pm Post subject: |
|
|
zecora, your problem is probably due to the fact that you haven't installed gcc on your fedora system. I'm not sure if you need more than just gcc. Everything worked well for me on an x86 system running Ubuntu 7.04. But I have installed various development tools. But | Code: | | apt-get install build-essential | should do if you are using Ubuntu. There may be more, but since I had all this already installed I'm not sure if you need more
So just start by installing gcc and see if you are able to resolve this problem. |
|
| Back to top |
|
 |
jaytho n00b

Joined: 22 Apr 2008 Posts: 1
|
Posted: Tue Apr 22, 2008 12:58 am Post subject: Got it going on redhat:python 2.2.4 readline patch |
|
|
seems like a lot of interdepencies between portage<>python versions.
from a redhat release 4, nahant update 5 (needed to redo apache2)
Installed python 2.3.7 from scratch to make portage go,
then when I attempt to emerge portage, readline patch borks patching dev-lang/python-2.4.4-r6
Looks like the patch comes up empty looking at /var/tmp/portage/python...01_all_readline.patch-30274.out
should I keep python outside of portage and update (or are their portage package dependencies?)
or attempt without readline (what is readline?)
or tweak the ebuild
also, apache2ctl requires runscript- where does that come from?
TIA |
|
| Back to top |
|
 |
Pliablemammal n00b


Joined: 02 Oct 2006 Posts: 51 Location: Sacramento
|
Posted: Sun Nov 30, 2008 3:33 am Post subject: Trying it on YDL 6.1 and PS3 |
|
|
| Having some difficulty here, looks like the x86 will have to be changed to ppc64, but not sure what I should link to make it work? |
|
| Back to top |
|
 |
XavierMiller Moderator


Joined: 23 Jul 2004 Posts: 4615 Location: ~Brussels - Belgique
|
Posted: Wed Jun 09, 2010 5:30 am Post subject: |
|
|
Hello,
I am trying to install portage on a LFS-based system (just for the geeky fun).
I have a toolchain + python 2.6 and try to install portage.
I see that portage-2.1 and 2.2 are quite different than 2.0.
Will portage 2.0 still work today with a current portage tree ?
Did anybody tried that operation on those last recent days ?
EDIT: I will try with pkgcore or paludis, because they have installation scripts. _________________ Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be |
|
| Back to top |
|
 |
XavierMiller Moderator


Joined: 23 Jul 2004 Posts: 4615 Location: ~Brussels - Belgique
|
Posted: Tue Jul 20, 2010 7:12 pm Post subject: |
|
|
Hello,
I managed to build a "Gentoo From Scratch" !
I started from LinuxFromScratch 6.6 book, but only built the chroot system (in /tools), then install portage, then emerge 2-3 needed packages, then generate a stage 1, and voilà !
I am currently testing my script. If someone is interested, I will publish it later. _________________ Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be |
|
| Back to top |
|
 |
ferringb Developer


Joined: 03 Apr 2003 Posts: 355 Location: USA
|
Posted: Fri Jul 23, 2010 10:15 am Post subject: |
|
|
| XavierMiller wrote: | Hello,
I managed to build a "Gentoo From Scratch" !
I started from LinuxFromScratch 6.6 book, but only built the chroot system (in /tools), then install portage, then emerge 2-3 needed packages, then generate a stage 1, and voilà !
I am currently testing my script. If someone is interested, I will publish it later. |
Bit curious... _________________ I don't want to be buried in a pet cemetery. ~Ramones |
|
| Back to top |
|
 |
XavierMiller Moderator


Joined: 23 Jul 2004 Posts: 4615 Location: ~Brussels - Belgique
|
Posted: Fri Jul 23, 2010 11:26 am Post subject: |
|
|
I'm fixing some bugs in my script, the big problems are around. Yet some ld.so problems, maybe a bug in the initial toolchain (I feel I removed too much base packages from LFS). _________________ Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be |
|
| Back to top |
|
 |
krystys n00b

Joined: 24 Jul 2010 Posts: 4
|
Posted: Sat Jul 24, 2010 10:51 am Post subject: |
|
|
| it would be absolutely great if you could tell us how to install portage-emerge on a LFS 6.6 |
|
| Back to top |
|
 |
XavierMiller Moderator


Joined: 23 Jul 2004 Posts: 4615 Location: ~Brussels - Belgique
|
Posted: Mon Jul 26, 2010 9:18 pm Post subject: |
|
|
Hello,
The scripts "Gentoo From Scratch" begins to be stable: I managed how to switch from a "/tools" based minimal system (as described in Linux From Scratch book version 6.6, but staying in /tools), install python (easy), portage (quite straightforward by copying all needed files in the right place), then amend the "/tools" toolchain to point again to "/lib(64)", and generate the stage 1.
The script is under test on my machine for the night, let's hope it will reach a stage 3  _________________ Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be |
|
| Back to top |
|
 |
krystys n00b

Joined: 24 Jul 2010 Posts: 4
|
Posted: Tue Jul 27, 2010 9:12 am Post subject: |
|
|
but at least can you tell us how you installed portage? and did emerge work?
Last edited by krystys on Tue Jul 27, 2010 1:10 pm; edited 1 time in total |
|
| Back to top |
|
 |
XavierMiller Moderator


Joined: 23 Jul 2004 Posts: 4615 Location: ~Brussels - Belgique
|
Posted: Tue Jul 27, 2010 9:18 am Post subject: |
|
|
Yep.
Assuming python is installed:
| Code: | mkdir -p /usr/share/portage/config
mkdir -p /usr/lib/portage
cp -a bin pym /usr/lib/portage
for f in archive-conf dispatch-conf emaint emerge-webrsync env-update etc-update fixpackages quickpkg regenworld
do
ln -s ../lib/portage/bin/$f /usr/sbin/$f
done
ln -s env-update /usr/sbin/update-env
ln -s etc-update /usr/sbin/update-etc
cp cnf/make.globals cnf/sets.conf /usr/share/portage/config
for f in ebuild egencache emerge portageq repoman
do
ln -s ../lib/portage/bin/$f /usr/bin/$f
done
cp -r cnf/logrotate.d /etc
cp cnf/dispatch-conf.conf /etc
cp cnf/etc-update.conf /etc
ln -s ../usr/share/portage/config/make.globals /etc/make.globals
old_pwd=$PWD
cd /etc
case $(uname -m) in
i?86)
ln -s ../usr/portage/profiles/default/linux/x86/10.0 /etc/make.profile
;;
x86_64)
ln -s ../usr/portage/profiles/default/linux/amd64/10.0/no-multilib /etc/make.profile
;;
*)
echo TODO: Your processor architecture ($(uname -m)) is not supported by this script.
exit 1
;;
esac
echo USE=\"-berkdb -fortran -gdbm -hal -ipv6\" > /etc/make.conf
#TODO: add other supported processors
echo ACCEPT_KEYWORDS=\"~$(case $(uname -m) in i?86) echo x86 ;; x86_64) echo amd64;; esac)\" >> /etc/make.conf
echo CHOST=\"$(uname -m)-pc-linux-gnu\" >> /etc/make.conf
echo MAKEOPTS=\"$MAKEOPTS\" >> /etc/make.conf
cat >> /etc/make.conf << "EOF"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native -mtune=native"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="candy parallel-fetch"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_SYSTEM="echo save"
EOF
mkdir /etc/portage
echo sys-apps/portage > /etc/portage/package.unmask
echo Europe/Brussels > /etc/timezone
cd /usr
if [[ -f $DISTFILES/portage-snapshot.tar.bz2 ]]
then
echo --- unpacking Portage snapshot...
tar xpf $DISTFILES/portage-snapshot.tar.bz2 || exit 1
fi
if [[ -f $DISTFILES/portage-distfiles.tar ]]
then
echo --- unpacking some distfiles...
mkdir -p /usr/portage/distfiles
cd /usr/portage/distfiles
tar xf $DISTFILES/portage-distfiles.tar || exit 1
fi
cd $old_pwd
if [[ ! $(grep portage /etc/passwd) ]]
then
echo portage:x:250:250:portage:/var/tmp/portage:/bin/false >> /etc/passwd
fi
if [[ ! $(grep portage /etc/group) ]]
then
echo portage::250:portage >> /etc/group
fi
if [[ ! -d /usr/portage ]]
then
emerge --sync || exit 1
fi
emerge --info || exit 1;
|
And obviously, emerge works  _________________ Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be |
|
| Back to top |
|
 |
krystys n00b

Joined: 24 Jul 2010 Posts: 4
|
Posted: Tue Jul 27, 2010 1:11 pm Post subject: |
|
|
Thank you, this sure solves my problems and others for sure.
And also, what do i need to download - portage-latest.tar.bz2? |
|
| Back to top |
|
 |
XavierMiller Moderator


Joined: 23 Jul 2004 Posts: 4615 Location: ~Brussels - Belgique
|
Posted: Tue Jul 27, 2010 7:26 pm Post subject: |
|
|
Hello,
Just to say I fully succeeded a script that install Gentoo from Scratch
I will give first details in French, in my topic, and later, I will translate it in English. The script will be published later, when it will be complete (pre-requisites tests, automatic download of needed sources, check with some non-Gentoo live CDs as Ubuntu and LinuxFromScratch, ...)
The script I gave before to install Portage is included in my script, you can use it on any other distribution. Let's hope Portage developers will provide a configure and makefile in a next version of Portage.... _________________ Xavier Miller
(FR) Merci de respecter les règles du forum.
http://www.xaviermiller.be |
|
| Back to top |
|
 |
yanom n00b

Joined: 02 Oct 2010 Posts: 6
|
Posted: Sun Oct 10, 2010 5:11 pm Post subject: |
|
|
does this still work, 6 years later? _________________ I have no signature. |
|
| Back to top |
|
 |
|