NetBSD Problem Report #48620

From wiz@yt.nih.at  Wed Feb 26 15:34:55 2014
Return-Path: <wiz@yt.nih.at>
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 74133A583C
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 26 Feb 2014 15:34:55 +0000 (UTC)
Message-Id: <20140226153324.9C43C2AC0D1@yt.nih.at>
Date: Wed, 26 Feb 2014 16:33:24 +0100 (CET)
From: Thomas Klausner <wiz@NetBSD.org>
Reply-To: Thomas Klausner <wiz@NetBSD.org>
To: gnats-bugs@NetBSD.org
Subject: pkgin loses dependency information in pkg_install database
X-Send-Pr-Version: 3.95

>Number:         48620
>Category:       pkg
>Synopsis:       pkgin loses dependency information in pkg_install database
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    jperkin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 26 15:35:00 +0000 2014
>Closed-Date:    Tue May 05 05:51:41 +0000 2020
>Last-Modified:  Tue May 05 05:51:41 +0000 2020
>Originator:     Thomas Klausner
>Release:        NetBSD 6.99.32
>Organization:
Curiosity is the very basis of education and if you tell me that 
curiosity killed the cat, I say only that the cat died nobly.
- Arnold Edinborough
>Environment:


Architecture: x86_64
Machine: amd64
>Description:
When using 'pkgin fug' to update packages, they lose the information by what packages
they are needed, while the packages needing them still know about this.
This causes problems later-on. For example, when you do pkg_delete -r, not all
depending packages are removed.
>How-To-Repeat:
Upgrade a package that is used by another one.
Example, after upgrading isl with 'pkgin fug':

# pkg_info isl
Information for isl-0.12.2:

Comment:
Integer set library required by gcc graphite

Requires:
gmp>=5.0.1

Description:
isl is a library for manipulating sets and relations of integer
points bounded by linear constraints. Supported operations on sets
include intersection, union, set difference, emptiness check, convex
hull, (integer) affine hull, integer projection, and computing the
lexicographic minimum using parametric integer programming. It also
includes an ILP solver based on generalized basis reduction.

Homepage:
http://isl.gforge.inria.fr/

# pkg_info gcc48
Information for gcc48-4.8.2nb1:

Comment:
The GNU Compiler Collection (GCC) - 4.8 Release Series

Requires:
gmp>=5.0.1
mpcomplex>=0.8.2
mpfr>=3.0.0.3
cloog>=0.18.0nb1
isl>=0.11.1

Required by:
icc11-11.1.080nb2

Description:
The GNU Compiler Collection (GCC) includes front ends for C, C++, Objective-C,
Fortran, Java, and Go, as well as libraries for these languages (libstdc++,
libgcj,...). This package provides the snapshot relases of version 4.8.
See http://gcc.gnu.org/gcc-4.8/changes.html for changes relative to 4.7.x.

Homepage:
http://gcc.gnu.org/

So isl doesn't know that gcc48 needs it, but gcc48 still remembers.

>Fix:
Do what 'make replace' does.
Move the file with the dependency information aside and restore it after
updating the package.


For bonus points: mark the depending packages with unsafe_depends, like
pkg_rr does.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->imil
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Wed, 26 Feb 2014 15:39:48 +0000
Responsible-Changed-Why:
Please fix this!


Responsible-Changed-From-To: imil->pkg-manager
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 02 Apr 2018 09:33:32 +0000
Responsible-Changed-Why:
imil observes


Responsible-Changed-From-To: pkg-manager->jperkin
Responsible-Changed-By: jperkin@NetBSD.org
Responsible-Changed-When: Tue, 03 Apr 2018 14:35:18 +0000
Responsible-Changed-Why:
I'll take this.


State-Changed-From-To: open->feedback
State-Changed-By: jperkin@NetBSD.org
State-Changed-When: Mon, 20 Apr 2020 11:47:06 +0000
State-Changed-Why:
Is this still an issue?  pkgin has changed a lot since, but always uses pkg_install
for the actual pkgdb changes anyway so if there are still problems then we should fix
them there.


From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: 
Subject: Re: pkg/48620 (pkgin loses dependency information in pkg_install
 database)
Date: Mon, 20 Apr 2020 14:40:24 +0200

 On Mon, Apr 20, 2020 at 11:47:06AM +0000, Jonathan Perkin wrote:
 > Synopsis: pkgin loses dependency information in pkg_install database
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: jperkin@NetBSD.org
 > State-Changed-When: Mon, 20 Apr 2020 11:47:06 +0000
 > State-Changed-Why:
 > Is this still an issue?  pkgin has changed a lot since, but always uses pkg_install
 > for the actual pkgdb changes anyway so if there are still problems then we should fix
 > them there.

 The ones I've seen lately are probably from the
 upper-bounds-limitation you posted about recently.

 It's ok with me to close this one, and I'll report back (or open a new
 one) if it still happens after your bugfix is committed.
  Thomas

State-Changed-From-To: feedback->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Tue, 05 May 2020 05:51:41 +0000
State-Changed-Why:
Let's wait for this to reoccur


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