Subject: Re: nbpax broken on Solaris?
To: None <tech-pkg@NetBSD.org, christos@astron.com>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: tech-pkg
Date: 01/31/2006 18:40:21
> Delivered-To: dauphin@enst.fr
> X-Original-To: tech-pkg@netbsd.org
> Delivered-To: tech-pkg@netbsd.org
> X-Injected-Via-Gmane: http://gmane.org/
> To: tech-pkg@NetBSD.org
> From: christos@astron.com (Christos Zoulas)
> Subject: Re: nbpax broken on Solaris?
> X-Complaints-To: usenet@sea.gmane.org
> X-Gmane-NNTP-Posting-Host: rebar.astron.com
> X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
> X-Virus-Scanned: amavisd-new at enst.fr
> 
> In article <20060131130100.C2F9A443C27@groda.boquist.net>,
> Urban Boquist  <urban@boquist.net> wrote:
> >Is this a bug in "pax" from pkgsrc?
> >
> >$ pwd
> >/proj/middleware/work/eurbboq/pkgsrc
> >$ rm -rf foo bar
> >$ mkdir foo bar
> >$ pax -rw foo /proj/middleware/work/eurbboq/pkgsrc/bar
> >pax: Cannot create directory `/proj/middleware' (Operation not applicable)
> >$
> >$ type pax
> >pax is hashed
> >(/proj/middleware/work/eurbboq/SunOS/pkg.2006-01-31/bin/pax)
> >$
> >
> >---
> >The problem seems to be that the destination is a full path where not
> >all path components are writable by the user. Shouldn't pax handle that?
> >
> >This is with pax built from -current pkgsrc bootstrap on Solaris 9/sparc.
> >
> >It breaks the (unprivileged) build of libiconv for me, patch-ab runs
> >pax with a full patch to the destination directory. If I change the
> >destination to ".." it builds ok.
> >
> >Is anyone else seeing this?
> 
> What errno is "Operation not applicable". Is this path component automounted?
> I don't see this errno listed in mkdir(2) in my solaris 2.8 man page.
> Fixing this is trivial: just handle the errno in ar_subs.c:domkdir().
>

I have the same problem with a path component automounted.
My work around is to symlink after the automounted dir.

Gilles