Bug 175899 - ports-mgmt/pkg: pkg install -fR does not add new dependencies
Summary: ports-mgmt/pkg: pkg install -fR does not add new dependencies
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Bryan Drewery
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-06 21:20 UTC by Adam McDougall
Modified: 2013-03-14 02:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam McDougall 2013-02-06 21:20:00 UTC
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.

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.
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.
Comment 1 Baptiste Daroussin freebsd_committer freebsd_triage 2013-02-06 23:07:33 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bapt

I'll take it.
Comment 2 Bryan Drewery freebsd_committer freebsd_triage 2013-03-10 23:50:20 UTC
This is fixed by https://github.com/pkgng/pkgng/issues/430, scheduled
for 1.0.9
Comment 3 Bryan Drewery freebsd_committer freebsd_triage 2013-03-12 22:23:51 UTC
State Changed
From-To: open->patched

Fixed upstream, will be released in 1.0.9
Comment 4 Bryan Drewery freebsd_committer freebsd_triage 2013-03-12 22:34:51 UTC
Responsible Changed
From-To: bapt->bdrewery

Take so I remember to close
Comment 5 dfilter service freebsd_committer freebsd_triage 2013-03-14 02:42:19 UTC
Author: bdrewery
Date: Thu Mar 14 02:42:11 2013
New Revision: 314127
URL: http://svnweb.freebsd.org/changeset/ports/314127

Log:
  - Update to 1.0.9
  
  Changes:
    - pkg-query(8) now returns EX_UNAVAILABLE when no package could be found [1]
    - pkg-rquery(8) now returns EX_UNAVAILABLE when no package could be found
    - Incompatible ABI message has been improved
    - Support base libbsdyml when possible over bundled libyaml
    - Fix `pkg install -fR` not installing missing dependencies [2]
    - Fix build with clang/gcc-4.7 in some cases [3]
    - Fix SRV MIRROR support
    - pkg-{fetch,install,upgrade} -L has been deprecated. Please use -U now.
      -L will be removed in a future release. Thiwas was done to be consistent
      with future support for -U in pkg-rquery(8) and pkg-search(8)
    - Make DEVELOPER_MODE architecture suggestion more clear that it is non-fatal.
      This is not really implemented yet and is just a hint.
    - Fix @cwd not being respected for @exec/@unexec. This mostly manifested as
      directories being created in the wrong place when installing packages.
    - New configuration option FETCH_TIMEOUT [4]
    - Documentation updates
  
  PR:		ports/173515 [1]
  Reported by:	eadler [1]
  Submitted by:	Alexandre Perrin [1]
  PR:		ports/175899 [2]
  Reported by:	Adam McDougall <mcdouga9@egr.msu.edu> [2]
  Submitted by:	John Marino [3]
  Submitted by:	Dan McGregor [4]
  Reviewed by:	bapt (release changeset)
  With hat:	portmgr

Modified:
  head/ports-mgmt/pkg/Makefile
  head/ports-mgmt/pkg/distinfo

Modified: head/ports-mgmt/pkg/Makefile
==============================================================================
--- head/ports-mgmt/pkg/Makefile	Thu Mar 14 01:50:38 2013	(r314126)
+++ head/ports-mgmt/pkg/Makefile	Thu Mar 14 02:42:11 2013	(r314127)
@@ -1,7 +1,7 @@
 # $FreeBSD$
 
 PORTNAME=	pkg
-DISTVERSION=	1.0.8
+DISTVERSION=	1.0.9
 CATEGORIES=	ports-mgmt
 MASTER_SITES=	LOCAL/portmgr \
 		http://files.etoilebsd.net/pkg/

Modified: head/ports-mgmt/pkg/distinfo
==============================================================================
--- head/ports-mgmt/pkg/distinfo	Thu Mar 14 01:50:38 2013	(r314126)
+++ head/ports-mgmt/pkg/distinfo	Thu Mar 14 02:42:11 2013	(r314127)
@@ -1,2 +1,2 @@
-SHA256 (pkg-1.0.8.tar.xz) = 6a061d8b9f880bb15788fc7e859e7d15d74630228ecda0821df29b17971e1c4d
-SIZE (pkg-1.0.8.tar.xz) = 1449168
+SHA256 (pkg-1.0.9.tar.xz) = 33a59b3a16b4e02eb6cc6c0ad9fd62e0646cba531cec77a442a33e0f03d1da8a
+SIZE (pkg-1.0.9.tar.xz) = 1449752
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 6 Bryan Drewery freebsd_committer freebsd_triage 2013-03-14 02:42:32 UTC
State Changed
From-To: patched->closed

1.0.9 released. Fixed.