From owner-freebsd-current@FreeBSD.ORG Sun Aug 12 13:20:55 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39759106564A for ; Sun, 12 Aug 2012 13:20:55 +0000 (UTC) (envelope-from freebsd@psconsult.nl) Received: from mx1.psconsult.nl (unknown [IPv6:2001:7b8:30f:e0::5059:ee8a]) by mx1.freebsd.org (Postfix) with ESMTP id DD46A8FC17 for ; Sun, 12 Aug 2012 13:20:54 +0000 (UTC) Received: from mx1.psconsult.nl (mx1.iaf.psconsult.nl [80.89.238.138]) by mx1.psconsult.nl (8.14.5/8.14.4) with ESMTP id q7CDKli3082068 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 12 Aug 2012 15:20:53 +0200 (CEST) (envelope-from freebsd@psconsult.nl) Received: (from paul@localhost) by mx1.psconsult.nl (8.14.5/8.14.4/Submit) id q7CDKlk3082067 for freebsd-current@freebsd.org; Sun, 12 Aug 2012 15:20:47 +0200 (CEST) (envelope-from freebsd@psconsult.nl) X-Authentication-Warning: mx1.psconsult.nl: paul set sender to freebsd@psconsult.nl using -f Date: Sun, 12 Aug 2012 15:20:47 +0200 From: Paul Schenkeveld To: Current FreeBSD Message-ID: <20120812132047.GA33526@psconsult.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Subject: make package fails in chroot: tar: getvfsbyname failed: No such file or directory X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2012 13:20:55 -0000 Hi, I have a wrapper script that builds packages in a chroot environment which happily runs on release 6 thru 9 and earlier 10 but fails with: tar: getvfsbyname failed: No such file or directory on a recent -CURRENT. What I could dig up so far is that "make package-recursive" calls pkg_create(1) which in turn calls "tar -c -f .tbz -j -T -" and then starts feeding filenames that should go into the tarball. Something has changed in libarchive when src/contrib/libarchive/libarchive/archive_read_disk_posix.c was introduced (libarchive 3.0.3, svn rev 232153 I think) where setup_current_filesystem() calls getvfsbyname(). Now it's getting too hairy for me so I hope someone with more insight in this kind of stuff can help me out. My chroot environment has a root directory which is a subdir of my build environment, so not a mountpoint by itself. /usr/src and /usr/ports are NFS mounted from a fileserver and I have devfs mounted on /dev. Thanks for any help! With kind regards, Paul Schenkeveld