RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Anders F. Björklund
  Root:   /v/rpm/cvs                       Email:  [EMAIL PROTECTED]
  Module: rpm                              Date:   27-Feb-2008 14:22:53
  Branch: HEAD                             Handle: 2008022713225300

  Modified files:
    rpm                     devtool.conf

  Log:
    macosx: create the required etc/rpm/platform file, so platformScore
    works

  Summary:
    Revision    Changes     Path
    2.187       +11 -0      rpm/devtool.conf
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/devtool.conf
  ============================================================================
  $ cvs diff -u -r2.186 -r2.187 devtool.conf
  --- rpm/devtool.conf  26 Feb 2008 19:34:36 -0000      2.186
  +++ rpm/devtool.conf  27 Feb 2008 13:22:53 -0000      2.187
  @@ -1551,6 +1551,17 @@
       mkdir -p /tmp/rpm-root/usr/local/src/rpm/RPMS/fat
   
       if [ ".$UNIVERSAL_SDK" != "." ]; then
  +    # setup CVOG platform
  +    cat <<__EOF__ >/tmp/rpm-root/private/etc/rpm/platform
  +i386-apple-darwin
  +fat-apple-darwin
  +noarch-apple-darwin
  +__EOF__
  +# TODO: when installing the Universal Binary PKG on PowerPC instead of Intel,
  +#       replace "i386-apple-darwin" with "ppc-apple-darwin" in the 
postflight.
  +#       also add extra line with "x86_64-apple-darwin" or 
"ppc64-apple-darwin"
  +#       first, if the installation machine is capable of using 64-bit 
binaries.
  +    
       # setup architectures
       for ARCH in ppc i386 ppc64 x86_64; do
       if [ "$ARCH" = "ppc64" -o "$ARCH" = "x86_64" ]; then BITS=-m64; else 
BITS=-m32; fi
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                [email protected]

Reply via email to