Subject: Re: pkg/36588: pkg-build-options.mk fails if no options were selected
To: None <rillig@NetBSD.org, gnats-admin@netbsd.org,>
From: Roland Illig <rillig@NetBSD.org>
List: pkgsrc-bugs
Date: 08/01/2007 01:25:02
The following reply was made to PR pkg/36588; it has been noted by GNATS.

From: Roland Illig <rillig@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/36588: pkg-build-options.mk fails if no options were selected
Date: Wed, 01 Aug 2007 03:21:46 +0200

 Christoph Badura wrote:
 > Hi!
 > 
 > Can you please look at the PR?  Joerg assigned it to you because he says
 > that was your changes.
 
 My problem is that under normal circumstances there should not be any 
 warning in the cases mentioned in the PR. There are three possible cases:
 
 1. The package does not use the options framework at all. In this case, 
 I would not be surprised about the warnings.
 
 2. The package uses the options framework, is already installed and has 
 no options selected. In this case, pkg_info prints an empty line, which 
 is not treated as "empty output" by make (at least for NetBSD 3.0 and 
 current pkgsrc).
 
 3. The package uses the options framework and is not yet installed. In 
 this case, the show-var target is used which also prints an empty line.
 
 Since these cases are the only one I can imagine at the moment, the 
 warnings in the PR are a little surprising to me. I couldn't reproduce 
 it, so I didn't touch it yet.
 
 Roland