On Tue, Sep 03, 2002 at 11:59:22PM +0200, Michael Schloh von Bennewitz wrote:
> On Tue, Sep 03, 2002, Miles Egan wrote:
> > uname -a:
> >
> > Darwin bunny.pixar.com 6.0 Darwin Kernel Version 6.0: Sat Jul 27 13:18:52 PDT
> > 2002; root:xnu/xnu-344.obj~1/RELEASE_PPC  Power Macintosh powerpc
> >
> > uname -m (the real offender):
> > Power Macintosh
> >
> > unane -p:
> > powerpc
> >
> > The rpm config.guess script translates uname -m to uname -p. Would this be
> > reasonable to do in openpkg as well?
> >  
> Our 'shtool guessos' script does a little more than the standard RPM.
> Since there seems to be some variation in what I expect the bootstrapper
> to aknowlege from Darwin, lets be even more precise.
> 
> I am attaching a close relative from the shtool script which is uuencoded
> into the bootstrapper. Please run 'shtool guessos' on your Darwin, and
> lets see what happens. I think it will report 'powerpc-apple-macos'. You
> might have to adjust the shell path after the shebang on the first line of
> the shtool script, of course. I am pretty unfamiliar with Darwin, but
> rather interested in any case. Good luck, and post the results to
> [EMAIL PROTECTED] I'm not posting this there, because I don't
> like MIME encoded mail on the mailing list.

Running "shtool guessos" gives me this output:

Power Macintosh-unknown-Darwin/6.0/Darwin Kernel Version 6.0: Sat Jul 27
13:18:52 PDT 2002; root:xnu/xnu-344.obj~1/RELEASE_PPC

Applying the following patch gives me "powerpc-apple-darwin6.0", which is what
the config.guess script from rpm gives me.  Is this reasonable?

diff -u ./shtool /var/tmp/openpkg/shtool
--- ./shtool    Tue Sep  3 15:40:00 2002
+++ /var/tmp/openpkg/shtool     Tue Sep  3 15:47:22 2002
@@ -2529,6 +2529,9 @@
            esac
            echo "${MACHINE}-apple-rhapsody${RELEASE}"; exit 0
            ;;
+        Darwin:*:*:*)
+           echo `uname -p`-apple-darwin${RELEASE}; exit 0
+           ;;
         "Mac OS":*:*:*)
            MACHINE=`uname -p`
            echo "${MACHINE}-apple-macos${RELEASE}"; exit 0

-- 
miles egan
senior unix sysadmin
[EMAIL PROTECTED]
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
User Communication List                      [EMAIL PROTECTED]

Reply via email to