Date: Sun, 5 Dec 1999 18:54:51 -0500 (EST) From: bugg@bugg.strangled.net To: FreeBSD-gnats-submit@freebsd.org Subject: misc/15288: pkg_version -c output isn't safe for scripts to use Message-ID: <199912052354.SAA07598@bugg.strangled.net>
next in thread | raw e-mail | index | archive | help
>Number: 15288
>Category: misc
>Synopsis: pkg_version -c output isn't safe for scripts to use
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Dec 5 16:00:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: dan
>Release: FreeBSD 4.0-CURRENT i386
>Organization:
none
>Environment:
Any with pkg_version (only -CURRENT now)
>Description:
pkg_version -c outputs commands to run to update your packages..
Before deleting the old version, it does nothing to ensure that the new
package can be installed. Result: you can be stuck without your old version
and the new version not compiling.
>How-To-Repeat:
Run commands from pkg_version -c blindly (i.e. by a script) when one of the
ports that it is going to update is broken.
>Fix:
Patch follows:
*** pkg_version-old.pl Fri Nov 26 15:38:18 1999
--- pkg_version.pl Sun Dec 5 17:42:13 1999
***************
*** 293,304 ****
$CommentChar, $Comment
@<
$CommentChar
cd @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$packagePath
! make
! pkg_delete -f @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$packageNameVer
make install
.
;
--- 293,303 ----
$CommentChar, $Comment
@<
$CommentChar
cd @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$packagePath
! make && pkg_delete -f @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
$packageNameVer
make install
.
;
>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?199912052354.SAA07598>
