NetBSD Problem Report #51733

From hf@spg.tu-darmstadt.de  Wed Dec 21 12:19:02 2016
Return-Path: <hf@spg.tu-darmstadt.de>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 5E4527A2A9
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 21 Dec 2016 12:19:02 +0000 (UTC)
Message-Id: <201612211218.uBLCIvZ1004364@Eisenhut.nt.e-technik.tu-darmstadt.de>
Date: Wed, 21 Dec 2016 13:18:57 +0100 (CET)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: sysutils/xentools42 xl(8) does not honour PKG_SYSCONFBASE
X-Send-Pr-Version: 3.95

>Number:         51733
>Category:       pkg
>Synopsis:       xentools42 xl(8) does not honour PKG_SYSCONFBASE
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 21 12:20:00 +0000 2016
>Closed-Date:    Wed Aug 19 10:47:14 +0000 2020
>Last-Modified:  Wed Aug 19 10:47:14 +0000 2020
>Originator:     Hauke Fath
>Release:        NetBSD 7.0_STABLE
>Organization:
Technische Universitaet Darmstadt
>Environment:


System: NetBSD Eisenhut 7.0_STABLE NetBSD 7.0_STABLE (FEUERKOGEL_DOM0-$Revision$) #0: Wed May 18 13:31:12 CEST 2016 hf@Hochstuhl:/var/obj/netbsd-builds/7/amd64/sys/arch/amd64/compile/FEUERKOGEL_DOM0 amd64
Architecture: x86_64
Machine: amd64
>Description:

	What looked like a routine security patch update of the local
	dom0 xentools sped up my pulse when I saw that the domus
	failed to start.

	It turned out that in spite of

% fgrep SYSCONFBASE /etc/mk.conf
PKG_SYSCONFBASE =       /etc/pkg
%

	the newly-built sysutils/xentools42-4.2.5nb20 xl(8) expects
	its configuration under

# xl list
Failed to read config file: /usr/pkg/etc/xen/xl.conf: No such file or directory
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   512     1     r-----     135.2
[...]
# strings /usr/pkg/sbin/xl | fgrep /usr/pkg/etc
/usr/pkg/etc/xen/xl.conf
#

	A quick symlink saved the day, but still.

	It has been a while since I updated packages on the xen
	machines in question (half a a year easily), so I cannot
	readily pinpoint the responsible change. "It used to work
	before the update."


>How-To-Repeat:

	Update xentools42 on a machine with non-default
	PKG_SYSCONFBASE. Reboot, watch the breakage.


>Fix:

	Use a fine comb, and patience, I guess?



>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: bouyer@NetBSD.org
State-Changed-When: Wed, 19 Aug 2020 10:47:14 +0000
State-Changed-Why:
xentools42 has been deleted


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.