summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Hadaway <raker@gentoo.org>2003-02-19 21:09:23 +0000
committerNick Hadaway <raker@gentoo.org>2003-02-19 21:09:23 +0000
commitd5b7064f1d0dec386c5e0a216d4ba50ff23e8018 (patch)
treeb2ff0169761b7ba54491aa2b7e8d858f954be2c8 /app-arch/rpm
parentversion bump and license fix. resolves #11917 (diff)
downloadhistorical-d5b7064f1d0dec386c5e0a216d4ba50ff23e8018.tar.gz
historical-d5b7064f1d0dec386c5e0a216d4ba50ff23e8018.tar.bz2
historical-d5b7064f1d0dec386c5e0a216d4ba50ff23e8018.zip
Version bump. Currently builds but doesn't run. All are -arch.
Diffstat (limited to 'app-arch/rpm')
-rw-r--r--app-arch/rpm/ChangeLog10
-rw-r--r--app-arch/rpm/files/digest-rpm-4.11
-rw-r--r--app-arch/rpm/files/rpm-4.1-system-popt.diff620
-rw-r--r--app-arch/rpm/rpm-4.1.ebuild82
4 files changed, 712 insertions, 1 deletions
diff --git a/app-arch/rpm/ChangeLog b/app-arch/rpm/ChangeLog
index 0ab91d170ff4..8fa65c4d49e1 100644
--- a/app-arch/rpm/ChangeLog
+++ b/app-arch/rpm/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for app-arch/rpm
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/ChangeLog,v 1.14 2003/02/12 02:57:34 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/ChangeLog,v 1.15 2003/02/19 21:09:23 raker Exp $
+
+*rpm-4.1 (19 Feb 2003)
+
+ 19 Feb 2003; Nick Hadaway <raker@gentoo.org> rpm-4.1.ebuild,
+ files/digest-rpm-4.1, files/rpm-4.1-system-popt.diff :
+ Package builds. rpm doesn't run. All are -arch. This has
+ been added to portage so people can test and maybe find a
+ fix. Pwease?
*rpm-4.0.4-r4 (12 Oct 2002)
diff --git a/app-arch/rpm/files/digest-rpm-4.1 b/app-arch/rpm/files/digest-rpm-4.1
new file mode 100644
index 000000000000..71b87a9a673e
--- /dev/null
+++ b/app-arch/rpm/files/digest-rpm-4.1
@@ -0,0 +1 @@
+MD5 fa023805db9fc7f7437483cc21d703cc rpm-4.1.tar.gz 6494145
diff --git a/app-arch/rpm/files/rpm-4.1-system-popt.diff b/app-arch/rpm/files/rpm-4.1-system-popt.diff
new file mode 100644
index 000000000000..c40924311385
--- /dev/null
+++ b/app-arch/rpm/files/rpm-4.1-system-popt.diff
@@ -0,0 +1,620 @@
+diff -ur rpm-4.1/Makefile.am rpm-4.1.changed/Makefile.am
+--- rpm-4.1/Makefile.am 2002-09-16 21:40:53.000000000 +0000
++++ rpm-4.1.changed/Makefile.am 2002-11-06 14:32:41.000000000 +0000
+@@ -12,7 +12,7 @@
+ po/*.in po/*.po po/rpm.pot \
+ rpm.magic rpmpopt-$(VERSION) rpmqv.c rpm.c
+
+-SUBDIRS = intl po @WITH_ZLIB_SUBDIR@ libelf @WITH_DB_SUBDIR@ popt beecrypt rpmio rpmdb lib build misc @WITH_PYTHON_SUBDIR@ tools scripts tests doc .
++SUBDIRS = intl po @WITH_ZLIB_SUBDIR@ libelf @WITH_DB_SUBDIR@ beecrypt rpmio rpmdb lib build misc @WITH_PYTHON_SUBDIR@ tools scripts tests doc .
+
+ INCLUDES = \
+ -I$(top_srcdir)/build \
+@@ -20,7 +20,6 @@
+ -I$(top_srcdir)/rpmdb \
+ -I$(top_srcdir)/rpmio \
+ -I$(top_srcdir)/beecrypt \
+- -I$(top_srcdir)/popt \
+ @WITH_LIBELF_INCLUDE@ \
+ @WITH_ZLIB_INCLUDE@ \
+ @INCPATH@
+@@ -35,7 +34,7 @@
+ $(top_builddir)/lib/librpm.la \
+ $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la \
++ /usr/lib/libpopt.la
+ @WITH_LIBELF_LIB@ \
+ @WITH_ZLIB_LIB@ \
+ @INTLLIBS@ \
+@@ -121,8 +120,7 @@
+ `make -s sources -C lib` \
+ `make -s sources -C rpmdb` \
+ `make -s sources -C rpmio` \
+- `make -s sources -C beecrypt` \
+- `make -s sources -C popt`
++ `make -s sources -C beecrypt`
+
+ CVSTAG = r$(subst .,-,$(VERSION))
+
+diff -ur rpm-4.1/Makefile.in rpm-4.1.changed/Makefile.in
+--- rpm-4.1/Makefile.in 2002-09-16 21:41:07.000000000 +0000
++++ rpm-4.1.changed/Makefile.in 2002-11-06 14:36:46.000000000 +0000
+@@ -214,7 +214,7 @@
+ rpm.magic rpmpopt-$(VERSION) rpmqv.c rpm.c
+
+
+-SUBDIRS = intl po @WITH_ZLIB_SUBDIR@ libelf @WITH_DB_SUBDIR@ popt beecrypt rpmio rpmdb lib build misc @WITH_PYTHON_SUBDIR@ tools scripts tests doc .
++SUBDIRS = intl po @WITH_ZLIB_SUBDIR@ libelf @WITH_DB_SUBDIR@ beecrypt rpmio rpmdb lib build misc @WITH_PYTHON_SUBDIR@ tools scripts tests doc .
+
+ INCLUDES = \
+ -I$(top_srcdir)/build \
+@@ -238,7 +238,6 @@
+ $(top_builddir)/lib/librpm.la \
+ $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la \
+ @WITH_LIBELF_LIB@ \
+ @WITH_ZLIB_LIB@ \
+ @INTLLIBS@ \
+@@ -310,43 +309,43 @@
+ rpm_DEPENDENCIES = rpm.o $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ am_rpm2cpio_OBJECTS = rpm2cpio.$(OBJEXT)
+ rpm2cpio_OBJECTS = $(am_rpm2cpio_OBJECTS)
+ rpm2cpio_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ am_rpmb_OBJECTS = build.$(OBJEXT)
+ rpmb_OBJECTS = $(am_rpmb_OBJECTS)
+ rpmb_DEPENDENCIES = rpmb.o $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ am_rpmd_OBJECTS =
+ rpmd_OBJECTS = $(am_rpmd_OBJECTS)
+ rpmd_DEPENDENCIES = rpmd.o $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ am_rpmi_OBJECTS =
+ rpmi_OBJECTS = $(am_rpmi_OBJECTS)
+ rpmi_DEPENDENCIES = rpmi.o $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ am_rpmk_OBJECTS =
+ rpmk_OBJECTS = $(am_rpmk_OBJECTS)
+ rpmk_DEPENDENCIES = rpmk.o $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ am_rpmq_OBJECTS =
+ rpmq_OBJECTS = $(am_rpmq_OBJECTS)
+ rpmq_DEPENDENCIES = rpmq.o $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ SCRIPTS = $(bin_SCRIPTS) $(pkglib_SCRIPTS)
+
+
+@@ -979,8 +978,7 @@
+ `make -s sources -C lib` \
+ `make -s sources -C rpmdb` \
+ `make -s sources -C rpmio` \
+- `make -s sources -C beecrypt` \
+- `make -s sources -C popt`
++ `make -s sources -C beecrypt`
+
+ install-data-local:
+ @$(mkinstalldirs) $(DESTDIR)$(varprefix)/lib/rpm
+diff -ur rpm-4.1/build/Makefile.am rpm-4.1.changed/build/Makefile.am
+--- rpm-4.1/build/Makefile.am 2002-07-21 22:06:19.000000000 +0000
++++ rpm-4.1.changed/build/Makefile.am 2002-11-06 14:37:57.000000000 +0000
+@@ -7,7 +7,6 @@
+ -I$(top_srcdir)/lib \
+ -I$(top_srcdir)/rpmdb \
+ -I$(top_srcdir)/rpmio \
+- -I$(top_srcdir)/popt \
+ @INCPATH@
+
+ LIBS =
+diff -ur rpm-4.1/build/Makefile.in rpm-4.1.changed/build/Makefile.in
+--- rpm-4.1/build/Makefile.in 2002-08-31 13:23:15.000000000 +0000
++++ rpm-4.1.changed/build/Makefile.in 2002-11-06 14:39:18.000000000 +0000
+@@ -207,7 +207,6 @@
+ -I$(top_srcdir)/lib \
+ -I$(top_srcdir)/rpmdb \
+ -I$(top_srcdir)/rpmio \
+- -I$(top_srcdir)/popt \
+ @INCPATH@
+
+
+diff -ur rpm-4.1/configure rpm-4.1.changed/configure
+--- rpm-4.1/configure 2002-08-31 13:23:24.000000000 +0000
++++ rpm-4.1.changed/configure 2002-11-06 14:52:16.000000000 +0000
+@@ -455,7 +455,7 @@
+ # include <unistd.h>
+ #endif"
+
+-ac_subdirs_all="$ac_subdirs_all popt beecrypt zlib libelf db3"
++ac_subdirs_all="$ac_subdirs_all beecrypt zlib libelf db3"
+
+ # Initialize some variables set by options.
+ ac_init_help=
+@@ -21523,7 +21523,7 @@
+
+
+
+-subdirs="$subdirs popt beecrypt zlib libelf db3"
++subdirs="$subdirs beecrypt zlib libelf db3"
+
+
+ ac_config_files="$ac_config_files Doxyfile Makefile rpmrc macros platform rpmpopt rpm.spec rpmio/Makefile rpmdb/Makefile lib/Makefile build/Makefile scripts/Makefile scripts/brp-redhat scripts/macros.perl scripts/macros.php scripts/macros.python tools/Makefile tests/Makefile tests/rpmrc tests/macros tests/hello-test/Makefile misc/Makefile intl/Makefile po/Makefile.in doc/Makefile doc/manual/Makefile doc/fr/Makefile doc/ja/Makefile doc/ko/Makefile doc/pl/Makefile doc/ru/Makefile doc/sk/Makefile python/Makefile python/rpmdb/Makefile python/test/Makefile"
+@@ -22973,7 +22973,7 @@
+ ;;
+ esac
+ done ;;
+- default ) echo timestamp > popt/stamp-h.in
++ default )
+ echo timestamp > beecrypt/stamp-h.in
+ echo timestamp > stamp-h.in
+
+diff -ur rpm-4.1/configure.ac rpm-4.1.changed/configure.ac
+--- rpm-4.1/configure.ac 2002-08-22 17:01:34.000000000 +0000
++++ rpm-4.1.changed/configure.ac 2002-11-06 14:53:33.000000000 +0000
+@@ -1191,7 +1191,7 @@
+ dnl # XXX Propagate -lucb to popt ...
+ dnl export LIBS INCPATH CONFIG_SITE
+
+-AC_CONFIG_SUBDIRS(popt beecrypt zlib libelf db3)
++AC_CONFIG_SUBDIRS(beecrypt zlib libelf db3)
+
+ AC_OUTPUT([ Doxyfile Makefile rpmrc macros platform rpmpopt rpm.spec
+ rpmio/Makefile rpmdb/Makefile lib/Makefile build/Makefile
+@@ -1211,8 +1211,7 @@
+ python/Makefile
+ python/rpmdb/Makefile
+ python/test/Makefile
+- ], [ echo timestamp > popt/stamp-h.in
+- echo timestamp > beecrypt/stamp-h.in
++ ], [ echo timestamp > beecrypt/stamp-h.in
+ echo timestamp > stamp-h.in
+ ]
+ )
+diff -ur rpm-4.1/lib/Makefile.am rpm-4.1.changed/lib/Makefile.am
+--- rpm-4.1/lib/Makefile.am 2002-08-30 11:41:54.000000000 +0000
++++ rpm-4.1.changed/lib/Makefile.am 2002-11-06 14:54:11.000000000 +0000
+@@ -7,7 +7,6 @@
+ -I$(top_srcdir)/build \
+ -I$(top_srcdir)/rpmdb \
+ -I$(top_srcdir)/rpmio \
+- -I$(top_srcdir)/popt \
+ @INCPATH@
+
+ EXTRA_DIST = getdate.y
+@@ -22,8 +21,7 @@
+ mylibpaths = \
+ -L$(top_builddir)/lib \
+ -L$(top_builddir)/rpmdb \
+- -L$(top_builddir)/rpmio \
+- -L$(top_builddir)/popt
++ -L$(top_builddir)/rpmio
+
+ mylibs = -lrpm -lrpmdb -lrpmio -lpopt @LIBS@ @INTLLIBS@ @LIBMISC@
+ LIBS =
+diff -ur rpm-4.1/lib/Makefile.in rpm-4.1.changed/lib/Makefile.in
+--- rpm-4.1/lib/Makefile.in 2002-08-31 13:23:17.000000000 +0000
++++ rpm-4.1.changed/lib/Makefile.in 2002-11-06 14:55:04.000000000 +0000
+@@ -207,7 +207,6 @@
+ -I$(top_srcdir)/build \
+ -I$(top_srcdir)/rpmdb \
+ -I$(top_srcdir)/rpmio \
+- -I$(top_srcdir)/popt \
+ @INCPATH@
+
+
+@@ -225,8 +224,7 @@
+ mylibpaths = \
+ -L$(top_builddir)/lib \
+ -L$(top_builddir)/rpmdb \
+- -L$(top_builddir)/rpmio \
+- -L$(top_builddir)/popt
++ -L$(top_builddir)/rpmio
+
+
+ mylibs = -lrpm -lrpmdb -lrpmio -lpopt @LIBS@ @INTLLIBS@ @LIBMISC@
+diff -ur rpm-4.1/python/Makefile.am rpm-4.1.changed/python/Makefile.am
+--- rpm-4.1/python/Makefile.am 2002-08-30 11:50:13.000000000 +0000
++++ rpm-4.1.changed/python/Makefile.am 2002-11-06 14:55:38.000000000 +0000
+@@ -11,7 +11,6 @@
+ -I$(top_srcdir)/rpmdb \
+ -I$(top_srcdir)/rpmio \
+ -I$(top_srcdir)/beecrypt \
+- -I$(top_srcdir)/popt \
+ -I/usr/include/python${PYVER} \
+ @WITH_LIBELF_INCLUDE@ \
+ @INCPATH@
+@@ -25,7 +24,7 @@
+ $(top_builddir)/lib/.libs/librpm.so \
+ $(top_builddir)/rpmdb/.libs/librpmdb.so \
+ $(top_builddir)/rpmio/.libs/librpmio.so \
+- $(top_builddir)/popt/.libs/libpopt.so
++ /usr/lib/libpopt.so
+
+ LDADD =
+
+diff -ur rpm-4.1/python/Makefile.in rpm-4.1.changed/python/Makefile.in
+--- rpm-4.1/python/Makefile.in 2002-08-31 13:23:18.000000000 +0000
++++ rpm-4.1.changed/python/Makefile.in 2002-11-06 14:56:23.000000000 +0000
+@@ -211,7 +211,6 @@
+ -I$(top_srcdir)/rpmdb \
+ -I$(top_srcdir)/rpmio \
+ -I$(top_srcdir)/beecrypt \
+- -I$(top_srcdir)/popt \
+ -I/usr/include/python${PYVER} \
+ @WITH_LIBELF_INCLUDE@ \
+ @INCPATH@
+@@ -227,7 +226,7 @@
+ $(top_builddir)/lib/.libs/librpm.so \
+ $(top_builddir)/rpmdb/.libs/librpmdb.so \
+ $(top_builddir)/rpmio/.libs/librpmio.so \
+- $(top_builddir)/popt/.libs/libpopt.so
++ /usr/lib/libpopt.so
+
+
+ LDADD =
+diff -ur rpm-4.1/rpmdb/Makefile.am rpm-4.1.changed/rpmdb/Makefile.am
+--- rpm-4.1/rpmdb/Makefile.am 2002-08-30 13:12:01.000000000 +0000
++++ rpm-4.1.changed/rpmdb/Makefile.am 2002-11-06 14:56:52.000000000 +0000
+@@ -7,7 +7,6 @@
+ -I$(top_srcdir)/lib \
+ -I$(top_srcdir)/rpmio \
+ -I$(top_srcdir)/beecrypt \
+- -I$(top_srcdir)/popt \
+ @WITH_LIBELF_INCLUDE@ \
+ @INCPATH@
+
+@@ -25,8 +24,7 @@
+
+ mylibpaths = \
+ -L$(top_builddir)/lib \
+- -L$(top_builddir)/rpmio \
+- -L$(top_builddir)/popt
++ -L$(top_builddir)/rpmio
+
+ mylibs = -lrpm -lrpmio -lpopt @LIBS@ @INTLLIBS@ @LIBMISC@
+ LIBS =
+diff -ur rpm-4.1/rpmdb/Makefile.in rpm-4.1.changed/rpmdb/Makefile.in
+--- rpm-4.1/rpmdb/Makefile.in 2002-08-31 13:23:19.000000000 +0000
++++ rpm-4.1.changed/rpmdb/Makefile.in 2002-11-06 14:57:20.000000000 +0000
+@@ -207,7 +207,6 @@
+ -I$(top_srcdir)/lib \
+ -I$(top_srcdir)/rpmio \
+ -I$(top_srcdir)/beecrypt \
+- -I$(top_srcdir)/popt \
+ @WITH_LIBELF_INCLUDE@ \
+ @INCPATH@
+
+@@ -226,8 +225,7 @@
+
+ mylibpaths = \
+ -L$(top_builddir)/lib \
+- -L$(top_builddir)/rpmio \
+- -L$(top_builddir)/popt
++ -L$(top_builddir)/rpmio
+
+
+ mylibs = -lrpm -lrpmio -lpopt @LIBS@ @INTLLIBS@ @LIBMISC@
+diff -ur rpm-4.1/rpmio/Makefile.am rpm-4.1.changed/rpmio/Makefile.am
+--- rpm-4.1/rpmio/Makefile.am 2002-07-21 22:07:06.000000000 +0000
++++ rpm-4.1.changed/rpmio/Makefile.am 2002-11-06 14:58:32.000000000 +0000
+@@ -8,7 +8,6 @@
+
+ INCLUDES = -I. \
+ -I$(top_srcdir) \
+- -I$(top_srcdir)/popt \
+ @INCPATH@
+
+ pkgincdir = $(pkgincludedir)
+@@ -60,34 +59,34 @@
+ lclint $(DEFS) $(INCLUDES) $(librpmio_la_SOURCES)
+
+ tdigest_SOURCES = tdigest.c
+-tdigest_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tdigest_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ tdir_SOURCES = tdir.c
+ tdir_LDFLAGS = -all-static
+-tdir_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tdir_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ tfts_SOURCES = tfts.c
+ tfts_LDFLAGS = -all-static
+-tfts_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tfts_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ tglob_SOURCES = tglob.c
+ tglob_LDFLAGS = -all-static
+-tglob_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tglob_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ tinv_SOURCES = tinv.c
+ tinv_LDFLAGS = -all-static
+-tinv_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tinv_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ tkey_SOURCES = tkey.c
+ tkey_LDFLAGS = -all-static
+-tkey_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tkey_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ tring_SOURCES = tring.c
+ tring_LDFLAGS = -all-static
+-tring_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tring_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ trpmio_SOURCES = trpmio.c
+-trpmio_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++trpmio_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ dumpasn1_SOURCES = dumpasn1.c
+
+diff -ur rpm-4.1/rpmio/Makefile.in rpm-4.1.changed/rpmio/Makefile.in
+--- rpm-4.1/rpmio/Makefile.in 2002-08-31 13:23:20.000000000 +0000
++++ rpm-4.1.changed/rpmio/Makefile.in 2002-11-06 15:00:27.000000000 +0000
+@@ -208,7 +208,6 @@
+
+ INCLUDES = -I. \
+ -I$(top_srcdir) \
+- -I$(top_srcdir)/popt \
+ @INCPATH@
+
+
+@@ -232,34 +231,34 @@
+ librpmio_la_DEPENDENCIES = .created
+
+ tdigest_SOURCES = tdigest.c
+-tdigest_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tdigest_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ tdir_SOURCES = tdir.c
+ tdir_LDFLAGS = -all-static
+-tdir_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tdir_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ tfts_SOURCES = tfts.c
+ tfts_LDFLAGS = -all-static
+-tfts_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tfts_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ tglob_SOURCES = tglob.c
+ tglob_LDFLAGS = -all-static
+-tglob_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tglob_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ tinv_SOURCES = tinv.c
+ tinv_LDFLAGS = -all-static
+-tinv_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tinv_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ tkey_SOURCES = tkey.c
+ tkey_LDFLAGS = -all-static
+-tkey_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tkey_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ tring_SOURCES = tring.c
+ tring_LDFLAGS = -all-static
+-tring_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++tring_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ trpmio_SOURCES = trpmio.c
+-trpmio_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
++trpmio_LDADD = librpmio.la /usr/lib/libpopt.la
+
+ dumpasn1_SOURCES = dumpasn1.c
+ subdir = rpmio
+@@ -282,29 +281,29 @@
+ dumpasn1_LDFLAGS =
+ am_tdigest_OBJECTS = tdigest.$(OBJEXT)
+ tdigest_OBJECTS = $(am_tdigest_OBJECTS)
+-tdigest_DEPENDENCIES = librpmio.la $(top_builddir)/popt/libpopt.la
++tdigest_DEPENDENCIES = librpmio.la /usr/lib/libpopt.la
+ tdigest_LDFLAGS =
+ am_tdir_OBJECTS = tdir.$(OBJEXT)
+ tdir_OBJECTS = $(am_tdir_OBJECTS)
+-tdir_DEPENDENCIES = librpmio.la $(top_builddir)/popt/libpopt.la
++tdir_DEPENDENCIES = librpmio.la /usr/lib/libpopt.la
+ am_tfts_OBJECTS = tfts.$(OBJEXT)
+ tfts_OBJECTS = $(am_tfts_OBJECTS)
+-tfts_DEPENDENCIES = librpmio.la $(top_builddir)/popt/libpopt.la
++tfts_DEPENDENCIES = librpmio.la /usr/lib/libpopt.la
+ am_tglob_OBJECTS = tglob.$(OBJEXT)
+ tglob_OBJECTS = $(am_tglob_OBJECTS)
+-tglob_DEPENDENCIES = librpmio.la $(top_builddir)/popt/libpopt.la
++tglob_DEPENDENCIES = librpmio.la /usr/lib/libpopt.la
+ am_tinv_OBJECTS = tinv.$(OBJEXT)
+ tinv_OBJECTS = $(am_tinv_OBJECTS)
+-tinv_DEPENDENCIES = librpmio.la $(top_builddir)/popt/libpopt.la
++tinv_DEPENDENCIES = librpmio.la /usr/lib/libpopt.la
+ am_tkey_OBJECTS = tkey.$(OBJEXT)
+ tkey_OBJECTS = $(am_tkey_OBJECTS)
+-tkey_DEPENDENCIES = librpmio.la $(top_builddir)/popt/libpopt.la
++tkey_DEPENDENCIES = librpmio.la /usr/lib/libpopt.la
+ am_tring_OBJECTS = tring.$(OBJEXT)
+ tring_OBJECTS = $(am_tring_OBJECTS)
+-tring_DEPENDENCIES = librpmio.la $(top_builddir)/popt/libpopt.la
++tring_DEPENDENCIES = librpmio.la /usr/lib/libpopt.la
+ am_trpmio_OBJECTS = trpmio.$(OBJEXT)
+ trpmio_OBJECTS = $(am_trpmio_OBJECTS)
+-trpmio_DEPENDENCIES = librpmio.la $(top_builddir)/popt/libpopt.la
++trpmio_DEPENDENCIES = librpmio.la /usr/lib/libpopt.la
+ trpmio_LDFLAGS =
+
+ DEFS = @DEFS@
+diff -ur rpm-4.1/tools/Makefile.am rpm-4.1.changed/tools/Makefile.am
+--- rpm-4.1/tools/Makefile.am 2002-08-22 19:42:37.000000000 +0000
++++ rpm-4.1.changed/tools/Makefile.am 2002-11-06 15:00:57.000000000 +0000
+@@ -8,7 +8,6 @@
+ -I$(top_srcdir)/lib \
+ -I$(top_srcdir)/rpmdb \
+ -I$(top_srcdir)/rpmio \
+- -I$(top_srcdir)/popt \
+ @WITH_LIBELF_INCLUDE@ \
+ @WITH_ZLIB_INCLUDE@ \
+ @INCPATH@ \
+@@ -23,7 +22,7 @@
+ $(top_builddir)/lib/librpm.la \
+ $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la \
++ /usr/lib/libpopt.la \
+ @WITH_LIBELF_LIB@ \
+ @INTLLIBS@
+
+diff -ur rpm-4.1/tools/Makefile.in rpm-4.1.changed/tools/Makefile.in
+--- rpm-4.1/tools/Makefile.in 2002-08-31 13:23:21.000000000 +0000
++++ rpm-4.1.changed/tools/Makefile.in 2002-11-06 15:02:23.000000000 +0000
+@@ -208,7 +208,6 @@
+ -I$(top_srcdir)/lib \
+ -I$(top_srcdir)/rpmdb \
+ -I$(top_srcdir)/rpmio \
+- -I$(top_srcdir)/popt \
+ @WITH_LIBELF_INCLUDE@ \
+ @WITH_ZLIB_INCLUDE@ \
+ @INCPATH@ \
+@@ -224,7 +223,7 @@
+ $(top_builddir)/lib/librpm.la \
+ $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la \
++ /usr/lib/libpopt.la \
+ @WITH_LIBELF_LIB@ \
+ @INTLLIBS@
+
+@@ -273,7 +272,7 @@
+ dump_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ dump_LDFLAGS =
+ dumpdb_SOURCES = dumpdb.c
+ dumpdb_OBJECTS = dumpdb.$(OBJEXT)
+@@ -281,7 +280,7 @@
+ dumpdb_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ dumpdb_LDFLAGS =
+ am_javadeps_OBJECTS = javadeps.$(OBJEXT)
+ javadeps_OBJECTS = $(am_javadeps_OBJECTS)
+@@ -289,7 +288,7 @@
+ javadeps_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ javadeps_LDFLAGS =
+ rpmarchive_SOURCES = rpmarchive.c
+ rpmarchive_OBJECTS = rpmarchive.$(OBJEXT)
+@@ -297,7 +296,7 @@
+ rpmarchive_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ rpmarchive_LDFLAGS =
+ am_rpmcache_OBJECTS = rpmcache.$(OBJEXT)
+ rpmcache_OBJECTS = $(am_rpmcache_OBJECTS)
+@@ -305,7 +304,7 @@
+ rpmcache_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ rpmcache_LDFLAGS =
+ am_rpmgraph_OBJECTS = rpmgraph.$(OBJEXT)
+ rpmgraph_OBJECTS = $(am_rpmgraph_OBJECTS)
+@@ -313,7 +312,7 @@
+ rpmgraph_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ rpmgraph_LDFLAGS =
+ rpmheader_SOURCES = rpmheader.c
+ rpmheader_OBJECTS = rpmheader.$(OBJEXT)
+@@ -321,7 +320,7 @@
+ rpmheader_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ rpmheader_LDFLAGS =
+ am_rpminject_OBJECTS = rpminject.$(OBJEXT)
+ rpminject_OBJECTS = $(am_rpminject_OBJECTS)
+@@ -329,14 +328,14 @@
+ rpminject_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ rpmlead_SOURCES = rpmlead.c
+ rpmlead_OBJECTS = rpmlead.$(OBJEXT)
+ rpmlead_LDADD = $(LDADD)
+ rpmlead_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ rpmlead_LDFLAGS =
+ rpmsignature_SOURCES = rpmsignature.c
+ rpmsignature_OBJECTS = rpmsignature.$(OBJEXT)
+@@ -344,7 +343,7 @@
+ rpmsignature_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ rpmsignature_LDFLAGS =
+ am_rpmsort_OBJECTS = rpmsort.$(OBJEXT)
+ rpmsort_OBJECTS = $(am_rpmsort_OBJECTS)
+@@ -352,7 +351,7 @@
+ rpmsort_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ am_striptofile_OBJECTS = striptofile.$(OBJEXT) sections.$(OBJEXT) \
+ utils.$(OBJEXT)
+ striptofile_OBJECTS = $(am_striptofile_OBJECTS)
+@@ -360,7 +359,7 @@
+ striptofile_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ striptofile_LDFLAGS =
+ am_unstripfile_OBJECTS = unstripfile.$(OBJEXT) sections.$(OBJEXT) \
+ utils.$(OBJEXT)
+@@ -369,7 +368,7 @@
+ unstripfile_DEPENDENCIES = $(top_builddir)/build/librpmbuild.la \
+ $(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
+ $(top_builddir)/rpmio/librpmio.la \
+- $(top_builddir)/popt/libpopt.la
++ /usr/lib/libpopt.la
+ unstripfile_LDFLAGS =
+
+ DEFS = @DEFS@
diff --git a/app-arch/rpm/rpm-4.1.ebuild b/app-arch/rpm/rpm-4.1.ebuild
new file mode 100644
index 000000000000..53adbdde5480
--- /dev/null
+++ b/app-arch/rpm/rpm-4.1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-arch/rpm/rpm-4.1.ebuild,v 1.1 2003/02/19 21:09:23 raker Exp $
+
+# It builds. It just doesn't run. gdb and strace leave me with
+# inconclusive answers. Bueller? Anybody? - raker 02/19/2003
+
+inherit flag-o-matic eutils libtool
+
+DESCRIPTION="Red Hat Package Management Utils"
+SRC_URI="ftp://ftp.rpm.org/pub/rpm/dist/rpm-4.1.x/${P}.tar.gz"
+HOMEPAGE="http://www.rpm.org/"
+SLOT="0"
+LICENSE="GPL-2 LGPL-2"
+KEYWORDS="-x86 -ppc -sparc -alpha"
+IUSE="nls python doc static"
+RDEPEND="=sys-libs/db-3.2*
+ >=sys-libs/zlib-1.1.3
+ >=sys-apps/bzip2-1.0.1
+ >=dev-libs/popt-1.7
+ >=app-crypt/gnupg-1.2
+ nls? ( sys-devel/gettext )
+ python? ( =dev-lang/python-2.2* )
+ doc? ( app-doc/doxygen )"
+
+filter-flags -fPIC
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${P}-system-popt.diff
+}
+
+src_compile() {
+ local myconf
+ myconf="--without-included-gettext --with-gnu-ld"
+ use nls \
+ && myconf="${myconf} --enable-nls" \
+ || myconf="${myconf} --disable-nls"
+ use python \
+ && myconf="${myconf} --with-python" \
+ || myconf="${myconf} --without-python"
+ use doc \
+ && myconf="${myconf} --with-apidocs" \
+ || myconf="${myconf} --without-apidocs"
+ use static \
+ && myconf="${myconf} --enable-static" \
+ || myconf="${myconf} --disable-static"
+ if [ ! -z $DEBUGBUILD ]; then
+ myconf="${myconf} --with-dmalloc --with-efence"
+ else
+ myconf="${myconf} --without-dmalloc --without-efence"
+ fi
+ use python && export CPPFLAGS="-I/usr/include/python2.2"
+ econf ${myconf}
+ make || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+ mv ${D}/bin/rpm ${D}/usr/bin
+ rm -rf ${D}/bin
+ # Fix for bug #8578 (app-arch/rpm create dead symlink)
+ # Local RH 7.3 install has no such symlink anywhere
+ # ------
+ # UPDATE for 4.1!
+ # There is a /usr/lib/rpm/rpmpopt-4.1 now
+ # the symlink is still created incorrectly. ???
+ rm -f ${D}/usr/lib/rpmpopt
+ keepdir /var/lib/rpm
+ dodoc CHANGES COPYING CREDITS GROUPS README* RPM* TODO
+}
+
+pkg_postinst() {
+ if [ -f ${ROOT}/var/lib/rpm/nameindex.rpm ]; then
+ einfo "RPM database found... Rebuilding database (may take a while)..."
+ ${ROOT}/usr/bin/rpm --rebuilddb --root=${ROOT}
+ else
+ einfo "No RPM database found... Creating database..."
+ ${ROOT}/usr/bin/rpm --initdb --root=${ROOT}
+ fi
+}