Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting portage running under Solaris 9 (Portaris!)
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3 ... 11, 12, 13  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Tue Dec 09, 2003 6:11 am    Post subject: Getting portage running under Solaris 9 (Portaris!) Reply with quote

Well, my first steps in getting portage going under solaris are beginning to look promising. After copying the site-packages, putting a static link from /usr/local/bin/python to /usr/bin/python. I finally got emerge to run without dumping python source to the screen and complaining about modules. Even linking libm.so.6 to libm.so.1.

I got this:

Code:

bash-2.05# ./emerge sync
!!! CANNOT IMPORT FTPLIB: ld.so.1: /usr/bin/python: fatal: libc.so.6: open failed: No such file or directory
Operating system "SunOS" currently unsupported. Exiting


So I linked libc.so.1 to libc.so.6 and got this:

Code:

bash-2.05# ./emerge
!!! CANNOT IMPORT FTPLIB: No module named _socket
Operating system "SunOS" currently unsupported. Exiting.
bash-2.05#



So I looked for that file in my stage1 dir that I untarred into:
Code:
bash-2.05# file /gentoo/usr/lib/python2.2/lib-dynload/_socket.so
/gentoo/usr/lib/python2.2/lib-dynload/_socket.so:       ELF 32-bit MSB dynamic lib SPARC Version 1, dynamically linked, not stripped



If it is not part of python, where can I get this? Currently I am using the following sunfreeware packages:
Code:

9_Recommended
bzip2-1.0.2-sol9-sparc-local     
findutils-4.1-sol9-sparc-local   
make-3.80-sol9-sparc-local
python-2.2.2-sol9-sparc-local
coreutils-4.5.4-sol9-sparc-local 
gawk-3.1.1-sol9-sparc-local       
rsync-2.5.6-sol9-sparc-local
autoconf-2.57-sol9-sparc-local   
cvs-1.11.5-sol9-sparc-local
sed-4.0-sol9-sparc-local
automake-1.7.2-sol9-sparc-local   
diffutils-2.8.1-sol9-sparc-local
wget-1.8.2-sol9-sparc-local
bison-1.875-sol9-sparc-local     
fileutils-4.1-sol9-sparc-local   
gzip-1.3.5-sol9-sparc-local



Can you see anything off-hand that might be needed?
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.


Last edited by stonent on Sat May 15, 2004 11:56 pm; edited 4 times in total
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9613
Location: beyond the rim

PostPosted: Tue Dec 09, 2003 7:07 am    Post subject: Reply with quote

According to portage that file belongs to python :?
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Tue Dec 09, 2003 7:11 am    Post subject: Reply with quote

Looks like a bad distro of Python on Sunfreeware. I sent them an e-mail about it and am going to compile python myself and see if I can proceed.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Thu Dec 11, 2003 7:09 am    Post subject: Reply with quote

Ok a few new things. I did a clean reinstall of Solaris9 on to another drive with developer support because I found out that gcc couldn't compile because I didn't include developer support. Also I am only using 2 binary packages from sunfreeware, GCC and Bash. I'm going to try to do everything from source. :D

I downloaded latest stable sources from Python.org. However it gives an error during the untarring. I tried compiling anyway but it wouldn't complete. So did an emerge -f python on my gentoo system and copied the file over to my Sun it compiled without a hitch.

Emerge runs now with just the SunOS error above. I need to find out where it is determining that and then modify it to make it continue. Anyone feel free to chime in as I'm working on this, because I'm basically doing it w/o any docs. :twisted:

I did find I needed to add /usr/ccs/bin to my path to give access to a few more things such as "ar"

Code:
bash-2.05# export
declare -x HOME="/"
declare -x HOSTNAME="Fusion"
declare -x HOSTTYPE="sparc"
declare -x HZ=""
declare -x LD_LIBRARY_PATH="/usr/local/lib/sparcv9"
declare -x LIBRARY_PATH="/usr/local/lib/sparcv9"
declare -x LOGNAME="root"
declare -x MACHTYPE="sparc-sun-solaris2.9"
declare -x OLDPWD="/export/home/root"
declare -x OSTYPE="solaris2.9"
declare -x PATH="/usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin"
declare -x PWD="/export/home/root/ncurses-5.3"
declare -x SHELL="/bin/bash"
declare -x SHLVL="1"
declare -x TERM="xterm"
declare -x TZ="US/Central"


Originally when I compiled Python, I used
Code:
-DNDEBUG -m64 -g -O3 -pipe -fomit-frame-pointer -mcpu=ultrasparc
 -mtune=ultrasparc -Wall -Wstrict-prototypes


But the -m64 flag causes this:
Code:
gcc -c -DNDEBUG -m64 -g -O3 -pipe -fomit-frame-pointer -mcpu=ultrasparc -mtune=ultrasparc -Wall -Wstrict-prototypes      -I. -I./Include -DHAVE_CONFIG_H  -o Modules/python.o Modules/python.c
In file included from Include/Python.h:62,
                 from Modules/python.c:3:
Include/pyport.h:480:2: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
make: *** [Modules/python.o] Error 1


I tried :
Code:
LD_LIBRARY_PATH="/usr/local/lib/sparcv9"
LIBRARY_PATH="/usr/local/lib/sparcv9"


and

Code:
LD_LIBRARY_PATH="/usr/local/lib"
LIBRARY_PATH="/usr/local/lib"


But both gave the same error, so I removed -m64 and it seems to compile fine using the non-sparcv9 libs.

Eventually I plan to move /usr/local/bin ahead of /usr/bin when I get enough stuff in there to work by itself since solaris9 already has a lot of good stuff in /usr/bin.

I hope the powers that be don't mind me making my notes in this thread.. :D
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.


Last edited by stonent on Sat Dec 13, 2003 8:53 am; edited 1 time in total
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Thu Dec 11, 2003 8:15 am    Post subject: Reply with quote

Ok, I cheated in portage.py and replaced Linux with SunOS. Now it complains about libc.so.6 is missing, so I linked libc.so.1 to libc.so.6

Code:
bash-2.05# ./emerge
Traceback (most recent call last):
  File "./emerge", line 14, in ?
    import portage
  File "/usr/local/lib/python2.2/site-packages/portage.py", line 125, in ?
    import missingos
ImportError: ld.so.1: /usr/bin/python: fatal: libc.so.6: version `GLIBC_2.0' not found (required by file /usr/local/lib/python2.2/site-packages/missingos.so)
bash-2.05#


Looks like I need to try to get glibc to work or recompile the missingos.so file using the solaris libs.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sat Dec 13, 2003 6:50 am    Post subject: Reply with quote

Well today's latest...

Code:
bash-2.05# gcc missingos.c -I /usr/local/include/python2.2/
Undefined                       first referenced
 symbol                             in file
main                                /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/crt1.o
PyErr_SetString                     /var/tmp//cccfiJio.o
Py_InitModule4                      /var/tmp//cccfiJio.o
PyErr_SetFromErrnoWithFilename      /var/tmp//cccfiJio.o
PyArg_ParseTuple                    /var/tmp//cccfiJio.o
PyMem_Free                          /var/tmp//cccfiJio.o
_Py_NoneStruct                      /var/tmp//cccfiJio.o
Py_FileSystemDefaultEncoding        /var/tmp//cccfiJio.o
PyExc_OSError                       /var/tmp//cccfiJio.o
PyExc_ValueError                    /var/tmp//cccfiJio.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status
bash-2.05#


I'm trying to compile stuff in the portage source directories. I need missingos.so to continue.
This is a challenge but I think it will be worth it if I get it working.

Update, I got it to compile

Code:
gcc -DNDEBUG -fPIC -I/usr/local/include/python2.2 -c missingos.c -o missingos.o
gcc -shared missingos.o -o missingos.so


Rsync was not installed in solaris, so I tried to build it from the gentoo source but it failed. I then installed the binary from sunfreeware.com

I tried emerging again, and it failed on libpopt.so.0 so that gets downloaded from a gentoo mirror.

Libpopt needs gettext, so another download. Gettext complained during compile that it needed ar so I added /usr/ccs/bin to my path.

Gettext installed fine now. Back to compiling libpopt. It failed saying that it couldn't find gettext even though it was in the path, so I edited the configure script and commented out the check for it.
Code:

gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I.    -Wall -g -O2 -c `test -f 'test1.c' || echo './'`test1.c
/bin/bash ./libtool --mode=link gcc  -Wall -g -O2   -o test1 -all-static test1.o libpopt.la -L/usr/ucblib -R /usr/ucblib
gcc -Wall -g -O2 -o test1 -static test1.o  ./.libs/libpopt.a -L/usr/ucblib -R/usr/ucblib
Undefined                       first referenced
 symbol                             in file
libintl_dgettext                    ./.libs/libpopt.a(popt.o)
ld: fatal: Symbol referencing errors. No output written to test1
collect2: ld returned 1 exit status
make[2]: *** [test1] Error 1
make[2]: Leaving directory `/export/home/root/popt-1.7'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/export/home/root/popt-1.7'
make: *** [all] Error 2


Ok, I'm giving up on this one, back to Sunfreeware.com for popt.

Something looks good to me!!!
Code:

bash-2.05#pwd
/export/home/root/gentoo/usr/bin
bash-2.05# ./emerge sync

!!! INVALID ACCEPT_KEYWORDS: sparc
>>> starting rsync with rsync://rsync.gentoo.org/gentoo-portage...
This is rsync2.us.gentoo.org, located in Florida, USA.
Contact: sandymac@gentoo.org

receiving file list ...


It is still downloading but so far:

Code:

bash-2.05# pwd
/usr/local/portage
bash-2.05# ls
app-admin         app-sci           dev-ml            games-kids
app-arch          app-shells        dev-perl          games-misc
app-benchmarks    app-text          dev-php           games-mud
app-cdr           app-vim           dev-python        games-puzzle
app-crypt         app-xemacs        dev-ruby          games-roguelike
app-dicts         dev-ada           dev-tcltk         games-rpg
app-doc           dev-cpp           dev-tex           games-server
app-editors       dev-db            dev-util          games-simulation
app-emacs         dev-dotnet        eclass            games-sports
app-emulation     dev-embedded      fresco-base       games-strategy
app-gnustep       dev-games         games-action      games-util
app-i18n          dev-haskell       games-arcade      gnome-base
app-misc          dev-java          games-board       profiles
app-office        dev-lang          games-emulation
app-pda           dev-libs          games-engines
app-portage       dev-lisp          games-fps
bash-2.05#

_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sat Dec 13, 2003 8:52 am    Post subject: Reply with quote

Well it looks like the emerge sync went into my make.profile directory and removed the files that I created, so I copied the sparc64 files into my root directory and linked to them. I changed the chost to match the current setting. I'll have to figure out some way to permanently mask the kernels. I guess that I'm going to need a solaris architecture because I can't keep using sparc because it will assume linux.

Now the next stumbling block
Code:
bash-2.05# ./emerge -p wget

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


aux_get(): (0) Error in net-misc/wget-1.8.2-r3 ebuild.
               Check for syntax error or corruption in the ebuild. (--debug)

Calculating dependencies   
!!! all ebuilds that could satisfy "wget" have been masked.

!!! Error calculating dependencies. Please correct.
bash-2.05# ./emerge -p lynx

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


aux_get(): (0) Error in net-www/lynx-2.8.4.1c ebuild.
               Check for syntax error or corruption in the ebuild. (--debug)

Calculating dependencies   
!!! all ebuilds that could satisfy "lynx" have been masked.

!!! Error calculating dependencies. Please correct.
bash-2.05#


Doing an emerge -debug told me some files were missing, so I copied over ebuild.sh and another file that I forget.

Moving along:

Code:
bash-2.05# ./emerge --debug -p bash

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

Calculating dependencies 
Parent:    None
Depstring: app-shells/bash
Candidates: ['app-shells/bash']

/usr/sbin/ebuild.sh: /proc/self/fd/1: Permission denied
flag-o-matic
/usr/sbin/ebuild.sh: /proc/self/fd/1: Permission denied
gnuconfig
mkdir: usage: mkdir [-m mode] [-p] dirname ...
install: mkdir -m4775 failed
/usr/sbin/ebuild.sh: /var/cache/edb/dep//app-shells/bash-2.05a-r3: No such file or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//app-shells/bash-2.05a-r3: No such file or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//app-shells/bash-2.05a-r3: No such file or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//app-shells/bash-2.05a-r3: No such file or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//app-shells/bash-2.05a-r3: No such file or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//app-shells/bash-2.05a-r3: No such file or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//app-shells/bash-2.05a-r3: No such file or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//app-shells/bash-2.05a-r3: No such file or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//app-shells/bash-2.05a-r3: No such file or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//app-shells/bash-2.05a-r3: No such file or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//app-shells/bash-2.05a-r3: No such file or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//app-shells/bash-2.05a-r3: No such file or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//app-shells/bash-2.05a-r3: No such file or directory

aux_get(): (1) Error in app-shells/bash-2.05a-r3 ebuild.
               Check for syntax error or corruption in the ebuild. (--debug)


!!! all ebuilds that could satisfy "bash" have been masked.

!!! Error calculating dependencies. Please correct.
bash-2.05#


I think that the way solaris mkdir works is different from the linux one.

I manually created the dir and I got a screen full of errors related to /proc/self/fd/1. I tried to create that manually but it complained that the operation was not applicable.

The offending piece of code in the ebuild.sh file is:
Code:
 # All the TTY checks really only help out depend. Which is nice.
        # Logging kills all this anyway. Everything becomes a pipe. --NJ
        for x in "$@"; do
                if [ "${x}" == "${me}" ]; then
                        if [ -r /proc/self/fd/1 ]; then
                                tty --quiet < /proc/self/fd/1 || echo "${x}"
                        elif [ -r /dev/fd/1 ]; then
                                echo "/dev/fd/1" >&2
                                tty --quiet < /dev/fd/1 || echo "${x}"
                        elif [ -r /dev/stdout ]; then
                                echo "/dev/stdout" >&2
                                tty --quiet < /dev/stdout || echo "${x}"
                        else
                                echo "${x}"
                        fi                 
                        return 0
                fi


I think that's all I'm going to do tonight. Can somone give me an idea of that the above piece of code is trying to do?
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sat Dec 13, 2003 10:04 am    Post subject: Reply with quote

Nope, I couldn't wait. Since it said some things were masked, I changed the keywords and modified the path to use the mkdir in /usr/local/bin.

Code:
bash-2.05# echo $PATH
/usr/sbin:/usr/bin:/usr/local/bin
bash-2.05# export PATH=/usr/local/bin:/usr/sbin:/usr/bin:/usr/ccs/bin
bash-2.05# ACCEPT_KEYWORDS="~sparc" ./emerge --debug -p bash

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

Calculating dependencies 
Parent:    None
Depstring: app-shells/bash
Candidates: ['app-shells/bash']
ebuild: app-shells/bash-2.05b-r8
binpkg: None                                                                   \
Parent:    ebuild / app-shells/bash-2.05b-r8 merge
Depstring: >=sys-libs/ncurses-5.2-r2 !bootstrap? ( sys-devel/patch ) sys-devel/g                                                                                     
nuconfig !bootstrap? ( sys-devel/libtool ) >=sys-libs/ncurses-5.2-r2
Candidates: ['sys-devel/gnuconfig', 'sys-devel/libtool', '>=sys-libs/ncurses-5.2                                                                                     
-r2', 'sys-devel/patch']

mkdir: usage: mkdir [-m mode] [-p] dirname ...
install: mkdir -m4775 failed
/usr/sbin/ebuild.sh: /var/cache/edb/dep//sys-devel/gnuconfig-20030708: No such f                                                                                     
ile or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//sys-devel/gnuconfig-20030708: No such f                                                                                     
ile or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//sys-devel/gnuconfig-20030708: No such f                                                                                     
ile or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//sys-devel/gnuconfig-20030708: No such f                                                                                     
ile or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//sys-devel/gnuconfig-20030708: No such f                                                                                     
ile or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//sys-devel/gnuconfig-20030708: No such f                                                                                     
ile or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//sys-devel/gnuconfig-20030708: No such f                                                                                     
ile or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//sys-devel/gnuconfig-20030708: No such f                                                                                     
ile or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//sys-devel/gnuconfig-20030708: No such f                                                                                     
ile or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//sys-devel/gnuconfig-20030708: No such f                                                                                     
ile or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//sys-devel/gnuconfig-20030708: No such f                                                                                     
ile or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//sys-devel/gnuconfig-20030708: No such f                                                                                     
ile or directory
/usr/sbin/ebuild.sh: /var/cache/edb/dep//sys-devel/gnuconfig-20030708: No such f                                                                                     
ile or directory

aux_get(): (1) Error in sys-devel/gnuconfig-20030708 ebuild.
               Check for syntax error or corruption in the ebuild. (--debug)


!!! all ebuilds that could satisfy "sys-devel/gnuconfig" have been masked.
!!!    (dependency required by "app-shells/bash-2.05b-r8" [ebuild])

!!! Error calculating dependencies. Please correct.

_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9613
Location: beyond the rim

PostPosted: Sat Dec 13, 2003 6:34 pm    Post subject: Reply with quote

Well, that codepart in ebuild.sh is basically just checking if stdout is a terminal and if not it echos the current value of $x (usually a USE flag). The whole it-elif stuff is because if you use FEATURES="userpriv" the portage user doesn't have read access to it.
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sat Dec 13, 2003 7:06 pm    Post subject: Reply with quote

I wonder why it is convinced that everything is masked. I have set to to accept the sparc keyword and also ~sparc and in both cases it thinks things are masked.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sat Dec 13, 2003 10:08 pm    Post subject: Reply with quote

Today's latest. I had to copy the /var/cache/edb/dep contents over to the Solaris install.

One problem I seem to be having is that there seems to be a lot of stuff hard coded as /usr/bin so I have to link things into /usr/bin.

Code:
bash-2.05# ACCEPT_KEYWORDS="~sparc" emerge gnuconfig                                       
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-devel/gnuconfig-20030708 to /
>>> md5 src_uri ;-) gnuconfig-20030708.tar.bz2
id: illegal option -- n
Usage: id [-ap] [user]
/usr/sbin/ebuild.sh: [: ==: unary operator expected
Traceback (most recent call last):
  File "/export/home/root/gentoo/usr/bin/emerge", line 2153, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/export/home/root/gentoo/usr/bin/emerge", line 1357, in merge
    retval=portage.doebuild(y,"merge",myroot,edebug)
  File "/usr/local/lib/python2.2/site-packages/portage.py", line 1924, in doebuild
    retval=spawnebuild("install",actionmap,debug,1)
  File "/usr/local/lib/python2.2/site-packages/portage.py", line 1633, in spawnebuild
    retval=spawnebuild(actionmap[mydo]["dep"],actionmap,debug,alwaysdep)
  File "/usr/local/lib/python2.2/site-packages/portage.py", line 1633, in spawnebuild
    retval=spawnebuild(actionmap[mydo]["dep"],actionmap,debug,alwaysdep)
  File "/usr/local/lib/python2.2/site-packages/portage.py", line 1640, in spawnebuild
    actionmap[mydo]["args"][1])
  File "/usr/local/lib/python2.2/site-packages/portage.py", line 1194, in spawn
    os.execve(mycommand,myargs,settings.environ())
OSError: [Errno 2] No such file or directory
bash-2.05# which id
/usr/bin/id
bash-2.05# cd /usr
bash-2.05# cd bin
bash-2.05# mv id id.bak
bash-2.05# ln -s /usr/local/bin/id id
bash-2.05# ACCEPT_KEYWORDS="~sparc" emerge gnuconfig
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-devel/gnuconfig-20030708 to /
>>> md5 src_uri ;-) gnuconfig-20030708.tar.bz2
Traceback (most recent call last):
  File "/export/home/root/gentoo/usr/bin/emerge", line 2153, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/export/home/root/gentoo/usr/bin/emerge", line 1357, in merge
    retval=portage.doebuild(y,"merge",myroot,edebug)
  File "/usr/local/lib/python2.2/site-packages/portage.py", line 1924, in doebuild
    retval=spawnebuild("install",actionmap,debug,1)
  File "/usr/local/lib/python2.2/site-packages/portage.py", line 1633, in spawnebuild
    retval=spawnebuild(actionmap[mydo]["dep"],actionmap,debug,alwaysdep)
  File "/usr/local/lib/python2.2/site-packages/portage.py", line 1633, in spawnebuild
    retval=spawnebuild(actionmap[mydo]["dep"],actionmap,debug,alwaysdep)
  File "/usr/local/lib/python2.2/site-packages/portage.py", line 1640, in spawnebuild
    actionmap[mydo]["args"][1])
  File "/usr/local/lib/python2.2/site-packages/portage.py", line 1194, in spawn
    os.execve(mycommand,myargs,settings.environ())
OSError: [Errno 2] No such file or directory

_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
Solean.
n00b
n00b


Joined: 12 Dec 2003
Posts: 6

PostPosted: Sun Dec 14, 2003 5:05 am    Post subject: Reply with quote

Ahh... A soap opera...
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sun Dec 14, 2003 6:03 am    Post subject: Reply with quote

Solean. wrote:
Ahh... A soap opera...


Well it is an easy way for me to keep notes. 8)
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
IWBCMAN
Guru
Guru


Joined: 25 Jun 2002
Posts: 474

PostPosted: Sun Dec 14, 2003 12:11 pm    Post subject: Reply with quote

Don't know if this will help but I saw it at slashdot the otherday.....

http://slashdot.org/comments.pl?sid=89131&cid=7710961

Quote:

If you decide to compile stuff on Solaris, some problems are likely to occur if you aren't aware of them.

1) Do NOT use GNU binutils. GNU strip and GNU ld do not understand Solaris x86 ELF headers and create corrupt binaries.

2) In almost 100% of the cases, GNU autoconf will not figure out that the Solaris linker requires the specification of a runtime linker option. Solve this by running autoconf like;

LDFLAGS="-L/foo -R/foo" ./configure

This is obviously pointless to do if you're using static libraries.

For more info, read ld(1).



a follow up response to this was :
Quote:

I have been using GNU binutils, GNU ld and GNU strip on Solaris. I can safely say that Solaris x86 and Sparc both interoperate with the GNU utilities like a champ. I've never had any issues with either on boht platforms.

As for the LDFLAGS, I've run into that a few times.


So I am not sure what the situation is- but hats off to you for trying to get this working- I am not a solaris fan, having used the original *free* solaris 7.0, which had horrible hardware support, and ran dog-slow, but if you succeed in getting it running, solaris might be a tad bit more interesting once again.....

I also saw that that the solaris partition ID is 82, ie. the same as linux swap....this maybe usefull if you want to have multiple *nix'es installed on one harddrive.....
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Mon Dec 15, 2003 5:38 am    Post subject: Reply with quote

Ahh, good, that will help a lot. Now I need to permanantly disable that ability of it from getting those files. I created /etc/make.profile/gcc33-sparc64-solaris2.9 . I'll need edit the files in there. There are going to be a lot of things to disable.

Looks like I might have to start over again.

I wonder about glibc? Or should I just stick to the Sun libs.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
GenTimJS
Guru
Guru


Joined: 03 May 2003
Posts: 406
Location: NH, USA

PostPosted: Wed Dec 24, 2003 2:35 pm    Post subject: teting Reply with quote

If you need a guinea pig to help you test stuff once you feel you have something "workable" that can be untared over the local filesystem or whatnot, let me know. I've got an ultra5 I can throw another disk in for solaris9 in a heartbeat (currently running gentoo testing what linux games will compile&run for sparc)
_________________
-Tim Smith
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Sat Dec 27, 2003 4:24 am    Post subject: Reply with quote

this is an impossible task! To get portage to work on another linux distro itself is so tough, solaris with altogether different approach to init, differnt libc, binutils and compiler is almost un-doable.

I almost had to re-install my stable Fedora just because I typed in 'emerge -u world' by mistake and had my glibc updated to 2.3.3 throwing my whole system to trash...but then rescue mode saved me(just wonder sometimes if some basic stuff like a proper shutdown be static executable not dependent on anything).

even with a stable portage, there are packages I can't install with emerge, just because fedora and gentoo work so differently, so they end up 'inject'ed(thank God for inject in portage). On my gentoo, I never even think once before firing 'emerge -u world'.
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Sat Dec 27, 2003 5:32 am    Post subject: Re: teting Reply with quote

GenTimJS wrote:
If you need a guinea pig to help you test stuff once you feel you have something "workable" that can be untared over the local filesystem or whatnot, let me know. I've got an ultra5 I can throw another disk in for solaris9 in a heartbeat (currently running gentoo testing what linux games will compile&run for sparc)


Well currently my system is indisposed compiling away at a Gentoo install that I managed to get on another drive.

I still think this is a "POSSIBLE" task I just may be going about it wrong. One issue that I'm having with Solaris is that Sun in their infinite wiseness loaded a bunch of GNU utils in /usr/bin. But I wouldn't dare tell portage to dump compiled things in there for fear of breaking the system. (Killing tar with GNU tar, make with GNU make....) I would have appreciated it if Sun put all of the freeware in /usr/local/ just like the packages from Sunfreeware.

So right now, I still need a package list (if it exists) of a stage 1 and stage 3 install. So I can inject them and start over. (Things like GCC v3.2.3, make version 2.0, python v 2.2 etc)

I'm not looking to remake solaris, I'm looking to making it easier to get things on solaris. So if for example I need Xine I won't have to go out hunting for all of the dependencies. I would like to make Solaris more attractive to the desktop in situations where someone needs a dual use system. One that they can do their normal job of working with Oracle, Solstice, veritas or whatever but also do things like browse websites, view online streaming webcasts, have the latest versions of Firebird, Thunderbird and Samba.

I'm not as much interested in things like etc-update or the init system. I might just have portage dump the config files into a dummy directory so the user can move them appropriately.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
Cerement
Guru
Guru


Joined: 14 Jun 2003
Posts: 404

PostPosted: Sun Jan 04, 2004 5:32 am    Post subject: Reply with quote

Well, with luck, your project might get a little easier ...
it's not Solaris, but it looks like Sun might be getting a little more amenable ...

Sun hands Cobalt an open-source lifeline
Back to top
View user's profile Send private message
haubi
Retired Dev
Retired Dev


Joined: 07 Jan 2004
Posts: 3

PostPosted: Thu Jan 08, 2004 8:09 am    Post subject: Re: teting Reply with quote

stonent wrote:
<snip>
I'm not looking to remake solaris, I'm looking to making it easier to get things on solaris. So if for example I need Xine I won't have to go out hunting for all of the dependencies. I would like to make Solaris more attractive to the desktop in situations where someone needs a dual use system. One that they can do their normal job of working with Oracle, Solstice, veritas or whatever but also do things like browse websites, view online streaming webcasts, have the latest versions of Firebird, Thunderbird and Samba.

I'm not as much interested in things like etc-update or the init system. I might just have portage dump the config files into a dummy directory so the user can move them appropriately.


This looks interesting to me, since i'm looking around for a suitable package management system for my company to install (build from source) our own software packages on different platforms, at least HP-UX, AIX, SunOS, Cygwin, (non-)gentoo-Linux, to be useable in different binary-versions by our end-application programmers.

A colleague of me uses gentoo, and he pointed me to portage, another one uses FreeBSD, and he pointed me to the FreeBSD-system with Makefiles.
For me, i want to switch to gentoo soon, as i've already running a gentoo installation in a VMware-box on my debian.

In the last month i've developed another system based on a so-called top-level-Makefile for GNU-make to handle less than 10 packages, always in face of the requirement to use a somewhat professional tool, as the number of our own packages will grow more or less fast, and - well - it works.

But as far as i've seen portage (source) by now, it is'nt yet possible to give portage a different root-dir than / (with bin, usr, ...) such as /toolbox/1.2.3/ (with bin, ...), though i've found some efforts to do this.

What do you think, will portage ever meet this claims ?
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9613
Location: beyond the rim

PostPosted: Thu Jan 08, 2004 3:40 pm    Post subject: Re: teting Reply with quote

haubi wrote:
But as far as i've seen portage (source) by now, it is'nt yet possible to give portage a different root-dir than / (with bin, usr, ...) such as /toolbox/1.2.3/ (with bin, ...), though i've found some efforts to do this.

Actually there is the ROOT environment variable which sounds like the thing you're looking for, however this feature is rarely used and therefore not completely tested.
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Mon Jan 19, 2004 11:07 pm    Post subject: Reply with quote

stonent wrote:
Ahh, good, that will help a lot. Now I need to permanantly disable that ability of it from getting those files. I created /etc/make.profile/gcc33-sparc64-solaris2.9 . I'll need edit the files in there. There are going to be a lot of things to disable.

Looks like I might have to start over again.

I wonder about glibc? Or should I just stick to the Sun libs.


So, did you try it again? See if you missed any steps mentioned in here:

https://forums.gentoo.org/viewtopic.php?t=125553

and here:

https://forums.gentoo.org/viewtopic.php?t=28559

You looked very close. Hats off to you!!
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Tue Jan 20, 2004 11:40 pm    Post subject: Reply with quote

Well I was going to do this at work but I locked up Virtual PC trying to paste in your script into solaris. I'm waiting for it to finish loading Python right now. One thing I really need to figure out is a profile for Solaris Intel and Solaris Sparc so that I can emerge the correct things. Without destroying Solaris.
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.


Last edited by stonent on Wed Jan 21, 2004 3:08 am; edited 1 time in total
Back to top
View user's profile Send private message
devsk
Advocate
Advocate


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

PostPosted: Wed Jan 21, 2004 3:05 am    Post subject: Reply with quote

I just found out that "ROOT=/opt emerge -p -O zlib" installs just zlib package in /opt, with its own /opt/usr, /opt/bin, /opt/var, /opt/etc ...etc. , with its own database in /opt/var/tmp. Wow!! You don't have to be root to do all this anymore!! You just have to learn to manage /opt/etc/ld.so.conf and /opt/etc/env.d in conjuction with /etc/ld.so.conf and /etc/env.d!!
Back to top
View user's profile Send private message
stonent
Veteran
Veteran


Joined: 07 Aug 2003
Posts: 1139
Location: Texas

PostPosted: Wed Jan 21, 2004 3:09 am    Post subject: Reply with quote

So you got it to actually compile something in Solaris?
This is exciting! Right now I'm installing packages into /opt/CSW from Blastwave.org using pkg-get. Hopefully if I can get the system to bootstrap, then I can remove them from CSW
_________________
Inspiron 4100 & Sun UltraAXe
Portage on Solaris|Dell Laptop Hacks
The way you feel about organized religion is the same way I feel about organized socialism.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Goto page 1, 2, 3 ... 11, 12, 13  Next
Page 1 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