From owner-freebsd-bugs@FreeBSD.ORG Thu Sep 18 19:50:20 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49E5F16A4BF for ; Thu, 18 Sep 2003 19:50:20 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93F3B43FE5 for ; Thu, 18 Sep 2003 19:50:15 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h8J2oFFY035589 for ; Thu, 18 Sep 2003 19:50:15 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h8J2oFuQ035588; Thu, 18 Sep 2003 19:50:15 -0700 (PDT) (envelope-from gnats) Resent-Date: Thu, 18 Sep 2003 19:50:15 -0700 (PDT) Resent-Message-Id: <200309190250.h8J2oFuQ035588@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Oliver Eikemeier Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 457D316A4B3 for ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/56989: [PATCH] pkg_install: -v doesn't work on packages, -r does not show requirements script X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2003 02:50:20 -0000 >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@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: