Bug 243363 - security/cyrus-sasl2: disappear sasldb2 when upgrade OpenSSL pkg to 1.1.1
Summary: security/cyrus-sasl2: disappear sasldb2 when upgrade OpenSSL pkg to 1.1.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Hajimu UMEMOTO
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-15 03:13 UTC by hsakamt
Modified: 2020-01-16 15:13 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (ume)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.