From nobody@FreeBSD.org  Wed Feb  6 21:15:37 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id BC2832F5
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Feb 2013 21:15:37 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id AD42BA83
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  6 Feb 2013 21:15:37 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r16LFagK004383
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 6 Feb 2013 21:15:36 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r16LFaYc004382;
	Wed, 6 Feb 2013 21:15:36 GMT
	(envelope-from nobody)
Message-Id: <201302062115.r16LFaYc004382@red.freebsd.org>
Date: Wed, 6 Feb 2013 21:15:36 GMT
From: Adam McDougall <mcdouga9@egr.msu.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: pkg install -fR does not add new dependencies
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         175899
>Category:       ports
>Synopsis:       ports-mgmt/pkg: pkg install -fR does not add new dependencies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bdrewery
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 06 21:20:00 UTC 2013
>Closed-Date:    Wed Mar 13 21:42:33 CDT 2013
>Last-Modified:  Thu Mar 14 02:50:00 UTC 2013
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->bapt 
Responsible-Changed-By: bapt 
Responsible-Changed-When: Wed Feb 6 23:07:33 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175899 

From: Bryan Drewery <bdrewery@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc: mcdouga9@egr.msu.edu, Baptiste Daroussin <bapt@freebsd.org>
Subject: Re: ports/175899: ports-mgmt/pkg: pkg install -fR does not add new
 dependencies
Date: Sun, 10 Mar 2013 18:50:20 -0500

 This is fixed by https://github.com/pkgng/pkgng/issues/430, scheduled
 for 1.0.9
State-Changed-From-To: open->patched 
State-Changed-By: bdrewery 
State-Changed-When: Tue Mar 12 17:23:51 CDT 2013 
State-Changed-Why:  
Fixed upstream, will be released in 1.0.9 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175899 
Responsible-Changed-From-To: bapt->bdrewery 
Responsible-Changed-By: bdrewery 
Responsible-Changed-When: Tue Mar 12 17:34:51 CDT 2013 
Responsible-Changed-Why:  
Take so I remember to close 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175899 
State-Changed-From-To: patched->closed 
State-Changed-By: bdrewery 
State-Changed-When: Wed Mar 13 21:42:32 CDT 2013 
State-Changed-Why:  
1.0.9 released. Fixed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175899 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/175899: commit references a PR
Date: Thu, 14 Mar 2013 02:42:19 +0000 (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"
 
>Unformatted:
