NetBSD Problem Report #37451
From martin@duskware.de Thu Nov 29 22:00:32 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id C8B6F63B935
for <gnats-bugs@gnats.netbsd.org>; Thu, 29 Nov 2007 22:00:31 +0000 (UTC)
Message-Id: <20071129184521.C4CBD63B942@narn.NetBSD.org>
Date: Thu, 29 Nov 2007 18:45:21 +0000 (UTC)
From: rillig@NetBSD.org
Reply-To: rillig@NetBSD.org
To: netbsd-bugs-owner@NetBSD.org
Subject: pkg_add allows to install conflicting packages
X-Send-Pr-Version: www-1.0
>Number: 37451
>Category: pkg
>Synopsis: pkg_add allows to install conflicting packages
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: rillig
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 29 22:05:01 +0000 2007
>Closed-Date: Fri Nov 30 00:33:44 +0000 2007
>Last-Modified: Fri Nov 30 10:55:04 +0000 2007
>Originator: Roland Illig
>Release: pkgsrc-current
>Organization:
>Environment:
>Description:
I have a binary package GConf-2.20 that conflicts with GConf2-[0-9]*. In my repository of binary packages, there are still packages that depend on the old GConf2 package, so when I pkg_add one of those packages, GConf2 gets installed although it conflicts with the new GConf package.
>How-To-Repeat:
>Fix:
When installing a package, check that none of the installed packages conflicts with the to-be-added package.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: rillig@netbsd.org
Responsible-Changed-When: Fri, 30 Nov 2007 00:33:44 +0000
Responsible-Changed-Why:
I've taken it.
State-Changed-From-To: open->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Fri, 30 Nov 2007 00:33:44 +0000
State-Changed-Why:
Fixed. That was fast. :)
From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/37451 CVS commit: pkgsrc/pkgtools/pkg_install/files
Date: Fri, 30 Nov 2007 00:30:40 +0000 (UTC)
Module Name: pkgsrc
Committed By: rillig
Date: Fri Nov 30 00:30:40 UTC 2007
Modified Files:
pkgsrc/pkgtools/pkg_install/files/add: perform.c
pkgsrc/pkgtools/pkg_install/files/lib: Makefile.in lib.h
Added Files:
pkgsrc/pkgtools/pkg_install/files/lib: conflicts.c
Log Message:
Do not install a package if some of the installed packages would
conflict with it. This fixes PR 37451.
To generate a diff of this commit:
cvs rdiff -r1.67 -r1.68 pkgsrc/pkgtools/pkg_install/files/add/perform.c
cvs rdiff -r1.16 -r1.17 pkgsrc/pkgtools/pkg_install/files/lib/Makefile.in
cvs rdiff -r0 -r1.1 pkgsrc/pkgtools/pkg_install/files/lib/conflicts.c
cvs rdiff -r1.37 -r1.38 pkgsrc/pkgtools/pkg_install/files/lib/lib.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: PR/37451 CVS commit: pkgsrc/pkgtools/pkg_install/files
Date: Fri, 30 Nov 2007 11:52:23 +0100
On Fri, Nov 30, 2007 at 12:35:01AM +0000, Roland Illig wrote:
> Log Message:
> Do not install a package if some of the installed packages would
> conflict with it. This fixes PR 37451.
Yacks. You just made pkg_add a lot slower, you know that?
Joerg
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.