Date: Tue, 19 Nov 2002 11:41:19 -0500 (EST) From: Eric van Gyzen <vangyzen@stat.duke.edu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/45484: pkg_update(1) does not correctly re-register dependencies Message-ID: <200211191641.gAJGfJwN073741@floyd.isds.duke.edu>
next in thread | raw e-mail | index | archive | help
>Number: 45484 >Category: bin >Synopsis: pkg_update(1) does not correctly re-register dependencies >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Nov 19 08:50:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Eric van Gyzen >Release: FreeBSD 4.7-STABLE i386 >Organization: >Environment: FreeBSD 4.7-STABLE i386 >Description: The pkg_update utility doesn't fully grok package versions and therefore doesn't re-register +REQUIRED_BY dependencies after upgrading a package. >How-To-Repeat: By example, when upgrading XFree86-Server-4.2.1_3 to _5: # pkg_update XFree86-Server-4.2.1_5.tgz Updating XFree86-Server packages to version 4.2.1 Can't open /var/db/pkg/XFree86-Server-4.2.1/+REQUIRED_BY, No such file or directory >Fix: --- src/usr.sbin/pkg_install/update/pkg_update.pl.orig Tue Nov 19 11:35:25 2002 +++ src/usr.sbin/pkg_install/update/pkg_update.pl Tue Nov 19 11:35:18 2002 @@ -51,7 +51,7 @@ sub get_version($) { my ($pkg) = @_; - $pkg =~ /(.+)-([0-9\.]+)/; + $pkg =~ /(.+)-([0-9\._,]+)/; if (! $2) { return($pkg, ""); } else { >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211191641.gAJGfJwN073741>