Subject: Re: pkg/34470 (pkgsrc 'make replace' broken)
To: None <rillig@NetBSD.org, gnats-admin@netbsd.org,>
From: Roland Illig <rillig@NetBSD.org>
List: pkgsrc-bugs
Date: 09/24/2006 07:25:01
The following reply was made to PR pkg/34470; it has been noted by GNATS.

From: Roland Illig <rillig@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/34470 (pkgsrc 'make replace' broken)
Date: Sun, 24 Sep 2006 09:20:45 +0200

 There is also a timing problem:
 
 When "make replace" is called once, it leaves an .install_done cookie in 
 the WRKDIR. When "make replace" is called once again, that cookie still 
 exists when the Makefiles are loaded, and since there is some code like:
 
      .if exists(${_COOKIE}.install)
      install:
          ${DO_NADA}
      .else
      ...
      .endif
 
 the second "make replace" will not install anything since "the package 
 is already installed".
 
 I think there are many more of these problems only waiting to be discovered.
 
 Roland