NetBSD Problem Report #47956

From reinoud@heethoofdje.13thmonkey.org  Sun Jun 23 15:09:35 2013
Return-Path: <reinoud@heethoofdje.13thmonkey.org>
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 B864271586
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 23 Jun 2013 15:09:35 +0000 (UTC)
Message-Id: <20130623150946.CBDEE28192F0@heethoofdje.13thmonkey.org>
Date: Sun, 23 Jun 2013 17:09:46 +0200 (CEST)
From: reinoud@heethoofdje.13thmonkey.org
Reply-To: reinoud@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: etcupdate asks for questions it can derive
X-Send-Pr-Version: 3.95

>Number:         47956
>Category:       install
>Synopsis:       etcupdate asks for questions it can derive
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    install-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 23 15:10:00 +0000 2013
>Closed-Date:    Wed Feb 24 20:10:11 +0000 2016
>Last-Modified:  Wed Feb 24 20:10:11 +0000 2016
>Originator:     Reinoud Zandijk
>Release:        NetBSD 6.1_RC2
>Organization:
NetBSD

>Environment:


System: NetBSD heethoofdje.13thmonkey.org 6.1_RC2 NetBSD 6.1_RC2 (GENERIC) #13: Sat Mar 23 21:29:58 CET 2013 reinoud@heethoofdje.13thmonkey.org:/usr/sources/cvs.netbsd.org/src-6-debug/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

When updating a NetBSD machine, one has to run `etcupdate' after unpacking the
new sets. It then tries to merge the changes in files in the /etc directory
with the new /etc files. What is annoying is that some changes can be fixed by
postinstall(8) but are asked by etcupdate too like user/group additions but
also etcupdate shows diffs between the installed scripts and new scripts.

What i would like to see is making etcupdate smarter, like first checking if a
file has been modified by the user and if not install the newer one over it.
If its changed, ask the user if it can auto-patch it. This can be done just
like cvs updates it, by creating a patch file on the origional and then
applying it on the new one.


>How-To-Repeat:
Use etcupdate after unpacking the sets and get lots of tedius questions that
need some expert knowledge (from a newbies perspective) to answer. Most of
them are auto-solvable if not auto-patchable.


>Fix:
Fixup etcupdate


>Release-Note:

>Audit-Trail:
From: Valery Ushakov <uwe@stderr.spb.ru>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: install/47956: etcupdate asks for questions it can derive
Date: Thu, 4 Jul 2013 04:33:38 +0400

 On Sun, Jun 23, 2013 at 15:10:00 +0000, reinoud@heethoofdje.13thmonkey.org wrote:

 > What i would like to see is making etcupdate smarter, like first
 > checking if a file has been modified by the user and if not install
 > the newer one over it.  If its changed, ask the user if it can
 > auto-patch it. This can be done just like cvs updates it, by
 > creating a patch file on the origional and then applying it on the
 > new one.

 See -a -l options in the manual page.

 -uwe

State-Changed-From-To: open->feedback
State-Changed-By: uwe@NetBSD.org
State-Changed-When: Thu, 04 Jul 2013 00:36:57 +0000
State-Changed-Why:
Functionality already present.


State-Changed-From-To: feedback->closed
State-Changed-By: uwe@NetBSD.org
State-Changed-When: Wed, 24 Feb 2016 20:10:11 +0000
State-Changed-Why:
Feedback timeout.


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