Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 May 2014 14:36:31 GMT
From:      Alexei <admin@skpress.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/190269: ports-mgmt/portupgrade with pkgng does not properly restart updated daemons
Message-ID:  <201405261436.s4QEaVlk078418@cgiserv.freebsd.org>
Resent-Message-ID: <201405261440.s4QEe2iL029281@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         190269
>Category:       ports
>Synopsis:       ports-mgmt/portupgrade with pkgng does not properly restart updated daemons
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 26 14:40:01 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Alexei
>Release:        9.2
>Organization:
SK Press
>Environment:
FreeBSD ns.skpress.ru 9.2-RELEASE-p6 FreeBSD 9.2-RELEASE-p6 #0: Tue May 13 08:21:53 UTC 2014     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
After moving to pkgng portupgrade -a doesn't perform postinstall restart of rc scripts, as it instructed by pkgtools.conf:
AFTERINSTALL = {
  '*' => proc { |origin|
    cmd_restart_rc(origin)
  },
}

In the form portupgrade -f <some port> program works as it should.

The cause of such behaviour is wrong (empty) output of enabled_rc_scripts() function when portupgrade upgrades several ports.
>How-To-Repeat:
Run portupgrade -a in the pkgng environment when more than one of installed ports needs upgrade and at least one of them installs rc script. pkgtools.conf should contain AFTERINSTALL section shown above.
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



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