Re: Berkeley DB 4 and portupgrade

2014-08-29 Thread RW
On Mon, 25 Aug 2014 17:05:31 +0200
Matthias Andree wrote:


 You're looking in the wrong places, you should have:
 /usr/ports/INDEX-10.db and /var/db/pkg/pkgdb.db

As Chris Rees pointed out pkgdb.db isn't created anymore.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Berkeley DB 4 and portupgrade

2014-08-25 Thread Matthias Andree
Am 23.08.2014 um 16:10 schrieb RW:
 
 
 I've lost track of how portupgrade works these days (10.0). Has it
 switched to using pkg's sqlite database? 

For portupgrade, do not worry - it only _caches_ data in Berkeley DB
databases, it does not exclusively own valuable data that it could lose.
(OK rebuilding the pkgdb databse may take two or three minutes, but
that's all.)

And portupgrade only uses flat databases without anything fancy like
locking or transactions/logging.  portupgrade can recreate its databases
any time.

No it hasn't, and pkg is separate from portupgrade -- portupgrade
however does not store precious data in databases, only caches, so not
to worry -- in doubt, portupgrade it will just drop and recreate its
databases from the package database (that pkg maintains) and the INDEX
(that portsnap would maintain if you were to run it).

 I was wondering whether I needed to do anything for the DB 4x
 deletions, but I don't see a separate database file:
 
 $ ls -l /var/db/pkg
 total 41638
 -rw-r--r--  1 root  wheel  39279616 23 Aug 14:55 local.sqlite
 -rw-r--r--  1 root  wheel 38912 15 Sep  2013 repo-packagesite.sqlite
 -r--r--r--  1 root  wheel   3236956 22 Aug 11:23 vuln.xml

You're looking in the wrong places, you should have:
/usr/ports/INDEX-10.db and /var/db/pkg/pkgdb.db

The portupgrade-maintained databases are distinct from the system's own
(pkg-maintained) local.sqlite.


 
 ___
 freebsd-ports@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-ports
 To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org
 

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Berkeley DB 4 and portupgrade

2014-08-23 Thread RW


I've lost track of how portupgrade works these days (10.0). Has it
switched to using pkg's sqlite database? 


I was wondering whether I needed to do anything for the DB 4x
deletions, but I don't see a separate database file:

$ ls -l /var/db/pkg
total 41638
-rw-r--r--  1 root  wheel  39279616 23 Aug 14:55 local.sqlite
-rw-r--r--  1 root  wheel 38912 15 Sep  2013 repo-packagesite.sqlite
-r--r--r--  1 root  wheel   3236956 22 Aug 11:23 vuln.xml

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Berkeley DB 4 and portupgrade

2014-08-23 Thread Chris Rees
On 23 Aug 2014, at 15:10, RW wrote:

 
 
 I've lost track of how portupgrade works these days (10.0). Has it
 switched to using pkg's sqlite database? 
 
 
 I was wondering whether I needed to do anything for the DB 4x
 deletions, but I don't see a separate database file:
 
 $ ls -l /var/db/pkg
 total 41638
 -rw-r--r--  1 root  wheel  39279616 23 Aug 14:55 local.sqlite
 -rw-r--r--  1 root  wheel 38912 15 Sep  2013 repo-packagesite.sqlite
 -r--r--r--  1 root  wheel   3236956 22 Aug 11:23 vuln.xml

Nope, it doesn't:

https://github.com/freebsd/portupgrade/commit/633cdd7c90a117678f0bdd0c6d25c0b153d20c47

By the way, 10.0 is the release of FreeBSD, nothing to do with the portupgrade 
port.

Hope that helps!

Chris
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org