Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Apr 2007 19:47:56 +0200
From:      Ulrich Spoerlein <uspoerlein@gmail.com>
To:        ports@freebsd.org
Cc:        Tim Kientzle <kientzle@acm.org>
Subject:   Cannot package converters/libiconv inside clean chroot
Message-ID:  <20070407174756.GA46385@roadrunner.q.local>

next in thread | raw e-mail | index | archive | help
Hi all,

I'm facing a strange problem, where I cannot pkg_add a libiconv.tbz
which was build inside a clean chroot. I did the following (on
RELENG_6).

1. make buildworld
2. make installworld DESTDIR=/vol/base
2b. mkdir /vol/base/usr/ports
3. mount -t unionfs -o below,noatime /vol/base /vol/work
4. mount -t unionfs -o below,noatime /usr/ports /vol/work/usr/ports
5. mount -t devfs devfs /vol/work/dev
6. chroot /vol/base
7. cd /usr/ports/devel/libtool15 && make package
8. cd /usr/ports/converters/libiconv && make package

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 
Requested space: 5745424 bytes, free space: 6164271104 bytes in /var/tmp/instmp.bffgtA
lib/libcharset.so: Couldn't stat file: No such file or directory
lib/libiconv.so: Couldn't stat file: No such file or directory
pkg_add: tar extract of /usr/ports/converters/libiconv/libiconv-1.9.2_2.tbz failed!
pkg_add: unable to extract '/usr/ports/converters/libiconv/libiconv-1.9.2_2.tbz'!
pkg_add: 1 package addition(s) failed


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 
-rw-r--r--  0 root   wheel    2427 Apr  7 17:34 +CONTENTS
-rw-r--r--  0 root   wheel      35 Apr  7 17:34 +COMMENT
-rw-r--r--  0 root   wheel     676 Apr  7 17:34 +DESC
-rwxr-xr-x  0 root   wheel   15305 Apr  7 17:34 +MTREE_DIRS
-r--r--r--  0 root   wheel     976 Apr  7 17:34 man/man1/iconv.1.gz
-r--r--r--  0 root   wheel    1457 Apr  7 17:34 man/man3/iconv.3.gz
-r--r--r--  0 root   wheel    2103 Apr  7 17:34 man/man3/iconv_open.3.gz
-r--r--r--  0 root   wheel     653 Apr  7 17:34 man/man3/iconv_close.3.gz
-r-xr-xr-x  0 root   wheel    7724 Apr  7 17:34 bin/iconv
-r--r--r--  0 root   wheel    4760 Apr  7 17:34 include/iconv.h
-r--r--r--  0 root   wheel    1546 Apr  7 17:34 include/libcharset.h
-r--r--r--  0 root   wheel    1391 Apr  7 17:34 include/localcharset.h
-rw-r--r--  0 root   wheel    4256 Apr  7 17:34 lib/libcharset.a
-r--r--r--  0 root   wheel     807 Apr  7 17:34 lib/libcharset.la
lrwxr-xr-x  1 root   wheel       0 Apr  7 17:34 lib/libcharset.so -> libcharset.so.1
-r--r--r--  0 root   wheel    8464 Apr  7 17:34 lib/libcharset.so.1
-rw-r--r--  0 root   wheel  998722 Apr  7 17:34 lib/libiconv.a
-r--r--r--  0 root   wheel     793 Apr  7 17:34 lib/libiconv.la
lrwxr-xr-x  1 root   wheel       0 Apr  7 17:34 lib/libiconv.so -> libiconv.so.3
-r--r--r--  0 root   wheel 1002230 Apr  7 17:34 lib/libiconv.so.3
-r--r--r--  0 root   wheel     641 Apr  7 17:34 libdata/charset.alias
-r--r--r--  0 root   wheel    3473 Apr  7 17:34 share/doc/libiconv/iconv.1.html
-r--r--r--  0 root   wheel    8223 Apr  7 17:34 share/doc/libiconv/iconv.3.html
-r--r--r--  0 root   wheel    2384 Apr  7 17:34 share/doc/libiconv/iconv_close.3.html
-r--r--r--  0 root   wheel   16401 Apr  7 17:34 share/doc/libiconv/iconv_open.3.html
Archive Format: POSIX pax interchange format,  Compression: bzip2

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?

Another strange thing is the pax format. Older packages built outside
the chroot have the following format:
Archive Format: POSIX ustar format,  Compression: bzip2

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



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