FreeBSD Bugzilla – Attachment 141316 Details for
Bug 188084
ports-mgmt/portupgrade : not working without ruby-bdb
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.63 KB, created by
Christoph Moench-Tegeder
on 2014-03-30 15:20:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Christoph Moench-Tegeder
Created:
2014-03-30 15:20:00 UTC
Size:
1.63 KB
patch
obsolete
>--- lib/pkgtools/pkgdbtools.rb.orig 2014-03-30 15:42:40.000000000 +0200 >+++ lib/pkgtools/pkgdbtools.rb 2014-03-30 15:49:38.000000000 +0200 >@@ -61,7 +61,7 @@ > > def db_driver=(new_db_driver) > begin >- case new_db_driver || ENV['PKG_DBDRIVER'] || 'bdb_btree' >+ case new_db_driver || ENV['PKG_DBDRIVER'] || 'qdbm' > when 'pkg' > @db_driver = :pkg > when 'bdb_btree' >@@ -72,6 +72,8 @@ > @db_driver = :bdb1_btree > when 'bdb1_hash', 'hash', 'bdb1' > @db_driver = :bdb1_hash >+ when 'qdbm' >+ @db_driver = :qdbm > else > @db_driver = :dbm_hash > end >@@ -95,6 +97,9 @@ > next_driver = 'dbm' > require 'bdb1' > @db_params = ["set_pagesize" => 1024, "set_cachesize" => 32 * 1024] >+ when :qdbm >+ next_driver = 'dbm' >+ require 'depot' > else > next_driver = nil > require 'dbm' >@@ -200,6 +205,9 @@ > db = BDB1::Btree.open @db_file, mode, perm, *@db_params > when :bdb1_hash > db = BDB1::Hash.open @db_file, mode, perm, *@db_params >+ when :qdbm >+ qmode = mode == 'r' ? Depot::OREADER : (Depot::OWRITER | Depot::OCREAT) >+ db = Depot::new(@db_file, qmode, perm) > else > if mode == 'w+' > File.unlink(@db_file) if File.exist?(@db_file) >--- etc/pkgtools.conf.orig 2014-03-30 16:02:36.000000000 +0200 >+++ etc/pkgtools.conf 2014-03-30 16:03:06.000000000 +0200 >@@ -130,7 +130,7 @@ > # failed too, it will fall to 'dbm_hash' that require no external > # modules. > # Possible values for ENV['PKG_DBDRIVER'] are bdb_btree, bdb_hash, >- # bdb1_btree, bdb1_hash and dbm_hash. >+ # bdb1_btree, bdb1_hash, dbm_hash and qdbm. > # > # e.g.: > # ENV['PORTSDIR'] ||= '/export/freebsd/ports'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 188084
:
141315
| 141316