From owner-freebsd-ports@FreeBSD.ORG Sat Apr 7 20:27:40 2007 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B960116A401 for ; Sat, 7 Apr 2007 20:27:40 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 7584B13C4C4 for ; Sat, 7 Apr 2007 20:27:39 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.222] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id l37JqRH7071623; Sat, 7 Apr 2007 12:52:27 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <4617F67B.7050304@freebsd.org> Date: Sat, 07 Apr 2007 12:52:27 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ulrich Spoerlein References: <20070407174756.GA46385@roadrunner.q.local> In-Reply-To: <20070407174756.GA46385@roadrunner.q.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: Cannot package converters/libiconv inside clean chroot X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2007 20:27:40 -0000 Ulrich Spoerlein wrote: > While I can pkg_delete/pkg_add the libtool15 package at will, the > libiconv package fails to pkg_add because bsdtar(1) is whining: > > roadrunner# pkg_add -v /usr/ports/packages/All/libiconv-1.9.2_2.tbz > lib/libcharset.so: Couldn't stat file: No such file or directory > lib/libiconv.so: Couldn't stat file: No such file or directory > > It doesn't matter if I 'make package' or 'pkg_create -b' the package. I > can extract it just fine using the cmd line tar(1) though. > > roadrunner# tar tvvf /usr/ports/packages/All/libiconv-1.9.2_2.tbz tar xvf works as well as tar tvf? It sounds like bsdtar is refusing to recreate the symlink on disk. > What do the '1' in the second column mean? The manpage just refers to > ls(1). If it is the inode link count, how can most of the entries be > zero? Most tar entries don't store a link count, so it shows up as zero. Apparently, the two symlink entries are getting stored with pax format for some reason. (The 'pax' format is an extension to 'ustar'; a single archive can mix entries in different formats. By default, bsdtar prefers 'ustar', using 'pax' only for entries that require it.) Sounds like 'tar' inside the chroot is different than the one outside. You've probably found a bug in the newest RELENG_6 tar. Can you email me the troublesome package file? I'll also try to reproduce this here. Thanks, Tim Kientzle