From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Jun 5 22:20:04 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8058216A468 for ; Tue, 5 Jun 2007 22:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4F48713C458 for ; Tue, 5 Jun 2007 22:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l55MK4PA010975 for ; Tue, 5 Jun 2007 22:20:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l55MK4Zw010974; Tue, 5 Jun 2007 22:20:04 GMT (envelope-from gnats) Resent-Date: Tue, 5 Jun 2007 22:20:04 GMT Resent-Message-Id: <200706052220.l55MK4Zw010974@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jo Rhett Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4A31B16A421 for ; Tue, 5 Jun 2007 22:19:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 40C7113C4AE for ; Tue, 5 Jun 2007 22:19:43 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l55MJhcC017813 for ; Tue, 5 Jun 2007 22:19:43 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l55MJhrr017812; Tue, 5 Jun 2007 22:19:43 GMT (envelope-from nobody) Message-Id: <200706052219.l55MJhrr017812@www.freebsd.org> Date: Tue, 5 Jun 2007 22:19:43 GMT From: Jo Rhett To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: ports/113393: pkg_add should have a command line option synonmous with PACKAGESITE environment variable X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Jun 2007 22:20:04 -0000 >Number: 113393 >Category: ports >Synopsis: pkg_add should have a command line option synonmous with PACKAGESITE environment variable >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jun 05 22:20:03 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Jo Rhett >Release: 6.2 >Organization: Silicon Valley Colocation, Inc. >Environment: FreeBSD triceratops.netconsonance.com 6.2-RELEASE-p2 FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:41:06 UTC 2007 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 >Description: On May 9, 2007, at 5:07 AM, Clement Laforet wrote: pkg_add really needs a command line option instead of only using the environment variables... "pkg_add -r http://my.freebsd-repo.com/packages/All/my_packages-1.0.tbz" works fine ;-) The behavior is not identical. For example, this works only for a single package. /usr/sbin/pkg_add -r http://my.location/packages/{pkgname} This works for multiple packages: export PACKAGESITE=http://my.location/packages/ /usr/sbin/pkg_add -r {pkgname} {pkgname2} Also, the former will not resolve dependancies properly (it alters the path), whereas the latter will. In short, they are not synonymous. A command line option which is synonymous with the environment variable would be very useful in scripts/cfengine/etc. >How-To-Repeat: Try to run a single command which installs multiple packages from a single location. -or- Have the named package need dependancies. >Fix: An option which has the exact same effect as PACKAGESITE environment variable would be very useful, and should be trivial to implement. >Release-Note: >Audit-Trail: >Unformatted: