NetBSD Problem Report #48620

From  Wed Feb 26 15:34:55 2014
Return-Path: <>
Received: from ( [])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 74133A583C
	for <>; Wed, 26 Feb 2014 15:34:55 +0000 (UTC)
Message-Id: <>
Date: Wed, 26 Feb 2014 16:33:24 +0100 (CET)
From: Thomas Klausner <>
Reply-To: Thomas Klausner <>
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:    imil
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 26 15:35:00 +0000 2014
>Last-Modified:  Wed Feb 26 15:39:48 +0000 2014
>Originator:     Thomas Klausner
>Release:        NetBSD 6.99.32
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

Architecture: x86_64
Machine: amd64
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.
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:

Integer set library required by gcc graphite


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.


# pkg_info gcc48
Information for gcc48-4.8.2nb1:

The GNU Compiler Collection (GCC) - 4.8 Release Series


Required by:

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 for changes relative to 4.7.x.


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

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.



Responsible-Changed-From-To: pkg-manager->imil
Responsible-Changed-When: Wed, 26 Feb 2014 15:39:48 +0000
Please fix this!


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.