On Mon, Mar 16, 2009 at 12:45:35AM +0100, Marc Dequènes (Duck) wrote:
> Coin,
>
> In fact, 1.6.7 is not working any more. Seems it is related to libdb4.7 
> being draggued in by other packages in the upgrade.

Could you try this patch.

Mark


commit 08c1ecae34e77d5f164fa2ac4208cc0e76024b9d
Author: Mark Hindley <m...@hindley.org.uk>
Date:   Mon Mar 16 09:03:59 2009 +0000

    Possible fix for #519896.
    
    DB logging controlled with log_set_config in libdb-4.7

diff --git a/apt-cacher-lib-cs.pl b/apt-cacher-lib-cs.pl
index bff07aa..83feed9 100755
--- a/apt-cacher-lib-cs.pl
+++ b/apt-cacher-lib-cs.pl
@@ -123,8 +123,8 @@ sub db_recover {
          -Flags  => DB_CREATE | DB_INIT_LOG |
            DB_INIT_MPOOL | DB_INIT_TXN |
              DB_RECOVER | DB_PRIVATE | DB_USE_ENVIRON,
-               -SetFlags => DB_LOG_INMEMORY
                  or die "Unable to create recovery environment: 
$BerkeleyDB::Error\n";
+    $renv->log_set_config( DB_LOG_INMEMORY, 1 ) && warn "log_set_config failed 
with $!";
     close $logfile;
     unlink "$cfg->{cache_dir}/private/dblock";
     return defined $renv;



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to