Subject: Re: build.sh -x not working with readonly /usr/xsrc
To: Ronald van der Pol <Ronald.vanderPol@rvdp.org>
From: Luke Mewburn <lukem@NetBSD.org>
List: current-users
Date: 04/13/2004 23:08:03
--2Mhf1+ydQLhYCbMZ
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 13, 2004 at 02:59:01PM +0200, Ronald van der Pol wrote:
  | I am trying to build X11 as an unprivileged user (-current and xsrc
  | cvs'ed today). /usr/xsrc is owned by root.
  |=20
  | $ sh build.sh -x -u -U \
  | -T /export/NetBSD-current/tools-i386 \
  | -M /export/NetBSD-current/obj-i386 \
  | -D /export/NetBSD-current/build-i386 \
  | -R /export/NetBSD-current/release-i386 \
  | release
  |=20
  | [...]
  |=20
  | includes =3D=3D=3D> lib/Xrender
  | includes =3D=3D=3D> lib/GL
  | includes =3D=3D=3D> lib/Xmu
  | includes =3D=3D=3D> lib/dps
  | #    create  dps//usr/xsrc/xfree/xc/lib/dps/dpsclrops.h
  | rm -f /usr/xsrc/xfree/xc/lib/dps/dpsclrops.h
  | rm: /usr/xsrc/xfree/xc/lib/dps/dpsclrops.h: Permission denied

This is because  /usr/xsrc/xfree/xc/lib/dps/dpsclrops.h
is a temporary "stale" file generated at runtime by a previous build,
most likely a previous "native" build of X11.

Ensure you have up to date source without any of these
temporary stale files, otherwise the build process with be confused by
these.

The same problem can occur if you have .o files in a read-only
source tree.

--2Mhf1+ydQLhYCbMZ
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAe+YzpBhtmn8zJHIRAtwsAKCTRU2LNSrqxvGu1WeGC3FMV/FROgCeMTOt
YRwqR5TsUhlyaKBBjXkqE0Q=
=eqN2
-----END PGP SIGNATURE-----

--2Mhf1+ydQLhYCbMZ--