Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jun 2007 22:19:43 GMT
From:      Jo Rhett<jrhett@svcolo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/113393: pkg_add should have a command line option synonmous with PACKAGESITE environment variable
Message-ID:  <200706052219.l55MJhrr017812@www.freebsd.org>
Resent-Message-ID: <200706052220.l55MK4Zw010974@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706052219.l55MJhrr017812>