Date: Wed, 6 Feb 2013 21:15:36 GMT From: Adam McDougall <mcdouga9@egr.msu.edu> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/175899: pkg install -fR does not add new dependencies Message-ID: <201302062115.r16LFaYc004382@red.freebsd.org> Resent-Message-ID: <201302062120.r16LK04J016492@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 175899 >Category: ports >Synopsis: pkg install -fR does not add new dependencies >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 06 21:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Adam McDougall >Release: 9.1 >Organization: >Environment: FreeBSD client 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #4: Sun Aug 5 18:42:03 EDT 2012 root@server:/usr/obj/usr/src/sys/AMD64-9 amd64 >Description: I often need to run pkg install -fR (something) to properly deal with library issues according to UPDATING. What I noticed a few times recently is pkg install -fR will Reinstall or Upgrade packages but it doesn't seem to Install newly required deps, thus it fails part way through with something like: Reinstalling xorg-server-1.7.7_6,1 done Reinstalling libsoup-gnome-2.34.3_2 done Reinstalling gnome-mount-0.8_10 done Reinstalling gvfs-1.6.6_3missing dependency tdb-1.2.11,1root@trident:/root # If I run pkg install tdb, it gets around the problem and then I can re-run pkg install -fR to finish where it left off. But I have to do it for exiv2 as well. Also the missing newlines make the error harder to see. If I run pkg upgrade -n before I do the pkg install -fR, it shows me the newly required dep packages among the Upgrading ones: .. Upgrading talloc: 2.0.7 -> 2.0.8 Installing tdb: 1.2.11,1 Installing exiv2: 0.23,1 Installing xconsole: 1.0.5 .. Is this intentional, or something that should be fixed, or needs more information/discussion? Should I file a PRI could probably get around it by doing pkg upgrade first, but then the system will be doing more work. I can reproduce this issue. Thanks. >How-To-Repeat: Follow UPDATING instructions to force reinstall all deps of some packages like libffi, icu, boost-libs. The pkg install -fR might miss some newly needed deps like tdb, exiv2. >Fix: "pkg install -fR" should automatically pull in new deps like "pkg upgrade" does, or it should abort with a helpful error message before upgrading a portion of packages then exiting. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302062115.r16LFaYc004382>