From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 30 03:50:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AF574611 for ; Wed, 30 Apr 2014 03:50:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8BC031069 for ; Wed, 30 Apr 2014 03:50:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3U3o04u076687 for ; Wed, 30 Apr 2014 03:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3U3o0W3076686; Wed, 30 Apr 2014 03:50:00 GMT (envelope-from gnats) Resent-Date: Wed, 30 Apr 2014 03:50:00 GMT Resent-Message-Id: <201404300350.s3U3o0W3076686@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jim McNaughton Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4111C4ED for ; Wed, 30 Apr 2014 03:46:17 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2E2AB104F for ; Wed, 30 Apr 2014 03:46:17 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3U3kGf9091485 for ; Wed, 30 Apr 2014 03:46:16 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3U3kGRb091475; Wed, 30 Apr 2014 03:46:16 GMT (envelope-from nobody) Message-Id: <201404300346.s3U3kGRb091475@cgiserv.freebsd.org> Date: Wed, 30 Apr 2014 03:46:16 GMT From: Jim McNaughton To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/189126: sane-backends silently installs pkgng and screws everything up X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Apr 2014 03:50:00 -0000 >Number: 189126 >Category: ports >Synopsis: sane-backends silently installs pkgng and screws everything up >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: Wed Apr 30 03:50:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Jim McNaughton >Release: 8.4-STABLE >Organization: >Environment: FreeBSD jamestown-amdx4.home.james-t-mcnaughton.net 8.4-STABLE FreeBSD 8.4-STABLE #1 r264289: Tue Apr 8 21:17:16 CDT 2014 jtm@jamestown-amdx4.home.james-t-mcnaughton.net:/usr/obj/usr/src/sys/JAMESTOWN_AMDX4 amd64 >Description: While upgrading packages, sane-backends installed pkgng as a dependency without notification and did not perform the necessary housekeeping to switch to the new package management system. As a result various errors and inconsistencies in the packages database were experienced, including portaudit flagging ports as vulnerable in error. The root cause took hours to track down. Once identified, the pkg system could not be initialized with file access errors being reported. >How-To-Repeat: Upgrade sane-backend without manually upgrading the system to pkgng >Fix: After hours of tinkering I decided on a radical dissection of the installed packages, followed up with manual initialization of pkgng and reinstallation from scratch of everything. pkg_delete -a /usr/sbin/pkg pkg2ng Begin reinstalling desired packages. This is a most inelegant solution, but I could not find any documentation or advice after 90 minutes of searching. >Release-Note: >Audit-Trail: >Unformatted: