NetBSD Problem Report #47017

From dholland@netbsd.org  Sat Sep 29 22:42:32 2012
Return-Path: <dholland@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id ED7C463D798
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 29 Sep 2012 22:42:31 +0000 (UTC)
Message-Id: <20120929224233.9F23214A2E6@mail.netbsd.org>
Date: Sat, 29 Sep 2012 22:42:33 +0000 (UTC)
From: dholland@netbsd.org
Reply-To: dholland@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: mk/jpeg.bl3.mk is order-dependent
X-Send-Pr-Version: 3.95

>Number:         47017
>Category:       pkg
>Synopsis:       mk/jpeg.bl3.mk is order-dependent
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 29 22:45:00 +0000 2012
>Last-Modified:  Sun Sep 30 21:25:01 +0000 2012
>Originator:     David A. Holland
>Release:        pkgsrc of 20120929
>Organization:
>Environment:
n/a
>Description:

If you include ../../mk/jpeg.buildlink3.mk in your package and it
happens to be after some other package you're using has included it in
its own bl3, you don't get a direct dependence on the jpeg library.

>How-To-Repeat:

Do 'make show-depends' in games/flightgear, examine the results and
the makefile.

>Fix:

The problem is that mk/jpeg.bl3.mk is multiple-include-protected, so
the jpeg library's own bl3 is not included except the first time
through. Moving the jpeg library bl3 inclusions outside the include
protection will fix the problem... but may cause other problems, so
I'd like a second opinion before just fixing it myself.

>Audit-Trail:
From: David Holland <dholland-pbugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47017: mk/jpeg.bl3.mk is order-dependent
Date: Sun, 30 Sep 2012 21:24:16 +0000

 On Sat, Sep 29, 2012 at 10:45:00PM +0000, dholland@netbsd.org wrote:
  > >How-To-Repeat:
  > 
  > Do 'make show-depends' in games/flightgear, examine the results and
  > the makefile.

 FTR, this no longer works by default -- but it will if you move the
 inclusion to the bottom of the list.

 -- 
 David A. Holland
 dholland@netbsd.org

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.