Subject: install(1) removes file if target is same location
To: None <netbsd-help@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 01/31/2004 00:25:42
The libXt (from freedesktop.org) Makefile does:

install $(top_srcdir)/util/*.ht $(top_srcdir)/util/*.ct $(top_builddir)/util/

But top_builddir is same as top_srcdir (as far as I can tell).

So install fails to put in place and deletes original. For example:

$ cd /tmp
rainier:/tmp$ touch something
$ install something /tmp
install: /tmp/something: chflags: No such file or directory
$ ls -l /tmp/something
ls: /tmp/something: No such file or directory


rainier:/tmp$ ident /usr/bin/install
/usr/bin/install:
     $NetBSD: crt0.c,v 1.12 2001/12/30 23:23:38 thorpej Exp $
     $NetBSD: stat_flags.c,v 1.13 2002/01/31 22:43:34 tv Exp $
     $NetBSD: xinstall.c,v 1.71 2002/04/10 06:12:04 lukem Exp $

Maybe I should send-pr?

   Jeremy C. Reed
   http://www.reedmedia.net/