From owner-freebsd-ports@FreeBSD.ORG Sun Apr 8 08:05:11 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 A01C716A405 for ; Sun, 8 Apr 2007 08:05:11 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.187]) by mx1.freebsd.org (Postfix) with ESMTP id 1E34D13C458 for ; Sun, 8 Apr 2007 08:05:10 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: by mu-out-0910.google.com with SMTP id g7so1764396muf for ; Sun, 08 Apr 2007 01:05:09 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to; b=OP1xUovwgTl4trOReo8bTccbM4hCSs4bs6qp/Oc0Vs5Pn9jpAwkni0sJKOU4O/rjjanXhTUilsRW8jZSJLQSpJ9+PDqxZ3oAOq8arTEln3AOmTgJweOmcDPEcvpEOl1eq36Slo2Q3XXhDikqHfnr5b8LVD5BzZGTZ9yjT5q2HgY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:date:from:to:cc:subject:message-id:mail-followup-to:references:mime-version:content-type:content-disposition:in-reply-to; b=pdZBcQ4/12dsV0RrOTGt/ALCcY1BXC/ypKXeH1I/dtTZ75mWDJzWPK/AtRTwnMy4ArCquATXDiyvdaXQJ/qUK9n76zitTf71bu+LuJ312KJuL2zN+BeDogA/OwQC+8or+X9eD1OMl0QLDXgbpkQg3W4c7/R59n8gQecrSm/p3PY= Received: by 10.82.134.12 with SMTP id h12mr6263916bud.1176019509736; Sun, 08 Apr 2007 01:05:09 -0700 (PDT) Received: from roadrunner.q.local ( [217.185.114.95]) by mx.google.com with ESMTP id g1sm13861732muf.2007.04.08.01.05.04; Sun, 08 Apr 2007 01:05:09 -0700 (PDT) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.8/8.13.8) with ESMTP id l3884tpE040659; Sun, 8 Apr 2007 10:04:55 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Received: (from q@localhost) by roadrunner.q.local (8.13.8/8.13.8/Submit) id l387xH9E040610; Sun, 8 Apr 2007 09:59:17 +0200 (CEST) (envelope-from uspoerlein@gmail.com) Date: Sun, 8 Apr 2007 09:59:17 +0200 From: Ulrich Spoerlein To: Tim Kientzle Message-ID: <20070408075917.GA40103@roadrunner.q.local> Mail-Followup-To: Tim Kientzle , ports@freebsd.org, kris@freebsd.org References: <20070407174756.GA46385@roadrunner.q.local> <4617F67B.7050304@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4617F67B.7050304@freebsd.org> 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: Sun, 08 Apr 2007 08:05:11 -0000 Tim Kientzle wrote: > Sounds like 'tar' inside the chroot is different than the > one outside. You've probably found a bug in the newest > RELENG_6 tar. There are at least two issues here, one is pkg_add refusing a valid (AFAICS) tbz file, the other is bsdtar(1) choosing a different tar format based on unionfs(!). To demonstrate: /vol/live contains a populated world, I have the following mounts :/vol/live on /vol/overlay (unionfs, local, noatime) /usr/ports on /vol/live/usr/ports (nullfs, local, read-only) /usr/ports on /vol/overlay/usr/ports (nullfs, local, read-only) devfs on /vol/live/dev (devfs, local) devfs on /vol/overlay/dev (devfs, local) I chrooted to /vol/overlay and did a make package for libiconv. Then I chrooted to /vol/live and did the same. Observe the different package formats: roadrunner# tar tvvf union/All/libiconv-1.9.2_2.tbz -rw-r--r-- 0 root wheel 2427 Apr 8 07:37 +CONTENTS -rw-r--r-- 0 root wheel 35 Apr 8 07:37 +COMMENT -rw-r--r-- 0 root wheel 676 Apr 8 07:37 +DESC -rwxr-xr-x 0 root wheel 15305 Apr 8 07:37 +MTREE_DIRS -r--r--r-- 0 root wheel 976 Apr 8 07:37 man/man1/iconv.1.gz -r--r--r-- 0 root wheel 1457 Apr 8 07:37 man/man3/iconv.3.gz -r--r--r-- 0 root wheel 2103 Apr 8 07:37 man/man3/iconv_open.3.gz -r--r--r-- 0 root wheel 653 Apr 8 07:37 man/man3/iconv_close.3.gz -r-xr-xr-x 0 root wheel 7724 Apr 8 07:37 bin/iconv -r--r--r-- 0 root wheel 4760 Apr 8 07:37 include/iconv.h -r--r--r-- 0 root wheel 1546 Apr 8 07:37 include/libcharset.h -r--r--r-- 0 root wheel 1391 Apr 8 07:37 include/localcharset.h -rw-r--r-- 0 root wheel 4256 Apr 8 07:37 lib/libcharset.a -r--r--r-- 0 root wheel 807 Apr 8 07:37 lib/libcharset.la lrwxr-xr-x 1 root wheel 0 Apr 8 07:37 lib/libcharset.so -> libcharset.so.1 -r--r--r-- 0 root wheel 8464 Apr 8 07:37 lib/libcharset.so.1 -rw-r--r-- 0 root wheel 998722 Apr 8 07:37 lib/libiconv.a -r--r--r-- 0 root wheel 793 Apr 8 07:37 lib/libiconv.la lrwxr-xr-x 1 root wheel 0 Apr 8 07:37 lib/libiconv.so -> libiconv.so.3 -r--r--r-- 0 root wheel 1002230 Apr 8 07:37 lib/libiconv.so.3 -r--r--r-- 0 root wheel 641 Apr 8 07:37 libdata/charset.alias -r--r--r-- 0 root wheel 3473 Apr 8 07:37 share/doc/libiconv/iconv.1.html -r--r--r-- 0 root wheel 8223 Apr 8 07:37 share/doc/libiconv/iconv.3.html -r--r--r-- 0 root wheel 2384 Apr 8 07:37 share/doc/libiconv/iconv_close.3.html -r--r--r-- 0 root wheel 16401 Apr 8 07:37 share/doc/libiconv/iconv_open.3.html Archive Format: POSIX pax interchange format, Compression: bzip2 roadrunner# tar tvvf real/All/libiconv-1.9.2_2.tbz -rw-r--r-- 0 root wheel 2427 Apr 8 07:37 +CONTENTS -rw-r--r-- 0 root wheel 35 Apr 8 07:37 +COMMENT -rw-r--r-- 0 root wheel 676 Apr 8 07:37 +DESC -r--r--r-- 0 root wheel 15305 Apr 8 07:37 +MTREE_DIRS -r--r--r-- 0 root wheel 976 Apr 8 07:37 man/man1/iconv.1.gz -r--r--r-- 0 root wheel 1457 Apr 8 07:37 man/man3/iconv.3.gz -r--r--r-- 0 root wheel 2103 Apr 8 07:37 man/man3/iconv_open.3.gz -r--r--r-- 0 root wheel 653 Apr 8 07:37 man/man3/iconv_close.3.gz -r-xr-xr-x 0 root wheel 7724 Apr 8 07:37 bin/iconv -r--r--r-- 0 root wheel 4760 Apr 8 07:37 include/iconv.h -r--r--r-- 0 root wheel 1546 Apr 8 07:37 include/libcharset.h -r--r--r-- 0 root wheel 1391 Apr 8 07:37 include/localcharset.h -rw-r--r-- 0 root wheel 4256 Apr 8 07:37 lib/libcharset.a -r--r--r-- 0 root wheel 807 Apr 8 07:37 lib/libcharset.la lrwxr-xr-x 0 root wheel 0 Apr 8 07:37 lib/libcharset.so -> libcharset.so.1 -r--r--r-- 0 root wheel 8464 Apr 8 07:37 lib/libcharset.so.1 -rw-r--r-- 0 root wheel 998722 Apr 8 07:37 lib/libiconv.a -r--r--r-- 0 root wheel 793 Apr 8 07:37 lib/libiconv.la lrwxr-xr-x 0 root wheel 0 Apr 8 07:37 lib/libiconv.so -> libiconv.so.3 -r--r--r-- 0 root wheel 1002230 Apr 8 07:37 lib/libiconv.so.3 -r--r--r-- 0 root wheel 641 Apr 8 07:37 libdata/charset.alias -r--r--r-- 0 root wheel 3473 Apr 8 07:37 share/doc/libiconv/iconv.1.html -r--r--r-- 0 root wheel 8223 Apr 8 07:37 share/doc/libiconv/iconv.3.html -r--r--r-- 0 root wheel 2384 Apr 8 07:37 share/doc/libiconv/iconv_close.3.html -r--r--r-- 0 root wheel 16401 Apr 8 07:37 share/doc/libiconv/iconv_open.3.html Archive Format: POSIX ustar format, Compression: bzip2 So, inside the unionfs mounted base system bsdtar(1) creates different package formats. This in itself shouldn't be a problem. Then pkg_add trips over the symlinks inside this tar file (pkg_add works fine for packages without symlinks, e.g. libtool15). NB: Extracting both files with bsdtar(1) works just fine, it's something that pkg_add does, that breaks it. > Can you email me the troublesome package file? Will do in a separate mail. Ulrich Spoerlein -- "The trouble with the dictionary is you have to know how the word is spelled before you can look it up to see how it is spelled." -- Will Cuppy