Bug 227952

Summary: ports-mgmt/portmaster fails when other pkg process lock database
Product: Ports & Packages Reporter: mikhail.rokhin
Component: Individual Port(s)Assignee: Stefan E├čer <se>
Status: Open ---    
Severity: Affects Many People CC: pi, tatsuki_makino, w.schwarzenfeld
Priority: --- Keywords: feature, needs-patch, needs-qa
Version: LatestFlags: bugzilla: maintainer-feedback? (se)
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232350

Description mikhail.rokhin 2018-05-03 16:05:59 UTC
My case:
Compiling via portmaster (PM further) more 500 ports of KDE4. Background `pkg check` tasks begun suddenly and led to PM failure during next port installation.

My suggestion:
Make PM checking whether another process of pkg is running and locking database, and give user choice to kill all pkg processes or to wait till they exit themselves, and not quit such huge compil. like KDE4 or GNOME3 meta-ports.

ports tree , kernel & world latest.

Thank you for development.
Comment 1 Tatsuki Makino 2018-06-04 22:53:08 UTC
(In reply to mikhail.rokhin from comment #0)
> Background `pkg check` tasks begun suddenly

pkg check -qsa is run by /usr/local/etc/periodic/security/460.pkg-checksum if security_status_pkgchecksum_enable=NO is not written to /etc/periodic.conf.
Comment 2 Walter Schwarzenfeld freebsd_triage 2018-11-14 19:55:35 UTC
See also: bug # 232350.