NetBSD Problem Report #45004

From njoly@lanfeust.sis.pasteur.fr  Mon May 30 18:07:36 2011
Return-Path: <njoly@lanfeust.sis.pasteur.fr>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id D218D63BA4F
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 30 May 2011 18:07:35 +0000 (UTC)
Message-Id: <20110530170403.774BDDC9BD@lanfeust.sis.pasteur.fr>
Date: Mon, 30 May 2011 19:04:03 +0200 (CEST)
From: njoly@pasteur.fr
Reply-To: njoly@pasteur.fr
To: gnats-bugs@gnats.NetBSD.org
Subject: mkdep(1) empty suffixes list does not work as expected
X-Send-Pr-Version: 3.95

>Number:         45004
>Category:       bin
>Synopsis:       mkdep(1) empty suffixes list does not work as expected
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 30 18:10:00 +0000 2011
>Closed-Date:    Tue May 31 13:29:16 +0000 2011
>Last-Modified:  Tue May 31 13:29:16 +0000 2011
>Originator:     Nicolas Joly
>Release:        NetBSD 5.99.52
>Organization:
Institut Pasteur
>Environment:
System: NetBSD lanfeust.sis.pasteur.fr 5.99.52 NetBSD 5.99.52 (LANFEUST) #6: Mon May 30 16:03:18 CEST 2011 njoly@lanfeust.sis.pasteur.fr:/local/src/NetBSD/obj.amd64/sys/arch/amd64/compile/LANFEUST amd64
Architecture: x86_64
Machine: amd64
>Description:
mkdep(1) does not work as expected when given an empty suffixes list.
It outputs a `.o' suffix where it should not.

njoly@lanfeust [~]> touch sample.c
njoly@lanfeust [~]> mkdep -s '' sample.c 
njoly@lanfeust [~]> cat .depend 
sample.o: sample.c

The correct .depend content should be `sample: sample.c' instead.
Using the `-p' option give the same results.
>How-To-Repeat:
Run the t_mkdep testcase (to be added soon).
>Fix:

>Release-Note:

>Audit-Trail:
From: "Nicolas Joly" <njoly@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/45004 CVS commit: src
Date: Mon, 30 May 2011 18:14:11 +0000

 Module Name:	src
 Committed By:	njoly
 Date:		Mon May 30 18:14:11 UTC 2011

 Modified Files:
 	src/distrib/sets/lists/tests: mi
 	src/etc/mtree: NetBSD.dist.tests
 Added Files:
 	src/tests/usr.bin/mkdep: Makefile t_mkdep.sh

 Log Message:
 Add testcase for PR bin/45004, to exercize suffixes lists for
 mkdep(1).


 To generate a diff of this commit:
 cvs rdiff -u -r1.340 -r1.341 src/distrib/sets/lists/tests/mi
 cvs rdiff -u -r1.48 -r1.49 src/etc/mtree/NetBSD.dist.tests
 cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/mkdep/Makefile \
     src/tests/usr.bin/mkdep/t_mkdep.sh

 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: njoly@NetBSD.org
State-Changed-When: Tue, 31 May 2011 13:29:16 +0000
State-Changed-Why:

christos fixed it. Thanks.


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