- add rpmlib(HeaderLoadSortsTags) for tracking header regions
"just in case".
- create _tmppath on the fly if not present.
+ - remove /etc/rpm/macros.db1 configuration file if db3 rebuilt.
3.0.6 -> 4.0
- use DIRNAMES/BASENAMES/DIRINDICES not FILENAMES in packages and db.
dbiIndex dbi = NULL;
int _dbapi, _dbapi_rebuild, _dbapi_wanted;
int rc = 0;
+#ifdef DYING
+ static int _printed = 0;
+#endif
dbix = dbiTagToDbix(rpmtag);
if (dbix < 0 || dbix >= dbiTagsMax)
default:
_dbapi = _dbapi_wanted;
if (_dbapi < 0 || _dbapi >= 4 || mydbvecs[_dbapi] == NULL) {
- static int _printed = 0;
+#ifdef DYING
if (!_printed++)
fprintf(stderr, _("\n\
--> This version of rpm was not compiled with support for \"%%_dbapi %d\".\n\
and configure \"%%_dbapi 3\" (e.g. create and/or edit /etc/rpm/macros).\n\
\n\
"), _dbapi_wanted);
+#endif
return NULL;
}
errno = 0;
/* Require conversion. */
if (rc && _dbapi_wanted >= 0 && _dbapi != _dbapi_wanted && _dbapi_wanted == _dbapi_rebuild) {
- static int _printed = 0;
rc = (_rebuildinprogress ? 0 : 1);
+#ifdef DYING
if (rc && !_printed++)
fprintf(stderr, _("\n\
--> The rpm database cannot be opened in db%d format.\n\
your database to db%d format by running \"rpm --rebuilddb\" as root.\n\
\n\
"), _dbapi_wanted, (_dbapi_rebuild > 0 ? _dbapi_rebuild : 3));
+#endif
goto exit;
}
/* Suggest possible configuration */
if (_dbapi_wanted >= 0 && _dbapi != _dbapi_wanted) {
- static int _printed = 0;
+#ifdef DYING
if (!_printed++)
fprintf(stderr, _("\n\
--> The configured %%_dbapi was db%d, but the rpm database is db%d format.\n\
and configure \"%%_dbapi %d\" (e.g. create and/or edit /etc/rpm/macros).\n\
\n\
"), _dbapi_wanted, _dbapi, _dbapi);
+#endif
rc = 1;
goto exit;
}
/* Suggest possible configuration */
if (_dbapi_wanted < 0 && _dbapi != _dbapi_rebuild) {
- static int _printed = 0;
rc = (_rebuildinprogress ? 0 : 1);
+#ifdef DYING
if (rc && !_printed++)
fprintf(stderr, _("\n\
--> The rpm database is in db%d format, not the suggested db%d format.\n\
\n\
"), _dbapi, (_dbapi_rebuild > 0 ? _dbapi_rebuild : 3),
_dbapi, (_dbapi_rebuild > 0 ? _dbapi_rebuild : 3), _dbapi);
+#endif
goto exit;
}
return rc;
rc = rpmdbRemoveDatabase(rootdir, newdbpath, _newdbapi);
+
+
+ /* Remove /etc/rpm/macros.db1 configuration file if db3 rebuilt. */
+ if (rc == 0 && _newdbapi == 1 && _olddbapi == 3) {
+ const char * mdb1 = "/etc/rpm/macros.db1";
+ struct stat st;
+ if (!stat(mdb1, &st) && S_ISREG(st.st_mode) && !unlink(mdb1))
+ rpmMessage(RPMMESS_DEBUG,
+ _("removing %s after successful db3 rebuild.\n"), mdb1);
+ }
return rc;
}
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2000-12-19 09:06-0500\n"
+"POT-Creation-Date: 2000-12-19 18:05-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr ""
#: rpm.c:200 rpmqv.c:284
-msgid "Copyright (C) 1998 - Red Hat Software"
+msgid "Copyright (C) 1998-2000 - Red Hat, Inc."
msgstr ""
#: rpm.c:201 rpmqv.c:285
-msgid "This may be freely redistributed under the terms of the GNU GPL"
+msgid "This program may be freely redistributed under the terms of the GNU GPL"
msgstr ""
#: rpm.c:209
msgid "dbiTagsInit: unrecognized tag name: \"%s\" ignored\n"
msgstr ""
-#: lib/rpmdb.c:264
+#: lib/rpmdb.c:267
msgid ""
"\n"
"--> This version of rpm was not compiled with support for \"%%_dbapi %d\".\n"
"\n"
msgstr ""
-#: lib/rpmdb.c:279
+#: lib/rpmdb.c:283
#, c-format
msgid "cannot open %s index using db%d - %s (%d)"
msgstr ""
-#: lib/rpmdb.c:299
+#: lib/rpmdb.c:303
#, c-format
msgid "cannot open %s index"
msgstr ""
-#: lib/rpmdb.c:314
+#: lib/rpmdb.c:318
#, c-format
msgid ""
"\n"
"\n"
msgstr ""
-#: lib/rpmdb.c:327
+#: lib/rpmdb.c:332
msgid ""
"\n"
"--> The configured %%_dbapi was db%d, but the rpm database is db%d format.\n"
"\n"
msgstr ""
-#: lib/rpmdb.c:342
+#: lib/rpmdb.c:348
msgid ""
"\n"
"--> The rpm database is in db%d format, not the suggested db%d format.\n"
"\n"
msgstr ""
-#: lib/rpmdb.c:410
+#: lib/rpmdb.c:417
#, c-format
msgid "error(%d) getting \"%s\" records from %s index"
msgstr ""
-#: lib/rpmdb.c:528
+#: lib/rpmdb.c:535
#, c-format
msgid "error(%d) storing record %s into %s"
msgstr ""
-#: lib/rpmdb.c:537
+#: lib/rpmdb.c:544
#, c-format
msgid "error(%d) removing record %s from %s"
msgstr ""
-#: lib/rpmdb.c:772 lib/rpmdb.c:2351
+#: lib/rpmdb.c:779 lib/rpmdb.c:2368
msgid "no dbpath has been set"
msgstr ""
-#: lib/rpmdb.c:871
+#: lib/rpmdb.c:878
msgid ""
"old format database is present; use --rebuilddb to generate a new format "
"database"
msgstr ""
#. error
-#: lib/rpmdb.c:1083
+#: lib/rpmdb.c:1090
#, c-format
msgid "error(%d) counting packages"
msgstr ""
-#: lib/rpmdb.c:1142 lib/rpmdb.c:1686
+#: lib/rpmdb.c:1149 lib/rpmdb.c:1693
#, c-format
msgid "%s: cannot read header at 0x%x"
msgstr ""
-#: lib/rpmdb.c:1739
+#: lib/rpmdb.c:1746
#, c-format
msgid "removing 0 %s entries.\n"
msgstr ""
-#: lib/rpmdb.c:1750
+#: lib/rpmdb.c:1757
#, c-format
msgid "removing \"%s\" from %s index.\n"
msgstr ""
-#: lib/rpmdb.c:1759
+#: lib/rpmdb.c:1766
#, c-format
msgid "removing %d entries from %s index.\n"
msgstr ""
-#: lib/rpmdb.c:1901
+#: lib/rpmdb.c:1908
#, c-format
msgid "error(%d) allocating new package instance"
msgstr ""
-#: lib/rpmdb.c:1964
+#: lib/rpmdb.c:1971
#, c-format
msgid "adding 0 %s entries.\n"
msgstr ""
-#: lib/rpmdb.c:1980
+#: lib/rpmdb.c:1987
#, c-format
msgid "adding \"%s\" to %s index.\n"
msgstr ""
-#: lib/rpmdb.c:1989
+#: lib/rpmdb.c:1996
#, c-format
msgid "adding %d entries to %s index.\n"
msgstr ""
-#: lib/rpmdb.c:2376
+#: lib/rpmdb.c:2342
+#, c-format
+msgid "removing %s after successful db3 rebuild.\n"
+msgstr ""
+
+#: lib/rpmdb.c:2393
#, c-format
msgid "rebuilding database %s into %s\n"
msgstr ""
-#: lib/rpmdb.c:2380
+#: lib/rpmdb.c:2397
#, c-format
msgid "temporary database %s already exists"
msgstr ""
-#: lib/rpmdb.c:2386
+#: lib/rpmdb.c:2403
#, c-format
msgid "creating directory %s\n"
msgstr ""
-#: lib/rpmdb.c:2388
+#: lib/rpmdb.c:2405
#, c-format
msgid "error creating directory %s: %s"
msgstr ""
-#: lib/rpmdb.c:2395
+#: lib/rpmdb.c:2412
#, c-format
msgid "opening old database with dbapi %d\n"
msgstr ""
-#: lib/rpmdb.c:2406
+#: lib/rpmdb.c:2423
#, c-format
msgid "opening new database with dbapi %d\n"
msgstr ""
-#: lib/rpmdb.c:2429
+#: lib/rpmdb.c:2446
#, c-format
msgid "record number %d in database is bad -- skipping."
msgstr ""
-#: lib/rpmdb.c:2466
+#: lib/rpmdb.c:2483
#, c-format
msgid "cannot add record originally at %d"
msgstr ""
-#: lib/rpmdb.c:2484
+#: lib/rpmdb.c:2501
msgid "failed to rebuild database: original database remains in place\n"
msgstr ""
-#: lib/rpmdb.c:2492
+#: lib/rpmdb.c:2509
msgid "failed to replace old database with new database!\n"
msgstr ""
-#: lib/rpmdb.c:2494
+#: lib/rpmdb.c:2511
#, c-format
msgid "replace files in %s with files from %s to recover"
msgstr ""
-#: lib/rpmdb.c:2504
+#: lib/rpmdb.c:2521
#, c-format
msgid "removing directory %s\n"
msgstr ""
-#: lib/rpmdb.c:2506
+#: lib/rpmdb.c:2523
#, c-format
msgid "failed to remove directory %s: %s\n"
msgstr ""
-/* (C) 1998 Red Hat Software, Inc. -- Licensing details are in the COPYING
+/* (C) 1998-2000 Red Hat, Inc. -- Licensing details are in the COPYING
file accompanying popt source distributions, available from
- ftp://ftp.redhat.com/pub/code/popt */
+ ftp://ftp.rpm.org/pub/rpm/dist. */
/* acconfig.h
This file is in the public domain.
* \file popt/findme.c
*/
-/* (C) 1998 Red Hat Software, Inc. -- Licensing details are in the COPYING
+/* (C) 1998-2000 Red Hat, Inc. -- Licensing details are in the COPYING
file accompanying popt source distributions, available from
- ftp://ftp.redhat.com/pub/code/popt */
+ ftp://ftp.rpm.org/pub/rpm/dist. */
#include "system.h"
#include "findme.h"
* \file popt/findme.h
*/
-/* (C) 1998 Red Hat Software, Inc. -- Licensing details are in the COPYING
+/* (C) 1998-2000 Red Hat, Inc. -- Licensing details are in the COPYING
file accompanying popt source distributions, available from
- ftp://ftp.redhat.com/pub/code/popt */
+ ftp://ftp.rpm.org/pub/rpm/dist. */
#ifndef H_FINDME
#define H_FINDME
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2000-09-11 12:53-0400\n"
+"POT-Creation-Date: 2000-12-19 18:05-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
* \file popt/popt.c
*/
-/* (C) 1998 Red Hat Software, Inc. -- Licensing details are in the COPYING
+/* (C) 19982000 Red Hat, Inc. -- Licensing details are in the COPYING
file accompanying popt source distributions, available from
- ftp://ftp.redhat.com/pub/code/popt */
+ ftp://ftp.rpm.org/pub/rpm/dist */
#undef MYDEBUG
* \file popt/popt.h
*/
-/* (C) 1998 Red Hat Software, Inc. -- Licensing details are in the COPYING
+/* (C) 1998-2000 Red Hat, Inc. -- Licensing details are in the COPYING
file accompanying popt source distributions, available from
- ftp://ftp.redhat.com/pub/code/popt */
+ ftp://ftp.rpm.org/pub/rpm/dist. */
#ifndef H_POPT
#define H_POPT
#
Summary: A C library for parsing command line parameters.
Name: popt
-Version: 1.7
+Version: 1.6.1
Release: 0.1
-Copyright: LGPL
+Copyright: X Consortium
Group: System Environment/Libraries
Source: ftp://ftp.redhat.com/pub/redhat/code/popt/popt-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}root
* \file popt/poptconfig.c
*/
-/* (C) 1998 Red Hat Software, Inc. -- Licensing details are in the COPYING
+/* (C) 1998-2000 Red Hat, Inc. -- Licensing details are in the COPYING
file accompanying popt source distributions, available from
- ftp://ftp.redhat.com/pub/code/popt */
+ ftp://ftp.rpm.org/pub/rpm/dist. */
#include "system.h"
#include "poptint.h"
* \file popt/popthelp.c
*/
-/* (C) 1998 Red Hat Software, Inc. -- Licensing details are in the COPYING
+/* (C) 1998-2000 Red Hat, Inc. -- Licensing details are in the COPYING
file accompanying popt source distributions, available from
- ftp://ftp.redhat.com/pub/code/popt */
+ ftp://ftp.rpm.org/pub/rpm/dist. */
#include "system.h"
#include "poptint.h"
* \file popt/poptint.h
*/
-/* (C) 1998 Red Hat Software, Inc. -- Licensing details are in the COPYING
+/* (C) 1998-2000 Red Hat, Inc. -- Licensing details are in the COPYING
file accompanying popt source distributions, available from
- ftp://ftp.redhat.com/pub/code/popt */
+ ftp://ftp.rpm.org/pub/rpm/dist. */
#ifndef H_POPTINT
#define H_POPTINT
* \file popt/poptparse.c
*/
-/* (C) 1998 Red Hat Software, Inc. -- Licensing details are in the COPYING
+/* (C) 1998-2000 Red Hat, Inc. -- Licensing details are in the COPYING
file accompanying popt source distributions, available from
- ftp://ftp.redhat.com/pub/code/popt */
+ ftp://ftp.rpm.org/pub/rpm/dist. */
#include "system.h"
-/* (C) 1998 Red Hat Software, Inc. -- Licensing details are in the COPYING
+/* (C) 1998-2000 Red Hat, Inc. -- Licensing details are in the COPYING
file accompanying popt source distributions, available from
- ftp://ftp.redhat.com/pub/code/popt */
+ ftp://ftp.rpm.org/pub/rpm/dist. */
#include "system.h"
}
static void printBanner(void) {
- puts(_("Copyright (C) 1998 - Red Hat Software"));
- puts(_("This may be freely redistributed under the terms of the GNU GPL"));
+ puts(_("Copyright (C) 1998-2000 - Red Hat, Inc."));
+ puts(_("This program may be freely redistributed under the terms of the GNU GPL"));
}
static void printUsage(void) {
%define with_python_subpackage @WITH_PYTHON_SUBPACKAGE@
%define with_bzip2 @WITH_BZIP2@
%define with_apidocs @WITH_APIDOCS@
-%define strip_binaries 0
+%define strip_binaries 1
# XXX legacy requires './' payload prefix to be omitted from rpm packages.
%define _noPayloadPrefix 1
- handle install chroot's identically throughout the install process.
- add rpmlib(HeaderLoadSortsTags) for tracking header regions "just in case".
- create _tmppath on the fly if not present.
+- remove /etc/rpm/macros.db1 configuration file if db3 rebuilt.
* Wed Dec 13 2000 Jeff Johnson <jbj@redhat.com>
- bump popt version.
}
static void printBanner(void) {
- puts(_("Copyright (C) 1998 - Red Hat Software"));
- puts(_("This may be freely redistributed under the terms of the GNU GPL"));
+ puts(_("Copyright (C) 1998-2000 - Red Hat, Inc."));
+ puts(_("This program may be freely redistributed under the terms of the GNU GPL"));
}
static void printUsage(void) {
rpm=/bin/rpm
rpmb=/usr/bin/rpmbuild
rpmq=/usr/bin/rpmquery
-rpmdb=/usr/bin/rpmdb
+rpmdb=$rpm
dist=7.0
type=min
-arch=`$rpm --eval '%{_arch}'`
+arch=`$rpmq --eval '%{_arch}'`
top=`pwd`
root=$top/$dist
rc="--rcfile $top/rpmrc-$dist"
sorted= # "| sort"
-minglob="
+min0glob="
basesystem-
bash-[12]
filesystem-
"
min1glob="
-$minglob
+$min0glob
bzip2-[01]
chkconfig-
db1-1
psmisc-
sed-
shadow-utils-
+readline-2
rmt-
tar-
textutils-
baseglob="
$min2glob
console-tools-
+gmp-2
initscripts-
kernel-2
modutils-
db3-devel-
gdbm-devel-
glibc-devel-
+gmp-devel-
kernel-headers-
ncurses-devel-
+readline-devel-
tcl-
zlib-devel-
"
egcs-2
gcc-2
gettext-
+krb5-configs-
krb5-libs-
libstdc++-
libtool-
make-
m4-
perl-
+python-1
tcsh-
"
-classes="min min1 min2 base devel build"
+classes="min0 min1 min2 base devel build"
notallpat="(kernel-[^2h])"
for cmd in $*
dist=$cmd
root=$top/$dist
rc="--rcfile $top/rpmrc-$dist $db1"
- $dbg mkdir -p $root/{X/tmp,X/RPMS,X/SRPMS} || exit 1
+ $dbg mkdir -p $root/{dev,X/RPMS,X/SRPMS}
+ [ ! -c $root/dev/null ] && $dbg $sudo mknod $root/dev/null c 1 3
+ find $root
cat << EOF > $top/rpmrc-$dist
include: /usr/lib/rpm/rpmrc
macrofiles: /usr/lib/rpm/macros:/usr/lib/rpm/%{_target}/macros:$top/macros:$top/macros-$dist-$arch
echo $type-$dist-$arch not found
exit 1
}
- $dbg $sudo $rpm $rc --root $root $cmd `cat $type-$dist-$arch`
+ $dbg $sudo $rpm $rc --root $root $cmd --notriggers `cat $type-$dist-$arch`
;;
-[Vqei]*|--showrc)
$dbg $sudo $rpm $rc --root $root $cmd