NetBSD Problem Report #1464

From gnats  Fri Sep 15 04:26:15 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id EAA16073 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Fri, 15 Sep 1995 04:26:10 -0400
Message-Id: <m0stW4L-00003PC@ra.dachau.marco.de>
Date: Fri, 15 Sep 95 10:24:21 MET
From: "Matthias Pfaller" <leo@dachau.marco.de>
To: gnats-bugs@netbsd.org
Subject: crunchgen and special srcdir

>Number:         1464
>Category:       misc
>Synopsis:       crunchgen should search "special srcdirs" in "normal dirs"
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 15 04:35:02 +0000 1995
>Closed-Date:    Mon Aug 04 12:21:19 +0000 1997
>Last-Modified:  Mon Aug 04 12:21:50 +0000 1997
>Originator:     Matthias Pfaller
>Release:        95/08/26
>Organization:
	marco GmbH, Dachau, Germany
>Environment:
System: NetBSD robin 1.0A NetBSD 1.0A (ROBIN) #3: Mon Sep 11 16:07:11 MSZ 1995 leo@robin:/usr/src/sys/arch/i386/compile/ROBIN i386


>Description:
At the moment it is necessary to specify the absolute path of special srcdirs.
So if one would like to have vi on the install disk, you have to use an
absolute path to /usr/src/usr.bin/vi/common. crunchgen should look for the
special src path in all directories it knows about
>How-To-Repeat:
>Fix:
--- crunchgen.c.orig	Sat May 13 12:06:38 1995
+++ crunchgen.c	Tue Sep 12 22:40:02 1995
@@ -482,6 +482,15 @@

     if(!p->ident) 
 	p->ident = genident(p->name);
+    if(p->srcdir && *p->srcdir != '/' && !is_dir(p->srcdir)) {
+	srcparent = dir_search(p->srcdir);
+	if (srcparent)
+	    sprintf(path, "%s/%s", srcparent, p->srcdir);
+	if(is_dir(path)) {
+	    free(p->srcdir);
+	    p->srcdir = strdup(path);
+	}
+    }	
     if(!p->srcdir) {
 	srcparent = dir_search(p->name);
 	if(srcparent)
-- 
leo@dachau.marco.de			in real life: Matthias Pfaller
marco GmbH, 85221 Dachau, Germany	tel: +49 8131 516142
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: perry 
State-Changed-When: Mon Aug 4 05:21:19 PDT 1997 
State-Changed-Why:  
Submitter said this is already fixed. 
>Unformatted:
 X-send-pr-version: 3.2

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.