From eikemeier@fillmore-labs.com  Thu Sep 18 19:42:48 2003
Return-Path: <eikemeier@fillmore-labs.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 457D316A4B3
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu, 18 Sep 2003 19:42:48 -0700 (PDT)
Received: from mx2.fillmore-labs.com (lima.fillmore-labs.com [62.138.193.83])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3974943FDD
	for <FreeBSD-gnats-submit@FreeBSD.org>; Thu, 18 Sep 2003 19:42:47 -0700 (PDT)
	(envelope-from eikemeier@fillmore-labs.com)
Received: from pd958a615.dip.t-dialin.net
	([217.88.166.21] helo=fillmore-labs.com ident=th3rhxsqxetu19xs)
	by mx2.fillmore-labs.com with asmtp (TLSv1:AES256-SHA:256)
	(Exim 4.22)
	id 1A0BEL-000EXh-Ti
	for FreeBSD-gnats-submit@FreeBSD.org; Fri, 19 Sep 2003 04:42:46 +0200
Message-Id: <3F6A6D23.7000307@fillmore-labs.com>
Date: Fri, 19 Sep 2003 04:42:43 +0200
From: Oliver Eikemeier <eikemeier@fillmore-labs.com>
To: FreeBSD-gnats-submit@FreeBSD.org
Subject: [PATCH] pkg_install: -v doesn't work on packages, -r does not show
 requirements script

>Number:         56989
>Category:       bin
>Synopsis:       [PATCH] pkg_install: -v doesn't work on packages, -r does not show requirements script
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    eik
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 18 19:50:14 PDT 2003
>Closed-Date:    Fri Aug 13 17:11:11 GMT 2004
>Last-Modified:  Fri Aug 13 17:11:11 GMT 2004
>Originator:     Oliver Eikemeier
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
Fillmore Labs - http://www.fillmore-labs.com
>Environment:
System: FreeBSD nuuk.fillmore-labs.com 5.1-CURRENT

>Description:

Multiple options of pkg_info fail on non-installed (tar+zipped) packages,
the most prominent one -v

The -r flags of pkg_info does not show the requirements script, as documented
in pkg_info(1), but the packages required by the package in question.

>How-To-Repeat:

fetch ftp://ftp.freebsd.org/pub/FreeBSD/ports/packages/net/wide-dhcp-1.4.0.6_1.tgz
pkg_info -v wide-dhcp-1.4.0.6_1.tgz
pkg_info -r wide-dhcp-1.4.0.6_1.tgz

>Fix:

A patch is available on
  ftp://ftp.fillmore-labs.com/pub/FreeBSD/patches/patch-pkg_install-20030917_2.gz
MD5 (patch-pkg_install-20030917_2.gz) = 42e4e6b85e09e702f36ea4d509496804

It fixes -v adds a new option -j to show the reuirement scripts and changes the man
page accordingly.

This patch build on the patch of PR 56961, which has additional bug fixes and improvements
described in this PR.

How-To-Apply:

*** FreeBSD 5.X ***

Apply it to your source tree (replaces base tools):

fetch ftp://ftp.fillmore-labs.com/pub/FreeBSD/patches/patch-pkg_install-20030917_2.gz
md5 patch-pkg_install-20030917_2.gz
gzcat patch-pkg_install-20030917_2.gz | patch -p0 -d /usr/src/usr.sbin/pkg_install
cd /usr/src/usr.sbin/pkg_install; make clean all install

Test with `pkg_info -P'
Package tools revision: 20030917


*** FreeBSD 4.X ***

Apply the following patch to port sysutils/pkg_install:

--- pkg_install.patch begins here ---
diff -Nur pkg_install/Makefile.orig pkg_install/Makefile
--- pkg_install/Makefile.orig	Thu Sep  4 18:40:45 2003
+++ pkg_install/Makefile	Wed Sep 17 16:43:46 2003
@@ -7,10 +7,14 @@
 
 PORTNAME=		pkg_install
 PORTVERSION=		20030714
-PORTREVISION=		1
+PORTREVISION=		2
 CATEGORIES=		sysutils
 MASTER_SITES=		${MASTER_SITE_LOCAL}
 MASTER_SITE_SUBDIR=	marcus
+
+PATCH_SITES=		ftp://ftp.fillmore-labs.com/pub/FreeBSD/%SUBDIR%/
+PATCH_SITE_SUBDIR=	patches
+PATCHFILES=		patch-pkg_install-20030917_2.gz
 
 MAINTAINER=		portmgr@freebsd.org
 COMMENT=		FreeBSD 5.x version of the package tools for older system releases
diff -Nur pkg_install/distinfo.orig pkg_install/distinfo
--- pkg_install/distinfo.orig	Wed Sep  3 18:11:20 2003
+++ pkg_install/distinfo	Wed Sep 17 17:00:56 2003
@@ -1 +1,2 @@
 MD5 (pkg_install-20030714.tar.gz) = 183bed34c5427aeaf2025d9e2176e9ed
+MD5 (patch-pkg_install-20030917_2.gz) = 42e4e6b85e09e702f36ea4d509496804
--- pkg_install.patch ends here ---

Test with `/usr/local/sbin/pkg_info -P'
Package tools revision: 20030917





>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: eik 
State-Changed-When: Tue Jun 29 21:28:25 CEST 2004 
State-Changed-Why:  
awaiting MFC 


Responsible-Changed-From-To: freebsd-bugs->eik 
Responsible-Changed-By: eik 
Responsible-Changed-When: Tue Jun 29 21:28:25 CEST 2004 
Responsible-Changed-Why:  
Handle my own PRs 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56989 
State-Changed-From-To: patched->closed 
State-Changed-By: eik 
State-Changed-When: Fri Aug 13 19:10:38 CEST 2004 
State-Changed-Why:  
MFCed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56961 
State-Changed-From-To: patched->closed 
State-Changed-By: eik 
State-Changed-When: Fri Aug 13 19:10:38 CEST 2004 
State-Changed-Why:  
MFCed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56989 
>Unformatted:
