NetBSD Problem Report #51496

From he@smistad.uninett.no  Fri Sep 23 10:14:33 2016
Return-Path: <he@smistad.uninett.no>
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 9B8B57A16D
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 23 Sep 2016 10:14:33 +0000 (UTC)
Message-Id: <20160923100943.7180B43EA7C@smistad.uninett.no>
Date: Fri, 23 Sep 2016 12:09:43 +0200 (CEST)
From: he@uninett.no
Reply-To: he@uninett.no
To: gnats-bugs@NetBSD.org
Subject: pkgin removes packages even though package exists in repository
X-Send-Pr-Version: 3.95

>Number:         51496
>Category:       pkg
>Synopsis:       pkgin removes packages even though package exists in repository
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 23 10:15:00 +0000 2016
>Originator:     he@uninett.no
>Release:        NetBSD 7.0
>Organization:
	UNINETT AS
>Environment:
System: NetBSD smistad.uninett.no 7.0 NetBSD 7.0 (GENERIC.201509250726Z) amd64
Architecture: x86_64
Machine: amd64
>Description:
	While doing a "pkgin full-upgrade", I get this:	

smistad# pkgin fug
calculating dependencies... done.

1 packages to be upgraded:

fontconfig-2.12.0

2 packages to be removed: 

libreoffice-5.1.4.2

1 packages to be installed (975K to download, 1322B to install):

fontconfig-2.12.1

proceed ? [Y/n] n
smistad# pkgin se libreoffice
libreoffice5-bin-5.1.0  Integrated office productivity suite (binary pkg)
libreoffice43-4.3.7.2nb10  Office productivity suite, 4.x branch
libreoffice4-bin-4.4.7  Integrated office productivity suite (binary pkg)
libreoffice4-4.4.7.2nb6  Office productivity suite, 4.x branch
libreoffice-5.1.4.2 = Office productivity suite from The Document Foundation

=: package is installed and up-to-date
<: package is installed but newer version is available
>: installed package has a greater version than available package
smistad# 

	I went ahead and did the "pkgin fug" anyway, and patched it up
	afterwards by installing it, after having done "pkg_admin
	rebuild" and "pkg_admin rebuild-tree", but it still insisted
	on the same set of packages to be removed and not reinstalled.

	This behaviour violates (at best) the principle of least
	surprise.

	Why did pkgin insist on removing libreoffice?

	Why wasn't it reinstalled?  It *does* exist in the repository,
	and reinstalling it manually afterwards isn't a problem:

smistad# pkgin in libreoffice
calculating dependencies... done.

nothing to upgrade.
1 packages to be installed (257M to download, 943M to install):

libreoffice-5.1.4.2

proceed ? [Y/n] 
downloading packages...
libreoffice-5.1.4.2.tgz             100%  257MB   3.6MB/s   0.9KB/s   01:11    
installing packages...
installing libreoffice-5.1.4.2...
===========================================================================
$NetBSD: MESSAGE,v 1.1 2015/08/12 00:57:20 ryoon Exp $

To enable Java support, please set JDK path in Tools->Options->Advanced.
===========================================================================
pkg_install warnings: 0, errors: 0
reading local summary...
processing local summary...
marking libreoffice-5.1.4.2 as non auto-removable
smistad# 

>How-To-Repeat:
	Don't exactly know...

>Fix:
	Sorry, none provided.

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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.