[CVS] RPM: rpm/ Makefile.am
RPM Package Manager, CVS Repository http://rpm5.org/cvs/ Server: rpm5.org Name: Pinto Elia Root: /v/rpm/cvs Email: devzero2...@rpm5.org Module: rpm Date: 25-Sep-2009 12:16:31 Branch: HEAD Handle: 2009092510163100 Modified files: rpm Makefile.am Log: add INSTALL.developer in automake dist rule that i Summary: RevisionChanges Path 2.245 +1 -1 rpm/Makefile.am patch -p0 <<'@@ .' Index: rpm/Makefile.am $ cvs diff -u -r2.244 -r2.245 Makefile.am --- rpm/Makefile.am 23 Aug 2009 19:25:36 - 2.244 +++ rpm/Makefile.am 25 Sep 2009 10:16:31 - 2.245 @@ -5,7 +5,7 @@ LINT = splint MCCABE = pmccabe -EXTRA_DIST = CHANGES CREDITS Doxyheader INSTALL cpuinfo.yaml \ +EXTRA_DIST = CHANGES CREDITS Doxyheader INSTALL INSTALL.developer cpuinfo.yaml \ autodeps/none autodeps/*.prov autodeps/*.req autogen.sh \ db db3/configure xar xz pcre syck \ lua/[A-Z]* lua/*.[ch] lua/local/l* \ @@ . __ RPM Package Managerhttp://rpm5.org CVS Sources Repositoryrpm-cvs@rpm5.org
[CVS] RPM: rpm/tests/ rpm-genenerate-loop-test-harness.sh
RPM Package Manager, CVS Repository http://rpm5.org/cvs/ Server: rpm5.org Name: Pinto Elia Root: /v/rpm/cvs Email: devzero2...@rpm5.org Module: rpm Date: 25-Sep-2009 18:54:40 Branch: HEAD Handle: 2009092516543900 Added files: rpm/tests rpm-genenerate-loop-test-harness.sh Log: add rpm-genenerate-loop-test-harness.sh Summary: RevisionChanges Path 1.1 +281 -0 rpm/tests/rpm-genenerate-loop-test-harness.sh patch -p0 <<'@@ .' Index: rpm/tests/rpm-genenerate-loop-test-harness.sh $ cvs diff -u -r0 -r1.1 rpm-genenerate-loop-test-harness.sh --- /dev/null 2009-09-25 18:54:39 +0200 +++ rpm-genenerate-loop-test-harness.sh 2009-09-25 18:54:40 +0200 @@ -0,0 +1,281 @@ +#!/bin/bash +# +## +# Generate an rpm spec file for testing looping issue +# +# rpm-genenerate-loop-test-harness.sh -s -m -p +# +# Copyright (C) 2006 Elia Pinto (devzero2...@rpm5.org) +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as published by +# The Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +## +# OK: it is really a toy script, written in JAPH style +# to generate pathological rpm loop dependencies +## +## +# Useful (?) function +## +Die() { + echo "$_PROGNAME: ERROR: $@" >&2 + exit 1 +} +Info() { + echo "$_PROGNAME: INFO: $@" >&2 +} +Warn() { + echo "$_PROGNAME: WARNING: $@" >&2 +} +Usage() { + echo "Usage: $_PROGNAME -s -m -p " >&2 + exit 1 +} +# +# Argument Check +# +readonly _PROGNAME=${0##*/} +while getopts "m:s:p:" opt; do + case "$opt" in + m) if [ -z "$_MAX_REQUIRES" ] +then _MAX_REQUIRES=$OPTARG +else + Usage +fi;; + s) if [ -z "$_SPEC_FILE_NAME" ] +then readonly _SPEC_FILE_NAME=$OPTARG +else + Usage +fi;; + p) if [ -z "$_COUNTPKG" ] +then readonly _COUNTPKG=$OPTARG +else + Usage +fi;; + *) Usage;; +\?) Usage;; + esac +done +[ -z "${_MAX_REQUIRES}" -o -z "$_SPEC_FILE_NAME" -o -z "$_COUNTPKG" ] && Usage + +readonly _PKGNAME=${_SPEC_FILE_NAME%%\.*} +readonly _SPECFILE=${_PKGNAME}.spec + +[ -e ${_SPECFILE} ] && Die "${_SPECFILE} exists. Remove it first" + + + +# Hardcoded +### +readonly _VERSION=1.0 +readonly _RELEASE=1 + +if [ ${_MAX_REQUIRES} -gt ${_COUNTPKG} ] +then + _MAX_REQUIRES="${_COUNTPKG}" +fi +#readonly _MAX_REQUIRES + +cat < $_SPECFILE +## +# Created by ${_PROGNAME} +# with +# - max direct Requires: ${_MAX_REQUIRES} +# - Number of Packages : ${_COUNTPKG} +## +Summary: Loop Ordering Test Harness +Name: ${_PKGNAME} +BuildArch: noarch +Version: ${_VERSION} +Release: ${_RELEASE} +License: LGPLv3 +Group: Applications/System +Buildroot: %{_tmppath}/%{name}-tmp +URL: http://rpm5.org + +%description + +A toy loop rpm test harness. + +This package(s) generate pathological rpm loop dependencies + +For an example see rhbz#437041 + +EOF + +# +_c=1 +while [ $_c -le $_COUNTPKG ] +do +cat <> $_SPECFILE + +%package $_c +Summary: $_PKGNAME-$_c +Group: Applications/Security +BuildArch: noarch +EOF +# +count=1 +number=0 +oldnumber=0 +prec=0 +succ=0 +while [ "$count" -le ${_MAX_REQUIRES} ] +do + number=$RANDOM + number_in_range=$RANDOM + range=10 + let "count += 1" # Increment count. + let "number_in_range %= range" # Scales $number down within range. + let "number %= $_COUNTPKG" # Scales $number down within $_COUNTPKG. + l
[CVS] RPM: rpm/js/ rpmdb-js.c rpmmpf-js.c rpmseq-js.c rpmseq-js.h tjs....
RPM Package Manager, CVS Repository http://rpm5.org/cvs/ Server: rpm5.org Name: Jeff Johnson Root: /v/rpm/cvs Email: j...@rpm5.org Module: rpm Date: 25-Sep-2009 19:25:28 Branch: HEAD Handle: 2009092517252502 Modified files: rpm/js rpmdb-js.c rpmmpf-js.c rpmseq-js.c rpmseq-js.h tjs.c rpm/js/tscripts Db.js Seq.js Log: - js: unit tests for DB_SEQUENCE. Summary: RevisionChanges Path 1.19+21 -9 rpm/js/rpmdb-js.c 1.2 +37 -3 rpm/js/rpmmpf-js.c 1.2 +207 -68rpm/js/rpmseq-js.c 1.2 +1 -1 rpm/js/rpmseq-js.h 1.61+4 -4 rpm/js/tjs.c 1.17+9 -0 rpm/js/tscripts/Db.js 1.2 +71 -1 rpm/js/tscripts/Seq.js patch -p0 <<'@@ .' Index: rpm/js/rpmdb-js.c $ cvs diff -u -r1.18 -r1.19 rpmdb-js.c --- rpm/js/rpmdb-js.c 24 Sep 2009 22:07:28 - 1.18 +++ rpm/js/rpmdb-js.c 25 Sep 2009 17:25:25 - 1.19 @@ -7,6 +7,7 @@ #include "rpmdb-js.h" #include "rpmdbc-js.h" #include "rpmdbe-js.h" +#include "rpmmpf-js.h" #include "rpmtxn-js.h" #include "rpmjs-debug.h" @@ -923,15 +924,16 @@ _H_FFACTOR = -16, _H_NELEM = -17, _LORDER = -18, -_MSGFILE = -19, -_PAGESIZE= -20, -_PARTITION_DIRS = -21, -_PRIORITY= -22, -_Q_EXTENTSIZE= -23, -_RE_DELIM= -24, -_RE_LEN = -25, -_RE_PAD = -26, -_RE_SOURCE = -27, +_MPF = -19, +_MSGFILE = -20, +_PAGESIZE= -21, +_PARTITION_DIRS = -22, +_PRIORITY= -23, +_Q_EXTENTSIZE= -24, +_RE_DELIM= -25, +_RE_LEN = -26, +_RE_PAD = -27, +_RE_SOURCE = -28, }; static JSPropertySpec rpmdb_props[] = { @@ -952,6 +954,7 @@ {"h_ffactor", _H_FFACTOR,JSPROP_ENUMERATE, NULL, NULL}, {"h_nelem", _H_NELEM, JSPROP_ENUMERATE, NULL, NULL}, {"lorder", _LORDER,JSPROP_ENUMERATE, NULL, NULL}, +{"mpf", _MPF, JSPROP_ENUMERATE, NULL, NULL}, {"msgfile", _MSGFILE, JSPROP_ENUMERATE, NULL, NULL}, {"pagesize", _PAGESIZE, JSPROP_ENUMERATE, NULL, NULL}, {"partition_dirs", _PARTITION_DIRS, JSPROP_ENUMERATE, NULL, NULL}, @@ -1023,6 +1026,15 @@ case _H_FFACTOR: *vp = _GET_U(!db->get_h_ffactor(db, &_u)); break; case _H_NELEM: *vp = _GET_U(!db->get_h_nelem(db, &_u));break; case _LORDER:*vp = _GET_I(!db->get_lorder(db, &_i)); break; +case _MPF: +{DB_MPOOLFILE * _mpf = db->get_mpf(db); + if (_mpf) { + JSObject * o = JS_NewObject(cx, &rpmmpfClass, NULL, NULL); + *vp = (o && JS_SetPrivate(cx, o, (void *)_mpf) + ? OBJECT_TO_JSVAL(o) : JSVAL_VOID); + } else + *vp = JSVAL_NULL; +}break; case _MSGFILE: db->get_msgfile(db, &_fp); _s = (_fp ? "other" : NULL); @@ . patch -p0 <<'@@ .' Index: rpm/js/rpmmpf-js.c $ cvs diff -u -r1.1 -r1.2 rpmmpf-js.c --- rpm/js/rpmmpf-js.c24 Sep 2009 23:58:05 - 1.1 +++ rpm/js/rpmmpf-js.c25 Sep 2009 17:25:25 - 1.2 @@ -233,11 +233,27 @@ enum rpmmpf_tinyid { _DEBUG = -2, -_PRIORITY= -3, +_CLEARLEN= -3, +_FILEID = -4, +_FLAGS = -5, +_FTYPE = -6, +_LSNOFFSET = -7, +_MAXSIZE = -8, +_PGCOOKIE= -9, +_PRIORITY= -10, }; static JSPropertySpec rpmmpf_props[] = { {"debug",_DEBUG, JSPROP_ENUMERATE, NULL, NULL}, +{"clear_len",_CLEARLEN, JSPROP_ENUMERATE, NULL, NULL}, +#ifdef NOTNEEDED +{"fileid", _FILEID,JSPROP_ENUMERATE, NULL, NULL}, +#endif +{"flags",_FLAGS, JSPROP_ENUMERATE, NULL, NULL}, +{"ftype",_FTYPE, JSPROP_ENUMERATE, NULL, NULL}, +{"lsn_offset",_LSNOFFSET,JSPROP_ENUMERATE, NULL, NULL}, +{"maxsize", _MAXSIZE, JSPROP_ENUMERATE, NULL, NULL}, +{"pgcookie",_PGCOOKIE, JSPROP_ENUMERATE, NULL, NULL}, {"priority",_PRIORITY,
[CVS] RPM: rpm/misc/ librpmmisc.vers
RPM Package Manager, CVS Repository http://rpm5.org/cvs/ Server: rpm5.org Name: Jeff Johnson Root: /v/rpm/cvs Email: j...@rpm5.org Module: rpm Date: 25-Sep-2009 20:41:01 Branch: HEAD Handle: 2009092518410100 Modified files: rpm/misclibrpmmisc.vers Log: - misc: add db_sequence_create to the loader map. Summary: RevisionChanges Path 1.24+2 -1 rpm/misc/librpmmisc.vers patch -p0 <<'@@ .' Index: rpm/misc/librpmmisc.vers $ cvs diff -u -r1.23 -r1.24 librpmmisc.vers --- rpm/misc/librpmmisc.vers 30 May 2009 15:41:08 - 1.23 +++ rpm/misc/librpmmisc.vers 25 Sep 2009 18:41:01 - 1.24 @@ -1,11 +1,12 @@ LIBRPMMISC_0 { global: +db_create_rpmdb; db_env_create_rpmdb; db_env_set_func_open_rpmdb; db_env_set_func_fsync_rpmdb; +db_sequence_create_rpmdb; db_strerror_rpmdb; -db_create_rpmdb; ficlSystemCompileExtras; ficlSystemCreate; ficlSystemCreateVm; @@ . __ RPM Package Managerhttp://rpm5.org CVS Sources Repositoryrpm-cvs@rpm5.org