View previous topic :: View next topic |
Author |
Message |
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Tue Mar 23, 2004 7:06 am Post subject: |
|
|
stonent wrote: | I wonder if it would work on a PGX64? Those are a bit more PC like, since creators all use AFX, SBUS or UPA if I recall. |
I remember I read somewhere pgx64 being supported, but I am not sure.
stonent wrote: |
Are you still using Solaris 2.6? |
yeah... |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
|
Back to top |
|
|
reverb n00b
Joined: 19 Apr 2004 Posts: 2 Location: Sydney, Australia
|
Posted: Mon Apr 19, 2004 2:57 am Post subject: Nice looking work guys! |
|
|
Looks like there is some great progress going on here.
It seems to me like you are at the stage where perhaps it would be great to share your efforts with others.
I have access to various machines from Solaris 2.6 -> 10 and a readily available jumpstart server should I blow them away
I'd also very much like to try out what you guys have been working on, but it seems that you have started over again from scratch several times. If I could avoid this, it would be great.
I realise that you most probably haven't written a nice FAQ all about it, but I'd like to volunteer my time to do that (or at least document the procedure). It would be much appreciated if you could post a link somewhere to various changed pieces of code so that I could work from there, documenting as I go, heading towards the same final goal of a working system.
I can also donate webspace to host said code and the documentation I come up with, or I'm most happy to put it somewhere else.
Thanks to all involved, again, great work going on here. |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Mon Apr 19, 2004 4:12 am Post subject: |
|
|
if you have root access and are ready to mess with /usr, NOT many code changes are required, ONLY preparation.
Start with a clean solaris install.
The first and THE MOST important thing: get gcc built with solaris tools from /usr/ccs/bin in /mytmp/gccc/, then build GNU binutils in /usr with new gcc from /mytmp/gccc/, then build gcc again with new binutils in /usr. Building GNU binutils again with new GCC doesn't hurt. Remove /usr/ccs/bin from PATH forever, if you wanna live with portage and GNU source. I have used exclusively gcc and GNU binutils, most of the portable code compiles and runs fine(e.g. KDE, the most portable open source code I have seen, went in one shot, gnome took the longest on solaris 2.6)
Once you have gcc out of the way, python(for portage), coreutils(solaris equi. commands error out in portage scripts), gnu tools(make, xargs, findutils, gettext) are the next things. After that, read portage install guide in https://forums.gentoo.org/viewtopic.php?t=125553&highlight=
Read first few posts from stonent in this thread. "Linux" to "SunOS" in emerge is the only change I remember. Well, may be, inject is your friend. Inject glibc.
You will be set to enjoy portage forever.
If you don't have root access, code changes are too many to document here and are very hacky to support. May be some day, when I have some time on my hands, I will document the changes for non-root install. |
|
Back to top |
|
|
reverb n00b
Joined: 19 Apr 2004 Posts: 2 Location: Sydney, Australia
|
Posted: Mon Apr 19, 2004 6:01 am Post subject: |
|
|
Thanks for that, looks easier than I first thought - yes, I have root on these machines so no problems there.
Many thanks for the prompt reply, I'll be giving it a go over the coming days/weeks and hope to come back with a more detailed listing of problems encountered and how to solve them. |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Mon Apr 19, 2004 3:35 pm Post subject: |
|
|
forgot to mention: inject baselayout, gcc, binutils,python as well. |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Thu Apr 29, 2004 7:59 pm Post subject: |
|
|
Tried GTK-QT unified ebuild and it compiled fine(first shot) on solaris and works great...here is the ebuild and the patch:
Code: |
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header$
inherit gtk-engines2 eutils
IUSE="gtk2"
DESCRIPTION="GTK+2 Qt Theme Engine"
HOMEPAGE="http://www.kde-look.org/content/show.php?content=9714"
SRC_URI="http://www.freedesktop.org/Software/gtk-qt/${P}.tar.bz2"
KEYWORDS="~x86 ~ppc ~sparc ~alpha"
LICENSE="GPL-2"
SLOT="2"
DEPEND="${DEPEND}
dev-util/pkgconfig
>=x11-themes/qtpixmap-0.25"
src_unpack() {
unpack ${A} || die
epatch ${FILESDIR}/${P}-gentoo.patch
# they package with their own config.cache...stupid!! stupid!! stupid!!
\rm ${S}/config.cache
}
|
the patch as "files/gtk-qt-engine-0.3-gentoo.patch":
Code: |
diff -urN gtk-qt-engine-0.3/Makefile.am gtk-qt-engine-0.3-new/Makefile.am
--- gtk-qt-engine-0.3/Makefile.am 2004-01-01 19:33:52.000000000 +0200
+++ gtk-qt-engine-0.3-new/Makefile.am 2004-01-06 00:26:43.533841048 +0200
@@ -1,6 +1,6 @@
SUBDIRS = Theme
-QTDIR = /usr/lib/qt3
+QTDIR = /usr/qt/3
INCLUDES = $(QTENGINE_CFLAGS) -I$(QTDIR)/include/
diff -urN gtk-qt-engine-0.3/Makefile.in gtk-qt-engine-0.3-new/Makefile.in
--- gtk-qt-engine-0.3/Makefile.in 2004-01-01 19:37:13.000000000 +0200
+++ gtk-qt-engine-0.3-new/Makefile.in 2004-01-06 00:27:33.770203960 +0200
@@ -83,7 +83,7 @@
SUBDIRS = Theme
-QTDIR = /usr/lib/qt3
+QTDIR = /usr/qt/3
INCLUDES = $(QTENGINE_CFLAGS) -I$(QTDIR)/include/
|
now all Gtk apps look good with plastik. |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Sun May 09, 2004 7:31 pm Post subject: |
|
|
Genone wrote: | devsk wrote: | stonent wrote: |
Ideally we could submit ebuilds that work with Solaris and they could be included into the normal rsync mirrors, or if the regular ebuilds work, just add "sparcsolaris" to the arch type |
yes! I have a few already. but it needs some fundamental changes(like the proposed arch type) in portage...Genone? |
See bug 38312 first, as we try to find a solution to limit the numbers of KEYWORDS, as with multiple OS and archs it will get ugly (think of NetBSD ). I think we'll end up with a different variable for the OS that will be checked together with KEYWORDS to get the masking status (so KEYWORDS="~x86 ~ppc sparc" OS="solaris linux" would result in "~x86linux ~ppclinux sparclinux ~x86solaris sparcsolaris", note the lack of ~ppcsolaris). Any input on that is welcome, also I'd suggest that you bring it up on the gentoo-dev list.
If you have any portage/ebuild patches that would help for solaris and don't break the ebuild for linux you could submit them already to https://bugs.gentoo.org. |
Genone, Any news on this proposed change for KEYWORDS and OS? This would mean that patches for a particular ARCH and OS combo can be applied and submitted without breaking other ARCH/OS combo. I have a renewed interest in this because I recently upgraded to solaris 9 and I think its better people take advantage of the patches I already have to submit. |
|
Back to top |
|
|
Genone Retired Dev
Joined: 14 Mar 2003 Posts: 9533 Location: beyond the rim
|
Posted: Sun May 09, 2004 8:14 pm Post subject: |
|
|
Well, it has become bigger than anyone would have thought, see GLEP 22. Because of the impact it's currently on hold. |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Mon May 10, 2004 4:49 am Post subject: |
|
|
that has a status of "withdrawn". Or is it just the document that's not updated? I would like something for solaris/sparc64 too.
Just a random thought: Why is it not possible to have this under USE flags? if `use uclibc` is a good check, then why not Code: | `use solaris` -a `use sparc64` | ?? Is that messier/unmaintainable? Are USE flags monitored and allocated centrally or its just upto to the ebuild developers? |
|
Back to top |
|
|
jjacocks n00b
Joined: 26 Jun 2002 Posts: 35
|
Posted: Wed Jun 16, 2004 10:36 pm Post subject: |
|
|
Any new progress on this front? I'd love to see portage fully functional on Solaris. I have over 45 SunFires at work that I'd love to be able to easily update accessory software on. |
|
Back to top |
|
|
stonent Veteran
Joined: 07 Aug 2003 Posts: 1139 Location: Texas
|
Posted: Thu Jun 17, 2004 1:05 am Post subject: |
|
|
Doesn't all that info already appear in the CHOST? i686-pc-linux-gnu? How about letting the CHOST be the ARCH?
As far as GLEP 22, of course a keyword or whatever for a generic Unix libc would be nice as well.
Best of all would be a ./configure script which generates a report about your system and then tries to "make" portage for it. _________________ 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 |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Fri Jun 18, 2004 1:36 am Post subject: |
|
|
nothing can be done unless base portage guys start honoring the fact that the portage can be used on Solaris and should be supported. I mean at least think about it. Sometime ago I filed a bug about an option to be added to ncurses ebuild to make the emerge go smooth on solaris w/o requiring any modifications in the overlay, the response was to the tune of "we don't support solaris". that option was null-&-void for linux. |
|
Back to top |
|
|
stonent Veteran
Joined: 07 Aug 2003 Posts: 1139 Location: Texas
|
Posted: Fri Jun 18, 2004 2:56 am Post subject: |
|
|
I remember when that came in. I was on IRC and one of the ops found it. _________________ 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 |
|
|
jjacocks n00b
Joined: 26 Jun 2002 Posts: 35
|
Posted: Fri Jun 18, 2004 5:41 pm Post subject: |
|
|
Well, given that no less than Daniel Robbins was heading the project to get portage working on MacOS X, and that OS would need similar adjustments, maybe requesting the change again would be worthwhile. |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Fri Jun 18, 2004 11:01 pm Post subject: |
|
|
can you post the link for Mac OS X portage, if there is any? |
|
Back to top |
|
|
jjacocks n00b
Joined: 26 Jun 2002 Posts: 35
|
|
Back to top |
|
|
stonent Veteran
Joined: 07 Aug 2003 Posts: 1139 Location: Texas
|
Posted: Sun Jul 25, 2004 9:09 am Post subject: |
|
|
Ok lets revisit something. (I hope I don't touch any sore spots)
Since they now have a macos keyword in portage for OSX and USERLAND="BSD" for the make.conf does that make anyone more willing to accomodate commercial Unix products with portage?
Maybe USERLAND="UNIX" or USERLAND="SVR4" ?
At least an install script to build a stage 1 in /usr/gnu would be nice (I mentioned that because Gentoo relies heavily on the GNU versions of applications and I've seen things fail to emerge because portage passed an argument to one of Solaris's programs that wasn't valid)
And maybe a keyword to make portage try to use /usr/gnu/bin when it definitely needs a GNU app and not the Solaris version. _________________ 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 |
|
|
jjacocks n00b
Joined: 26 Jun 2002 Posts: 35
|
Posted: Mon Jul 26, 2004 5:23 pm Post subject: |
|
|
I certainly hope so...I have started to use Gentoo/OS X, anbd it works surprisingly well for a first release. |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Wed Aug 04, 2004 6:47 pm Post subject: |
|
|
jjacocks wrote: | I certainly hope so...I have started to use Gentoo/OS X, anbd it works surprisingly well for a first release. | do you have a link to install portage from? |
|
Back to top |
|
|
jjacocks n00b
Joined: 26 Jun 2002 Posts: 35
|
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Fri Aug 06, 2004 7:00 pm Post subject: |
|
|
so, did they implement the pathspec for macos? I don't know what to do with the 21MB dmg file, I was hoping to untar it and look at some of the changes.
that's the major bottleneckfor a user level non "/" portage. And some of the changes are required in the ebuilds as well. I was wondering if somebody had a more elegant solution than sedding the ebuilds to change, for example, --prefix=/usr to --prefix=${ROOT}usr in ebuild.sh before sourcing the ebuild. many ebuilds don't call econf(), otherwise we could do it one central place. And many of the packages will use the 'prefix' to record where they have been configured and search for stuff there during runtime...this could well be the toughest nut to crack.
anybody onto this part? |
|
Back to top |
|
|
jjacocks n00b
Joined: 26 Jun 2002 Posts: 35
|
Posted: Sat Aug 07, 2004 12:45 am Post subject: |
|
|
At this point, they haven't implemented pathspec. It installs in root, and sort-of encompasses Apple's packages. The install script creates a bunch of injected packages, referencing the version that is provided by each external package.
It's coming along, but it still needs work. |
|
Back to top |
|
|
stonent Veteran
Joined: 07 Aug 2003 Posts: 1139 Location: Texas
|
Posted: Mon Aug 09, 2004 4:23 am Post subject: |
|
|
Well I've found some info that will be helpful with starting with Python from source on Solaris.
I've had problems from the start partly from the binary versions of python available on the solaris package sites not including _socket.so, when I compile Python it always crashes and I figured out why. If you did not install IPv6 support in Solaris during the install, you have to compile python with ipv6 disabled.
./configure --disable-ipv6
Then go into the modules directory and edit the setup file and uncomment the socket section. It should now build correctly using make. _________________ 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 |
|
|
stonent Veteran
Joined: 07 Aug 2003 Posts: 1139 Location: Texas
|
Posted: Sun Aug 22, 2004 10:06 pm Post subject: |
|
|
Hmm.
Code: | Portage 2.0.51_pre20 (default-sparc-2004.0, [unavailable], unavailable, 5.9 sun4u sparc)
=================================================================
System uname: 5.9 sun4u sparc
Gentoo-Solaris Base System version 2004.0 (Portaris 1.0)
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.3
Binutils:
Headers:
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="sparc"
AUTOCLEAN="yes"
CFLAGS="-mcpu=v8 -mtune=v9 -O2 -pipe"
CHOST="sparc-sun-solaris2.9"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=v8 -mtune=v9 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache"
GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="sun X arts berkdb crypt cups fbcon foomaticdb gdbm gnome gtk gtk2 imlib jpeg kde libwww mad mikmod motif mpeg ncurses nls opengl pam perl png python qt readline slang spell ssl tcpd truetype xv zlib"
|
_________________ 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 |
|
|
|