Thanks to Ralf and Conrad for the advice. here are my findings so far:
1) In spite of the lack of host info in the file name, that does not seem to
be the problem. When I ran the platform script on both Solaris 9 systems
(the one that "succeeded" in phase 1 of the bootstrap, and the one that did
not), the script produced the same output: "Solaris 9 (SPARC64)". So that
seems to be OK.
2) Re Ralf's questions:
a) I am using gcc v3.0.4 with a mix of gcc and Solaris include files on both
machines. This has worked for me to port RedHat RPMs before, so I thought it
would work for the OpenPKG bootstrap. But I will try your suggestion of
using your gcc (from binary bootstrap and RPMs) and let you know what
happens.
b) Re the Solaris 9 patch level, it is the same on both Solaris 9 machines.
Here is the Solaris 9 OS info from uname -a:
SunOS verges.Princeton.EDU 5.9 Generic_112233-07 sun4u sparc
SUNW,Sun-Blade-100
3) New problem: The Solaris 9 machine that seemed to succeed in phase 1 of
the bootstrap failed phase 2 of the bootstrap (i.e., executing the *.sh
script created by phase 1). What happens is that at the end of phase 1,
uuencode is used to encode the *.Z file into the new *.sh script. This
appears (according to the output below) to succeed, but in fact, the last
line in the *.sh script (also shown below) is incomplete (too short and no
newline at the end). Thus when I try to run the phase 2 *.sh script, it
fails (output below).
Output from phase 1 of build on seemingly successful Solaris 9 system:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
files=README
.bashrc
.bash_login
RPM
.
.
.
local/man/cat9
local/sbin RPM/DB/Basenames RPM/DB/Conflictname RPM/DB/Group RPM/DB/Name
RPM/DB/Packages RPM/DB/Providename RPM/DB/Requirename RPM/DB/Triggername
+ cd /tmp/openpkg-1.3.0-root/usr/psr.oit/solaris9.op-rpm
+
/tmp/openpkg-1.3.0-root/usr/psr.oit/solaris9.op-rpm/lib/openpkg/tar --no-rec
ursion -cf - README .bashrc .bash_login RPM RPM/SRC RPM/PKG RPM/DB RPM/TMP
cgi bin bin/rpm2cpio bin/rpm etc etc/rc etc/rc.conf etc/rc.func etc/rc.d
etc/rc.d/rc.openpkg etc/openpkg etc/openpkg/rpmmacros etc/openpkg/rpmrc
etc/openpkg/openpkg.pgp include include/rpm include/rpm/popt.h
include/rpm/header.h include/rpm/misc.h include/rpm/rpmbuild.h
include/rpm/rpmerr.h include/rpm/rpmio.h include/rpm/rpmlib.h
include/rpm/rpmlog.h include/rpm/rpmmacro.h include/rpm/rpmmessages.h
include/rpm/rpmspec.h include/rpm/rpmurl.h include/rpm/stringbuf.h
include/rpm/ugid.h include/rpm/db.h include/rpm/zlib.h include/rpm/bzlib.h
info lib lib/openpkg lib/openpkg/rc lib/openpkg/bash lib/openpkg/bzip2
lib/openpkg/curl lib/openpkg/find-provides lib/openpkg/find-requires
lib/openpkg/gzip lib/openpkg/macros lib/openpkg/mkproxyrpm.pl
lib/openpkg/patch lib/openpkg/rpm lib/openpkg/rpmb lib/openpkg/rpmdb
lib/openpkg/rpme lib/openpkg/rpmi lib/openpkg/rpmk lib/openpkg/rpmpopt-4.0.2
lib/openpkg/rpmq lib/openpkg/rpmt lib/openpkg/rpmtool lib/openpkg/rpmu
lib/openpkg/rpmv lib/openpkg/rpmx.pl lib/openpkg/rpmx.sh lib/openpkg/shtool
lib/openpkg/tar lib/openpkg/config.guess lib/openpkg/config.sub
lib/librpmpopt.a lib/librpm.a lib/librpmbuild.a lib/librpmio.a lib/librpmz.a
lib/librpmdb.a lib/librpmbz2.a libexec man man/man1 man/man2 man/man3
man/man4 man/man5 man/man6 man/man7 man/man8 man/man9 man/cat1 man/cat2
man/cat3 man/cat4 man/cat5 man/cat6 man/cat7 man/cat8 man/cat9
man/man8/rpm.8 man/man8/rpm2cpio.8 man/man8/rc.8 man/man8/lsync.8 sbin pub
share var sbin/lsync local local/README local/.lsyncrc local/PKG local/bin
local/etc local/include local/info local/lib local/man local/man/man1
local/man/man2 local/man/man3 local/man/man4 local/man/man5 local/man/man6
local/man/man7 local/man/man8 local/man/man9 local/man/cat1 local/man/cat2
local/man/cat3 local/man/cat4 local/man/cat5 local/man/cat6 local/man/cat7
local/man/cat8 local/man/cat9 local/sbin RPM/DB/Basenames
RPM/DB/Conflictname RPM/DB/Group RPM/DB/Name RPM/DB/Packages
RPM/DB/Providename RPM/DB/Requirename RPM/DB/Triggername
+ /usr/bin/uuencode openpkg-1.3.0-1.3.0.sparc64-solaris2.9-ups.tar.Z
+ echo ++ cleaning up
++ cleaning up
+ rm -rf /tmp/openpkg-1.3.0-root
+ rm -rf /tmp/openpkg-1.3.0
+ rm -f /tmp/rpm /tmp/rpm.1 /tmp/rpm.2 /tmp/rpm.3 /tmp/.popt /tmp/rpm.pre
+ rm -f /tmp/openpkg.boot.prolog.sh
+ set +x
++ resulting files (placed into ..):
-rw-r--r-- 1 psr puadm 3672361 Sep 23 17:50
openpkg-1.3.0-1.3.0.sparc64-solaris2.9-ups.rpm
-rw-r--r-- 1 psr puadm 4990976 Sep 23 17:51
openpkg-1.3.0-1.3.0.sparc64-solaris2.9-ups.sh
-rw-r--r-- 1 psr puadm 11525800 Sep 23 17:50
openpkg-1.3.0-1.3.0.src.rpm
openpkg-1.3.0-1.3.0.src.sh: building done.
openpkg-1.3.0-1.3.0.src.sh: cleaning up...
openpkg-1.3.0-1.3.0.src.sh: cleaned up.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
End of phase 2 shell script produced by output above (note there is no \n at
end of last line):
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
M "=X[[H\">@1/(GH$CT)Z!,T >@1- "( C0)[_DT >@1- "(!#0)[EMAIL PROTECTED]">_
MU, GO]# )[_,P">_R, GO\3 )[_ P">_O, GOZC )[^DP">_H, GOY# )[^,
MD! D $ ! T">_[- 'O^S0)[_LT">_Z- 'O^C *@ T >_X("B( 2
M2 E 0 - 'O^2 HB $D@ (0$ #0!Z!,D@>_A)0'OX"6![]\0 $
M #0![_HT@>_A$ ! T">_Z- '[EMAIL PROTECTED] DA)@ $ ! T@>_
[EMAIL PROTECTED] ! T">_Z- '[EMAIL PROTECTED] DA)@ $ ! T@>_?$ !
MT">_Z!!H ST! T >_X("B( "2 N 0 - '[EMAIL PROTECTED] (@ $ #0
M)[]XD! @ = [EMAIL PROTECTED](@ )( ",! T@>_Z- 'O^R0(D (T">_=- '
MOWA 0 - GOW"2$"0 T >_=)(B0 [EMAIL PROTECTED]( "0I( P! T >_
M<)(") #0![_L0 $ #0)[_LT@>_[- 'OW20 D
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Output from running phase 2 shell script:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
openpkg-1.3.0-1.3.0.sparc64-solaris2.9-ups.sh: installing into
/usr/psr.oit/solaris9.op-rpm...
openpkg:WARNING: skipping addition of
/usr/psr.oit/solaris9.op-rpm/lib/openpkg/bash to /etc/shells
openpkg:WARNING: (would require root-privileges)
openpkg:WARNING: skipping creation of OpenPKG restricted user psr-r
openpkg:WARNING: (would require root-privileges)
openpkg:WARNING: skipping creation of OpenPKG restricted group puadm-r
openpkg:WARNING: (would require root-privileges)
openpkg:WARNING: skipping creation of OpenPKG non-privileged user psr-n
openpkg:WARNING: (would require root-privileges)
openpkg:WARNING: skipping creation of OpenPKG non-privileged group puadm-n
openpkg:WARNING: (would require root-privileges)
openpkg:WARNING: skipping creation of system run-command hooks
openpkg:WARNING: (would require root-privileges)
openpkg:WARNING: skipping creation of system cron hooks
openpkg:WARNING: (would require root-privileges)
Invalid character (0x0) on line 69317
No end line
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Thanks,
Dennis
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ralf S. Engelschall
Sent: Wednesday, September 24, 2003 1:27 AM
To: [EMAIL PROTECTED]
Subject: Re: Strange problem bootstrapping OpenPKG rpm on Solaris 9
On Tue, Sep 23, 2003, Conrad Steenberg wrote:
> > vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> > ++ cleaning up
> > + rm -rf /tmp/openpkg-1.3.0-root
> > + rm -rf /tmp/openpkg-1.3.0
> > + rm -f /tmp/rpm /tmp/rpm.1 /tmp/rpm.2 /tmp/rpm.3 /tmp/.popt
/tmp/rpm.pre
> > + rm -f /tmp/openpkg.boot.prolog.sh
> > + set +x
> > ++ resulting files (placed into ..):
> > openpkg-1.3.0-1.3.0.-vlu.rpm: No such file or directory
>
> I've also seen this before: the os/architecture detection part of the
> bootstrap script fails (on redhat 9 here) so that the rpm package name
> that the script looks for is wrong.
Ok, this part is easy. Grab the
http://cvs.openpkg.org/openpkg-src/openpkg/platform script, run it and
fix/enhance it so it correctly detects the platform and then provide me
with the details/patch.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]
______________________________________________________________________
The OpenPKG Project www.openpkg.org
User Communication List [EMAIL PROTECTED]