bin/56989: [PATCH] pkg_install: -v doesn't work on packages, -r does not show requirements script

Oliver Eikemeier eikemeier at fillmore-labs.com
Thu Sep 18 19:50:20 PDT 2003


>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:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 18 19:50:14 PDT 2003
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:


More information about the freebsd-bugs mailing list