aboutsummaryrefslogtreecommitdiff
path: root/UPDATING
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2016-11-12 21:22:47 +0000
committerHiroki Sato <hrs@FreeBSD.org>2016-11-12 21:22:47 +0000
commit714587dad816ba9027e76f5da158752f4284f86a (patch)
treed5e14ab62a63c34bd29a4db70b4ee1d6fa8201e9 /UPDATING
parentd176a9685584fded5050b697b395ebc9cf89124f (diff)
downloadports-714587dad816ba9027e76f5da158752f4284f86a.tar.gz
ports-714587dad816ba9027e76f5da158752f4284f86a.zip
- Fix Berkeley DB dependency. It now properly uses BDB_LIB specified in
Mk/Uses/bdb.mk instead of db185 interfaces in libc. As a side-effect, this causes a compatibility issue between heimdal.db created by kadmin(8) in the base system or one by an older security/heimdal. See UPDATING about this issue. - Fix readline dependency end eliminate libheimedit. - Use -lpthread instead of -pthread. - Use FOO_CONFIGURE_WITH=foo instead of FOO_CONFIGURE_ON=--with-foo.
Notes
Notes: svn path=/head/; revision=425994
Diffstat (limited to 'UPDATING')
-rw-r--r--UPDATING60
1 files changed, 60 insertions, 0 deletions
diff --git a/UPDATING b/UPDATING
index 197750fe5aea..3c1318b89335 100644
--- a/UPDATING
+++ b/UPDATING
@@ -5,6 +5,66 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
+20161112:
+ AFFECTS: users of security/heimdal
+ AUTHOR: hrs@FreeBSD.org
+
+ Heimdal in the base system and security/heimdal <= 1.5.3_6 use
+ Berkeley DB to store principals into /var/heimdal/heimdal.db and
+ the database format is version 3 by default. On the other hand,
+ security/heimdal 1.5.3_7 or newer use the newer version of
+ Berkeley DB and the database format is version 9.
+ These two versions are not compatible with each other. If there is
+ a mismatch between Heimdal utilities and its database format,
+ you will get an error like the following:
+
+ # /usr/local/sbin/kadmin -l dump
+ BDB0641 __db_meta_setup: /var/heimdal/heimdal.db: unexpected file type or format
+ kadmin: hdb_open: opening /var/heimdal/heimdal: Invalid argument
+
+ This mismatch can occur in the following three cases:
+
+ 1. You used Heimdal in the base system and switch to use security/heimdal
+ after creating /var/db/heimdal.db.
+
+ 2. You used security/heimdal >= 1.5.3_7 and switch to use one in the
+ base system.
+
+ 3. You used security/heimdal < 1.5.3_7 and upgrade it to 1.5.3_7 or later.
+
+ To fix this mismatch, you need to dump contents of heimdal.db and
+ rebuild the database by using kadmin(8) utility.
+
+ If you use Heimdal in the base system or older versions of
+ security/heimdal, and plan to switch to use
+ security/heimdal >= 1.5.3_7, execute the following command
+ *after* creating a backup copy of /var/heimdal and installing
+ security/heimdal:
+
+ # /usr/bin/kadmin -l dump /var/heimdal/heimdal.db.dump
+ # rm /var/heimdal/heimdal.db
+ # /usr/local/sbin/kadmin -l load /var/heimdal/heimdal.db.dump
+ # rm /var/heimdal/heimdal.db.dump
+
+ The above example assumes security/heimdal is installed into
+ /usr/local. If your base system is compiled with WITHOUT_KERBEROS
+ use the following instead:
+
+ # db_dump185-5 /var/heimdal/heimdal.db | db_load-5 /var/heimdal/heimdal.db.new
+ # chown 0600 /var/heimdal/heimdal.db.new
+ # mv /var/heimdal/heimdal.db.new /var/heimdal/heimdal.db
+
+ db_dump and db_load utilitites are installed by database/db5 as
+ dependency of security/heimdal.
+
+ If you want to switch from security/heimdal to Heimdal in the base
+ system, use the following:
+
+ # /usr/local/sbin/kadmin -l dump /var/heimdal/heimdal.db.dump
+ # rm /var/heimdal/heimdal.db
+ # /usr/bin/kadmin -l load /var/heimdal/heimdal.db.dump
+ # rm /var/heimdal/heimdal.db.dump
+
20161105:
AFFECTS: users of security/heimdal
AUTHOR: hrs@FreeBSD.org