NetBSD Problem Report #34913

From chuck@xxx.pdl.cmu.edu  Wed Oct 25 18:38:17 2006
Return-Path: <chuck@xxx.pdl.cmu.edu>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id C1DBC63BA73
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 25 Oct 2006 18:38:16 +0000 (UTC)
Message-Id: <200610251838.k9PIc44L026643@xxx.pdl.cmu.edu>
Date: Wed, 25 Oct 2006 14:38:04 -0400 (EDT)
From: chuck@ece.cmu.edu
Reply-To: chuck@ece.cmu.edu
To: gnats-bugs@NetBSD.org
Subject: absolute paths from build machine in /var/db/libc.tags
X-Send-Pr-Version: 3.95

>Number:         34913
>Category:       lib
>Synopsis:       absolute paths from build machine in /var/db/libc.tags
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lib-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 25 18:40:00 +0000 2006
>Closed-Date:    Fri Jan 24 19:16:50 +0000 2025
>Last-Modified:  Fri Jan 24 19:16:50 +0000 2025
>Originator:     Chuck Cranor
>Release:        NetBSD 3.0
>Organization:
pdl.cmu.edu
>Environment:

ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0.1/i386/binary/sets/comp.tgz

>Description:

	the build process builds a ./var/db/libc.tags in the comp.tgz
	set with absolute path names from the build machine.   this 
	results in lines like this:

yp_unbind       /home/builds/ab/netbsd-3-0-1-RELEASE/src/lib/libc/yp/yplib.c    /^yp_unbind(dom)$/
yperr_string    /home/builds/ab/netbsd-3-0-1-RELEASE/src/lib/libc/yp/yperr_string.c     /^yperr_string(incode)$/
ypmatch_add     /home/builds/ab/netbsd-3-0-1-RELEASE/src/lib/libc/yp/yp_match.c /^ypmatch_add(map, key, keylen, val, vallen)$/
ypmatch_find    /home/builds/ab/netbsd-3-0-1-RELEASE/src/lib/libc/yp/yp_match.c /^ypmatch_find(map, key, keylen, val, vallen)$/
ypprot_err      /home/builds/ab/netbsd-3-0-1-RELEASE/src/lib/libc/yp/ypprot_err.c       /^ypprot_err(incode)$/



	I cannot see how this is useful, since most people will not
	have a /home/builds/ab/netbsd-3-0-1-RELEASE directory!



>How-To-Repeat:

	build NetBSD release.

>Fix:

	- sed it at build time into /usr/src and assume everyone is going 
	  to have a /usr/src directory (or symlink) that points to the 
	  right place.

	or 

	- put relative paths in the file and have some sort of
	  environment option that you can point at the source tree?


>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: maya@NetBSD.org
State-Changed-When: Fri, 24 Jan 2025 19:16:50 +0000
State-Changed-Why:
Thefirst option of converting it to /usr/src was done -- if you set MKREPRO=yes, which we do for release builds.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.