From: jbj Date: Mon, 23 Jul 2001 16:02:27 +0000 (+0000) Subject: - add pmac/ppciseries/ppcpseries varieties to ppc arch family. X-Git-Tag: tznext/4.11.0.1.tizen20130304~7704 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2aec992c9d5db8cdf706fb3dcd8cdfa642ca84d3;p=tools%2Flibrpm-tizen.git - add pmac/ppciseries/ppcpseries varieties to ppc arch family. - include tdigest.c tkey.c and trpmio.c to "make dist". - re-enable dependency resolution source from package NVR. CVS patchset: 4973 CVS date: 2001/07/23 16:02:27 --- diff --git a/CHANGES b/CHANGES index 5ec2c6a..509f663 100644 --- a/CHANGES +++ b/CHANGES @@ -186,6 +186,9 @@ - python: parameterize with PYVER to handle 1.5 and/or 2.1 builds. - add build dependency on zlib-devel (#49575). - enable rpm-perl subpackage. + - add pmac/ppciseries/ppcpseries varieties to ppc arch family. + - include tdigest.c tkey.c and trpmio.c to "make dist". + - re-enable dependency resolution source from package NVR. 4.0 -> 4.0.[12] - add doxygen and lclint annotations most everywhere. diff --git a/lib/depends.c b/lib/depends.c index 2517765..97762a5 100644 --- a/lib/depends.c +++ b/lib/depends.c @@ -1304,7 +1304,7 @@ static int unsatisfiedDepend(rpmTransactionSet ts, } mi = rpmdbFreeIterator(mi); -#ifdef DYING +#ifndef DYING mi = rpmdbInitIterator(ts->rpmdb, RPMTAG_NAME, keyName, 0); (void) rpmdbPruneIterator(mi, ts->removedPackages, ts->numRemovedPackages, 1); diff --git a/lib/rpmrc.c b/lib/rpmrc.c index 4c7fa23..fc200f2 100644 --- a/lib/rpmrc.c +++ b/lib/rpmrc.c @@ -1201,6 +1201,21 @@ static void defaultMachine(/*@out@*/ const char ** arch, } # endif +# if defined(__linux__) && defined(__powerpc__) + { + uint32 pvr; + __asm__ __volatile__ ("mfspr %0, 287" : "=r" (pvr)); + + pvr >>= 16; + if ( pvr >= 0x40) + strcpy(un.machine, "ppcpseries"); + else if ( (pvr == 0x36) || (pvr == 0x37) ) + strcpy(un.machine, "ppciseries"); + else + strcpy(un.machine, "pmac"); + } +# endif + /* the uname() result goes through the arch_canon table */ canon = lookupInCanonTable(un.machine, tables[RPM_MACHTABLE_INSTARCH].canons, diff --git a/rpmio/Makefile.am b/rpmio/Makefile.am index b57f67f..6006936 100644 --- a/rpmio/Makefile.am +++ b/rpmio/Makefile.am @@ -2,6 +2,8 @@ AUTOMAKE_OPTIONS = 1.4 foreign +EXTRA = tdigest.c tficl.c tkey.c trpmio.c + INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/build -I$(top_srcdir)/lib \ -I$(top_srcdir)/popt @INCPATH@ diff --git a/rpmrc.in b/rpmrc.in index ed45c54..92b0983 100644 --- a/rpmrc.in +++ b/rpmrc.in @@ -1,7 +1,7 @@ #/*! \page config_rpmrc Default configuration: /usr/lib/rpm/rpmrc # \verbatim # -# $Id: rpmrc.in,v 2.40 2001/07/18 23:03:27 jbj Exp $ +# $Id: rpmrc.in,v 2.41 2001/07/23 16:02:27 jbj Exp $ # # This is a global RPM configuration file. All changes made here will # be lost when the rpm package is upgraded. Any per-system configuration @@ -31,18 +31,27 @@ optflags: alphaev67 -O2 -mieee -mcpu=ev67 optflags: sparc -O2 -m32 -mtune=ultrasparc optflags: sparcv9 -O2 -m32 -mcpu=ultrasparc optflags: sparc64 -O2 -m64 -mcpu=ultrasparc + optflags: m68k -O2 -fomit-frame-pointer + optflags: ppc -O2 -fsigned-char +optflags: ppciseries -O2 -fsigned-char +optflags: ppcpseries -O2 -fsigned-char +optflags: pmac -O2 -fsigned-char + optflags: parisc -O2 -mpa-risc-1-0 optflags: hppa1.0 -O2 -mpa-risc-1-0 optflags: hppa1.1 -O2 -mpa-risc-1-0 optflags: hppa1.2 -O2 -mpa-risc-1-0 optflags: hppa2.0 -O2 -mpa-risc-1-0 + optflags: mipseb -O2 optflags: mipsel -O2 + optflags: armv3l -O2 -fsigned-char -fomit-frame-pointer -march=armv3 optflags: armv4b -O2 -fsigned-char -fomit-frame-pointer -march=armv4 optflags: armv4l -O2 -fsigned-char -fomit-frame-pointer -march=armv4 + optflags: atarist -O2 -fomit-frame-pointer optflags: atariste -O2 -fomit-frame-pointer optflags: ataritt -O2 -fomit-frame-pointer @@ -50,6 +59,7 @@ optflags: falcon -O2 -fomit-frame-pointer optflags: atariclone -O2 -fomit-frame-pointer optflags: milan -O2 -fomit-frame-pointer optflags: hades -O2 -fomit-frame-pointer + optflags: s390 -O2 optflags: s390x -O2 @@ -61,12 +71,14 @@ arch_canon: i686: i686 1 arch_canon: i586: i586 1 arch_canon: i486: i486 1 arch_canon: i386: i386 1 + arch_canon: alpha: alpha 2 arch_canon: alphaev5: alphaev5 2 arch_canon: alphaev56: alphaev56 2 arch_canon: alphapca56:alphapca56 2 arch_canon: alphaev6: alphaev6 2 arch_canon: alphaev67: alphaev67 2 + arch_canon: sparc: sparc 3 arch_canon: sun4: sparc 3 arch_canon: sun4m: sparc 3 @@ -75,7 +87,12 @@ arch_canon: sun4d: sparc 3 arch_canon: sparcv9: sparcv9 3 # This is really a place holder for MIPS. arch_canon: mipseb: mipseb 4 + arch_canon: ppc: ppc 5 +arch_canon: ppciseries: ppciseries 5 +arch_canon: ppcpseries: ppcpseries 5 +arch_canon: pmac: pmac 5 + arch_canon: m68k: m68k 6 arch_canon: IP: sgi 7 arch_canon: rs6000: rs6000 8 @@ -147,10 +164,6 @@ buildarchtranslate: i586: i386 buildarchtranslate: i486: i386 buildarchtranslate: i386: i386 -buildarchtranslate: osfmach3_ppc: ppc -buildarchtranslate: powerpc: ppc -buildarchtranslate: powerppc: ppc - buildarchtranslate: alphaev5: alpha buildarchtranslate: alphaev56: alpha buildarchtranslate: alphapca56: alpha @@ -163,6 +176,13 @@ buildarchtranslate: sun4m: sparc buildarchtranslate: sparcv9: sparc buildarchtranslate: sun4u: sparc64 +buildarchtranslate: osfmach3_ppc: ppc +buildarchtranslate: powerpc: ppc +buildarchtranslate: powerppc: ppc +buildarchtranslate: ppciseries: ppc +buildarchtranslate: ppcpseries: ppc +buildarchtranslate: pmac: ppc + buildarchtranslate: atarist: m68kmint buildarchtranslate: atariste: m68kmint buildarchtranslate: ataritt: m68kmint @@ -198,6 +218,11 @@ arch_compat: osfmach3_i386: i486 arch_compat: osfmach3_ppc: ppc arch_compat: powerpc: ppc arch_compat: powerppc: ppc +arch_compat: ppciseries: ppc +arch_compat: ppcpseries: ppc +arch_compat: pmac: ppc +arch_compat: ppc: rs6000 +arch_compat: rs6000: noarch arch_compat: sun4c: sparc arch_compat: sun4d: sparc @@ -207,8 +232,6 @@ arch_compat: sparc64: sparcv9 arch_compat: sparcv9: sparc arch_compat: sparc: noarch -arch_compat: ppc: rs6000 -arch_compat: rs6000: noarch arch_compat: mipseb: noarch arch_compat: mipsel: noarch @@ -287,7 +310,12 @@ buildarch_compat: alphaev5: alpha buildarch_compat: alpha: noarch buildarch_compat: m68k: noarch + +buildarch_compat: ppciseries: noarch +buildarch_compat: ppcpseries: noarch +buildarch_compat: pmac: noarch buildarch_compat: ppc: noarch + buildarch_compat: mipsel: noarch buildarch_compat: mipseb: noarch