NetBSD Problem Report #55749

From www@netbsd.org  Fri Oct 23 21:25:18 2020
Return-Path: <www@netbsd.org>
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 "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 6C68A1A923E
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 23 Oct 2020 21:25:18 +0000 (UTC)
Message-Id: <20201023212517.A51CB1A9254@mollari.NetBSD.org>
Date: Fri, 23 Oct 2020 21:25:17 +0000 (UTC)
From: bruce.lilly@gmail.com
Reply-To: bruce.lilly@gmail.com
To: gnats-bugs@NetBSD.org
Subject: sysupgrade doesn't check/update pkgin repository configuration
X-Send-Pr-Version: www-1.0

>Number:         55749
>Category:       pkg
>Synopsis:       sysupgrade doesn't check/update pkgin repository configuration
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 23 21:30:00 +0000 2020
>Last-Modified:  Mon Oct 26 22:15:01 +0000 2020
>Originator:     Bruce Lilly
>Release:        9.0/9.1 amd64
>Organization:
>Environment:
NetBSD x555l.blilly.net 9.1 NetBSD 9.1 (GENERIC) #0: Sun Oct 18 19:24:30 UTC 2020  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64 x86_64 Intel 686-class NetBSD
>Description:
Noticed after reboot following upgrade from 9.0 to 9.1 via sysupgrade.
Pkgin configuration (/usr/pkg/etc/pkgin/repositories.conf) still points to repositories for old version; sysupgrade hadn't upgraded it.

processing remote summary (http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/amd64/9.0/All)...
^C


>How-To-Repeat:
Install 9.0.
Install pkgin, either during installation or later.
Upgrade to 9.1 via sysupgrade, checking each step of postinstall.
Reboot.
pkgin update
>Fix:
Manually update /usr/pkg/etc/pkgin/repositories.conf.

>Audit-Trail:
From: nia <nia@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/55749: sysupgrade doesn't check/update pkgin repository
 configuration
Date: Mon, 26 Oct 2020 22:13:01 +0000

 The directory for 9.1 is actually a symlink to the directory for 9.0
 because packages are only built for the first point release.

 I don't know whether this bug is more suitable for sysupgrade's github
 repository, or whether automatically updating config for packages is
 in-scope for sysupgrade.

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.