Bug 243363

Summary: security/cyrus-sasl2: disappear sasldb2 when upgrade OpenSSL pkg to 1.1.1
Product: Ports & Packages Reporter: hsakamt
Component: Individual Port(s)Assignee: Hajimu UMEMOTO <ume>
Status: Closed FIXED    
Severity: Affects Some People CC: hsakamt
Priority: --- Flags: bugzilla: maintainer-feedback? (ume)
Version: Latest   
Hardware: Any   
OS: Any   

Description hsakamt 2020-01-15 03:13:24 UTC
Hi,

I built security/cyrus-sasl2 package with security/openssl using poudriere. 
Since security/openssl package upgraded to 1.1.1, I rebuilt these packages and upgrade them. /usr/local/etc/sasldb2 disappeared.

-----
[1/43] Upgrading openssl from 1.0.2u,1 to 1.1.1d,1...
[1/43] Extracting openssl-1.1.1d,1: .......... done

  :

[5/43] Reinstalling cyrus-sasl-2.1.27...
*** Updated user `cyrus'.
[5/43] Extracting cyrus-sasl-2.1.27: .......... done
Shared object "libcrypto.so.9" not found, required by "sasldblistusers2"
*** We do not create /usr/local/etc/sasldb2 automatically in
*** BATCH mode.  Please create it by yourself.  It should be
*** owner: cyrus, group: mail, mode: 0640.
-----

I think delete_sasldb() function in files/pkg-deinstall.in should check exit status of "sasldblistusers2" command or never remove sasldb2.

Thanks.
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-01-16 15:08:27 UTC
A commit references this bug:

Author: ume
Date: Thu Jan 16 15:08:09 UTC 2020
New revision: 523238
URL: https://svnweb.freebsd.org/changeset/ports/523238

Log:
  check exit status of sasldblistusers2 when deinstalling
  cyrus-sasl2 package.

  PR:		243363
  Reported by:	hsakamt__at__tsnr.com

Changes:
  head/security/cyrus-sasl2/files/pkg-deinstall.in
Comment 2 Hajimu UMEMOTO freebsd_committer freebsd_triage 2020-01-16 15:13:43 UTC
Thank you for the suggestion.
I've just committed the change to check exit status of sasldblistusers2.