NetBSD Problem Report #48066

From hf@spg.tu-darmstadt.de  Fri Jul 19 13:12:38 2013
Return-Path: <hf@spg.tu-darmstadt.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id CA9B87199A
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 19 Jul 2013 13:12:38 +0000 (UTC)
Message-Id: <201307191308.r6JD8F5j019817@Gstoder.nt.e-technik.tu-darmstadt.de>
Date: Fri, 19 Jul 2013 15:08:15 +0200 (CEST)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@gnats.NetBSD.org
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: etcupdate(8) does not update NIS domain Makefile(s)
X-Send-Pr-Version: 3.95

>Number:         48066
>Category:       bin
>Synopsis:       etcupdate(8) does not update NIS domain Makefile(s)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kre
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 19 13:15:00 +0000 2013
>Last-Modified:  Wed Jun 19 01:19:11 +0000 2019
>Originator:     Hauke Fath
>Release:        NetBSD 6.1_RC1
>Organization:
-- 
     The ASCII Ribbon Campaign                    Hauke Fath
()     No HTML/RTF in email	        Institut für Nachrichtentechnik
/\     No Word docs in email                     TU Darmstadt
     Respect for open standards              Ruf +49-6151-16-3281
>Environment:


System: NetBSD Gstoder 6.1_RC1 NetBSD 6.1_RC1 (MONOLITHIC) #0: Fri Mar 8 14:41:56 CET 2013 hf@Hochstuhl:/var/obj/netbsd-builds/6/i386/sys/arch/i386/compile/MONOLITHIC i386
Architecture: i386
Machine: i386
>Description:

	The etcupdate(8) tool takes care of updating the 
	/var/yp/Makefile.{main,yp} files, but it does not look at the 
	Makefiles in /var/yp/$(domainname). They start out as copies
	of Makefile.yp, and unlike the latter, they are sourced when
	you do a 'cd /var/yp ; make'.


>How-To-Repeat:

	Run etcupdate after an update that ships a new
	/var/yp/Makefile.yp, and find you have to manually patch your
	/var/yp/$(domainname)/Makefile.

>Fix:

	Add /var/yp/*/Makefile to the list of files to be updated,
	comparing them against the new var/yp/Makefile.yp.

>Release-Note:

>Audit-Trail:
From: matthew green <mrg@eterna.com.au>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: re: bin/48066: etcupdate(8) does not update NIS domain Makefile(s)
Date: Sat, 20 Jul 2013 00:30:11 +1000

 wouldn't it be smarter to make these Makefile copies be symlinks,
 and then we only have to update one?  if the admin wants to change
 it some how, they can do that, and then it its their responsibility
 to update it later.


 .mrg.

From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@NetBSD.org
Subject: Re: bin/48066: etcupdate(8) does not update NIS domain Makefile(s)
Date: Fri, 19 Jul 2013 17:42:38 +0200

 On Fri, 19 Jul 2013 14:35:00 +0000 (UTC), matthew green wrote:
 >  wouldn't it be smarter to make these Makefile copies be symlinks,
 >  and then we only have to update one?  if the admin wants to change
 >  it some how, they can do that, and then it its their responsibility
 >  to update it later.

 Well, you might want to serve several NIS domains from one machine,=20
 with different sets of maps and parameters (which all have to be=20
 configured in the Makefile).=20

 --=20
      The ASCII Ribbon Campaign                    Hauke Fath
 ()     No HTML/RTF in email            Institut f=FCr Nachrichtentechnik
 /\     No Word docs in email                     TU Darmstadt
      Respect for open standards              Ruf +49-6151-16-3281

From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/48066: etcupdate(8) does not update NIS domain Makefile(s)
Date: Sat, 20 Jul 2013 06:13:43 +0000

 On Fri, Jul 19, 2013 at 03:55:00PM +0000, Hauke Fath wrote:
  >  >  wouldn't it be smarter to make these Makefile copies be symlinks,
  >  >  and then we only have to update one?  if the admin wants to change
  >  >  it some how, they can do that, and then it its their responsibility
  >  >  to update it later.
  >  
  >  Well, you might want to serve several NIS domains from one machine,=20
  >  with different sets of maps and parameters (which all have to be=20
  >  configured in the Makefile).=20

 A better approach would be to fix NIS...

 -- 
 David A. Holland
 dholland@netbsd.org

Responsible-Changed-From-To: bin-bug-people->kre
Responsible-Changed-By: kre@NetBSD.org
Responsible-Changed-When: Wed, 19 Jun 2019 01:19:11 +0000
Responsible-Changed-Why:
I am looking into this PR


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.