Subject: /usr/bin/install, and NFS filesystems.
To: None <current-users@NetBSD.ORG>
From: Brian D Chase <brianc@carpediem.com>
List: current-users
Date: 06/20/1997 19:40:49
I've got a VAXstation 3100/38 with an NFS mounted root filesystem.  When
compiling under the recent NetBSD-current tree, I came across the
following problem:

--
 atari-vax# make install
 install -c -o bin -g bin -m 600 libc.a  /usr/lib
 install: /usr/lib/libc.a: chflags: Operation not supported
 *** Error code 1

 Stop.
 atari-vax#
--

I traced the difficulty to the src/usr.bin/xinstall/xinstall.c file where
the chflags system call was made in two instances prior to removing a
file.

Someone else around the beginning of March 97 made the same observation
when dealing with some files installed under an NFS mounted /usr/share on 
their NetBSD/i386 systems. I didn't see any replies to his problem, so I
thought I'd bring it up again (since it's an issue with me).

I fixed things by hacking out the calls to chflags in xinstall.c.  Is
there any really valid reason for their presence, or is there a way to
write xinstall such that the code is aware of less endowed filesystems?

-brian.
---------------------------------------------------------------------------
Brian D. Chase         Systems Coordinator        brian.chase@carpediem.com
-- Compression, Inc. - 13765 Alton Pkwy, Suite B - Irvine, CA 92618, USA --