From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Feb 16 21:49:38 2015 Return-Path: Delivered-To: freebsd-ports-bugs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1D8DAB4C for ; Mon, 16 Feb 2015 21:49:38 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 F0414765 for ; Mon, 16 Feb 2015 21:49:37 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id t1GLnb3E055593 for ; Mon, 16 Feb 2015 21:49:37 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 197748] ports-mgmt/pkg: ignores error conditions at exit time Date: Mon, 16 Feb 2015 21:49:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: jgoerzen@complete.org X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2015 21:49:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197748 Bug ID: 197748 Summary: ports-mgmt/pkg: ignores error conditions at exit time Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: portmgr@FreeBSD.org Reporter: jgoerzen@complete.org Flags: maintainer-feedback?(portmgr@FreeBSD.org) Assignee: portmgr@FreeBSD.org pkg reports certain errors, which scroll past, but does not provide an indication when it exits that errors occurred. The other day, I ran a pkg install which included nspluginwrapper. Apparently I should have first run kldload linux before running pkg install nspluginwrapper, but I didn't. I happened to be capturing the output of the session under script(1), but the only reason I knew anything was amiss was that I happened to glance at the screen at the right time. I got errors like: [132/681] Installing linux_base-c6-6.6_3... sysctl: unknown oid 'compat.linux.osrelease': No such file or directory linuxulator is not (kld)loaded, exiting pkg: PRE-INSTALL script failed Extracting linux_base-c6-6.6_3: 100% +++ Some programs may need linprocfs, please add it to /etc/fstab! +++ Running linux ldconfig... ELF binary type "3" not known. /compat/linux/sbin/ldconfig: Exec format error Extracting linux-c6-expat-2.0.1_1: 100% ELF binary type "3" not known. /compat/linux/sbin/ldconfig: Exec format error pkg: POST-INSTALL script failed and so forth. So all these pre-install and post-install scripts are failing. I assume this means the package isn't properly installed or configured. But: # pkg install linux_base-c6 Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. Checking integrity... done (0 conflicting) The most recent version of packages are already installed I believe that, when pkg exits, it ought to display something like: "Errors were encountered while processing: linux_base-c6-6.6_3, foo, bar, baz" and exit with a nonzero exit code, even if 200 packages came after those and installed correctly. Otherwise, a person will not know if their packages failed unless they happen to glance at the screen at just the right time. I originally reported this on a mailing list at http://article.gmane.org/gmane.os.freebsd.questions/311852 I can provide a full typescript of the session if that would be helpful. It is on a brand-new 10.1-RELEASE installation. --- Comment #1 from Bugzilla Automation --- Auto-assigned to maintainer portmgr@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.