Subject: Re: install(1) removes file if target is same location
To: Jeremy C. Reed <reed@reedmedia.net>
From: Frederick Bruckman <fredb@immanent.net>
List: netbsd-help
Date: 01/31/2004 05:55:58
On Sat, 31 Jan 2004, Jeremy C. Reed wrote:

> 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.

> 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?

I guess that's 1.6.2? Current install doesn't delete the original file
anymore, under any circumstance, so the bug in freedesktop.org's libXt
is probably moot. You might request a pull-up.

Frederick