On Fri, Apr 09, 2004, David C. Snyder wrote: > I'm new to RPM and OpenPKG, and I'm more accustomed to either building > open source/free software manually or using FreeBSD's ports > collection. > > I just bootstrapped a Solaris 9 sparc64 using the SunFreeware
There is no need to every use SunFreeware stuff with OpenPKG, not even for bootstrapping. Under ftp://ftp.openpkg.org/release/2.0/BIN/sparc64-solaris9/ there are all necessary binary packages to bootstrap. Once installed, you just simply rebuild from source and reinstall the packages to get a real from-source installation. > gcc-3.3.2 package. The next logical step was to install gcc-3.3.3 > from a source RPM. I tried to do this using openpkg: > > # openpkg rpm --rebuild > ftp://ftp.openpkg.org/release/2.0/SRC/gcc-3.3.3-2.0.0.src.rpm > > To my surprise, this produced an error message indicating that I did > not have make or binutils installed. I expected openpkg to download > and install make and binutils as prerequisites since the source RPM's > for these are in the same FTP directory. > > Perhaps it makes sence that it didn't since the command I gave above > only asked for a rebuild'' and not an actual installation. > > What I'm looking for is the OpenPKG equivalent of this: > > FreeBSD# mkdir -p /usr/ports/packages > FreeBSD# portupgrade -NpRr lang/gcc33 After installing (in that order) the packages "openpkg", "make", "binutils", "gcc", "perl" and (from OpenPKG-CURRENT) "openpkg-tools" you can use e.g. $ openpkg build openssh | sh - and it will automatically resolve all dependencies and install packages necessary to get "openssh" up and running. > Ultimately, I'd like to have a convenient way to rebuild and install > all (or most) of the packages on the two OpenPKG SRC CD's without > having to manually and recursively track down dependencies. This will > be more important when it's time to upgrade to OpenPKG 2.1, etc. Be careful, you usually never can just rebuild and install all (or most) packages from a release, because many packages are mutually exclusive. If you want to do your own release you currently should use what we are using for rolling all corresponding binary packages for the set of all source packages: "openpkg src2make" (also part of "openpkg-tools"). Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ The OpenPKG Project www.openpkg.org User Communication List [EMAIL PROTECTED]
