Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Sep 2016 16:28:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 212335] mail/spamd: /etc/services entries are deleted on reinstall
Message-ID:  <bug-212335-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D212335

            Bug ID: 212335
           Summary: mail/spamd: /etc/services entries are deleted on
                    reinstall
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ohauer@FreeBSD.org
          Reporter: adamw@FreeBSD.org
                CC: portmgr@FreeBSD.org
             Flags: maintainer-feedback?(ohauer@FreeBSD.org)
          Assignee: ohauer@FreeBSD.org

When spamd gets reinstalled (including by upgrade), the /etc/services entri=
es
are deleted during deinstall but not recreated during reinstall. As a resul=
t,
spamd won't start after an upgrade. It looks like it is happening because t=
he
pkg-* scripts are not run in the order than spamd is anticipating.

[root@lockup ~] poudriere bulk -j 10amd64 -i mail/spamd
[...]
root@lockup:~ # grep spamd /etc/services
spamd   8025/tcp   # spamd(8)
spamd-sync      8025/udp   # spamd(8) synchronisation
spamd-cfg       8026/tcp   # spamd(8) configuration
root@lockup:~ # pkg upgrade -f spamd
[...]
[lockup] [1/1] Reinstalling spamd-4.9.1_3...
=3D=3D=3D> Creating groups.
Using existing group '_spamd'.
=3D=3D=3D> Creating users
Using existing user '_spamd'.
Checking /etc/services for missing service entries   <-- pkg-install
[lockup] [1/1] Extracting spamd-4.9.1_3: 100%
=3D=3D=3D>   Removing spamd entries from /etc/services   <-- pkg-deinstall
[...]
root@lockup:~ # grep spamd /etc/services
root@lockup:~ #

It looks as if pkg-deinstall is being run after the pkg-install, which seems
strange... I would have thought that the deinstall should run before the
install. I'm not sure whether this is a problem with spamd or with pkg, so =
I'm
Cc'ing portmgr for input.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-212335-13>