Skip site navigation (1)Skip section navigation (2)
Date:      Tue,  2 Oct 2012 10:07:31 +0200 (CEST)
From:      Nick Hibma <nick@anywi.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/172268: pkg_add -C some/diradns/pdnsd fails because of unpopulated /dev
Message-ID:  <20121002080731.8776F29B059@arenal.anywi.com>
Resent-Message-ID: <201210020810.q928A42q091883@freefall.freebsd.org>

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

>Number:         172268
>Category:       ports
>Synopsis:       pkg_add -C some/diradns/pdnsd fails because of unpopulated /dev
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 02 08:10:03 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Nick Hibma
>Release:        FreeBSD 8.1-STABLE amd64
>Organization:
AnyWi Technologies
>Environment:
System: FreeBSD arenal.anywi.com 8.1-STABLE FreeBSD 8.1-STABLE #0: Mon Sep 13 15:48:43 CEST 2010 root@arenal.anywi.com:/usr/obj/usr/src/sys/ARENAL amd64

Port files as of today.
>Description:
pkg_add -C /usr/obj/nanobsd.8/some/dir -r pdnsd

returns an error code. In the pkg-install script /dev/zero is referenced (for
creating the initial cache file), but that is not there because in the chroot
/dev is not populated.

>How-To-Repeat:
>Fix:
nick@bitske:~ % diff pkg-install.old pkg-install
7c7
< dd if=/dev/zero of=${PDNSDB}/pdnsd.cache bs=1 count=4 >/dev/null 2>&1
---
> truncate -s 4 ${PDNSDB}/pdnsd.cache
>Release-Note:
>Audit-Trail:
>Unformatted:



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