NetBSD Problem Report #43356

From cheusov@tut.by  Tue May 25 22:49:23 2010
Return-Path: <cheusov@tut.by>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 5C38363B873
	for <gnats-bugs@gnats.netbsd.org>; Tue, 25 May 2010 22:49:23 +0000 (UTC)
Message-Id: <874ohvhf0k.fsf@asrock.chizhovka.net>
Date: Wed, 26 May 2010 00:01:47 +0300
From: cheusov@tut.by
To: gnats-bugs@gnats.NetBSD.org
Subject: bsd.subdir.mk: target <subdir> does not work
X-Send-Pr-Version: 3.95

>Number:         43356
>Category:       bin
>Synopsis:       bsd.subdir.mk: target <subdir> does not work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue May 25 22:50:01 +0000 2010
>Closed-Date:    Wed May 26 01:36:26 +0000 2010
>Last-Modified:  Tue Sep 08 04:45:00 +0000 2015
>Originator:     Aleksey Cheusov
>Release:        NetBSD 5.0_STABLE
>Organization:
>Environment:
System: NetBSD asrock.chizhovka.net 5.0_STABLE NetBSD 5.0_STABLE (GENERIC) #0: Sat Feb 20 12:33:43 EET 2010 cheusov@asrock.chizhovka.net:/srv/obj/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
bsd.README says
       bsd.subdir.mk:
                ...
                There is also a default target which allows the command
                "make subdir" where subdir is any directory listed in
                ${SUBDIR}.

Target <subdir> actually does not work both with
/usr/share/mk/bsd.subdir.mk and /usr/pkg/share/mk/bsd.subdir.mk.

>How-To-Repeat:
==========================================================
0 mytest>ls -la
total 20
drwxr-xr-x   4 cheusov  10001   512 May 25 23:51 .
drwxr-xr-x  65 cheusov  10001  2048 May 25 23:50 ..
-rw-r--r--   1 cheusov  10001    48 May 25 23:50 Makefile
drwxr-xr-x   2 cheusov  10001   512 May 25 23:51 test5
drwxr-xr-x   2 cheusov  10001   512 May 25 23:51 test50
0 mytest>cat Makefile
SUBDIR=         test50 test5

.include <bsd.subdir.mk>
0 mytest>cat test5/Makefile
all:
        echo 5
0 mytest>cat test50/Makefile
all:
        echo 50
0 mytest>find . -type f
./test50/Makefile
./Makefile
./test5/Makefile
0 mytest>make test5
`test5' is up to date.
0 mytest>make test50
`test50' is up to date.
0 mytest>
==========================================================
I expect that "make test5" should print 5 and "make test50" should print 50 .

>Fix:

>Release-Note:

>Audit-Trail:
From: "Valeriy E. Ushakov" <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/43356: bsd.subdir.mk: target <subdir> does not work
Date: Wed, 26 May 2010 05:05:06 +0400

 I guess bsd.README needs to be updated:

   revision 1.31
   date: 1999/02/11 05:01:39;  author: tv;  state: Exp;  lines: +1 -5
   Remove `dirname: all-dirname' compatibility hack.  It's been long supposed
   to go away, and even commented as such....

 -uwe

From: "Valeriy E. Ushakov" <uwe@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43356 CVS commit: src/share/mk
Date: Wed, 26 May 2010 01:10:10 +0000

 Module Name:	src
 Committed By:	uwe
 Date:		Wed May 26 01:10:10 UTC 2010

 Modified Files:
 	src/share/mk: bsd.README

 Log Message:
 bsd.subdir.mk - don't mention "make subdir" where subdir is any
 directory listed in ${SUBDIR} as ${dir}: all-${dir} alias was removed
 from 11 years ago (revision 1.31)

 PR bin/43356


 To generate a diff of this commit:
 cvs rdiff -u -r1.266 -r1.267 src/share/mk/bsd.README

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: uwe@NetBSD.org
State-Changed-When: Wed, 26 May 2010 01:36:26 +0000
State-Changed-Why:
This feature was removed 11 years ago.
Documentation is now fixed.


From: Aleksey Cheusov <cheusov@tut.by>
To: gnats-bugs@NetBSD.org
Cc: "Valeriy E. Ushakov" <uwe@stderr.spb.ru>
Subject: Re: bin/43356: bsd.subdir.mk: target <subdir> does not work
Date: Fri, 28 May 2010 00:41:19 +0300

 Could you please apply the same changes to
 pkgtools/bootstrap-mk-files/files/bsd.README
 ?

 -- 
 Best regards, Aleksey Cheusov.

From: "David A. Holland" <dholland@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43356 CVS commit: pkgsrc/pkgtools/bootstrap-mk-files
Date: Tue, 8 Sep 2015 04:41:04 +0000

 Module Name:	pkgsrc
 Committed By:	dholland
 Date:		Tue Sep  8 04:41:04 UTC 2015

 Modified Files:
 	pkgsrc/pkgtools/bootstrap-mk-files: Makefile
 	pkgsrc/pkgtools/bootstrap-mk-files/files: bsd.README

 Log Message:
 Per PR 43356, remove references to rules for 'make subdir' for any
 subdir in SUBDIRS, as that feature was removed in 1999.

 Bump package date to 20150908 as this is a change, even if it's a
 fairly minor change.


 To generate a diff of this commit:
 cvs rdiff -u -r1.48 -r1.49 pkgsrc/pkgtools/bootstrap-mk-files/Makefile
 cvs rdiff -u -r1.2 -r1.3 pkgsrc/pkgtools/bootstrap-mk-files/files/bsd.README

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

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.