]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- obsolete
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 27 Sep 2007 13:47:38 +0000 (13:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-arch-x86_64.patch -> 1.5
    rpm-arch.patch -> 1.9
    rpm-as_needed-fix.patch -> 1.3
    rpm-bb-and-short-circuit.patch -> 1.5
    rpm-cleanlibdirs.patch -> 1.3
    rpm-ldconfig-always.patch -> 1.2
    rpm-link.patch -> 1.6
    rpm-macros-dbhash.patch -> 1.2
    rpm-magic-usesystem.patch -> 1.10
    rpm-makefile-no_myLDADD_deps.patch -> 1.2
    rpm-no-neon.patch -> 1.12
    rpm-no-sqlite.patch -> 1.5
    rpm-obsolete-rpmrc.patch -> 1.2
    rpm-p4.patch -> 1.3
    rpm-rpm5-patchset-8021.patch -> 1.2
    rpm-rpmdb.patch -> 1.2
    rpm-rpmrc.patch -> 1.41
    rpm-system_libs-more.patch -> 1.10
    rpm-system_libs.patch -> 1.19

19 files changed:
rpm-arch-x86_64.patch [deleted file]
rpm-arch.patch [deleted file]
rpm-as_needed-fix.patch [deleted file]
rpm-bb-and-short-circuit.patch [deleted file]
rpm-cleanlibdirs.patch [deleted file]
rpm-ldconfig-always.patch [deleted file]
rpm-link.patch [deleted file]
rpm-macros-dbhash.patch [deleted file]
rpm-magic-usesystem.patch [deleted file]
rpm-makefile-no_myLDADD_deps.patch [deleted file]
rpm-no-neon.patch [deleted file]
rpm-no-sqlite.patch [deleted file]
rpm-obsolete-rpmrc.patch [deleted file]
rpm-p4.patch [deleted file]
rpm-rpm5-patchset-8021.patch [deleted file]
rpm-rpmdb.patch [deleted file]
rpm-rpmrc.patch [deleted file]
rpm-system_libs-more.patch [deleted file]
rpm-system_libs.patch [deleted file]

diff --git a/rpm-arch-x86_64.patch b/rpm-arch-x86_64.patch
deleted file mode 100644 (file)
index 11100c0..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- rpm/installplatform.org    2006-10-17 22:52:24.253936250 +0200
-+++ rpm/installplatform        2006-10-17 22:52:29.542266750 +0200
-@@ -35,7 +35,7 @@
-   sparc*) SUBSTS='s_sparc\(64\|v9\)_sparc_ s_sparc64_sparcv9_;s_sparc\([^v]\|$\)_sparcv9\1_ s_sparcv9_sparc64_;s_sparc\([^6]\|$\)_sparc64\1_' ;;
-   powerpc*|ppc*) SUBSTS='s_ppc64_ppc_ s_ppc\([^6ip]\|$\)_ppc64\1_ s_ppc\([^6ip]\|$\)_ppciseries_ s_ppc\([^6ip]\|$\)_ppcpseries_ s_ppc\([^6ip]\|$\)_ppc64iseries_ s_ppc\([^6ip]\|$\)_ppc64pseries_' ;;
-   s390*) SUBSTS='s_s390x_s390_ s_s390\([^x]\|$\)_s390x\1_' ;;
--  x86_64|amd64|ia32e) SUBSTS='s,x86_64,ia32e, s,x86_64,amd64,' ;;
-+  x86_64|amd64|ia32e) SUBSTS='s,x86_64,x86_64, s,x86_64,ia32e, s,x86_64,amd64,' ;;
-   *) SUBSTS=y___ ;;
- esac
diff --git a/rpm-arch.patch b/rpm-arch.patch
deleted file mode 100644 (file)
index f8fe141..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-diff -urN rpm.org/rpmrc.in rpm/rpmrc.in
---- rpm.org/rpmrc.in   2004-06-14 11:41:06.654241680 +0200
-+++ rpm/rpmrc.in       2004-06-14 11:42:26.617085480 +0200
-@@ -186,12 +186,12 @@
- buildarchtranslate: osfmach3_i486: i386
- buildarchtranslate: osfmach3_i386: i386
--buildarchtranslate: athlon: i386
--buildarchtranslate: pentium4: i386
--buildarchtranslate: pentium3: i386
--buildarchtranslate: i686: i386
--buildarchtranslate: i586: i386
--buildarchtranslate: i486: i386
-+buildarchtranslate: athlon: athlon
-+buildarchtranslate: pentium4: pentium4
-+buildarchtranslate: pentium3: pentium3
-+buildarchtranslate: i686: i686
-+buildarchtranslate: i586: i586
-+buildarchtranslate: i486: i486
- buildarchtranslate: i386: i386
- buildarchtranslate: alphaev5: alpha
-@@ -206,6 +206,7 @@
- buildarchtranslate: sparcv8: sparc
- buildarchtranslate: sparcv9: sparc
- buildarchtranslate: sun4u: sparc64
-+buildarchtranslate: sparc64: sparc64
- buildarchtranslate: osfmach3_ppc: ppc
- buildarchtranslate: powerpc: ppc
diff --git a/rpm-as_needed-fix.patch b/rpm-as_needed-fix.patch
deleted file mode 100644 (file)
index 12a01cd..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -Nur rpm-4.4.2.orig/build/Makefile.am rpm-4.4.2.as_needed-fix/build/Makefile.am
---- rpm-4.4.2.orig/build/Makefile.am   2006-08-04 22:17:16.000000000 +0200
-+++ rpm-4.4.2.as_needed-fix/build/Makefile.am  2006-08-04 22:17:43.000000000 +0200
-@@ -33,6 +33,7 @@
-       $(top_builddir)/lib/librpm.la \
-       $(top_builddir)/rpmdb/librpmdb.la \
-       $(top_builddir)/rpmio/librpmio.la \
-+      @WITH_MAGIC_LIB@ \
-       @WITH_LIBELF_LIB@
- rpmfile.h:
diff --git a/rpm-bb-and-short-circuit.patch b/rpm-bb-and-short-circuit.patch
deleted file mode 100644 (file)
index 8a67f9b..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
---- rpm-4.1/rpmqv.c.sc Thu Sep 19 11:32:08 2002
-+++ rpm-4.1/rpmqv.c    Thu Sep 19 11:38:45 2002
-@@ -685,6 +685,8 @@
-       case 'b':
-           ba->buildAmount |= RPMBUILD_PACKAGEBINARY;
-           ba->buildAmount |= RPMBUILD_CLEAN;
-+          if ((ba->buildChar == 'b') && ba->shortCircuit)
-+              /*@innerbreak@*/ break;
-           /*@fallthrough@*/
-       case 'i':
-           ba->buildAmount |= RPMBUILD_INSTALL;
-diff -Nura rpm-4.3/doc/pl/rpmbuild.8 rpm-4.3.aft/doc/pl/rpmbuild.8
---- rpm-4.3/doc/pl/rpmbuild.8  2004-05-20 14:13:22.000000000 +0200
-+++ rpm-4.3.aft/doc/pl/rpmbuild.8      2004-05-20 14:10:43.000000000 +0200
-@@ -145,7 +145,8 @@
- .TP
- \fB--short-circuit\fR
- Przechodzi wprost do podanego etapu (tzn. pomija wszystkie etapy
--prowadz±ce do podanego). Prawid³owe tylko z \fB-bc\fR i \fB-bi\fR.
-+prowadz±ce do podanego). Prawid³owe tylko z \fB-bc\fR, \fB-bi\fR
-+i \fB-bb\fR (-bb --short-circuit odnosi siê do PLD i jest niezalecane).
- .TP
- \fB--sign\fR
- Osadza w pakiecie sygnaturê GPG. Sygnatura ta mo¿e byæ u¿ywana do
-diff -Nura rpm-4.3/doc/rpmbuild.8 rpm-4.3.aft/doc/rpmbuild.8
---- rpm-4.3/doc/rpmbuild.8     2004-05-20 14:13:22.000000000 +0200
-+++ rpm-4.3.aft/doc/rpmbuild.8 2004-05-20 14:10:13.000000000 +0200
-@@ -167,8 +167,9 @@
- .TP
- \fB--short-circuit\fR
- Skip straight to specified stage (i.e., skip all stages leading
--up to the specified stage).  Only valid with \fB-bc\fR
--and \fB-bi\fR.
-+up to the specified stage).  Only valid with \fB-bc\fR, \fB-bi\fR
-+and \fB-bb\fR (note: -bb in conjunction with --short-circuit is
-+PLD-specific and not recommended).
- .TP
- \fB--sign\fR
- Embed a GPG signature in the package. This signature can be used
diff --git a/rpm-cleanlibdirs.patch b/rpm-cleanlibdirs.patch
deleted file mode 100644 (file)
index e2d6930..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
---- rpm-4.4.2/rpmio/Makefile.am.orig   2005-10-07 13:52:53.000000000 +0200
-+++ rpm-4.4.2/rpmio/Makefile.am        2005-11-08 15:56:58.000000000 +0100
-@@ -26,8 +26,6 @@
- BEECRYPTLOBJS = $(shell test X"@WITH_BEECRYPT_SUBDIR@" != X && cat $(top_builddir)/@WITH_BEECTYPT_SUBDIR@/listobjs)
--LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir)
--
- usrlibdir = $(libdir)@MARK64@
- usrlib_LTLIBRARIES = librpmio.la
- librpmio_la_SOURCES = \
---- rpm-4.4.2/rpmdb/Makefile.am.orig   2005-10-07 13:52:53.000000000 +0200
-+++ rpm-4.4.2/rpmdb/Makefile.am        2005-11-08 15:56:49.000000000 +0100
-@@ -37,9 +37,6 @@
- # XXX watchout, ../db3/libdb.la created by this Makefile may surprise
- libdb_la = 
--# XXX grrr, RPM_BUILD_ROOT prevents build pollution if/when -lrpm different
--LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir)
--
- usrlibdir = $(libdir)@MARK64@
- usrlib_LTLIBRARIES = librpmdb.la
- librpmdb_la_SOURCES = \
---- rpm-4.4.2/lib/Makefile.am.orig     2005-10-07 13:52:53.000000000 +0200
-+++ rpm-4.4.2/lib/Makefile.am  2005-11-08 15:56:22.000000000 +0100
-@@ -29,8 +29,6 @@
- mylibs = librpm.la
- LIBS =
--LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir)
--
- usrlibdir = $(libdir)@MARK64@
- usrlib_LTLIBRARIES = librpm.la
- librpm_la_SOURCES = \
---- rpm-4.4.2/build/Makefile.am.orig   2005-03-14 11:03:48.000000000 +0100
-+++ rpm-4.4.2/build/Makefile.am        2005-11-08 15:56:12.000000000 +0100
-@@ -22,8 +22,6 @@
- pkginc_HEADERS = rpmbuild.h rpmfc.h rpmfile.h rpmspec.h
- noinst_HEADERS = buildio.h
--LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir)
--
- usrlibdir = $(libdir)@MARK64@
- usrlib_LTLIBRARIES = librpmbuild.la
- librpmbuild_la_SOURCES = \
diff --git a/rpm-ldconfig-always.patch b/rpm-ldconfig-always.patch
deleted file mode 100644 (file)
index fbf86d4..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
---- rpm-4.3/lib/psm.c.orig     2003-05-10 17:20:15.000000000 +0200
-+++ rpm-4.3/lib/psm.c  2003-08-24 21:41:29.637316776 +0200
-@@ -550,7 +550,10 @@
-     xx = headerNVR(h, &n, &v, &r);
-     /* XXX bash must have functional libtermcap.so.2 */
--    if (!strcmp(n, "libtermcap"))
-+    /* if (!strcmp(n, "libtermcap"))
-+     * -- always run ldconfig, these checks didn't work when few packages with
-+     *    shared libs were installed just one after another in the same
-+     *    transaction */
-       ldconfig_done = 0;
-     /*
diff --git a/rpm-link.patch b/rpm-link.patch
deleted file mode 100644 (file)
index 3ea978b..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- rpm-4.4.3/configure.ac.orig        2005-11-19 11:30:59.197389000 +0100
-+++ rpm-4.4.3/configure.ac     2005-11-19 16:17:10.397970072 +0100
-@@ -439,7 +439,7 @@
- ])
- AC_CHECK_HEADERS(aio.h)
--AC_SEARCH_LIBS(aio_read, [c rt aio posix4])
-+dnl not used? AC_SEARCH_LIBS(aio_read, [c rt aio posix4])
- dnl Better not use fchmod at all.
- AC_CHECK_FUNC(fchmod)
diff --git a/rpm-macros-dbhash.patch b/rpm-macros-dbhash.patch
deleted file mode 100644 (file)
index de048a2..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-diff -u -u -r1.159.2.1 -r1.159.2.2
---- rpm/macros.in      25 May 2007 19:00:34 -0000      1.159.2.1
-+++ rpm/macros.in      31 May 2007 10:43:34 -0000      1.159.2.2
-@@ -634,21 +634,21 @@
- %_dbi_config_Installtid               %{_dbi_btconfig}
- %_dbi_config_Removetid                %{_dbi_btconfig}
--%_dbi_config_Basenames                %{_dbi_btconfig}
--%_dbi_config_Conflictname     %{_dbi_btconfig}
-+%_dbi_config_Basenames                %{_dbi_htconfig}
-+%_dbi_config_Conflictname     %{_dbi_htconfig}
- %_dbi_config_Filedigests      %{_dbi_htconfig}
--%_dbi_config_Group            %{_dbi_btconfig}
--%_dbi_config_Name             %{_dbi_btconfig}
-+%_dbi_config_Group            %{_dbi_htconfig}
-+%_dbi_config_Name             %{_dbi_htconfig}
- %_dbi_config_Packagecolor     %{_dbi_htconfig}
--%_dbi_config_Providename      %{_dbi_btconfig}
-+%_dbi_config_Providename      %{_dbi_htconfig}
- %_dbi_config_Pubkeys          %{_dbi_htconfig}
--%_dbi_config_Requirename      %{_dbi_btconfig}
-+%_dbi_config_Requirename      %{_dbi_htconfig}
- %_dbi_config_Sha1header               %{_dbi_htconfig}
- %_dbi_config_Sigmd5           %{_dbi_htconfig}
--%_dbi_config_Triggername      %{_dbi_btconfig}
-+%_dbi_config_Triggername      %{_dbi_htconfig}
- # "Packages" should have shared/exclusive fcntl(2) lock using "lockdbfd".
--%_dbi_config_Packages         %{_dbi_btconfig} lockdbfd
-+%_dbi_config_Packages         %{_dbi_htconfig} lockdbfd
- # "Depends" is a per-transaction cache of known dependency resolutions.
- %_dbi_config_Depends          %{_dbi_btconfig} temporary private
diff --git a/rpm-magic-usesystem.patch b/rpm-magic-usesystem.patch
deleted file mode 100644 (file)
index b392879..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-diff -ur rpm.org/file/doc/Makefile.am rpm/file/doc/Makefile.am
---- rpm.org/file/doc/Makefile.am       2004-11-18 15:04:33.000000000 +0100
-+++ rpm/file/doc/Makefile.am   2004-11-22 01:02:30.114807597 +0100
-@@ -1,4 +1,4 @@
--MAGIC  = $(pkgdatadir)/magic
-+MAGIC  = /usr/share/file/magic
- if FSECT5
- man_MAGIC = magic.5
- else
-diff -ur rpm.org/file/Makefile.am rpm/file/Makefile.am
---- rpm.org/file/Makefile.am   2004-11-18 15:04:32.000000000 +0100
-+++ rpm/file/Makefile.am       2004-11-22 01:01:36.817958788 +0100
-@@ -3,4 +3,4 @@
- EXTRA_DIST = ChangeLog LEGAL.NOTICE MAINT README
--SUBDIRS = src magic doc python
-+SUBDIRS = src magic python
-diff -ur rpm.org/file/src/Makefile.am rpm/file/src/Makefile.am
---- rpm.org/file/src/Makefile.am       2004-11-18 15:04:33.000000000 +0100
-+++ rpm/file/src/Makefile.am   2004-11-22 01:01:36.823963503 +0100
-@@ -3,7 +3,7 @@
- #MAGIC         = $(pkgdatadir)/magic
- pkglibdir =  @prefix@/lib/rpm
--MAGIC    = $(pkglibdir)/magic
-+MAGIC    = /usr/share/file/magic
- AM_CPPFLAGS = -DMAGIC='"$(MAGIC)"'
diff --git a/rpm-makefile-no_myLDADD_deps.patch b/rpm-makefile-no_myLDADD_deps.patch
deleted file mode 100644 (file)
index f67d01d..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -x '*~' -durN rpm-4.3.orig/Makefile.am rpm-4.3/Makefile.am
---- rpm-4.3.orig/Makefile.am   2004-12-19 08:39:09.000000000 +0100
-+++ rpm-4.3/Makefile.am        2004-12-19 08:39:45.135670136 +0100
-@@ -96,7 +96,7 @@
- rpm2cpio_LDFLAGS =    $(myLDFLAGS)
- rpm2cpio_LDADD =      $(myLDADD) @LIBMISC@
--$(PROGRAMS):          $(myLDADD) @WITH_APIDOCS_TARGET@
-+$(PROGRAMS):          @WITH_APIDOCS_TARGET@
- .PHONY:       splint
- splint:
diff --git a/rpm-no-neon.patch b/rpm-no-neon.patch
deleted file mode 100644 (file)
index 27671e3..0000000
+++ /dev/null
@@ -1,2558 +0,0 @@
---- rpm-4.4.7.org/configure.ac 2006-10-17 22:12:03.110624000 +0200
-+++ rpm-4.4.7/configure.ac     2006-10-17 22:12:43.117124500 +0200
-@@ -530,33 +530,6 @@
- AC_SUBST(WITH_BEECRYPT_INCLUDE)
- AC_SUBST(WITH_BEECRYPT_LIB)
--#=================
--# Check for neon library. Prefer external, otherwise internal.
--WITH_NEON_SUBDIR=
--WITH_NEON_INCLUDE=
--WITH_NEON_LIB=
--AC_CHECK_HEADER([neon/ne_session.h], [
--  AC_CHECK_LIB(neon, ne_session_create, [
--    AC_DEFINE(HAVE_LIBNEON, 1, [Define to 1 if you have the 'neon' library (-lneon).])
--    AC_CHECK_LIB(neon, ne_get_response_header, [
--      AC_DEFINE(HAVE_NEON_NE_GET_RESPONSE_HEADER, 1, [Define to 1 if you have ne_get_response_header() in libneon.])
--    ])
--    AC_CHECK_LIB(neon, ne_send_request_chunk, [
--      AC_DEFINE(HAVE_NEON_NE_SEND_REQUEST_CHUNK, 1, [Define to 1 if you have ne_send_request_chunk() in libneon.])
--    ])
--    WITH_NEON_INCLUDE="-I${includedir}/neon"
--    WITH_NEON_LIB="-lneon"
--  ])
--],[
--  if test -d neon ; then
--    AC_DEFINE(HAVE_LIBNEON, 1, [Define to 1 if you have the 'neon' library (-lneon).])
--# XXX HAVE_NEON_NE_GET_RESPONSE_HEADER assumes libneon-0.25 devel internal
--    AC_DEFINE(HAVE_NEON_NE_GET_RESPONSE_HEADER, 1, [Define to 1 if you have ne_get_response_header() in libneon.])
--    WITH_NEON_SUBDIR=neon
--    WITH_NEON_INCLUDE="-I\${top_srcdir}/${WITH_NEON_SUBDIR}/src"
--    WITH_NEON_LIB="\${top_builddir}/${WITH_NEON_SUBDIR}/src/libneon.la"
--  fi
--])
- AC_SUBST(WITH_NEON_SUBDIR)
- AC_SUBST(WITH_NEON_INCLUDE)
- AC_SUBST(WITH_NEON_LIB)
---- rpm-4.4.8/rpmio/rpmdav.c.orig      2007-02-20 00:51:07.000000000 +0100
-+++ rpm-4.4.8/rpmio/rpmdav.c   2007-04-08 20:07:07.814412143 +0200
-@@ -9,31 +9,6 @@
- #include <pthread.h>
- #endif
--#include "ne_alloc.h"
--#include "ne_auth.h"
--#include "ne_basic.h"
--#include "ne_dates.h"
--#include "ne_locks.h"
--
--#define       NEONBLOWSCHUNKS
--#ifndef       NEONBLOWSCHUNKS
--/* HACK: include ne_private.h to access sess->socket for now. */
--#include "../neon/src/ne_private.h"
--#endif
--
--#include "ne_props.h"
--#include "ne_request.h"
--#include "ne_socket.h"
--#include "ne_string.h"
--#include "ne_utils.h"
--
--/* XXX API changes for neon-0.26.0 */
--#if !defined(NE_FREE)
--#define       ne_set_persist(_sess, _flag)
--#define       ne_propfind_set_private(_pfh, _create_item, NULL) \
--      ne_propfind_set_private(_pfh, _create_item, NULL, NULL)
--#endif
--
- #include <rpmio_internal.h>
- #define _RPMDAV_INTERNAL
-@@ -69,1439 +44,6 @@
- }
- /* =============================================================== */
--int davFree(urlinfo u)
--      /*@globals internalState @*/
--      /*@modifies u, internalState @*/
--{
--    if (u != NULL) {
--      if (u->sess != NULL) {
--          ne_session_destroy(u->sess);
--          u->sess = NULL;
--      }
--      switch (u->urltype) {
--      default:
--          /*@notreached@*/ break;
--      case URL_IS_HTTPS:
--      case URL_IS_HTTP:
--      case URL_IS_HKP:
--          u->capabilities = _free(u->capabilities);
--          if (u->lockstore != NULL)
--              ne_lockstore_destroy(u->lockstore);
--          u->lockstore = NULL;
--          ne_sock_exit();
--          break;
--      }
--    }
--    return 0;
--}
--
--static void davProgress(void * userdata, off_t current, off_t total)
--      /*@*/
--{
--    urlinfo u = userdata;
--    ne_session * sess;
--
--assert(u != NULL);
--    sess = u->sess;
--assert(sess != NULL);
--assert(u == ne_get_session_private(sess, "urlinfo"));
--
--    u->current = current;
--    u->total = total;
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davProgress(%p,0x%x:0x%x) sess %p u %p\n", userdata, (unsigned int)current, (unsigned int)total, sess, u);
--}
--
--static void davNotify(void * userdata,
--              ne_conn_status connstatus, const char * info)
--      /*@*/
--{
--    urlinfo u = userdata;
--    ne_session * sess;
--    /*@observer@*/
--    static const char * connstates[] = {
--      "namelookup",
--      "connecting",
--      "connected",
--      "secure",
--      "unknown"
--    };
--
--assert(u != NULL);
--    sess = u->sess;
--assert(sess != NULL);
--assert(u == ne_get_session_private(sess, "urlinfo"));
--
--#ifdef        REFERENCE
--typedef enum {
--    ne_conn_namelookup, /* lookup up hostname (info = hostname) */
--    ne_conn_connecting, /* connecting to host (info = hostname) */
--    ne_conn_connected, /* connected to host (info = hostname) */
--    ne_conn_secure /* connection now secure (info = crypto level) */
--} ne_conn_status;
--#endif
--
--    u->connstatus = connstatus;
--
--/*@-boundsread@*/
--if (_dav_debug < 0)
--fprintf(stderr, "*** davNotify(%p,%d,%p) sess %p u %p %s\n", userdata, connstatus, info, sess, u, connstates[ (connstatus < 4 ? connstatus : 4)]);
--/*@=boundsread@*/
--
--}
--
--static void davCreateRequest(ne_request * req, void * userdata,
--              const char * method, const char * uri)
--      /*@*/
--{
--    urlinfo u = userdata;
--    ne_session * sess;
--    void * private = NULL;
--    const char * id = "urlinfo";
--
--assert(u != NULL);
--assert(u->sess != NULL);
--assert(req != NULL);
--    sess = ne_get_session(req);
--assert(sess == u->sess);
--assert(u == ne_get_session_private(sess, "urlinfo"));
--
--assert(sess != NULL);
--    private = ne_get_session_private(sess, id);
--assert(u == private);
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davCreateRequest(%p,%p,%s,%s) %s:%p\n", req, userdata, method, uri, id, private);
--}
--
--static void davPreSend(ne_request * req, void * userdata, ne_buffer * buf)
--{
--    urlinfo u = userdata;
--    ne_session * sess;
--    const char * id = "fd";
--    FD_t fd = NULL;
--
--assert(u != NULL);
--assert(u->sess != NULL);
--assert(req != NULL);
--    sess = ne_get_session(req);
--assert(sess == u->sess);
--assert(u == ne_get_session_private(sess, "urlinfo"));
--
--    fd = ne_get_request_private(req, id);
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davPreSend(%p,%p,%p) sess %p %s %p\n", req, userdata, buf, sess, id, fd);
--if (_dav_debug)
--fprintf(stderr, "-> %s\n", buf->data);
--
--}
--
--static int davPostSend(ne_request * req, void * userdata, const ne_status * status)
--      /*@*/
--{
--    urlinfo u = userdata;
--    ne_session * sess;
--    const char * id = "fd";
--    FD_t fd = NULL;
--
--assert(u != NULL);
--assert(u->sess != NULL);
--assert(req != NULL);
--    sess = ne_get_session(req);
--assert(sess == u->sess);
--assert(u == ne_get_session_private(sess, "urlinfo"));
--
--    fd = ne_get_request_private(req, id);
--
--/*@-evalorder@*/
--if (_dav_debug < 0)
--fprintf(stderr, "*** davPostSend(%p,%p,%p) sess %p %s %p %s\n", req, userdata, status, sess, id, fd, ne_get_error(sess));
--/*@=evalorder@*/
--    return NE_OK;
--}
--
--static void davDestroyRequest(ne_request * req, void * userdata)
--      /*@*/
--{
--    urlinfo u = userdata;
--    ne_session * sess;
--    const char * id = "fd";
--    FD_t fd = NULL;
--
--assert(u != NULL);
--assert(u->sess != NULL);
--assert(req != NULL);
--    sess = ne_get_session(req);
--assert(sess == u->sess);
--assert(u == ne_get_session_private(sess, "urlinfo"));
--
--    fd = ne_get_request_private(req, id);
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davDestroyRequest(%p,%p) sess %p %s %p\n", req, userdata, sess, id, fd);
--}
--
--static void davDestroySession(void * userdata)
--      /*@*/
--{
--    urlinfo u = userdata;
--    ne_session * sess;
--    void * private = NULL;
--    const char * id = "urlinfo";
--
--assert(u != NULL);
--assert(u->sess != NULL);
--    sess = u->sess;
--assert(u == ne_get_session_private(sess, "urlinfo"));
--
--assert(sess != NULL);
--    private = ne_get_session_private(sess, id);
--assert(u == private);
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davDestroySession(%p) sess %p %s %p\n", userdata, sess, id, private);
--}
--
--static int
--davVerifyCert(void *userdata, int failures, const ne_ssl_certificate *cert)
--      /*@*/
--{
--    const char *hostname = userdata;
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davVerifyCert(%p,%d,%p) %s\n", userdata, failures, cert, hostname);
--
--    return 0; /* HACK: trust all server certificates. */
--}
--
--static int davConnect(urlinfo u)
--      /*@globals internalState @*/
--      /*@modifies u, internalState @*/
--{
--    const char * path = NULL;
--    int rc;
--
--    /* HACK: hkp:// has no steenkin' options */
--    if (!(u->urltype == URL_IS_HTTP || u->urltype == URL_IS_HTTPS))
--      return 0;
--
--    /* HACK: where should server capabilities be read? */
--    (void) urlPath(u->url, &path);
--    /* HACK: perhaps capture Allow: tag, look for PUT permitted. */
--    /* XXX [hdr] Allow: GET,HEAD,POST,OPTIONS,TRACE */
--    rc = ne_options(u->sess, path, u->capabilities);
--    switch (rc) {
--    case NE_OK:
--    { ne_server_capabilities *cap = u->capabilities;
--      if (cap->dav_class1)
--          u->allow |= RPMURL_SERVER_HASDAVCLASS1;
--      else
--          u->allow &= ~RPMURL_SERVER_HASDAVCLASS1;
--      if (cap->dav_class2)
--          u->allow |= RPMURL_SERVER_HASDAVCLASS2;
--      else
--          u->allow &= ~RPMURL_SERVER_HASDAVCLASS2;
--      if (cap->dav_executable)
--          u->allow |= RPMURL_SERVER_HASDAVEXEC;
--      else
--          u->allow &= ~RPMURL_SERVER_HASDAVEXEC;
--    } break;
--    case NE_ERROR:
--      /* HACK: "301 Moved Permanently" on empty subdir. */
--      if (!strncmp("301 ", ne_get_error(u->sess), sizeof("301 ")-1))
--          break;
--      errno = EIO;            /* HACK: more precise errno. */
--      goto bottom;
--    case NE_LOOKUP:
--      errno = ENOENT;         /* HACK: errno same as non-existent path. */
--      goto bottom;
--    case NE_CONNECT:          /* HACK: errno set already? */
--    default:
--bottom:
--if (_dav_debug)
--fprintf(stderr, "*** Connect to %s:%d failed(%d):\n\t%s\n",
--                 u->host, u->port, rc, ne_get_error(u->sess));
--      break;
--    }
--
--    /* HACK: sensitive to error returns? */
--    u->httpVersion = (ne_version_pre_http11(u->sess) ? 0 : 1);
--
--    return rc;
--}
--
--static int davInit(const char * url, urlinfo * uret)
--      /*@globals internalState @*/
--      /*@modifies *uret, internalState @*/
--{
--    urlinfo u = NULL;
--    int rc = 0;
--
--/*@-globs@*/  /* FIX: h_errno annoyance. */
--    if (urlSplit(url, &u))
--      return -1;      /* XXX error returns needed. */
--/*@=globs@*/
--
--    if (u->url != NULL && u->sess == NULL)
--    switch (u->urltype) {
--    default:
--      assert(u->urltype != u->urltype);
--      /*@notreached@*/ break;
--    case URL_IS_HTTPS:
--    case URL_IS_HTTP:
--    case URL_IS_HKP:
--      {       ne_server_capabilities * capabilities;
--
--      /* HACK: oneshots should be done Somewhere Else Instead. */
--/*@-noeffect@*/
--      rc = ((_dav_debug < 0) ? NE_DBG_HTTP : 0);
--      ne_debug_init(stderr, rc);              /* XXX oneshot? */
--/*@=noeffect@*/
--      rc = ne_sock_init();                    /* XXX oneshot? */
--
--      u->lockstore = ne_lockstore_create();   /* XXX oneshot? */
--
--      u->capabilities = capabilities = xcalloc(1, sizeof(*capabilities));
--      u->sess = ne_session_create(u->scheme, u->host, u->port);
--
--      ne_lockstore_register(u->lockstore, u->sess);
--
--      if (u->proxyh != NULL)
--          ne_session_proxy(u->sess, u->proxyh, u->proxyp);
--
--#if 0
--      {   const ne_inet_addr ** addrs;
--          unsigned int n;
--          ne_set_addrlist(u->sess, addrs, n);
--      }
--#endif
--
--      ne_set_progress(u->sess, davProgress, u);
--      ne_set_status(u->sess, davNotify, u);
--
--      ne_set_persist(u->sess, 1);
--      ne_set_read_timeout(u->sess, httpTimeoutSecs);
--      ne_set_useragent(u->sess, PACKAGE "/" PACKAGE_VERSION);
--
--      /* XXX check that neon is ssl enabled. */
--      if (!strcasecmp(u->scheme, "https"))
--          ne_ssl_set_verify(u->sess, davVerifyCert, (char *)u->host);
--
--      ne_set_session_private(u->sess, "urlinfo", u);
--
--      ne_hook_destroy_session(u->sess, davDestroySession, u);
--
--      ne_hook_create_request(u->sess, davCreateRequest, u);
--      ne_hook_pre_send(u->sess, davPreSend, u);
--      ne_hook_post_send(u->sess, davPostSend, u);
--      ne_hook_destroy_request(u->sess, davDestroyRequest, u);
--
--      /* HACK: where should server capabilities be read? */
--      rc = davConnect(u);
--      if (rc)
--          goto exit;
--      }       break;
--    }
--
--exit:
--/*@-boundswrite@*/
--    if (uret != NULL)
--      *uret = urlLink(u, __FUNCTION__);
--/*@=boundswrite@*/
--    u = urlFree(u, "urlSplit (davInit)");
--
--    return rc;
--}
--
--/* =============================================================== */
--enum fetch_rtype_e {
--    resr_normal = 0,
--    resr_collection,
--    resr_reference,
--    resr_error
--};
--
--struct fetch_resource_s {
--/*@dependent@*/
--    struct fetch_resource_s *next;
--    char *uri;
--/*@unused@*/
--    char *displayname;
--    enum fetch_rtype_e type;
--    size_t size;
--    time_t modtime;
--    int is_executable;
--    int is_vcr;    /* Is version resource. 0: no vcr, 1 checkin 2 checkout */
--    char *error_reason; /* error string returned for this resource */
--    int error_status; /* error status returned for this resource */
--};
--
--/*@null@*/
--static void *fetch_destroy_item(/*@only@*/ struct fetch_resource_s *res)
--      /*@modifies res @*/
--{
--    ne_free(res->uri);
--    ne_free(res->error_reason);
--    res = _free(res);
--    return NULL;
--}
--
--#ifdef        UNUSED
--/*@null@*/
--static void *fetch_destroy_list(/*@only@*/ struct fetch_resource_s *res)
--      /*@modifies res @*/
--{
--    struct fetch_resource_s *next;
--/*@-branchstate@*/
--    for (; res != NULL; res = next) {
--      next = res->next;
--      res = fetch_destroy_item(res);
--    }
--/*@=branchstate@*/
--    return NULL;
--}
--#endif
--
--static void *fetch_create_item(/*@unused@*/ void *userdata, /*@unused@*/ const char *uri)
--        /*@*/
--{
--    struct fetch_resource_s * res = ne_calloc(sizeof(*res));
--    return res;
--}
--
--/* =============================================================== */
--struct fetch_context_s {
--/*@relnull@*/ /*@dependent@*/
--    struct fetch_resource_s **resrock;
--    const char *uri;
--    unsigned int include_target; /* Include resource at href */
--/*@refcounted@*/
--    urlinfo u;
--    int ac;
--    int nalloced;
--    ARGV_t av;
--/*@null@*/ /*@shared@*/
--    struct stat *st;
--    mode_t * modes;
--    size_t * sizes;
--    time_t * mtimes;
--};
--
--/*@null@*/
--static void *fetch_destroy_context(/*@only@*/ /*@null@*/ struct fetch_context_s *ctx)
--      /*@globals internalState @*/
--      /*@modifies ctx, internalState @*/
--{
--    if (ctx == NULL)
--      return NULL;
--    if (ctx->av != NULL)
--      ctx->av = argvFree(ctx->av);
--    ctx->modes = _free(ctx->modes);
--    ctx->sizes = _free(ctx->sizes);
--    ctx->mtimes = _free(ctx->mtimes);
--    ctx->u = urlFree(ctx->u, __FUNCTION__);
--    ctx->uri = _free(ctx->uri);
--/*@-boundswrite@*/
--    memset(ctx, 0, sizeof(*ctx));
--/*@=boundswrite@*/
--    ctx = _free(ctx);
--    return NULL;
--}
--
--/*@null@*/
--static void *fetch_create_context(const char *uri, /*@null@*/ struct stat *st)
--      /*@globals internalState @*/
--      /*@modifies internalState @*/
--{
--    struct fetch_context_s * ctx;
--    urlinfo u;
--
--/*@-globs@*/  /* FIX: h_errno annoyance. */
--    if (urlSplit(uri, &u))
--      return NULL;
--/*@=globs@*/
--
--    ctx = ne_calloc(sizeof(*ctx));
--    ctx->uri = xstrdup(uri);
--    ctx->u = urlLink(u, __FUNCTION__);
--    if ((ctx->st = st) != NULL)
--      memset(ctx->st, 0, sizeof(*ctx->st));
--    return ctx;
--}
--
--/*@unchecked@*/ /*@observer@*/
--static const ne_propname fetch_props[] = {
--    { "DAV:", "getcontentlength" },
--    { "DAV:", "getlastmodified" },
--    { "http://apache.org/dav/props/", "executable" },
--    { "DAV:", "resourcetype" },
--    { "DAV:", "checked-in" },
--    { "DAV:", "checked-out" },
--    { NULL, NULL }
--};
--
--#define ELM_resourcetype (NE_PROPS_STATE_TOP + 1)
--#define ELM_collection (NE_PROPS_STATE_TOP + 2)
--
--/*@unchecked@*/ /*@observer@*/
--static const struct ne_xml_idmap fetch_idmap[] = {
--    { "DAV:", "resourcetype", ELM_resourcetype },
--    { "DAV:", "collection", ELM_collection }
--};
--
--static int fetch_startelm(void *userdata, int parent,
--              const char *nspace, const char *name,
--              /*@unused@*/ const char **atts)
--      /*@*/
--{
--    ne_propfind_handler *pfh = userdata;
--    struct fetch_resource_s *r = ne_propfind_current_private(pfh);
--    int state = ne_xml_mapid(fetch_idmap, NE_XML_MAPLEN(fetch_idmap),
--                             nspace, name);
--
--    if (r == NULL ||
--        !((parent == NE_207_STATE_PROP && state == ELM_resourcetype) ||
--          (parent == ELM_resourcetype && state == ELM_collection)))
--        return NE_XML_DECLINE;
--
--    if (state == ELM_collection) {
--      r->type = resr_collection;
--    }
--
--    return state;
--}
--
--static int fetch_compare(const struct fetch_resource_s *r1,
--                          const struct fetch_resource_s *r2)
--      /*@*/
--{
--    /* Sort errors first, then collections, then alphabetically */
--    if (r1->type == resr_error) {
--      return -1;
--    } else if (r2->type == resr_error) {
--      return 1;
--    } else if (r1->type == resr_collection) {
--      if (r2->type != resr_collection) {
--          return -1;
--      } else {
--          return strcmp(r1->uri, r2->uri);
--      }
--    } else {
--      if (r2->type != resr_collection) {
--          return strcmp(r1->uri, r2->uri);
--      } else {
--          return 1;
--      }
--    }
--}
--
--static void fetch_results(void *userdata, void *uarg,
--                  const ne_prop_result_set *set)
--      /*@*/
--{
--    struct fetch_context_s *ctx = userdata;
--    struct fetch_resource_s *current, *previous, *newres;
--    const char *clength, *modtime, *isexec;
--    const char *checkin, *checkout;
--    const ne_status *status = NULL;
--    const char * path = NULL;
--
--#if !defined(NE_FREE)
--    const ne_uri * uri = uarg;
--    (void) urlPath(uri->path, &path);
--#else
--    const char * uri = uarg;
--    (void) urlPath(uri, &path);
--#endif
--    if (path == NULL)
--      return;
--
--    newres = ne_propset_private(set);
--
--if (_dav_debug < 0)
--fprintf(stderr, "==> %s in uri %s\n", path, ctx->uri);
--
--    if (ne_path_compare(ctx->uri, path) == 0 && !ctx->include_target) {
--      /* This is the target URI */
--if (_dav_debug < 0)
--fprintf(stderr, "==> %s skipping target resource.\n", path);
--      /* Free the private structure. */
--/*@-dependenttrans -exposetrans@*/
--      free(newres);
--/*@=dependenttrans =exposetrans@*/
--      return;
--    }
--
--    newres->uri = ne_strdup(path);
--
--/*@-boundsread@*/
--    clength = ne_propset_value(set, &fetch_props[0]);
--    modtime = ne_propset_value(set, &fetch_props[1]);
--    isexec = ne_propset_value(set, &fetch_props[2]);
--    checkin = ne_propset_value(set, &fetch_props[4]);
--    checkout = ne_propset_value(set, &fetch_props[5]);
--/*@=boundsread@*/
--
--/*@-branchstate@*/
--    if (clength == NULL)
--      status = ne_propset_status(set, &fetch_props[0]);
--    if (modtime == NULL)
--      status = ne_propset_status(set, &fetch_props[1]);
--/*@=branchstate@*/
--
--    if (newres->type == resr_normal && status != NULL) {
--      /* It's an error! */
--      newres->error_status = status->code;
--
--      /* Special hack for Apache 1.3/mod_dav */
--      if (strcmp(status->reason_phrase, "status text goes here") == 0) {
--          const char *desc;
--          if (status->code == 401) {
--              desc = _("Authorization Required");
--          } else if (status->klass == 3) {
--              desc = _("Redirect");
--          } else if (status->klass == 5) {
--              desc = _("Server Error");
--          } else {
--              desc = _("Unknown Error");
--          }
--          newres->error_reason = ne_strdup(desc);
--      } else {
--          newres->error_reason = ne_strdup(status->reason_phrase);
--      }
--      newres->type = resr_error;
--    }
--
--    if (isexec && strcasecmp(isexec, "T") == 0) {
--      newres->is_executable = 1;
--    } else {
--      newres->is_executable = 0;
--    }
--
--    if (modtime)
--      newres->modtime = ne_httpdate_parse(modtime);
--
--    if (clength)
--      newres->size = atoi(clength);
--
--    /* is vcr */
--    if (checkin) {
--      newres->is_vcr = 1;
--    } else if (checkout) {
--      newres->is_vcr = 2;
--    } else {
--      newres->is_vcr = 0;
--    }
--
--    for (current = *ctx->resrock, previous = NULL; current != NULL;
--      previous = current, current = current->next)
--    {
--      if (fetch_compare(current, newres) >= 0) {
--          break;
--      }
--    }
--    if (previous) {
--      previous->next = newres;
--    } else {
--/*@-boundswrite -dependenttrans @*/
--      *ctx->resrock = newres;
--/*@=boundswrite =dependenttrans @*/
--    }
--    newres->next = current;
--}
--
--static int davFetch(const urlinfo u, struct fetch_context_s * ctx)
--      /*@globals internalState @*/
--      /*@modifies ctx, internalState @*/
--{
--    const char * path = NULL;
--    int depth = 1;                                    /* XXX passed arg? */
--    unsigned int include_target = 0;                  /* XXX passed arg? */
--    struct fetch_resource_s * resitem = NULL;
--    struct fetch_resource_s ** resrock = &resitem;    /* XXX passed arg? */
--    ne_propfind_handler *pfh;
--    struct fetch_resource_s *current, *next;
--    mode_t st_mode;
--    int rc = 0;
--    int xx;
--
--    (void) urlPath(u->url, &path);
--    pfh = ne_propfind_create(u->sess, ctx->uri, depth);
--
--    /* HACK: need to set RPMURL_SERVER_HASRANGE in u->allow here. */
--
--    ctx->resrock = resrock;
--    ctx->include_target = include_target;
--
--    ne_xml_push_handler(ne_propfind_get_parser(pfh),
--                        fetch_startelm, NULL, NULL, pfh);
--
--    ne_propfind_set_private(pfh, fetch_create_item, NULL);
--
--    rc = ne_propfind_named(pfh, fetch_props, fetch_results, ctx);
--
--    ne_propfind_destroy(pfh);
--
--    for (current = resitem; current != NULL; current = next) {
--      const char *s, *se;
--      char * val;
--
--      next = current->next;
--
--      /* Collections have trailing '/' that needs trim. */
--      /* The top level collection is returned as well. */
--      se = current->uri + strlen(current->uri);
--      if (se[-1] == '/') {
--          if (strlen(current->uri) <= strlen(path)) {
--              current = fetch_destroy_item(current);
--              continue;
--          }
--          se--;
--      }
--      s = se;
--      while (s > current->uri && s[-1] != '/')
--          s--;
--
--      val = ne_strndup(s, (se - s));
--
--/*@-nullpass@*/
--      val = ne_path_unescape(val);
--/*@=nullpass@*/
--
--      xx = argvAdd(&ctx->av, val);
--if (_dav_debug < 0)
--fprintf(stderr, "*** argvAdd(%p,\"%s\")\n", &ctx->av, val);
--      ne_free(val);
--
--      while (ctx->ac >= ctx->nalloced) {
--          if (ctx->nalloced <= 0)
--              ctx->nalloced = 1;
--          ctx->nalloced *= 2;
--          ctx->modes = xrealloc(ctx->modes,
--                              (sizeof(*ctx->modes) * ctx->nalloced));
--          ctx->sizes = xrealloc(ctx->sizes,
--                              (sizeof(*ctx->sizes) * ctx->nalloced));
--          ctx->mtimes = xrealloc(ctx->mtimes,
--                              (sizeof(*ctx->mtimes) * ctx->nalloced));
--      }
--
--      switch (current->type) {
--      case resr_normal:
--          st_mode = S_IFREG;
--          /*@switchbreak@*/ break;
--      case resr_collection:
--          st_mode = S_IFDIR;
--          /*@switchbreak@*/ break;
--      case resr_reference:
--      case resr_error:
--      default:
--          st_mode = 0;
--          /*@switchbreak@*/ break;
--      }
--/*@-boundswrite@*/
--      ctx->modes[ctx->ac] = st_mode;
--      ctx->sizes[ctx->ac] = current->size;
--      ctx->mtimes[ctx->ac] = current->modtime;
--/*@=boundswrite@*/
--      ctx->ac++;
--
--      current = fetch_destroy_item(current);
--    }
--    ctx->resrock = NULL;      /* HACK: avoid leaving stack reference. */
--    /* HACK realloc to truncate modes/sizes/mtimes */
--
--    return rc;
--}
--
--/* HACK this should be rewritten to use davReq/davResp w callbacks. */
--static int davHEAD(urlinfo u, struct stat *st) 
--      /*@modifies *st @*/
--{
--    ne_request *req;
--    const char *htag;
--    const char *value = NULL;
--    int rc;
--
--    st->st_mode = S_IFREG;
--    st->st_blksize = 4 * 1024;        /* HACK correct for linux ext */
--    st->st_size = -1;
--    st->st_atime = -1;
--    st->st_mtime = -1;
--    st->st_ctime = -1;
--
--    req = ne_request_create(u->sess, "HEAD", u->url);
--
--    rc = ne_request_dispatch(req);
--    switch (rc) {
--    default:
--      goto exit;
--      /*@notreached@*/
--    case NE_OK:
--      if (ne_get_status(req)->klass != 2) {
--          rc = NE_ERROR;
--          goto exit;
--      }
--      break;
--    }
--
--#ifdef        NOTYET
--    htag = "ETag";
--    value = ne_get_response_header(req, htag); 
--    if (value) {
--      /* inode-size-mtime */
--    }
--#endif
--
--    htag = "Content-Length";
--#if defined(HAVE_NEON_NE_GET_RESPONSE_HEADER)
--    value = ne_get_response_header(req, htag); 
--#endif
--    if (value) {
--      st->st_size = strtoll(value, NULL, 10);
--      st->st_blocks = (st->st_size + 511)/512;
--    }
--
--    htag = "Last-Modified";
--#if defined(HAVE_NEON_NE_GET_RESPONSE_HEADER)
--    value = ne_get_response_header(req, htag); 
--#endif
--    if (value) {
--      st->st_mtime = ne_httpdate_parse(value);
--      st->st_atime = st->st_ctime = st->st_mtime;     /* HACK */
--    }
--
--exit:
--    ne_request_destroy(req);
--    return rc;
--}
--
--static int davNLST(struct fetch_context_s * ctx)
--      /*@globals internalState @*/
--      /*@modifies ctx, internalState @*/
--{
--    urlinfo u = NULL;
--    int rc;
--    int xx;
--
--    rc = davInit(ctx->uri, &u);
--    if (rc || u == NULL)
--      goto exit;
--
--/* HACK do PROPFIND through davFetch iff enabled, otherwise HEAD Content-length/ETag/Last-Modified */
--    if (u->allow & RPMURL_SERVER_HASDAV)
--         rc = davFetch(u, ctx);       /* use PROPFIND to get contentLength */
--    else
--         rc = davHEAD(u, ctx->st);    /* use HEAD to get contentLength */
--
--    switch (rc) {
--    case NE_OK:
--        break;
--    case NE_ERROR:
--      /* HACK: "405 Method Not Allowed" for PROPFIND on non-DAV servers. */
--      /* XXX #206066 OPTIONS is ok, but PROPFIND from Stat() fails. */
--      /* rpm -qp --rpmiodebug --davdebug http://people.freedesktop.org/~sandmann/metacity-2.16.0-2.fc6/i386/metacity-2.16.0-2.fc6.i386.rpm */
--      /* HACK: "301 Moved Permanently" on empty subdir. */
--      if (!strncmp("301 ", ne_get_error(u->sess), sizeof("301 ")-1))
--          break;
--      /*@fallthrough@*/
--    default:
--if (_dav_debug)
--fprintf(stderr, "*** Fetch from %s:%d failed:\n\t%s\n",
--                 u->host, u->port, ne_get_error(u->sess));
--        break;
--    }
--
--exit:
--    xx = davFree(u);
--    return rc;
--}
--
--/* =============================================================== */
--static int my_result(const char * msg, int ret, /*@null@*/ FILE * fp)
--      /*@modifies *fp @*/
--{
--    /* HACK: don't print unless debugging. */
--    if (_dav_debug >= 0)
--      return ret;
--    if (fp == NULL)
--      fp = stderr;
--    if (msg != NULL)
--      fprintf(fp, "*** %s: ", msg);
--
--    /* HACK FTPERR_NE_FOO == -NE_FOO error impedance match */
--#ifdef        HACK
--    fprintf(fp, "%s: %s\n", ftpStrerror(-ret), ne_get_error(sess));
--#else
--    fprintf(fp, "%s\n", ftpStrerror(-ret));
--#endif
--    return ret;
--}
--
--#ifdef        DYING
--static void hexdump(const unsigned char * buf, ssize_t len)
--      /*@*/
--{
--    int i;
--    if (len <= 0)
--      return;
--    for (i = 0; i < len; i++) {
--      if (i != 0 && (i%16) == 0)
--          fprintf(stderr, "\n");
--      fprintf(stderr, " %02X", buf[i]);
--    }
--    fprintf(stderr, "\n");
--}
--#endif
--
--/*@-mustmod@*/
--static void davAcceptRanges(void * userdata, /*@null@*/ const char * value)
--      /*@modifies userdata @*/
--{
--    urlinfo u = userdata;
--
--    if (!(u != NULL && value != NULL)) return;
--if (_dav_debug < 0)
--fprintf(stderr, "*** u %p Accept-Ranges: %s\n", u, value);
--    if (!strcmp(value, "bytes"))
--      u->allow |= RPMURL_SERVER_HASRANGE;
--    if (!strcmp(value, "none"))
--      u->allow &= ~RPMURL_SERVER_HASRANGE;
--}
--/*@=mustmod@*/
--
--#if !defined(HAVE_NEON_NE_GET_RESPONSE_HEADER)
--static void davAllHeaders(void * userdata, const char * value)
--{
--    FD_t ctrl = userdata;
--
--    if (!(ctrl != NULL && value != NULL)) return;
--if (_dav_debug)
--fprintf(stderr, "<- %s\n", value);
--}
--#endif
--
--/*@-mustmod@*/
--static void davContentLength(void * userdata, /*@null@*/ const char * value)
--      /*@modifies userdata @*/
--{
--    FD_t ctrl = userdata;
--
--    if (!(ctrl != NULL && value != NULL)) return;
--if (_dav_debug < 0)
--fprintf(stderr, "*** fd %p Content-Length: %s\n", ctrl, value);
--/*@-unrecog@*/
--   ctrl->contentLength = strtoll(value, NULL, 10);
--/*@=unrecog@*/
--}
--/*@=mustmod@*/
--
--/*@-mustmod@*/
--static void davConnection(void * userdata, /*@null@*/ const char * value)
--      /*@modifies userdata @*/
--{
--    FD_t ctrl = userdata;
--
--    if (!(ctrl != NULL && value != NULL)) return;
--if (_dav_debug < 0)
--fprintf(stderr, "*** fd %p Connection: %s\n", ctrl, value);
--    if (!strcasecmp(value, "close"))
--      ctrl->persist = 0;
--    else if (!strcasecmp(value, "Keep-Alive"))
--      ctrl->persist = 1;
--}
--/*@=mustmod@*/
--
--/*@-mustmod@*/ /* HACK: stash error in *str. */
--int davResp(urlinfo u, FD_t ctrl, /*@unused@*/ char *const * str)
--{
--    int rc = 0;
--
--    rc = ne_begin_request(ctrl->req);
--    rc = my_result("ne_begin_req(ctrl->req)", rc, NULL);
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davResp(%p,%p,%p) sess %p req %p rc %d\n", u, ctrl, str, u->sess, ctrl->req, rc);
--
--    /* HACK FTPERR_NE_FOO == -NE_FOO error impedance match */
--/*@-observertrans@*/
--    if (rc)
--      fdSetSyserrno(ctrl, errno, ftpStrerror(-rc));
--/*@=observertrans@*/
--
--    return rc;
--}
--/*@=mustmod@*/
--
--int davReq(FD_t ctrl, const char * httpCmd, const char * httpArg)
--{
--    urlinfo u;
--    int rc = 0;
--
--assert(ctrl != NULL);
--    u = ctrl->url;
--    URLSANE(u);
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davReq(%p,%s,\"%s\") entry sess %p req %p\n", ctrl, httpCmd, (httpArg ? httpArg : ""), u->sess, ctrl->req);
--
--    ctrl->persist = (u->httpVersion > 0 ? 1 : 0);
--    ctrl = fdLink(ctrl, "open ctrl (davReq)");
--
--assert(u->sess != NULL);
--assert(ctrl->req == NULL);
--/*@-nullpass@*/
--    ctrl->req = ne_request_create(u->sess, httpCmd, httpArg);
--/*@=nullpass@*/
--assert(ctrl->req != NULL);
--
--    ne_set_request_private(ctrl->req, "fd", ctrl);
--
--#if !defined(HAVE_NEON_NE_GET_RESPONSE_HEADER)
--    ne_add_response_header_catcher(ctrl->req, davAllHeaders, ctrl);
--
--    ne_add_response_header_handler(ctrl->req, "Content-Length",
--              davContentLength, ctrl);
--    ne_add_response_header_handler(ctrl->req, "Connection",
--              davConnection, ctrl);
--#endif
--
--    if (!strcmp(httpCmd, "PUT")) {
--#if defined(HAVE_NEON_NE_SEND_REQUEST_CHUNK)
--      ctrl->wr_chunked = 1;
--      ne_add_request_header(ctrl->req, "Transfer-Encoding", "chunked");
--      ne_set_request_chunked(ctrl->req, 1);
--      /* HACK: no retries if/when chunking. */
--      rc = davResp(u, ctrl, NULL);
--#else
--      rc = FTPERR_SERVER_IO_ERROR;
--#endif
--    } else {
--      /* HACK: possible Last-Modified: Tue, 02 Nov 2004 14:29:36 GMT */
--      /* HACK: possible ETag: "inode-size-mtime" */
--#if !defined(HAVE_NEON_NE_GET_RESPONSE_HEADER)
--      ne_add_response_header_handler(ctrl->req, "Accept-Ranges",
--                      davAcceptRanges, u);
--#endif
--      /* HACK: possible Transfer-Encoding: on GET. */
--
--      /* HACK: other errors may need retry too. */
--      /* HACK: neon retries once, gud enuf. */
--      /* HACK: retry counter? */
--      do {
--          rc = davResp(u, ctrl, NULL);
--      } while (rc == NE_RETRY);
--    }
--    if (rc)
--      goto errxit;
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davReq(%p,%s,\"%s\") exit sess %p req %p rc %d\n", ctrl, httpCmd, (httpArg ? httpArg : ""), u->sess, ctrl->req, rc);
--
--#if defined(HAVE_NEON_NE_GET_RESPONSE_HEADER)
--    davContentLength(ctrl,
--              ne_get_response_header(ctrl->req, "Content-Length"));
--    davConnection(ctrl,
--              ne_get_response_header(ctrl->req, "Connection"));
--    if (strcmp(httpCmd, "PUT"))
--      davAcceptRanges(u,
--              ne_get_response_header(ctrl->req, "Accept-Ranges"));
--#endif
--
--    ctrl = fdLink(ctrl, "open data (davReq)");
--    return 0;
--
--errxit:
--/*@-observertrans@*/
--    fdSetSyserrno(ctrl, errno, ftpStrerror(rc));
--/*@=observertrans@*/
--
--    /* HACK balance fd refs. ne_session_destroy to tear down non-keepalive? */
--    ctrl = fdLink(ctrl, "error data (davReq)");
--
--    return rc;
--}
--
--FD_t davOpen(const char * url, /*@unused@*/ int flags,
--              /*@unused@*/ mode_t mode, /*@out@*/ urlinfo * uret)
--{
--    const char * path = NULL;
--    urltype urlType = urlPath(url, &path);
--    urlinfo u = NULL;
--    FD_t fd = NULL;
--    int rc;
--
--#if 0 /* XXX makeTempFile() heartburn */
--    assert(!(flags & O_RDWR));
--#endif
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davOpen(%s,0x%x,0%o,%p)\n", url, flags, mode, uret);
--    rc = davInit(url, &u);
--    if (rc || u == NULL || u->sess == NULL)
--      goto exit;
--
--    if (u->ctrl == NULL)
--      u->ctrl = fdNew("persist ctrl (davOpen)");
--    if (u->ctrl->nrefs > 2 && u->data == NULL)
--      u->data = fdNew("persist data (davOpen)");
--
--    if (u->ctrl->url == NULL)
--      fd = fdLink(u->ctrl, "grab ctrl (davOpen persist ctrl)");
--    else if (u->data->url == NULL)
--      fd = fdLink(u->data, "grab ctrl (davOpen persist data)");
--    else
--      fd = fdNew("grab ctrl (davOpen)");
--
--    if (fd) {
--      fdSetOpen(fd, url, flags, mode);
--      fdSetIo(fd, ufdio);
--
--      fd->ftpFileDoneNeeded = 0;
--      fd->rd_timeoutsecs = httpTimeoutSecs;
--      fd->contentLength = fd->bytesRemain = -1;
--      fd->url = urlLink(u, "url (davOpen)");
--      fd = fdLink(fd, "grab data (davOpen)");
--assert(urlType == URL_IS_HTTPS || urlType == URL_IS_HTTP || urlType == URL_IS_HKP);
--      fd->urlType = urlType;
--    }
--
--exit:
--/*@-boundswrite@*/
--    if (uret)
--      *uret = u;
--/*@=boundswrite@*/
--    /*@-refcounttrans@*/
--    return fd;
--    /*@=refcounttrans@*/
--}
--
--ssize_t davRead(void * cookie, /*@out@*/ char * buf, size_t count)
--{
--    FD_t fd = cookie;
--    ssize_t rc;
--
--#if 0
--assert(count >= 128); /* HACK: see ne_request.h comment */
--#endif
--    rc = ne_read_response_block(fd->req, buf, count);
--
--if (_dav_debug < 0) {
--fprintf(stderr, "*** davRead(%p,%p,0x%x) rc 0x%x\n", cookie, buf, (unsigned)count, (unsigned)rc);
--#ifdef        DYING
--hexdump(buf, rc);
--#endif
--    }
--
--    return rc;
--}
--
--ssize_t davWrite(void * cookie, const char * buf, size_t count)
--{
--    FD_t fd = cookie;
--    ssize_t rc;
--    int xx;
--
--#if !defined(NEONBLOWSCHUNKS)
--    ne_session * sess;
--
--assert(fd->req != NULL);
--    sess = ne_get_session(fd->req);
--assert(sess != NULL);
--
--    /* HACK: include ne_private.h to access sess->socket for now. */
--    xx = ne_sock_fullwrite(sess->socket, buf, count);
--#else
--#if defined(HAVE_NEON_NE_SEND_REQUEST_CHUNK) || defined(__LCLINT__)
--assert(fd->req != NULL);
--    xx = ne_send_request_chunk(fd->req, buf, count);
--#else
--    errno = EIO;       /* HACK */
--    return -1;
--#endif
--#endif
--
--    /* HACK: stupid error impedence matching. */
--    rc = (xx == 0 ? count : -1);
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davWrite(%p,%p,0x%x) rc 0x%x\n", cookie, buf, (unsigned)count, (unsigned)rc);
--#ifdef        DYING
--if (count > 0)
--hexdump(buf, count);
--#endif
--
--    return rc;
--}
--
--int davSeek(void * cookie, /*@unused@*/ _libio_pos_t pos, int whence)
--{
--if (_dav_debug < 0)
--fprintf(stderr, "*** davSeek(%p,pos,%d)\n", cookie, whence);
--    return -1;
--}
--
--/*@-mustmod@*/        /* HACK: fd->req is modified. */
--int davClose(void * cookie)
--{
--/*@-onlytrans@*/
--    FD_t fd = cookie;
--/*@=onlytrans@*/
--    int rc;
--
--assert(fd->req != NULL);
--    rc = ne_end_request(fd->req);
--    rc = my_result("ne_end_request(req)", rc, NULL);
--
--    ne_request_destroy(fd->req);
--    fd->req = NULL;
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davClose(%p) rc %d\n", fd, rc);
--    return rc;
--}
--/*@=mustmod@*/
--
--/* =============================================================== */
--int davMkdir(const char * path, mode_t mode)
--{
--    urlinfo u = NULL;
--    const char * src = NULL;
--    int rc;
--
--    rc = davInit(path, &u);
--    if (rc)
--      goto exit;
--
--    (void) urlPath(path, &src);
--
--    rc = ne_mkcol(u->sess, path);
--
--    if (rc) rc = -1;  /* XXX HACK: errno impedance match */
--
--    /* XXX HACK: verify getrestype(remote) == resr_collection */
--
--exit:
--if (_dav_debug)
--fprintf(stderr, "*** davMkdir(%s,0%o) rc %d\n", path, mode, rc);
--    return rc;
--}
--
--int davRmdir(const char * path)
--{
--    urlinfo u = NULL;
--    const char * src = NULL;
--    int rc;
--
--    rc = davInit(path, &u);
--    if (rc)
--      goto exit;
--
--    (void) urlPath(path, &src);
--
--    /* XXX HACK: only getrestype(remote) == resr_collection */
--
--    rc = ne_delete(u->sess, path);
--
--    if (rc) rc = -1;  /* XXX HACK: errno impedance match */
--
--exit:
--if (_dav_debug)
--fprintf(stderr, "*** davRmdir(%s) rc %d\n", path, rc);
--    return rc;
--}
--
--int davRename(const char * oldpath, const char * newpath)
--{
--    urlinfo u = NULL;
--    const char * src = NULL;
--    const char * dst = NULL;
--    int overwrite = 1;                /* HACK: set this correctly. */
--    int rc;
--
--    rc = davInit(oldpath, &u);
--    if (rc)
--      goto exit;
--
--    (void) urlPath(oldpath, &src);
--    (void) urlPath(newpath, &dst);
--
--    /* XXX HACK: only getrestype(remote) != resr_collection */
--
--    rc = ne_move(u->sess, overwrite, src, dst);
--
--    if (rc) rc = -1;  /* XXX HACK: errno impedance match */
--
--exit:
--if (_dav_debug)
--fprintf(stderr, "*** davRename(%s,%s) rc %d\n", oldpath, newpath, rc);
--    return rc;
--}
--
--int davUnlink(const char * path)
--{
--    urlinfo u = NULL;
--    const char * src = NULL;
--    int rc;
--
--    rc = davInit(path, &u);
--    if (rc)
--      goto exit;
--
--    (void) urlPath(path, &src);
--
--    /* XXX HACK: only getrestype(remote) != resr_collection */
--
--    rc = ne_delete(u->sess, src);
--
--exit:
--    if (rc) rc = -1;  /* XXX HACK: errno impedance match */
--
--if (_dav_debug)
--fprintf(stderr, "*** davUnlink(%s) rc %d\n", path, rc);
--    return rc;
--}
--
--#ifdef        NOTYET
--static int davChdir(const char * path)
--      /*@globals h_errno, fileSystem, internalState @*/
--      /*@modifies fileSystem, internalState @*/
--{
--    return davCommand("CWD", path, NULL);
--}
--#endif        /* NOTYET */
--
--/* =============================================================== */
--
--static const char * statstr(const struct stat * st,
--              /*@returned@*/ /*@out@*/ char * buf)
--      /*@modifies *buf @*/
--{
--    sprintf(buf,
--      "*** dev %x ino %x mode %0o nlink %d uid %d gid %d rdev %x size %x\n",
--      (unsigned)st->st_dev,
--      (unsigned)st->st_ino,
--      st->st_mode,
--      (unsigned)st->st_nlink,
--      st->st_uid,
--      st->st_gid,
--      (unsigned)st->st_rdev,
--      (unsigned)st->st_size);
--    return buf;
--}
--
--/*@unchecked@*/
--static int dav_st_ino = 0xdead0000;
--
--/*@-boundswrite@*/
--int davStat(const char * path, /*@out@*/ struct stat *st)
--      /*@globals dav_st_ino, fileSystem, internalState @*/
--      /*@modifies *st, dav_st_ino, fileSystem, internalState @*/
--{
--    struct fetch_context_s * ctx = NULL;
--    char buf[1024];
--    int rc = -1;
--
--/* HACK: neon really wants collections with trailing '/' */
--    ctx = fetch_create_context(path, st);
--    if (ctx == NULL) {
--fprintf(stderr, "==> %s fetch_create_context ctx %p\n", __FUNCTION__, ctx);
--/* HACK: errno = ??? */
--      goto exit;
--    }
--    rc = davNLST(ctx);
--    if (rc) {
--/* HACK: errno = ??? */
--      goto exit;
--    }
--
--    if (st->st_mode == 0)
--      st->st_mode = (ctx->ac > 1 ? S_IFDIR : S_IFREG);
--    st->st_size = (ctx->sizes ? ctx->sizes[0] : st->st_size);
--    st->st_mtime = (ctx->mtimes ? ctx->mtimes[0] : st->st_mtime);
--    st->st_atime = st->st_ctime = st->st_mtime;       /* HACK */
--    if (S_ISDIR(st->st_mode)) {
--      st->st_nlink = 2;
--      st->st_mode |= 0755;
--    } else
--    if (S_ISREG(st->st_mode)) {
--      st->st_nlink = 1;
--      st->st_mode |= 0644;
--    }
--
--    /* XXX fts(3) needs/uses st_ino, make something up for now. */
--    if (st->st_ino == 0)
--      st->st_ino = dav_st_ino++;
--
--exit:
--if (_dav_debug < 0)
--fprintf(stderr, "*** davStat(%s) rc %d\n%s", path, rc, statstr(st, buf));
--    ctx = fetch_destroy_context(ctx);
--    return rc;
--}
--/*@=boundswrite@*/
--
--/*@-boundswrite@*/
--int davLstat(const char * path, /*@out@*/ struct stat *st)
--      /*@globals dav_st_ino, fileSystem, internalState @*/
--      /*@modifies *st, dav_st_ino, fileSystem, internalState @*/
--{
--    struct fetch_context_s * ctx = NULL;
--    char buf[1024];
--    int rc = -1;
--
--/* HACK: neon really wants collections with trailing '/' */
--    ctx = fetch_create_context(path, st);
--    if (ctx == NULL) {
--/* HACK: errno = ??? */
--      goto exit;
--    }
--    rc = davNLST(ctx);
--    if (rc) {
--/* HACK: errno = ??? */
--      goto exit;
--    }
--
--    if (st->st_mode == 0)
--      st->st_mode = (ctx->ac > 1 ? S_IFDIR : S_IFREG);
--    st->st_size = (ctx->sizes ? ctx->sizes[0] : st->st_size);
--    st->st_mtime = (ctx->mtimes ? ctx->mtimes[0] : st->st_mtime);
--    st->st_atime = st->st_ctime = st->st_mtime;       /* HACK */
--    if (S_ISDIR(st->st_mode)) {
--      st->st_nlink = 2;
--      st->st_mode |= 0755;
--    } else
--    if (S_ISREG(st->st_mode)) {
--      st->st_nlink = 1;
--      st->st_mode |= 0644;
--    }
--
--    /* XXX fts(3) needs/uses st_ino, make something up for now. */
--    if (st->st_ino == 0)
--      st->st_ino = dav_st_ino++;
--if (_dav_debug < 0)
--fprintf(stderr, "*** davLstat(%s) rc %d\n%s\n", path, rc, statstr(st, buf));
--exit:
--    ctx = fetch_destroy_context(ctx);
--    return rc;
--}
--/*@=boundswrite@*/
--
--#ifdef        NOTYET
--static int davReadlink(const char * path, /*@out@*/ char * buf, size_t bufsiz)
--      /*@globals h_errno, fileSystem, internalState @*/
--      /*@modifies *buf, fileSystem, internalState @*/
--{
--    int rc;
--    rc = davNLST(path, DO_FTP_READLINK, NULL, buf, bufsiz);
--if (_dav_debug < 0)
--fprintf(stderr, "*** davReadlink(%s) rc %d\n", path, rc);
--    return rc;
--}
--#endif        /* NOTYET */
--
--/* =============================================================== */
- /*@unchecked@*/
- int avmagicdir = 0x3607113;
-@@ -1625,171 +167,3 @@
- }
- /*@=boundswrite@*/
--/* =============================================================== */
--/*@unchecked@*/
--int davmagicdir = 0x8440291;
--
--int davClosedir(/*@only@*/ DIR * dir)
--{
--    DAVDIR avdir = (DAVDIR)dir;
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davClosedir(%p)\n", avdir);
--
--#if defined(HAVE_PTHREAD_H)
--/*@-moduncon -noeffectuncon @*/
--    (void) pthread_mutex_destroy(&avdir->lock);
--/*@=moduncon =noeffectuncon @*/
--#endif
--
--    avdir = _free(avdir);
--    return 0;
--}
--
--struct dirent * davReaddir(DIR * dir)
--{
--    DAVDIR avdir = (DAVDIR)dir;
--    struct dirent * dp;
--    const char ** av;
--    unsigned char * dt;
--    int ac;
--    int i;
--
--    if (avdir == NULL || !ISDAVMAGIC(avdir) || avdir->data == NULL) {
--      /* XXX TODO: EBADF errno. */
--      return NULL;
--    }
--
--    dp = (struct dirent *) avdir->data;
--    av = (const char **) (dp + 1);
--    ac = avdir->size;
--    dt = (char *) (av + (ac + 1));
--    i = avdir->offset + 1;
--
--/*@-boundsread@*/
--    if (i < 0 || i >= ac || av[i] == NULL)
--      return NULL;
--/*@=boundsread@*/
--
--    avdir->offset = i;
--
--    /* XXX glob(3) uses REAL_DIR_ENTRY(dp) test on d_ino */
--/*@-type@*/
--    dp->d_ino = i + 1;                /* W2DO? */
--    dp->d_reclen = 0;         /* W2DO? */
--
--#if !(defined(hpux) || defined(__hpux) || defined(sun))
--#if !defined(__APPLE__) && !defined(__FreeBSD_kernel__)
--    dp->d_off = 0;            /* W2DO? */
--#endif
--/*@-boundsread@*/
--    dp->d_type = dt[i];
--/*@=boundsread@*/
--#endif
--/*@=type@*/
--
--    strncpy(dp->d_name, av[i], sizeof(dp->d_name));
--if (_dav_debug < 0)
--fprintf(stderr, "*** davReaddir(%p) %p \"%s\"\n", (void *)avdir, dp, dp->d_name);
--
--    return dp;
--}
--
--/*@-boundswrite@*/
--DIR * davOpendir(const char * path)
--{
--    struct fetch_context_s * ctx;
--    DAVDIR avdir;
--    struct dirent * dp;
--    size_t nb;
--    const char ** av, ** nav;
--    unsigned char * dt;
--    char * t;
--    int ac, nac;
--    int rc;
--
--    /* HACK: glob does not pass dirs with trailing '/' */
--    nb = strlen(path)+1;
--/*@-branchstate@*/
--    if (path[nb-1] != '/') {
--      char * npath = alloca(nb+1);
--      *npath = '\0';
--      (void) stpcpy( stpcpy(npath, path), "/");
--      path = npath;
--    }
--/*@=branchstate@*/
--
--if (_dav_debug < 0)
--fprintf(stderr, "*** davOpendir(%s)\n", path);
--
--    /* Load DAV collection into argv. */
--    ctx = fetch_create_context(path, NULL);
--    if (ctx == NULL) {
--/* HACK: errno = ??? */
--      return NULL;
--    }
--    rc = davNLST(ctx);
--    if (rc) {
--/* HACK: errno = ??? */
--      return NULL;
--    }
--
--    nb = 0;
--    ac = 0;
--    av = ctx->av;
--    if (av != NULL)
--    while (av[ac] != NULL)
--      nb += strlen(av[ac++]) + 1;
--    ac += 2;  /* for "." and ".." */
--    nb += sizeof(".") + sizeof("..");
--
--    nb += sizeof(*avdir) + sizeof(*dp) + ((ac + 1) * sizeof(*av)) + (ac + 1);
--    avdir = xcalloc(1, nb);
--    /*@-abstract@*/
--    dp = (struct dirent *) (avdir + 1);
--    nav = (const char **) (dp + 1);
--    dt = (char *) (nav + (ac + 1));
--    t = (char *) (dt + ac + 1);
--    /*@=abstract@*/
--
--    avdir->fd = davmagicdir;
--/*@-usereleased@*/
--    avdir->data = (char *) dp;
--/*@=usereleased@*/
--    avdir->allocation = nb;
--    avdir->size = ac;
--    avdir->offset = -1;
--    avdir->filepos = 0;
--
--#if defined(HAVE_PTHREAD_H)
--/*@-moduncon -noeffectuncon -nullpass @*/
--    (void) pthread_mutex_init(&avdir->lock, NULL);
--/*@=moduncon =noeffectuncon =nullpass @*/
--#endif
--
--    nac = 0;
--/*@-dependenttrans -unrecog@*/
--    dt[nac] = DT_DIR; nav[nac++] = t; t = stpcpy(t, ".");     t++;
--    dt[nac] = DT_DIR; nav[nac++] = t; t = stpcpy(t, "..");    t++;
--/*@=dependenttrans =unrecog@*/
--
--    /* Copy DAV items into DIR elments. */
--    ac = 0;
--    if (av != NULL)
--    while (av[ac] != NULL) {
--      nav[nac] = t;
--      dt[nac] = (S_ISDIR(ctx->modes[ac]) ? DT_DIR : DT_REG);
--      t = stpcpy(t, av[ac]);
--      ac++;
--      t++;
--      nac++;
--    }
--    nav[nac] = NULL;
--
--    ctx = fetch_destroy_context(ctx);
--
--/*@-kepttrans@*/
--    return (DIR *) avdir;
--/*@=kepttrans@*/
--}
--/*@=modfilesys@*/
-diff -ur rpm-4.4.7.org/rpmio/rpmdav.h rpm-4.4.7/rpmio/rpmdav.h
---- rpm-4.4.7.org/rpmio/rpmdav.h       2005-10-11 21:13:59.000000000 +0200
-+++ rpm-4.4.7/rpmio/rpmdav.h   2006-10-17 22:35:33.742783250 +0200
-@@ -41,12 +41,6 @@
- extern int avmagicdir;
- #define ISAVMAGIC(_dir) (!memcmp((_dir), &avmagicdir, sizeof(avmagicdir)))
--/**
-- */
--/*@unchecked@*/
--extern int davmagicdir;
--#define ISDAVMAGIC(_dir) (!memcmp((_dir), &davmagicdir, sizeof(davmagicdir)))
--
- #ifdef __cplusplus
- extern "C" {
- #endif
-@@ -80,133 +74,6 @@
-       /*@globals fileSystem, internalState @*/
-       /*@modifies fileSystem, internalState @*/;
--/**
-- * Send a http request.
-- * @param ctrl                
-- * @param httpCmd     http command
-- * @param httpArg     http command argument (NULL if none)
-- * @returns           0 on success
-- */
--int davReq(FD_t ctrl, const char * httpCmd, /*@null@*/ const char * httpArg)
--      /*@globals fileSystem, internalState @*/
--      /*@modifies ctrl, fileSystem, internalState @*/;
--
--/**
-- * Read a http response.
-- * @param u
-- * @param cntl                
-- * @retval *str               error msg               
-- * @returns           0 on success
-- */
--/*@-exportlocal@*/
--int davResp(urlinfo u, FD_t ctrl, /*@out@*/ /*@null@*/ char *const * str)
--      /*@globals fileSystem, internalState @*/
--      /*@modifies ctrl, *str, fileSystem, internalState @*/;
--/*@=exportlocal@*/
--
--/**
-- */
--/*@null@*/
--FD_t davOpen(const char * url, /*@unused@*/ int flags,
--              /*@unused@*/ mode_t mode, /*@out@*/ urlinfo * uret)
--        /*@globals internalState @*/
--        /*@modifies *uret, internalState @*/;
--
--/**
-- */
--/*@-incondefs@*/
--ssize_t davRead(void * cookie, /*@out@*/ char * buf, size_t count)
--        /*@globals fileSystem, internalState @*/
--        /*@modifies buf, fileSystem, internalState @*/
--      /*@requires maxSet(buf) >= (count - 1) @*/
--      /*@ensures maxRead(buf) == result @*/;
--/*@=incondefs@*/
--
--/**
-- */
--ssize_t davWrite(void * cookie, const char * buf, size_t count)
--        /*@globals fileSystem, internalState @*/
--        /*@modifies fileSystem, internalState @*/;
--
--/**
-- */
--int davSeek(void * cookie, _libio_pos_t pos, int whence)
--        /*@globals fileSystem, internalState @*/
--        /*@modifies fileSystem, internalState @*/;
--
--/**
-- */
--int davClose(void * cookie)
--      /*@globals fileSystem, internalState @*/
--      /*@modifies cookie, fileSystem, internalState @*/;
--
--/**
-- */
--int davMkdir(const char * path, mode_t mode)
--      /*@globals fileSystem, internalState @*/
--      /*@modifies fileSystem, internalState @*/;
--
--/**
-- */
--int davRmdir(const char * path)
--      /*@globals fileSystem, internalState @*/
--      /*@modifies fileSystem, internalState @*/;
--
--/**
-- */
--int davRename(const char * oldpath, const char * newpath)
--      /*@globals fileSystem, internalState @*/
--      /*@modifies fileSystem, internalState @*/;
--
--/**
-- */
--int davUnlink(const char * path)
--      /*@globals fileSystem, internalState @*/
--      /*@modifies fileSystem, internalState @*/;
--
--/**
-- * Close a DAV collection.
-- * @param dir         argv DIR
-- * @return            0 always
-- */
--int davClosedir(/*@only@*/ DIR * dir)
--      /*@globals fileSystem @*/
--      /*@modifies dir, fileSystem @*/;
--
--/**
-- * Return next entry from a DAV collection.
-- * @param dir         argv DIR
-- * @return            next entry
-- */
--/*@dependent@*/ /*@null@*/
--struct dirent * davReaddir(DIR * dir)
--      /*@globals fileSystem @*/
--      /*@modifies fileSystem @*/;
--
--/**
-- * Create an argv directory from DAV collection.
-- * @param path                URL for DAV collection path
-- * @return            argv DIR
-- */
--/*@null@*/
--DIR * davOpendir(const char * path)
--      /*@globals fileSystem, internalState @*/
--      /*@modifies fileSystem, internalState @*/;
--
--/**
-- * stat(2) clone.
-- */
--int davStat(const char * path, /*@out@*/ struct stat * st)
--      /*@globals fileSystem, internalState @*/
--      /*@modifies *st, fileSystem, internalState @*/;
--
--/**
-- * lstat(2) clone.
-- */
--int davLstat(const char * path, /*@out@*/ struct stat * st)
--      /*@globals fileSystem, internalState @*/
--      /*@modifies *st, fileSystem, internalState @*/;
--
- #ifdef __cplusplus
- }
- #endif
-diff -ur rpm-4.4.7.org/rpmio/rpmio.c rpm-4.4.7/rpmio/rpmio.c
---- rpm-4.4.7.org/rpmio/rpmio.c        2006-08-08 08:55:01.000000000 +0200
-+++ rpm-4.4.7/rpmio/rpmio.c    2006-10-17 22:18:38.135311750 +0200
-@@ -406,13 +406,6 @@
-     fdstat_enter(fd, FDSTAT_READ);
- /*@-boundswrite@*/
--    /* HACK: flimsy wiring for davRead */
--    if (fd->req != NULL) {
--      rc = davRead(fd, buf, (count > fd->bytesRemain ? fd->bytesRemain : count));
--      /* XXX Chunked davRead EOF. */
--      if (rc == 0)
--          fd->bytesRemain = 0;
--    } else
-       rc = read(fdFileno(fd), buf, (count > fd->bytesRemain ? fd->bytesRemain : count));
- /*@=boundswrite@*/
-     fdstat_exit(fd, FDSTAT_READ, rc);
-@@ -440,10 +433,6 @@
-     fdstat_enter(fd, FDSTAT_WRITE);
- /*@-boundsread@*/
--    /* HACK: flimsy wiring for davWrite */
--    if (fd->req != NULL)
--      rc = davWrite(fd, buf, (count > fd->bytesRemain ? fd->bytesRemain : count));
--    else
-       rc = write(fdno, buf, (count > fd->bytesRemain ? fd->bytesRemain : count));
- /*@=boundsread@*/
-     fdstat_exit(fd, FDSTAT_WRITE, rc);
-@@ -490,11 +479,6 @@
-     fdSetFdno(fd, -1);
-     fdstat_enter(fd, FDSTAT_CLOSE);
--    /* HACK: flimsy wiring for davClose */
--/*@-branchstate@*/
--    if (fd->req != NULL)
--      rc = davClose(fd);
--    else
-       rc = ((fdno >= 0) ? close(fdno) : -2);
- /*@=branchstate@*/
-     fdstat_exit(fd, FDSTAT_CLOSE, rc);
-@@ -547,10 +531,6 @@
-     FD_ZERO(&wrfds);
- #endif
-       
--    /* HACK: flimsy wiring for davWrite */
--    if (fd->req != NULL)
--      return 1;
--
-     if ((fdno = fdFileno(fd)) < 0)
-       return -1;      /* XXX W2DO? */
-       
-@@ -602,10 +582,6 @@
-     FD_ZERO(&rdfds);
- #endif
--    /* HACK: flimsy wiring for davRead */
--    if (fd->req != NULL)
--      return 1;
--
-     if ((fdno = fdFileno(fd)) < 0)
-       return -1;      /* XXX W2DO? */
-       
-@@ -1758,159 +1734,6 @@
-     return rc;
- }
--#ifdef DEAD
--static int httpResp(urlinfo u, FD_t ctrl, /*@out@*/ char ** str)
--      /*@globals fileSystem @*/
--      /*@modifies ctrl, *str, fileSystem @*/
--{
--    int ec = 0;
--    int rc;
--
--    URLSANE(u);
--    rc = checkResponse(u, ctrl, &ec, str);
--
--if (_ftp_debug && !(rc == 0 && (ec == 200 || ec == 201)))
--fprintf(stderr, "*** httpResp: rc %d ec %d\n", rc, ec);
--
--    switch (ec) {
--    case 200:
--    case 201:                 /* 201 Created. */
--      break;
--    case 204:                 /* HACK: if overwriting, 204 No Content. */
--    case 403:                 /* 403 Forbidden. */
--      ctrl->syserrno = EACCES;        /* HACK */
--      rc = FTPERR_UNKNOWN;
--      break;
--    default:
--      rc = FTPERR_FILE_NOT_FOUND;
--      break;
--    }
--    return rc;
--}
--
--static int httpReq(FD_t ctrl, const char * httpCmd, const char * httpArg)
--      /*@globals h_errno, fileSystem, internalState @*/
--      /*@modifies ctrl, fileSystem, internalState @*/
--{
--    urlinfo u;
--    const char * host;
--    const char * path;
--    char hthost[NI_MAXHOST];
--    int port;
--    int rc;
--    char * req;
--    size_t len;
--    int retrying = 0;
--
--assert(ctrl != NULL);
--    u = ctrl->url;
--    URLSANE(u);
--
--    if (((host = (u->proxyh ? u->proxyh : u->host)) == NULL))
--      return FTPERR_BAD_HOSTNAME;
--    if (strchr(host, ':'))
--      sprintf(hthost, "[%s]", host);
--    else
--      strcpy(hthost, host);
--
--    if ((port = (u->proxyp > 0 ? u->proxyp : u->port)) < 0) port = 80;
--    path = (u->proxyh || u->proxyp > 0) ? u->url : httpArg;
--    /*@-branchstate@*/
--    if (path == NULL) path = "";
--    /*@=branchstate@*/
--
--reopen:
--    /*@-branchstate@*/
--    if (fdFileno(ctrl) >= 0 && (rc = fdWritable(ctrl, 0)) < 1) {
--      /*@-refcounttrans@*/ (void) fdClose(ctrl); /*@=refcounttrans@*/
--    }
--    /*@=branchstate@*/
--
--/*@-usereleased@*/
--    if (fdFileno(ctrl) < 0) {
--      rc = tcpConnect(ctrl, host, port);
--      if (rc < 0)
--          goto errxit2;
--      ctrl = fdLink(ctrl, "open ctrl (httpReq)");
--    }
--
--    len = sizeof("\
--req x HTTP/1.0\r\n\
--User-Agent: rpm/3.0.4\r\n\
--Host: y:z\r\n\
--Accept: text/plain\r\n\
--Transfer-Encoding: chunked\r\n\
--\r\n\
--") + strlen(httpCmd) + strlen(path) + sizeof(VERSION) + strlen(hthost) + 20;
--
--/*@-boundswrite@*/
--    req = alloca(len);
--    *req = '\0';
--
--  if (!strcmp(httpCmd, "PUT")) {
--    sprintf(req, "\
--%s %s HTTP/1.%d\r\n\
--User-Agent: rpm/%s\r\n\
--Host: %s:%d\r\n\
--Accept: text/plain\r\n\
--Transfer-Encoding: chunked\r\n\
--\r\n\
--",    httpCmd, path, (u->httpVersion ? 1 : 0), VERSION, hthost, port);
--} else {
--    sprintf(req, "\
--%s %s HTTP/1.%d\r\n\
--User-Agent: rpm/%s\r\n\
--Host: %s:%d\r\n\
--Accept: text/plain\r\n\
--\r\n\
--",    httpCmd, path, (u->httpVersion ? 1 : 0), VERSION, hthost, port);
--}
--/*@=boundswrite@*/
--
--if (_ftp_debug)
--fprintf(stderr, "-> %s", req);
--
--    len = strlen(req);
--    if (fdWrite(ctrl, req, len) != len) {
--      rc = FTPERR_SERVER_IO_ERROR;
--      goto errxit;
--    }
--
--    /*@-branchstate@*/
--    if (!strcmp(httpCmd, "PUT")) {
--      ctrl->wr_chunked = 1;
--    } else {
--
--      rc = httpResp(u, ctrl, NULL);
--
--      if (rc) {
--          if (!retrying) {    /* not HTTP_OK */
--              retrying = 1;
--              /*@-refcounttrans@*/ (void) fdClose(ctrl); /*@=refcounttrans@*/
--              goto reopen;
--          }
--          goto errxit;
--      }
--    }
--    /*@=branchstate@*/
--
--    ctrl = fdLink(ctrl, "open data (httpReq)");
--    return 0;
--
--errxit:
--    /*@-observertrans@*/
--    fdSetSyserrno(ctrl, errno, ftpStrerror(rc));
--    /*@=observertrans@*/
--errxit2:
--    /*@-branchstate@*/
--    if (fdFileno(ctrl) >= 0)
--      /*@-refcounttrans@*/ (void) fdClose(ctrl); /*@=refcounttrans@*/
--    /*@=branchstate@*/
--    return rc;
--/*@=usereleased@*/
--}
--#endif
--
- /* XXX DYING: unused */
- void * ufdGetUrlinfo(FD_t fd)
- {
-@@ -2268,29 +2091,6 @@
-           fd->wr_chunked = 0;
-       }
-       break;
--    case URL_IS_HTTPS:
--    case URL_IS_HTTP:
--    case URL_IS_HKP:
--      fd = davOpen(url, flags, mode, &u);
--      if (fd == NULL || u == NULL)
--          break;
--
--      cmd = ((flags & O_WRONLY)
--              ?  ((flags & O_APPEND) ? "PUT" :
--                 ((flags & O_CREAT) ? "PUT" : "PUT"))
--              : "GET");
--      u->openError = davReq(fd, cmd, path);
--      if (u->openError < 0) {
--          /* XXX make sure that we can exit through ufdClose */
--          fd = fdLink(fd, "error ctrl (ufdOpen HTTP)");
--          fd = fdLink(fd, "error data (ufdOpen HTTP)");
--      } else {
--          fd->bytesRemain = ((!strcmp(cmd, "GET"))
--              ?  fd->contentLength : -1);
--          fd->wr_chunked = ((!strcmp(cmd, "PUT"))
--              ?  fd->wr_chunked : 0);
--      }
--      break;
-     case URL_IS_DASH:
-       assert(!(flags & O_RDWR));
-       fd = fdDup( ((flags & O_WRONLY) ? STDOUT_FILENO : STDIN_FILENO) );
-@@ -2908,10 +2708,8 @@
-           if (fd->nfps > 0 && fpno == -1 &&
-               fd->fps[fd->nfps-1].io == ufdio &&
-               fd->fps[fd->nfps-1].fp == fp &&
--              (fd->fps[fd->nfps-1].fdno >= 0 || fd->req != NULL))
-+              (fd->fps[fd->nfps-1].fdno >= 0))
-           {
--              int hadreqpersist = (fd->req != NULL);
--
-               if (fp)
-                   rc = fflush(fp);
-               fd->nfps--;
-@@ -2921,26 +2719,9 @@
- /*@-usereleased@*/
-               if (fdGetFdno(fd) >= 0)
-                   break;
--              if (!fd->persist)
--                  hadreqpersist = 0;
-               fdSetFp(fd, NULL);
-               fd->nfps++;
-               if (fp) {
--                  /* HACK: flimsy Keepalive wiring. */
--                  if (hadreqpersist) {
--                      fd->nfps--;
--/*@-exposetrans@*/
--                      fdSetFp(fd, fp);
--/*@=exposetrans@*/
--/*@-refcounttrans@*/
--                      (void) fdClose(fd);
--/*@=refcounttrans@*/
--                      fdSetFp(fd, NULL);
--                      fd->nfps++;
--/*@-refcounttrans@*/
--                      (void) fdClose(fd);
--/*@=refcounttrans@*/
--                  } else
-                       rc = fclose(fp);
-               }
-               fdPop(fd);
-@@ -3195,18 +2976,9 @@
-           return NULL;
-       }
-     } else {
--      FILE *fp;
--      int fdno;
--      int isHTTP = 0;
--
-       /* XXX gzdio and bzdio here too */
-       switch (urlIsURL(path)) {
--      case URL_IS_HTTPS:
--      case URL_IS_HTTP:
--      case URL_IS_HKP:
--          isHTTP = 1;
--          /*@fallthrough@*/
-       case URL_IS_PATH:
-       case URL_IS_DASH:
-       case URL_IS_FTP:
-@@ -3214,7 +2986,7 @@
- if (_rpmio_debug)
- fprintf(stderr, "*** Fopen ufdio path %s fmode %s\n", path, fmode);
-           fd = ufdOpen(path, flags, perms);
--          if (fd == NULL || !(fdFileno(fd) >= 0 || fd->req != NULL))
-+          if (fd == NULL || !(fdFileno(fd) >= 0))
-               return fd;
-           break;
-       default:
-@@ -3223,15 +2995,6 @@
-           return NULL;
-           /*@notreached@*/ break;
-       }
--
--      /* XXX persistent HTTP/1.1 returns the previously opened fp */
--      if (isHTTP && ((fp = fdGetFp(fd)) != NULL) && ((fdno = fdGetFdno(fd)) >= 0 || fd->req != NULL))
--      {
--          /*@+voidabstract@*/
--          fdPush(fd, fpio, fp, fileno(fp));   /* Push fpio onto stack */
--          /*@=voidabstract@*/
--          return fd;
--      }
-     }
-     /*@=branchstate@*/
-@@ -3267,10 +3030,6 @@
-     int i, rc = 0;
-     if (fd == NULL) return -1;
--    if (fd->req != NULL) {
--      /* HACK: flimsy wiring for neon errors. */
--      rc = (fd->syserrno  || fd->errcookie != NULL) ? -1 : 0;
--    } else
-     for (i = fd->nfps; rc == 0 && i >= 0; i--) {
- /*@-boundsread@*/
-       FDSTACK_t * fps = &fd->fps[i];
-@@ -3305,9 +3064,6 @@
- {
-     int i, rc = -1;
--    if (fd->req != NULL)
--      rc = 123456789; /* HACK: https has no steenkin fileno. */
--    else
-     for (i = fd->nfps ; rc == -1 && i >= 0; i--) {
- /*@-boundsread@*/
-       rc = fd->fps[i].fdno;
-diff -ur rpm-4.4.7.org/rpmio/rpmio_internal.h rpm-4.4.7/rpmio/rpmio_internal.h
---- rpm-4.4.7.org/rpmio/rpmio_internal.h       2006-06-18 20:54:59.000000000 +0200
-+++ rpm-4.4.7/rpmio/rpmio_internal.h   2006-10-17 22:18:51.308135000 +0200
-@@ -157,7 +157,6 @@
- /*@dependent@*/
-     void *    url;            /* ufdio: URL info */
- /*@relnull@*/
--    void *    req;            /* ufdio: HTTP request */
-     int               rd_timeoutsecs; /* ufdRead: per FD_t timer */
-     ssize_t   bytesRemain;    /* ufdio: */
-diff -ur rpm-4.4.7.org/rpmio/rpmrpc.c rpm-4.4.7/rpmio/rpmrpc.c
---- rpm-4.4.7.org/rpmio/rpmrpc.c       2006-10-03 06:38:01.000000000 +0200
-+++ rpm-4.4.7/rpmio/rpmrpc.c   2006-10-17 22:35:59.040364250 +0200
-@@ -91,10 +91,6 @@
-     case URL_IS_FTP:
-       return ftpMkdir(path, mode);
-       /*@notreached@*/ break;
--    case URL_IS_HTTPS:
--    case URL_IS_HTTP:
--      return davMkdir(path, mode);
--      /*@notreached@*/ break;
-     case URL_IS_PATH:
-       path = lpath;
-       /*@fallthrough@*/
-@@ -118,15 +114,6 @@
-     case URL_IS_FTP:
-       return ftpChdir(path);
-       /*@notreached@*/ break;
--    case URL_IS_HTTPS:
--    case URL_IS_HTTP:
--#ifdef        NOTYET
--      return davChdir(path);
--#else
--      errno = EINVAL;         /* XXX W2DO? */
--      return -2;
--#endif
--      /*@notreached@*/ break;
-     case URL_IS_PATH:
-       path = lpath;
-       /*@fallthrough@*/
-@@ -151,10 +138,6 @@
-     case URL_IS_FTP:
-       return ftpRmdir(path);
-       /*@notreached@*/ break;
--    case URL_IS_HTTPS:
--    case URL_IS_HTTP:
--      return davRmdir(path);
--      /*@notreached@*/ break;
-     case URL_IS_PATH:
-       path = lpath;
-       /*@fallthrough@*/
-@@ -185,8 +168,6 @@
-     case URL_IS_DASH:
-     case URL_IS_HKP:
-     case URL_IS_FTP:          /* XXX TODO: implement. */
--    case URL_IS_HTTPS:                /* XXX TODO: implement. */
--    case URL_IS_HTTP:         /* XXX TODO: implement. */
-     default:
-       errno = EINVAL;         /* XXX W2DO? */
-       return -2;
-@@ -208,10 +189,6 @@
-     oldut = urlPath(oldpath, &oe);
-     switch (oldut) {
--    case URL_IS_HTTPS:
--    case URL_IS_HTTP:
--      return davRename(oldpath, newpath);
--      /*@notreached@*/ break;
-     case URL_IS_FTP:          /* XXX WRONG WRONG WRONG */
-     case URL_IS_PATH:
-     case URL_IS_UNKNOWN:
-@@ -233,8 +210,6 @@
-           return -2;
-       return ftpRename(oldpath, newpath);
-       /*@notreached@*/ break;
--    case URL_IS_HTTPS:                /* XXX WRONG WRONG WRONG */
--    case URL_IS_HTTP:         /* XXX WRONG WRONG WRONG */
-     case URL_IS_PATH:
-       oldpath = oe;
-       newpath = ne;
-@@ -258,8 +233,6 @@
-     oldut = urlPath(oldpath, &oe);
-     switch (oldut) {
--    case URL_IS_HTTPS:                /* XXX WRONG WRONG WRONG */
--    case URL_IS_HTTP:         /* XXX WRONG WRONG WRONG */
-     case URL_IS_FTP:          /* XXX WRONG WRONG WRONG */
-     case URL_IS_PATH:
-     case URL_IS_UNKNOWN:
-@@ -273,8 +246,6 @@
-     newut = urlPath(newpath, &ne);
-     switch (newut) {
--    case URL_IS_HTTPS:                /* XXX WRONG WRONG WRONG */
--    case URL_IS_HTTP:         /* XXX WRONG WRONG WRONG */
-     case URL_IS_FTP:          /* XXX WRONG WRONG WRONG */
-     case URL_IS_PATH:
- if (_rpmio_debug)
-@@ -306,10 +277,6 @@
-     case URL_IS_FTP:
-       return ftpUnlink(path);
-       /*@notreached@*/ break;
--    case URL_IS_HTTPS:
--    case URL_IS_HTTP:
--      return davUnlink(path);
--      /*@notreached@*/ break;
-     case URL_IS_PATH:
-       path = lpath;
-       /*@fallthrough@*/
-@@ -1308,10 +1275,6 @@
-     case URL_IS_FTP:
-       return ftpStat(path, st);
-       /*@notreached@*/ break;
--    case URL_IS_HTTPS:
--    case URL_IS_HTTP:
--      return davStat(path, st);
--      /*@notreached@*/ break;
-     case URL_IS_PATH:
-       path = lpath;
-       /*@fallthrough@*/
-@@ -1338,10 +1301,6 @@
-     case URL_IS_FTP:
-       return ftpLstat(path, st);
-       /*@notreached@*/ break;
--    case URL_IS_HTTPS:
--    case URL_IS_HTTP:
--      return davLstat(path, st);
--      /*@notreached@*/ break;
-     case URL_IS_PATH:
-       path = lpath;
-       /*@fallthrough@*/
-@@ -1373,8 +1332,6 @@
-     case URL_IS_DASH:
-     case URL_IS_HKP:
-     case URL_IS_FTP:          /* XXX TODO: implement. */
--    case URL_IS_HTTPS:                /* XXX TODO: implement. */
--    case URL_IS_HTTP:         /* XXX TODO: implement. */
-     default:
-       errno = EINVAL;         /* XXX W2DO? */
-       return -2;
-@@ -1399,8 +1356,6 @@
-     case URL_IS_DASH:
-     case URL_IS_HKP:
-     case URL_IS_FTP:          /* XXX TODO: implement. */
--    case URL_IS_HTTPS:                /* XXX TODO: implement. */
--    case URL_IS_HTTP:         /* XXX TODO: implement. */
-     default:
-       errno = EINVAL;         /* XXX W2DO? */
-       return -2;
-@@ -1425,8 +1380,6 @@
-     case URL_IS_DASH:
-     case URL_IS_HKP:
-     case URL_IS_FTP:          /* XXX TODO: implement. */
--    case URL_IS_HTTPS:                /* XXX TODO: implement. */
--    case URL_IS_HTTP:         /* XXX TODO: implement. */
-     default:
-       errno = EINVAL;         /* XXX W2DO? */
-       return -2;
-@@ -1451,8 +1404,6 @@
-     case URL_IS_DASH:
-     case URL_IS_HKP:
-     case URL_IS_FTP:          /* XXX TODO: implement. */
--    case URL_IS_HTTPS:                /* XXX TODO: implement. */
--    case URL_IS_HTTP:         /* XXX TODO: implement. */
-     default:
-       errno = EINVAL;         /* XXX W2DO? */
-       return -2;
-@@ -1477,8 +1428,6 @@
-     case URL_IS_DASH:
-     case URL_IS_HKP:
-     case URL_IS_FTP:          /* XXX TODO: implement. */
--    case URL_IS_HTTPS:                /* XXX TODO: implement. */
--    case URL_IS_HTTP:         /* XXX TODO: implement. */
-     default:
-       errno = EINVAL;         /* XXX W2DO? */
-       return -2;
-@@ -1503,8 +1452,6 @@
-     case URL_IS_DASH:
-     case URL_IS_HKP:
-     case URL_IS_FTP:          /* XXX TODO: implement. */
--    case URL_IS_HTTPS:                /* XXX TODO: implement. */
--    case URL_IS_HTTP:         /* XXX TODO: implement. */
-     default:
-       errno = EINVAL;         /* XXX W2DO? */
-       return -2;
-@@ -1529,8 +1476,6 @@
-     case URL_IS_DASH:
-     case URL_IS_HKP:
-     case URL_IS_FTP:          /* XXX TODO: implement. */
--    case URL_IS_HTTPS:                /* XXX TODO: implement. */
--    case URL_IS_HTTP:         /* XXX TODO: implement. */
-     default:
-       errno = EINVAL;         /* XXX W2DO? */
-       return -2;
-@@ -1558,8 +1503,6 @@
-     case URL_IS_DASH:
-     case URL_IS_HKP:
-     case URL_IS_FTP:          /* XXX TODO: implement. */
--    case URL_IS_HTTPS:                /* XXX TODO: implement. */
--    case URL_IS_HTTP:         /* XXX TODO: implement. */
-     default:
-       errno = EINVAL;         /* XXX W2DO? */
-       return -2;
-@@ -1577,14 +1520,6 @@
-     case URL_IS_FTP:
-       return ftpReadlink(path, buf, bufsiz);
-       /*@notreached@*/ break;
--    case URL_IS_HTTPS:
--    case URL_IS_HTTP:
--#ifdef        NOTYET
--      return davReadlink(path, buf, bufsiz);
--#else
--      return -2;
--#endif
--      /*@notreached@*/ break;
-     case URL_IS_PATH:
-       path = lpath;
-       /*@fallthrough@*/
-@@ -1617,8 +1552,6 @@
-       break;
-     case URL_IS_DASH:
-     case URL_IS_HKP:
--    case URL_IS_HTTPS:                /* XXX TODO: implement. */
--    case URL_IS_HTTP:         /* XXX TODO: implement. */
-     case URL_IS_FTP:          /* XXX TODO: implement. */
-     default:
-       errno = EINVAL;         /* XXX W2DO? */
-@@ -1685,8 +1618,6 @@
- fprintf(stderr, "*** Glob(%s,0x%x,%p,%p)\n", pattern, (unsigned)flags, (void *)errfunc, pglob);
- /*@=castfcnptr@*/
-     switch (ut) {
--    case URL_IS_HTTPS:
--    case URL_IS_HTTP:
-     case URL_IS_FTP:
- /*@-type@*/
-       pglob->gl_closedir = Closedir;
-@@ -1730,10 +1661,6 @@
-     case URL_IS_FTP:
-       return ftpOpendir(path);
-       /*@notreached@*/ break;
--    case URL_IS_HTTPS:        
--    case URL_IS_HTTP:
--      return davOpendir(path);
--      /*@notreached@*/ break;
-     case URL_IS_PATH:
-       path = lpath;
-       /*@fallthrough@*/
-@@ -1758,8 +1685,6 @@
-       return NULL;
-     if (ISAVMAGIC(dir))
-       return avReaddir(dir);
--    if (ISDAVMAGIC(dir))
--      return davReaddir(dir);
-     return readdir(dir);
- }
-@@ -1771,8 +1696,6 @@
-       return 0;
-     if (ISAVMAGIC(dir))
-       return avClosedir(dir);
--    if (ISDAVMAGIC(dir))
--      return davClosedir(dir);
-     return closedir(dir);
- }
-diff -ur rpm-4.4.7.org/rpmio/tget.c rpm-4.4.7/rpmio/tget.c
---- rpm-4.4.7.org/rpmio/tget.c 2004-11-19 17:52:58.000000000 +0100
-+++ rpm-4.4.7/rpmio/tget.c     2006-10-17 22:20:47.995427500 +0200
-@@ -9,8 +9,6 @@
- static int _debug = 0;
--int noNeon;
--
- #define       HTTPSPATH       "https://localhost/test.txt"
- #define       HTTPPATH        "http://localhost/test.txt"
- #define       FTPPATH         "ftp://localhost/test.txt"
-@@ -40,8 +38,6 @@
-  { "debug", 'd', POPT_ARG_VAL,        &_debug, -1,            NULL, NULL },
-  { "ftpdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_ftp_debug, -1,
-       N_("debug protocol data stream"), NULL},
-- { "noneon", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &noNeon, 1,
--      N_("disable use of libneon for HTTP"), NULL},
-  { "rpmiodebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmio_debug, -1,
-       N_("debug rpmio I/O"), NULL},
-  { "urldebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_url_debug, -1,
-diff -ur rpm-4.4.7.org/rpmio/tglob.c rpm-4.4.7/rpmio/tglob.c
---- rpm-4.4.7.org/rpmio/tglob.c        2004-11-19 17:53:05.000000000 +0100
-+++ rpm-4.4.7/rpmio/tglob.c    2006-10-17 22:21:01.712284750 +0200
-@@ -9,8 +9,6 @@
- static int _debug = 0;
--int noNeon;
--
- #define       HTTPSPATH       "https://localhost/rawhide/test/*.rpm"
- #if 0
- #define       HTTPPATH        "http://localhost/rawhide/test/*.rpm"
-@@ -52,8 +50,6 @@
-  { "debug", 'd', POPT_ARG_VAL,        &_debug, -1,            NULL, NULL },
-  { "ftpdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_ftp_debug, -1,
-       N_("debug protocol data stream"), NULL},
-- { "noneon", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &noNeon, 1,
--      N_("disable use of libneon for HTTP"), NULL},
-  { "rpmiodebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmio_debug, -1,
-       N_("debug rpmio I/O"), NULL},
-  { "urldebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_url_debug, -1,
-diff -ur rpm-4.4.7.org/rpmio/thkp.c rpm-4.4.7/rpmio/thkp.c
---- rpm-4.4.7.org/rpmio/thkp.c 2005-01-04 17:35:12.000000000 +0100
-+++ rpm-4.4.7/rpmio/thkp.c     2006-10-17 22:21:10.696846250 +0200
-@@ -10,8 +10,6 @@
- static int _debug = 0;
- static int _printing = 0;
--int noNeon;
--
- #if 0
- #define       HKPPATH         "hkp://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF5C75256"
- #else
-@@ -95,8 +93,6 @@
-       N_("debug protocol data stream"), NULL},
-  { "ftpdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_ftp_debug, -1,
-       N_("debug protocol data stream"), NULL},
-- { "noneon", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &noNeon, 1,
--      N_("disable use of libneon for HTTP"), NULL},
-  { "rpmiodebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmio_debug, -1,
-       N_("debug rpmio I/O"), NULL},
-  { "urldebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_url_debug, -1,
-diff -ur rpm-4.4.7.org/rpmio/tput.c rpm-4.4.7/rpmio/tput.c
---- rpm-4.4.7.org/rpmio/tput.c 2004-11-19 17:53:11.000000000 +0100
-+++ rpm-4.4.7/rpmio/tput.c     2006-10-17 22:21:25.841792750 +0200
-@@ -9,8 +9,6 @@
- static int _debug = 0;
--int noNeon;
--
- #define       HTTPSPATH       "https://localhost/rawhide/toad/tput.txt"
- #define       HTTPPATH        "http://localhost/rawhide/toad/tput.txt"
- #define       FTPPATH         "ftp://localhost/home/test/tput.txt"
-@@ -100,8 +98,6 @@
-  { "debug", 'd', POPT_ARG_VAL,        &_debug, -1,            NULL, NULL },
-  { "ftpdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_ftp_debug, -1,
-       N_("debug protocol data stream"), NULL},
-- { "noneon", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &noNeon, 1,
--      N_("disable use of libneon for HTTP"), NULL},
-  { "rpmiodebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmio_debug, -1,
-       N_("debug rpmio I/O"), NULL},
-  { "urldebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_url_debug, -1,
---- rpm-4.4.8/rpmio/url.c.orig 2007-01-20 21:33:50.000000000 +0100
-+++ rpm-4.4.8/rpmio/url.c      2007-04-08 19:57:45.646376012 +0200
-@@ -146,7 +146,6 @@
-                       (u->scheme ? u->scheme : ""));
-       /*@=usereleased@*/
-     }
--    xx = davFree(u);
-     u->buf = _free(u->buf);
-     u->url = _free(u->url);
-     u->scheme = _free((void *)u->scheme);
-@@ -348,9 +347,6 @@
- } urlstrings[] = {
-     { "file://",      URL_IS_PATH },
-     { "ftp://",               URL_IS_FTP },
--    { "hkp://",               URL_IS_HKP },
--    { "http://",      URL_IS_HTTP },
--    { "https://",     URL_IS_HTTPS },
-     { "-",            URL_IS_DASH },
-     { NULL,           URL_IS_UNKNOWN }
- };
diff --git a/rpm-no-sqlite.patch b/rpm-no-sqlite.patch
deleted file mode 100644 (file)
index 5a686a5..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
---- rpm-4.4.9/configure.ac.orig        2005-11-19 01:08:41.529577632 +0100
-+++ rpm-4.4.9/configure.ac     2005-11-19 01:09:44.521001480 +0100
-@@ -618,24 +596,6 @@
- WITH_SQLITE3_INCLUDE=
- WITH_SQLITE3_LIB=
--AC_CHECK_HEADER([sqlite3.h], [
--  AC_CHECK_LIB(sqlite, sqlite3_open, [
--    AC_DEFINE(HAVE_SQLITE3_H, 1, [Define if you have the <sqlite3.h> header file])
--    WITH_SQLITE3_SUBDIR=
--    WITH_SQLITE3_INCLUDE=
--    WITH_SQLITE3_LIB="-lsqlite"
--    DBLIBSRCS="$DBLIBSRCS sqlite.c"
--  ])
--],[
--  if test -d sqlite ; then
--    AC_DEFINE(HAVE_SQLITE3_H, 1, [Define if you have the <sqlite3.h> header file])
--    WITH_SQLITE3_SUBDIR=sqlite
--    WITH_SQLITE3_INCLUDE="-I\${top_srcdir}/${WITH_SQLITE3_SUBDIR} -I\${top_srcdir}/${WITH_SQLITE3_SUBDIR}/src"
--    WITH_SQLITE3_LIB="\${top_builddir}/${WITH_SQLITE3_SUBDIR}/libsqlite3.la"
--    DBLIBSRCS="$DBLIBSRCS sqlite.c"
--  fi
--])
--
- AC_SUBST(WITH_SQLITE3_SUBDIR)
- AC_SUBST(WITH_SQLITE3_INCLUDE)
- AC_SUBST(WITH_SQLITE3_LIB)
diff --git a/rpm-obsolete-rpmrc.patch b/rpm-obsolete-rpmrc.patch
deleted file mode 100644 (file)
index 9d32271..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -u -b -B -w -p -r1.148 rpmmodule.c
---- rpm/python/rpmmodule.c 21 May 2007 16:17:04 -0000      1.148
-+++ rpm/python/rpmmodule.c 23 May 2007 14:00:41 -0000
-@@ -241,7 +241,7 @@ void init_rpm(void)
-     if (m == NULL)
-        return;
-
--    rpmReadConfigFiles(rpmRcfiles, NULL);
-+    rpmReadConfigFiles(NULL, NULL);
-
-     d = PyModule_GetDict(m);
-
diff --git a/rpm-p4.patch b/rpm-p4.patch
deleted file mode 100644 (file)
index 3b29c69..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- rpm-4.4.1/lib/rpmrc.c.orig 2005-08-02 21:33:34.000000000 +0200
-+++ rpm-4.4.1/lib/rpmrc.c      2005-10-11 07:51:45.000000000 +0200
-@@ -1076,6 +1076,7 @@
-                       // Pentium 4 Xeon, Pentium 4 Xeon MP,
-                       // Celeron, Mobile Celron                    (0.13um)
-           case 3:     // Pentium 4, Celeron                        (0.09um)
-+          case 4:     // Pentium 4 540J
-               return 1;
-       }
-     return 0;
diff --git a/rpm-rpm5-patchset-8021.patch b/rpm-rpm5-patchset-8021.patch
deleted file mode 100644 (file)
index 7e9a1c3..0000000
+++ /dev/null
@@ -1,291 +0,0 @@
-Index: rpm/rpmdb/db3.c
-RCS File: /v/rpm/cvs/rpm/rpmdb/db3.c,v
-rcsdiff -q -kk '-r1.64.2.3' '-r1.64.2.4' -u '/v/rpm/cvs/rpm/rpmdb/db3.c,v' 2>/dev/null
---- db3.c      2007/06/10 17:12:34     1.64.2.3
-+++ db3.c      2007/07/27 18:51:24     1.64.2.4
-@@ -239,57 +239,6 @@
-     return 0;
- }
--#if 0
--#if HAVE_LIBPTHREAD
--#if HAVE_PTHREAD_H
--#include <pthread.h>
--#endif
--
--/**
-- * Check that posix mutexes are shared.
-- * @return            0 == shared.
-- */
--static int db3_pthread_nptl(void)
--      /*@*/
--{
--    pthread_mutex_t mutex;
--    pthread_mutexattr_t mutexattr, *mutexattrp = NULL;
--    pthread_cond_t cond;
--    pthread_condattr_t condattr, *condattrp = NULL;
--    int ret = 0;
--
--    ret = pthread_mutexattr_init(&mutexattr);
--    if (ret == 0) {
--      ret = pthread_mutexattr_setpshared(&mutexattr, PTHREAD_PROCESS_SHARED);
--      mutexattrp = &mutexattr;
--    }
--
--    if (ret == 0)
--      ret = pthread_mutex_init(&mutex, mutexattrp);
--    if (mutexattrp != NULL)
--      pthread_mutexattr_destroy(mutexattrp);
--    if (ret)
--      return ret;
--    (void) pthread_mutex_destroy(&mutex);
--
--    ret = pthread_condattr_init(&condattr);
--    if (ret == 0) {
--      ret = pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED);
--      condattrp = &condattr;
--    }
--
--    if (ret == 0)
--      ret = pthread_cond_init(&cond, condattrp);
--
--    if (condattrp != NULL)
--      (void)pthread_condattr_destroy(condattrp);
--    if (ret == 0)
--      (void) pthread_cond_destroy(&cond);
--    return ret;
--}
--#endif
--#endif
--
- #if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 5)
- /**
-  * Is process/thread still alive?
-@@ -374,7 +323,7 @@
-  /* 4.1: dbenv->set_data_dir(???) */
-  /* 4.1: dbenv->set_encrypt(???) */
--    dbenv->set_errcall(dbenv, rpmdb->db_errcall);
-+    dbenv->set_errcall(dbenv, (void *)rpmdb->db_errcall);
-     dbenv->set_errfile(dbenv, rpmdb->db_errfile);
-     dbenv->set_errpfx(dbenv, rpmdb->db_errpfx);
-     /*@=noeffectuncon@*/
-@@ -425,6 +374,14 @@
- #endif
-       xx = dbenv->set_verbose(dbenv, DB_VERB_WAITSFOR,
-               (dbi->dbi_verbose & DB_VERB_WAITSFOR));
-+#if defined(DB_VERB_FILEOPS)
-+      xx = dbenv->set_verbose(dbenv, DB_VERB_FILEOPS,
-+              (dbi->dbi_verbose & DB_VERB_FILEOPS));
-+#endif
-+#if defined(DB_VERB_FILEOPS_ALL)
-+      xx = dbenv->set_verbose(dbenv, DB_VERB_FILEOPS_ALL,
-+              (dbi->dbi_verbose & DB_VERB_FILEOPS_ALL));
-+#endif
-       if (dbi->dbi_mmapsize) {
-           xx = dbenv->set_mp_mmapsize(dbenv, dbi->dbi_mmapsize);
-@@ -637,8 +594,13 @@
- /*@-boundswrite@*/
-     if (dbcp) *dbcp = NULL;
- /*@=boundswrite@*/
-+#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 6)
-+    rc = dbcursor->dup(dbcursor, dbcp, flags);
-+    rc = cvtdberr(dbi, "dbcursor->dup", rc, _debug);
-+#else
-     rc = dbcursor->c_dup(dbcursor, dbcp, flags);
-     rc = cvtdberr(dbi, "dbcursor->c_dup", rc, _debug);
-+#endif
-     /*@-nullstate @*/ /* FIX: *dbcp can be NULL */
-     return rc;
-     /*@=nullstate @*/
-@@ -654,8 +616,13 @@
-     /* XXX db3copen error pathways come through here. */
-     if (dbcursor != NULL) {
-+#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 6)
-+      rc = dbcursor->close(dbcursor);
-+      rc = cvtdberr(dbi, "dbcursor->close", rc, _debug);
-+#else
-       rc = dbcursor->c_close(dbcursor);
-       rc = cvtdberr(dbi, "dbcursor->c_close", rc, _debug);
-+#endif
-     }
-     return rc;
- }
-@@ -704,8 +671,13 @@
-       rc = db->put(db, dbi->dbi_txnid, key, data, 0);
-       rc = cvtdberr(dbi, "db->put", rc, _debug);
-     } else {
-+#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 6)
-+      rc = dbcursor->put(dbcursor, key, data, DB_KEYLAST);
-+      rc = cvtdberr(dbi, "dbcursor->put", rc, _debug);
-+#else
-       rc = dbcursor->c_put(dbcursor, key, data, DB_KEYLAST);
-       rc = cvtdberr(dbi, "dbcursor->c_put", rc, _debug);
-+#endif
-     }
-     return rc;
-@@ -728,14 +700,26 @@
-       int _printit;
-       /* XXX TODO: insure that cursor is positioned with duplicates */
-+#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 6)
-+      rc = dbcursor->get(dbcursor, key, data, DB_SET);
-+      /* XXX DB_NOTFOUND can be returned */
-+      _printit = (rc == DB_NOTFOUND ? 0 : _debug);
-+      rc = cvtdberr(dbi, "dbcursor->get", rc, _printit);
-+#else
-       rc = dbcursor->c_get(dbcursor, key, data, DB_SET);
-       /* XXX DB_NOTFOUND can be returned */
-       _printit = (rc == DB_NOTFOUND ? 0 : _debug);
-       rc = cvtdberr(dbi, "dbcursor->c_get", rc, _printit);
-+#endif
-       if (rc == 0) {
-+#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 6)
-+          rc = dbcursor->del(dbcursor, flags);
-+          rc = cvtdberr(dbi, "dbcursor->del", rc, _debug);
-+#else
-           rc = dbcursor->c_del(dbcursor, flags);
-           rc = cvtdberr(dbi, "dbcursor->c_del", rc, _debug);
-+#endif
-       }
-     }
-@@ -761,11 +745,19 @@
-       _printit = (rc == DB_NOTFOUND ? 0 : _debug);
-       rc = cvtdberr(dbi, "db->get", rc, _printit);
-     } else {
-+#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 6)
-+      /* XXX db3 does DB_FIRST on uninitialized cursor */
-+      rc = dbcursor->get(dbcursor, key, data, flags);
-+      /* XXX DB_NOTFOUND can be returned */
-+      _printit = (rc == DB_NOTFOUND ? 0 : _debug);
-+      rc = cvtdberr(dbi, "dbcursor->get", rc, _printit);
-+#else
-       /* XXX db3 does DB_FIRST on uninitialized cursor */
-       rc = dbcursor->c_get(dbcursor, key, data, flags);
-       /* XXX DB_NOTFOUND can be returned */
-       _printit = (rc == DB_NOTFOUND ? 0 : _debug);
-       rc = cvtdberr(dbi, "dbcursor->c_get", rc, _printit);
-+#endif
-     }
-     return rc;
-@@ -785,11 +777,19 @@
-     assert(db != NULL);
-     assert(dbcursor != NULL);
-+#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 6)
-+    /* XXX db3 does DB_FIRST on uninitialized cursor */
-+    rc = dbcursor->pget(dbcursor, key, pkey, data, flags);
-+    /* XXX DB_NOTFOUND can be returned */
-+    _printit = (rc == DB_NOTFOUND ? 0 : _debug);
-+    rc = cvtdberr(dbi, "dbcursor->pget", rc, _printit);
-+#else
-     /* XXX db3 does DB_FIRST on uninitialized cursor */
-     rc = dbcursor->c_pget(dbcursor, key, pkey, data, flags);
-     /* XXX DB_NOTFOUND can be returned */
-     _printit = (rc == DB_NOTFOUND ? 0 : _debug);
-     rc = cvtdberr(dbi, "dbcursor->c_pget", rc, _printit);
-+#endif
-     return rc;
- }
-@@ -805,8 +805,13 @@
-     int rc = 0;
-     flags = 0;
-+#if (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 6)
-+    rc = dbcursor->count(dbcursor, &count, flags);
-+    rc = cvtdberr(dbi, "dbcursor->count", rc, _debug);
-+#else
-     rc = dbcursor->c_count(dbcursor, &count, flags);
-     rc = cvtdberr(dbi, "dbcursor->c_count", rc, _debug);
-+#endif
-     if (rc) return rc;
- /*@-boundswrite@*/
-     if (countp) *countp = count;
-@@ -995,7 +1000,7 @@
-       if (rc || dbenv == NULL) goto exit;
-       /*@-noeffectuncon@*/ /* FIX: annotate db3 methods */
--      dbenv->set_errcall(dbenv, rpmdb->db_errcall);
-+      dbenv->set_errcall(dbenv, (void *)rpmdb->db_errcall);
-       dbenv->set_errfile(dbenv, rpmdb->db_errfile);
-       dbenv->set_errpfx(dbenv, rpmdb->db_errpfx);
-  /*   dbenv->set_paniccall(???) */
-@@ -1176,19 +1181,6 @@
-      */
-     if (dbi->dbi_use_dbenv) {
--#if 0
--#if HAVE_LIBPTHREAD
--      if (rpmdb->db_dbenv == NULL) {
--          /* Set DB_PRIVATE if posix mutexes are not shared. */
--          xx = db3_pthread_nptl();
--          if (xx) {
--              dbi->dbi_eflags |= DB_PRIVATE;
--              rpmMessage(RPMMESS_DEBUG, _("unshared posix mutexes found(%d), adding DB_PRIVATE, using fcntl lock\n"), xx);
--          }
--      }
--#endif
--#endif
--
-       if (access(dbhome, W_OK) == -1) {
-           /* dbhome is unwritable, don't attempt DB_CREATE on DB->open ... */
-Index: rpm/rpmdb/dbconfig.c
-RCS File: /v/rpm/cvs/rpm/rpmdb/dbconfig.c,v
-rcsdiff -q -kk '-r1.38' '-r1.38.2.1' -u '/v/rpm/cvs/rpm/rpmdb/dbconfig.c,v' 2>/dev/null
---- dbconfig.c 2007/05/25 17:36:33     1.38
-+++ dbconfig.c 2007/07/27 18:51:24     1.38.2.1
-@@ -109,11 +109,19 @@
-       NULL, NULL },
-  { "use_environ", 0,POPT_BIT_SET,     &db3dbi.dbi_eflags, DB_USE_ENVIRON,
-       NULL, NULL },
-+#if defined(DB_IGNORE_LEASE)
-+ { "ignore_lease", 0,POPT_BIT_SET,     &db3dbi.dbi_eflags, DB_IGNORE_LEASE,
-+       NULL, NULL },
-+#endif
-  { "txn_sync",        0,POPT_BIT_SET, &db3dbi.dbi_tflags, DB_TXN_SYNC,
-       NULL, NULL },
-  { "txn_nowait",0,POPT_BIT_SET,       &db3dbi.dbi_tflags, DB_TXN_NOWAIT,
-       NULL, NULL },
-+#if defined(DB_TXN_WAIT)
-+ { "txn_wait",0,POPT_BIT_SET,  &db3dbi.dbi_tflags, DB_TXN_WAIT,
-+       NULL, NULL },
-+#endif
- #if defined(NOTYET)
- DB_AUTO_COMMIT
-@@ -274,6 +282,14 @@
- #endif
-  { "waitsfor",        0,POPT_BIT_SET, &db3dbi.dbi_verbose, DB_VERB_WAITSFOR,
-       NULL, NULL },
-+#if defined(DB_VERB_FILEOPS)
-+ { "fileops",   0,POPT_BIT_SET, &db3dbi.dbi_verbose, DB_VERB_FILEOPS,
-+        NULL, NULL },
-+#endif
-+#if defined(DB_VERB_FILEOPS_ALL)
-+ { "fileops_all",0,POPT_BIT_SET,&db3dbi.dbi_verbose, DB_VERB_FILEOPS_ALL,
-+        NULL, NULL },
-+#endif
-  { "verbose", 0,POPT_ARG_VAL,         &db3dbi.dbi_verbose, -1,
-       NULL, NULL },
-@@ -335,6 +351,11 @@
-       NULL, NULL },
- /* XXX DB_ENV->set_timeout */
-+#if defined(NOTYET)
-+DB_SET_LOCK_TIMEOUT
-+DB_SET_TXN_NOW
-+DB_SET_TXN_TIMEOUT
-+#endif
- /* XXX DB_ENV->get_timeout */
- /* ==== Logging: */
diff --git a/rpm-rpmdb.patch b/rpm-rpmdb.patch
deleted file mode 100644 (file)
index 12a8d16..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
---- rpm-4.4.9/rpmdb/rpmdb.c.orig       2007-06-18 20:32:27.000000000 +0200
-+++ rpm-4.4.9/rpmdb/rpmdb.c    2007-06-18 20:34:07.000000000 +0200
-@@ -3088,7 +3088,6 @@
-     HAE_t hae = (HAE_t) headerAddEntry;
-     HFD_t hfd = headerFreeData;
-     sigset_t signalMask;
--    uint32_t hcolor = 0;
-     const char ** baseNames;
-     rpmTagType bnt;
-     const char ** dirNames;
-@@ -3122,8 +3121,8 @@
-     }
-     /* Add the package color if not present. */
--    if (!hge(h, RPMTAG_PACKAGECOLOR, &bnt, (void **) &hcolor, &count)) {
--      hcolor = hGetColor(h);
-+    if (!headerIsEntry(h, RPMTAG_PACKAGECOLOR)) {
-+      uint32_t hcolor = hGetColor(h);
-       xx = hae(h, RPMTAG_PACKAGECOLOR, RPM_INT32_TYPE, &hcolor, 1);
-     }
diff --git a/rpm-rpmrc.patch b/rpm-rpmrc.patch
deleted file mode 100644 (file)
index 834ed4b..0000000
+++ /dev/null
@@ -1,140 +0,0 @@
---- rpm-4.4.8/rpmrc.in.orig    2007-02-03 21:02:07.000000000 +0100
-+++ rpm-4.4.8/rpmrc.in 2007-04-08 10:43:32.083363453 +0200
-@@ -13,69 +13,67 @@
- # Values for RPM_OPT_FLAGS for various platforms
- # "fat" binary with both archs, for Darwin
--optflags: fat -O2 -g -arch i386 -arch ppc
-+optflags: fat -O2 -arch i386 -arch ppc%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_fat: %{specflags_fat}}}
--optflags: i386 -O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables
--optflags: i486 -O2 -g -m32 -march=i486 -fasynchronous-unwind-tables
--optflags: i586 -O2 -g -m32 -march=i586 -fasynchronous-unwind-tables
--optflags: i686 -O2 -g -m32 -march=i686 -mtune=generic -fasynchronous-unwind-tables
--optflags: pentium3 -O2 -g -m32 -march=pentium3 -fasynchronous-unwind-tables
--optflags: pentium4 -O2 -g -m32 -march=pentium4 -fasynchronous-unwind-tables
--optflags: athlon -O2 -g -m32 -march=athlon -fasynchronous-unwind-tables
--optflags: ia64 -O2 -g
--optflags: x86_64 -O2 -g -m64 -mtune=generic
--optflags: amd64 -O2 -g -m64 -mtune=generic
--optflags: ia32e -O2 -g -m64 -mtune=generic
--
--optflags: alpha -O2 -g -mieee
--optflags: alphaev5 -O2 -g -mieee -mcpu=ev5
--optflags: alphaev56 -O2 -g -mieee -mcpu=ev56
--optflags: alphapca56 -O2 -g -mieee -mcpu=pca56
--optflags: alphaev6 -O2 -g -mieee -mcpu=ev6
--optflags: alphaev67 -O2 -g -mieee -mcpu=ev67
--
--optflags: sparc -O2 -g -m32 -mcpu=v7 -mtune=ultrasparc
--optflags: sparcv8 -O2 -g -m32 -mcpu=v8 -mtune=ultrasparc
--optflags: sparcv9 -O2 -g -m32 -mcpu=ultrasparc
--optflags: sparc64 -O2 -g -m64 -mcpu=ultrasparc
--
--optflags: m68k -O2 -g -fomit-frame-pointer
--
--optflags: ppc -O2 -g -m32
--optflags: ppc8260 -O2 -g -m32
--optflags: ppc8560 -O2 -g -m32
--optflags: ppc32dy4 -O2 -g -m32
--optflags: ppciseries -O2 -g -m32
--optflags: ppcpseries -O2 -g -m32
--optflags: ppc64 -O2 -g -m64 -mminimal-toc
--optflags: ppciseries -O2 -g -m64 -mminimal-toc
--optflags: ppcpseries -O2 -g -m64 -mminimal-toc
--
--optflags: parisc -O2 -g -mpa-risc-1-0
--optflags: hppa1.0 -O2 -g -mpa-risc-1-0
--optflags: hppa1.1 -O2 -g -mpa-risc-1-0
--optflags: hppa1.2 -O2 -g -mpa-risc-1-0
--optflags: hppa2.0 -O2 -g -mpa-risc-1-0
--
--optflags: mips -O2 -g
--optflags: mipsel -O2 -g
--
--optflags: armv3l -O2 -g -fsigned-char -fomit-frame-pointer -march=armv3
--optflags: armv4b -O2 -g -fsigned-char -fomit-frame-pointer -march=armv4
--optflags: armv4l -O2 -g -fsigned-char -fomit-frame-pointer -march=armv4
--optflags: armv5teb -O2 -g -fsigned-char -fomit-frame-pointer -march=armv5te
--optflags: armv5tel -O2 -g -fsigned-char -fomit-frame-pointer -march=armv5te
--
--optflags: atarist -O2 -g -fomit-frame-pointer
--optflags: atariste -O2 -g -fomit-frame-pointer
--optflags: ataritt -O2 -g -fomit-frame-pointer
--optflags: falcon -O2 -g -fomit-frame-pointer
--optflags: atariclone -O2 -g -fomit-frame-pointer
--optflags: milan -O2 -g -fomit-frame-pointer
--optflags: hades -O2 -g -fomit-frame-pointer
-+optflags: i386 -O2 -fno-strict-aliasing -fwrapv -march=i386%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ia32: %{specflags_ia32}}%{?specflags_i386: %{specflags_i386}}}
-+optflags: i486 -O2 -fno-strict-aliasing -fwrapv -march=i486%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ia32: %{specflags_ia32}}%{?specflags_i486: %{specflags_i486}}}
-+optflags: i586 -O2 -fno-strict-aliasing -fwrapv -march=i586%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ia32: %{specflags_ia32}}%{?specflags_i586: %{specflags_i586}}}
-+optflags: i686 -O2 -fno-strict-aliasing -fwrapv -march=i686 -mtune=pentium4%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ia32: %{specflags_ia32}}%{?specflags_i686: %{specflags_i686}}}
-+optflags: pentium3 -O2 -fno-strict-aliasing -fwrapv -march=pentium3%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ia32: %{specflags_ia32}}%{?specflags_pentium3: %{specflags_pentium3}}}
-+optflags: pentium4 -O2 -fno-strict-aliasing -fwrapv -march=pentium4%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ia32: %{specflags_ia32}}%{?specflags_pentium4: %{specflags_pentium4}}}
-+optflags: athlon -O2 -fno-strict-aliasing -fwrapv -march=athlon%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ia32: %{specflags_ia32}}%{?specflags_athlon: %{specflags_athlon}}}
-+optflags: ia64 -O2 -fno-strict-aliasing -fwrapv%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ia64: %{specflags_ia64}}}
-+optflags: x86_64 -O2 -fno-strict-aliasing -fwrapv -march=x86-64%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_x86_64: %{specflags_x86_64}}}
-+optflags: amd64 -O2 -fno-strict-aliasing -fwrapv -march=k8%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_amd64: %{specflags_amd64}}}
-+optflags: ia32e -O2 -fno-strict-aliasing -fwrapv -march=nocona%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ia32e: %{specflags_ia32e}}}
-+
-+optflags: alpha -O2 -fno-strict-aliasing -fwrapv -mieee%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_alpha: %{specflags_alpha}}}
-+optflags: alphaev5 -O2 -fno-strict-aliasing -fwrapv -mieee -mcpu=ev5%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_alpha: %{specflags_alpha}}%{?specflags_alphaev5: %{specflags_alphaev5}}}
-+optflags: alphaev56 -O2 -fno-strict-aliasing -fwrapv -mieee -mcpu=ev56%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_alpha: %{specflags_alpha}}%{?specflags_alphaev56: %{specflags_alphaev56}}}
-+optflags: alphapca56 -O2 -fno-strict-aliasing -fwrapv -mieee -mcpu=pca56%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_alpha: %{specflags_alpha}}%{?specflags_alphapca56: %{specflags_alphapca56}}}
-+optflags: alphaev6 -O2 -fno-strict-aliasing -fwrapv -mieee -mcpu=ev6%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_alpha: %{specflags_alpha}}%{?specflags_alphaev6: %{specflags_alphaev6}}}
-+optflags: alphaev67 -O2 -fno-strict-aliasing -fwrapv -mieee -mcpu=ev67%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_alpha: %{specflags_alpha}}%{?specflags_alphaev67: %{specflags_alphaev67}}}
-+
-+optflags: sparc -O2 -fno-strict-aliasing -fwrapv -m32 -mcpu=v7 -mtune=ultrasparc%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_sparc: %{specflags_sparc}}}
-+optflags: sparcv8 -O2 -fno-strict-aliasing -fwrapv -m32 -mcpu=v8 -mtune=ultrasparc%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_sparc: %{specflags_sparc}}%{?specflags_sparcv8: %{specflags_sparcv8}}}
-+optflags: sparcv9 -O2 -fno-strict-aliasing -fwrapv -m32 -mcpu=ultrasparc%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_sparc: %{specflags_sparc}}%{?specflags_sparcv9: %{specflags_sparcv9}}}
-+optflags: sparc64 -O2 -fno-strict-aliasing -fwrapv -mcpu=ultrasparc%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_sparc: %{specflags_sparc}}%{?specflags_sparc64: %{specflags_sparc64}}}
-+
-+optflags: m68k -O2 -fno-strict-aliasing -fwrapv -fomit-frame-pointer%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_m68k: %{specflags_m68k}}}
-+
-+optflags: ppc -O2 -fno-strict-aliasing -fwrapv -fsigned-char%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ppc: %{specflags_ppc}}}
-+optflags: ppc8260 -O2 -fno-strict-aliasing -fwrapv -fsigned-char%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ppc8260: %{specflags_ppc8260}}}
-+optflags: ppc8560 -O2 -fno-strict-aliasing -fwrapv -fsigned-char%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ppc8560: %{specflags_ppc8560}}}
-+optflags: ppc32dy4 -O2 -fno-strict-aliasing -fwrapv -fsigned-char%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ppc32dy4: %{specflags_ppc32dy4}}}
-+optflags: ppciseries -O2 -fno-strict-aliasing -fwrapv -fsigned-char%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ppciseries: %{specflags_ppciseries}}}
-+optflags: ppcpseries -O2 -fno-strict-aliasing -fwrapv -fsigned-char%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ppcpseries: %{specflags_ppcpseries}}}
-+optflags: ppc64 -O2 -fno-strict-aliasing -fwrapv -fsigned-char%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ppc64: %{specflags_ppc64}}}
-+
-+optflags: parisc -O2 -fno-strict-aliasing -fwrapv -mpa-risc-1-0%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_parisc: %{specflags_parisc}}}
-+optflags: hppa1.0 -O2 -fno-strict-aliasing -fwrapv -mpa-risc-1-0%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_hppa1_0: %{specflags_hppa1_0}}}
-+optflags: hppa1.1 -O2 -fno-strict-aliasing -fwrapv -mpa-risc-1-0%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_hppa1_1: %{specflags_hppa1_1}}}
-+optflags: hppa1.2 -O2 -fno-strict-aliasing -fwrapv -mpa-risc-1-0%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_hppa1_2: %{specflags_hppa1_2}}}
-+optflags: hppa2.0 -O2 -fno-strict-aliasing -fwrapv -mpa-risc-1-0%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_hppa2_0: %{specflags_hppa2_0}}}
-+
-+optflags: mips -O2 -fno-strict-aliasing -fwrapv%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_mips: %{specflags_mips}}}
-+optflags: mipsel -O2 -fno-strict-aliasing -fwrapv%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_mips: %{specflags_mips}}%{?specflags_mipsel: %{specflags_mipsel}}}
-+
-+optflags: armv3l -O2 -fno-strict-aliasing -fwrapv -fsigned-char -fomit-frame-pointer -march=armv3%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_armv3l: %{specflags_armv3l}}}
-+optflags: armv4b -O2 -fno-strict-aliasing -fwrapv -fsigned-char -fomit-frame-pointer -march=armv4%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_armv4b: %{specflags_armv4b}}}
-+optflags: armv4l -O2 -fno-strict-aliasing -fwrapv -fsigned-char -fomit-frame-pointer -march=armv4%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_armv4l: %{specflags_armv4l}}}
-+optflags: armv5teb -O2 -fno-strict-aliasing -fwrapv -fsigned-char -fomit-frame-pointer -march=armv5te%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_armv5teb: %{specflags_armv5teb}}}
-+optflags: armv5tel -O2 -fno-strict-aliasing -fwrapv -fsigned-char -fomit-frame-pointer -march=armv5te%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_armv5tel: %{specflags_armv5tel}}}
-+
-+optflags: atarist -O2 -fno-strict-aliasing -fwrapv -fomit-frame-pointer%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_atarist: %{specflags_atarist}}}
-+optflags: atariste -O2 -fno-strict-aliasing -fwrapv -fomit-frame-pointer%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_atariste: %{specflags_atariste}}}
-+optflags: ataritt -O2 -fno-strict-aliasing -fwrapv -fomit-frame-pointer%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ataritt: %{specflags_ataritt}}}
-+optflags: falcon -O2 -fno-strict-aliasing -fwrapv -fomit-frame-pointer%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_falcon: %{specflags_falcon}}}
-+optflags: atariclone -O2 -fno-strict-aliasing -fwrapv -fomit-frame-pointer%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_atariclone: %{specflags_atariclone}}}
-+optflags: milan -O2 -fno-strict-aliasing -fwrapv -fomit-frame-pointer%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_milan: %{specflags_milan}}}
-+optflags: hades -O2 -fno-strict-aliasing -fwrapv -fomit-frame-pointer%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_hades: %{specflags_hades}}}
--optflags: s390 -O2 -g -m31
--optflags: s390x -O2 -g -m64
-+optflags: s390 -O2 -fno-strict-aliasing -fwrapv%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_s390: %{specflags_s390}}}
-+optflags: s390x -O2 -fno-strict-aliasing -fwrapv%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_s390: %{specflags_s390}}%{?specflags_s390x: %{specflags_s390x}}}
- #############################################################
- # Canonical arch names and numbers
-@@ -418,7 +416,7 @@
- buildarch_compat: amd64: x86_64
- buildarch_compat: ia32e: x86_64
--macrofiles:   @USRLIBRPM@/macros:@USRLIBRPM@/%{_target}/macros:@SYSCONFIGDIR@/macros.*:@SYSCONFIGDIR@/macros:@SYSCONFIGDIR@/%{_target}/macros:~/etc/.rpmmacros:~/.rpmmacros
-+macrofiles:   @USRLIBRPM@/macros:@USRLIBRPM@/macros.build:@USRLIBRPM@/%{_target}/macros:@SYSCONFIGDIR@/macros.*:@SYSCONFIGDIR@/macros:@SYSCONFIGDIR@/%{_target}/macros:~/etc/.rpmmacros:~/.rpmmacros
- # \endverbatim
- #*/
diff --git a/rpm-system_libs-more.patch b/rpm-system_libs-more.patch
deleted file mode 100644 (file)
index 822f26a..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
---- rpm-4.4.8/configure.ac.orig        2007-04-08 16:26:29.303992000 +0200
-+++ rpm-4.4.8/configure.ac     2007-04-08 16:35:11.461748504 +0200
-@@ -662,7 +662,7 @@
- dnl ------------------ with    internal db
- AC_DEFINE(HAVE_DB3_DB_H, 1, [Define if you have the <db3/db.h> header file])
--WITH_DB_SUBDIR=db3
-+WITH_DB_SUBDIR=
- WITH_INTERNAL_DB=1
- DBLIBSRCS="db3.c"
---- rpm-4.4.8/rpmdb/Makefile.am.orig   2007-02-03 19:58:47.000000000 +0100
-+++ rpm-4.4.8/rpmdb/Makefile.am        2007-04-08 16:41:48.380367607 +0200
-@@ -25,21 +25,17 @@
- tjfn_LDADD = librpmdb.la
- pkgincdir = $(pkgincludedir)
--pkginc_HEADERS = db.h header.h hdrinline.h rpmdb.h
-+pkginc_HEADERS = header.h hdrinline.h rpmdb.h
- noinst_HEADERS = fprint.h header_internal.h legacy.h
- pkgbindir = @USRLIBRPM@
--pkgbin_PROGRAMS = \
--      rpmdb_archive rpmdb_checkpoint rpmdb_deadlock rpmdb_dump \
--      rpmdb_hotbackup rpmdb_load rpmdb_printlog rpmdb_recover \
--      rpmdb_svc rpmdb_stat rpmdb_upgrade rpmdb_verify 
- mylibs = librpmdb.la
- LIBS =
- # XXX watchout, ../db3/libdb.la created by this Makefile may surprise
--libdb_la = $(top_builddir)/$(WITH_DB_SUBDIR)/libdb.la
-+libdb_la =
- # XXX grrr, RPM_BUILD_ROOT prevents build pollution if/when -lrpm different
- LDFLAGS = -L$(RPM_BUILD_ROOT)$(usrlibdir) -L$(DESTDIR)$(usrlibdir)
-@@ -56,16 +52,13 @@
-       @WITH_POPT_LIB@ \
-       @WITH_SQLITE3_LIB@ \
-       @WITH_LIBELF_LIB@
--librpmdb_la_LIBADD = $(DBLIBOBJS) $(libdb_la)
-+librpmdb_la_LIBADD = $(DBLIBOBJS) -ldb
- librpmdb_la_DEPENDENCIES = $(DBLIBOBJS) $(libdb_la)
- if HAVE_LD_VERSION_SCRIPT
- librpmdb_la_LDFLAGS += -Wl,--version-script=$(srcdir)/librpmdb.vers
- endif
--# XXX make sure that db.h symlink is generated
--dbconfig.c $(DBLIBSRCS): db.h
--
- dbconfig.o: $(top_srcdir)/dbconfig.c
-       $(COMPILE) -o $@ -c $<
diff --git a/rpm-system_libs.patch b/rpm-system_libs.patch
deleted file mode 100644 (file)
index 26ce20e..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-diff -urN rpm.org/configure.ac rpm/configure.ac
---- rpm.org/configure.ac       2004-06-14 11:46:10.220092656 +0200
-+++ rpm/configure.ac   2004-06-14 11:47:13.499472728 +0200
-@@ -1203,7 +1215,7 @@
- dnl # XXX Propagate -lucb to popt ...
- dnl export LIBS INCPATH CONFIG_SITE
--AC_CONFIG_SUBDIRS(popt zlib file sqlite db3)
-+AC_CONFIG_SUBDIRS(file)
- AC_CONFIG_FILES([ Doxyfile Makefile rpmrc macros platform rpmpopt rpm.spec
-       scripts/perl.req scripts/perl.prov
-@@ -1227,7 +1239,7 @@
-       python/rpmdb/test/Makefile
-       lua/Makefile
-   ])
--AC_CONFIG_COMMANDS([default],[[       echo timestamp > popt/stamp-h.in
-+AC_CONFIG_COMMANDS([default],[[       
-       echo timestamp > stamp-h.in
-   
- ]],[[]])
-diff -urN rpm.org/Makefile.am rpm/Makefile.am
---- rpm.org/Makefile.am        2004-06-14 11:46:04.409975928 +0200
-+++ rpm/Makefile.am    2004-06-14 11:48:04.236759488 +0200
-@@ -107,7 +106,6 @@
-           -load lib/rpmlib.lcd \
-           -load rpmdb/rpmdb.lcd \
-           -load rpmio/rpmio.lcd \
--          -load popt/popt.lcd \
-               $(DEFS) $(INCLUDES) rpmqv.c $(rpmb_SOURCES)
- .PHONY:       lint
---- rpm.org/rpmio/Makefile.am.org      2004-11-18 17:42:53.756263795 +0100
-+++ rpm.org/rpmio/Makefile.am  2004-11-18 17:43:09.526885309 +0100
-@@ -82,39 +82,39 @@
- tdir_SOURCES = tdir.c
- tdir_LDFLAGS = @LDFLAGS_STATIC@
--tdir_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
-+tdir_LDADD = librpmio.la -lpopt
- tfts_SOURCES = tfts.c
- tfts_LDFLAGS = @LDFLAGS_STATIC@
--tfts_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
-+tfts_LDADD = librpmio.la -lpopt
- tget_SOURCES = tget.c
- tget_LDFLAGS = @LDFLAGS_STATIC@
--tget_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
-+tget_LDADD = librpmio.la -lpopt
- thkp_SOURCES = thkp.c
- thkp_LDFLAGS = @LDFLAGS_STATIC@
--thkp_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
-+thkp_LDADD = librpmio.la -lpopt
- tput_SOURCES = tput.c
- tput_LDFLAGS = @LDFLAGS_STATIC@
--tput_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
-+tput_LDADD = librpmio.la -lpopt
- tglob_SOURCES = tglob.c
- tglob_LDFLAGS = @LDFLAGS_STATIC@
--tglob_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
-+tglob_LDADD = librpmio.la -lpopt
- tinv_SOURCES = tinv.c
- tinv_LDFLAGS = @LDFLAGS_STATIC@
--tinv_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
-+tinv_LDADD = librpmio.la -lpopt
- tkey_SOURCES = tkey.c
- tkey_LDFLAGS = @LDFLAGS_STATIC@
--tkey_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
-+tkey_LDADD = librpmio.la -lpopt
- trpmio_SOURCES = trpmio.c
--trpmio_LDADD = librpmio.la $(top_builddir)/popt/libpopt.la
-+trpmio_LDADD = librpmio.la -lpopt
- tsw_SOURCES = tsw.c
- tsw_LDFLAGS = librpmio.la
-
This page took 0.415321 seconds and 4 git commands to generate.