Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 2012 09:08:55 -0500 (EST)
From:      Vivek Khera <vivek@khera.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/164959: pam_google_authenticator install deletes /dev/null
Message-ID:  <20120210140855.351A6B26D4@lorax.kcilink.com>
Resent-Message-ID: <201202101430.q1AEU7Uk015753@freefall.freebsd.org>

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

>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 <flags> 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:



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