From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 10 14:30:14 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCD0D106567A for ; Fri, 10 Feb 2012 14:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9EAA88FC1E for ; Fri, 10 Feb 2012 14:30:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1AEU7C6015756 for ; Fri, 10 Feb 2012 14:30:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1AEU7Uk015753; Fri, 10 Feb 2012 14:30:07 GMT (envelope-from gnats) Resent-Date: Fri, 10 Feb 2012 14:30:07 GMT Resent-Message-Id: <201202101430.q1AEU7Uk015753@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, Vivek Khera Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 655201065674 for ; Fri, 10 Feb 2012 14:25:37 +0000 (UTC) (envelope-from vivek@kcilink.com) Received: from lorax.kcilink.com (lorax.kcilink.com [206.112.95.1]) by mx1.freebsd.org (Postfix) with ESMTP id 3A39D8FC16 for ; Fri, 10 Feb 2012 14:25:37 +0000 (UTC) Received: by lorax.kcilink.com (Postfix, from userid 120) id 351A6B26D4; Fri, 10 Feb 2012 09:08:55 -0500 (EST) Message-Id: <20120210140855.351A6B26D4@lorax.kcilink.com> Date: Fri, 10 Feb 2012 09:08:55 -0500 (EST) From: Vivek Khera To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/164959: pam_google_authenticator install deletes /dev/null X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Vivek Khera List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 14:30:14 -0000 >Number: 164959 >Category: ports >Synopsis: pam_google_authenticator install deletes /dev/null >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 10 14:30:07 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Vivek Khera >Release: FreeBSD 8.2-RELEASE-p5 amd64 >Organization: >Environment: System: FreeBSD lorax.kcilink.com 8.2-RELEASE-p5 FreeBSD 8.2-RELEASE-p5 #0: Sun Dec 25 10:38:01 EST 2011 vivek@lorax.kcilink.com:/u/lorax1/usr8/obj.amd64/u/lorax1/usr8/src/sys/KCI64 amd64 >Description: Updating google authenticator via portmaster. During the installation, the port seems to delete /dev/null, causing all sort of havoc on the system, the only escape being to reboot. This occurred on both attempts to update the port on this system. Other ports upgrade just fine using portmaster. % pkg_version -vl\< pam_google_authenticator-20110519 < needs updating (port has 20120119) Script started on Fri Feb 10 08:53:32 2012 [root@lorax]~# portmaster pam_google_authenticator-20110519 portmaster: pam_google_authenticator-20110519 ===>>> Currently installed version: pam_google_authenticator-20110519 ===>>> Port directory: /usr/ports/security/pam_google_authenticator ===>>> Gathering distinfo list for installed ports ===>>> Launching 'make checksum' for security/pam_google_authenticator in background ===>>> Gathering dependency list for security/pam_google_authenticator from ports ===>>> Starting dependency check ===>>> Checking dependency: devel/gmake ===>>> Initial dependency check complete for security/pam_google_authenticator portmaster: pam_google_authenticator-20110519 ===>>> Starting build for security/pam_google_authenticator <<<=== ===>>> All dependencies are up to date ===> Cleaning for pam_google_authenticator-20120119 ===> License AL2 accepted by the user ===> Extracting for pam_google_authenticator-20120119 => SHA256 Checksum OK for google-authenticator-20120119.tar.gz. /usr/ports/distfiles///google-authenticator-20120119.tar.gz: 76.0% ===> Patching for pam_google_authenticator-20120119 ===> pam_google_authenticator-20120119 depends on executable: gmake - found ===> Configuring for pam_google_authenticator-20120119 ===> Building for pam_google_authenticator-20120119 cc --std=gnu99 -Wall -O2 -g -fPIC -c -fvisibility=hidden -O2 -pipe -fno-strict-aliasing -o google-authenticator.o google-authenticator.c cannot create /dev/null: Operation not supported /usr/local/sbin/portmaster: cannot create /dev/null: Operation not supported ===>>> No ORIGIN in /var/db/pkg/python27-2.7.2_3/+CONTENTS /usr/local/sbin/portmaster: cannot create /dev/null: Operation not supported ===>>> No ORIGIN in /var/db/pkg/rdist-6.1.5_2/+CONTENTS /usr/local/sbin/portmaster: cannot create /dev/null: Operation not supported ===>>> No ORIGIN in /var/db/pkg/rsync-3.0.9/+CONTENTS /usr/local/sbin/portmaster: cannot create /dev/null: Operation not supported ===>>> No ORIGIN in /var/db/pkg/rtorrent-0.8.9_1/+CONTENTS /usr/local/sbin/portmaster: cannot create /dev/null: Operation not supported ===>>> No ORIGIN in /var/db/pkg/serf-1.0.0/+CONTENTS /usr/local/sbin/portmaster: cannot create /dev/null: Operation not supported ===>>> No ORIGIN in /var/db/pkg/sqlite3-3.7.10/+CONTENTS /usr/local/sbin/portmaster: cannot create /dev/null: Operation not supported ===>>> No ORIGIN in /var/db/pkg/sshguard-ipfw-1.5_1/+CONTENTS /usr/local/sbin/portmaster: cannot create /dev/null: Operation not supported ===>>> No ORIGIN in /var/db/pkg/subversion-1.7.2/+CONTENTS /usr/local/sbin/portmaster: cannot create /dev/null: Operation not supported ===>>> No ORIGIN in /var/db/pkg/sudo-1.8.3_2/+CONTENTS /usr/local/sbin/portmaster: cannot create /dev/null: Operation not supported ===>>> No ORIGIN in /var/db/pkg/tmux-1.6/+CONTENTS cc --std=gnu99 -Wall -O2 -g -fPIC -c -fvisibility=hidden -O2 -pipe -fno-strict-aliasing -o base32.o base32.c cc --std=gnu99 -Wall -O2 -g -fPIC -c -fvisibility=hidden -O2 -pipe -fno-strict-aliasing -o hmac.o hmac.c cc --std=gnu99 -Wall -O2 -g -fPIC -c -fvisibility=hidden -O2 -pipe -fno-strict-aliasing -o sha1.o sha1.c cc -g -o google-authenticator google-authenticator.o base32.o hmac.o sha1.o cc --std=gnu99 -Wall -O2 -g -fPIC -c -fvisibility=hidden -O2 -pipe -fno-strict-aliasing -o pam_google_authenticator.o pam_google_authenticator.c pam_google_authenticator.c: In function 'request_pass': pam_google_authenticator.c:776: warning: initialization discards qualifiers from pointer target type cc -shared -g -o pam_google_authenticator.so pam_google_authenticator.o base32.o hmac.o sha1.o -lpam cc --std=gnu99 -Wall -O2 -g -fPIC -c -fvisibility=hidden -O2 -pipe -fno-strict-aliasing -o demo.o demo.c cc -DDEMO --std=gnu99 -Wall -O2 -g -fPIC -c -fvisibility=hidden -O2 -pipe -fno-strict-aliasing -o pam_google_authenticator_demo.o pam_google_authenticator.c pam_google_authenticator.c: In function 'request_pass': pam_google_authenticator.c:776: warning: initialization discards qualifiers from pointer target type cc -g -rdynamic -o demo demo.o pam_google_authenticator_demo.o base32.o hmac.o sha1.o cc -DTESTING --std=gnu99 -Wall -O2 -g -fPIC -c -fvisibility=hidden -O2 -pipe -fno-strict-aliasing \ -o pam_google_authenticator_testing.o pam_google_authenticator.c pam_google_authenticator.c: In function 'request_pass': pam_google_authenticator.c:776: warning: initialization discards qualifiers from pointer target type cc -shared -g -o pam_google_authenticator_testing.so pam_google_authenticator_testing.o base32.o hmac.o sha1.o -lpam cc --std=gnu99 -Wall -O2 -g -fPIC -c -fvisibility=hidden -O2 -pipe -fno-strict-aliasing -o pam_google_authenticator_unittest.o pam_google_authenticator_unittest.c cc -g -rdynamic -o pam_google_authenticator_unittest pam_google_authenticator_unittest.o base32.o hmac.o sha1.o -lc ===>>> Creating a backup package for old version pam_google_authenticator-20110519 /usr/local/sbin/portmaster: cannot create /dev/null: Operation not supported ===>>> Cannot cd into /usr/ports/packages/amd64-8.2/portmaster-backup to create a package ===>>> Aborting update ps: /dev/null: No such file or directory ps: /dev/null: No such file or directory ps: /dev/null: No such file or directory /usr/local/sbin/portmaster: cannot create /dev/null: Operation not supported ===>>> Removing empty directories from WRKDIRPREFIX /usr/local/sbin/portmaster: cannot create /dev/null: Operation not supported ===>>> You can restart from the point of failure with this command line: portmaster security/pam_google_authenticator [root@lorax]~#exit Script done on Fri Feb 10 08:53:52 2012 at this point i just have to reboot, because /dev/null is missing. >How-To-Repeat: have pam_google_authenticator-20110519 installed in your system, then use portmaster to upgrade it. my portmaster.rc file enables the following: MAKE_PACKAGE=gopt ALWAYS_SCRUB_DISTFILES=dopt PM_VERBOSE=vopt SAVE_SHARED=wopt PM_DEL_BUILD_ONLY=pm_dbo LOCAL_PACKAGEDIR=`make -C /usr/ports -V PACKAGES` PM_PACKAGES_LOCAL=pmp_local >Fix: >Release-Note: >Audit-Trail: >Unformatted: