Bug 233089 - mail/spamassassin 3.4.2_1 cannot be installed anymore
Summary: mail/spamassassin 3.4.2_1 cannot be installed anymore
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: Niclas Zeising
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-09 17:52 UTC by Matthias Fechner
Modified: 2018-11-17 11:28 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Fechner freebsd_committer freebsd_triage 2018-11-09 17:52:23 UTC
If I try to upgrade my spamassassin from verion 3.4.2 to 3.4.2_1 it breaks completely with the following error message:
[1/16] Upgrading spamassassin from 3.4.2 to 3.4.2_1...
===> Creating groups.
Using existing group 'spamd'.
===> Creating users
Using existing user 'spamd'.
[1/16] Extracting spamassassin-3.4.2_1: 100%
You may need to manually remove /usr/local/etc/mail/spamassassin/init.pre if it is no longer needed.
You may need to manually remove /usr/local/etc/mail/spamassassin/local.cf if it is no longer needed.
You may need to manually remove /usr/local/etc/mail/spamassassin/v310.pre if it is no longer needed.
You may need to manually remove /usr/local/etc/mail/spamassassin/v312.pre if it is no longer needed.
You may need to manually remove /usr/local/etc/mail/spamassassin/v320.pre if it is no longer needed.
You may need to manually remove /usr/local/etc/mail/spamassassin/v330.pre if it is no longer needed.
You may need to manually remove /usr/local/etc/mail/spamassassin/v340.pre if it is no longer needed.
You may need to manually remove /usr/local/etc/mail/spamassassin/v341.pre if it is no longer needed.
You may need to manually remove /usr/local/etc/mail/spamassassin/v342.pre if it is no longer needed.
pkg: Fail to rename /usr/local/etc/mail/spamassassin/sa-update-keys/.gpg.conf.s8n4wuZXJTwV -> /usr/local/etc/mail/spamassassin/sa-update-keys/gpg.conf:No such file or directory

Maybe related to r484326?
Comment 1 Walter Schwarzenfeld freebsd_triage 2018-11-10 03:11:48 UTC
I have only the message if I delete the package, not if I install it
1/1] Deinstalling spamassassin-3.4.2_1...
[1/1] Deleting files for spamassassin-3.4.2_1:   4%
spamassassin-3.4.2_1: missing file /usr/local/etc/mail/spamassassin/sa-update-keys/gpg.conf
[1/1] Deleting files for spamassassin-3.4.2_1: 100%

But the file was installed.
Comment 2 jarrod 2018-11-10 05:13:57 UTC
When attempting to install mail/spamassassin from a package, this error is fatal. As per pkg-upgrade(8), using the -I option to not execute any {pre,post}-{de,}install scripts, the package can at least be upgraded successfully (would not expect a new install to work though). Could the @preunexec command which simply deletes the parent directory just above sa-update-keys/gpg.conf in the packing list be interfering with the installation and upgrade process?
Comment 3 Matthias Fechner freebsd_committer freebsd_triage 2018-11-10 12:07:05 UTC
I disabled now the GNUPG2 option, that fixed it for now.
After this I was able to install the package correctly or better I was able to upgrade 3.4.2 to 3.4.2_1.
Comment 4 Niclas Zeising freebsd_committer freebsd_triage 2018-11-13 21:15:41 UTC
Hi!
I've reverted the change for now.
The change is most likely due to the handling of gpg.conf, which is installed to silence the warning about "insecure memory", but I don't have time to investigate this week, so the change is reverted until I can have a look.
Comment 5 Matthias Fechner freebsd_committer freebsd_triage 2018-11-17 11:28:50 UTC
Thanks, that fixed it.