From nobody@FreeBSD.org  Wed Oct 10 10:03:34 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 54B4916A421
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 Oct 2007 10:03:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 2FA6E13C45A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 Oct 2007 10:03:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l9AA3XDx040102
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 10 Oct 2007 10:03:33 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l9AA3Xr7040100;
	Wed, 10 Oct 2007 10:03:33 GMT
	(envelope-from nobody)
Message-Id: <200710101003.l9AA3Xr7040100@www.freebsd.org>
Date: Wed, 10 Oct 2007 10:03:33 GMT
From: Vladimir Ermakov <samflanker@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: install packages without dependencies
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         117065
>Category:       bin
>Synopsis:       install packages without dependencies
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    krion
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 10 10:10:01 UTC 2007
>Closed-Date:    Fri Jun 06 12:09:48 UTC 2008
>Last-Modified:  Fri Jun 06 12:09:48 UTC 2008
>Originator:     Vladimir Ermakov
>Release:        7.0-CURRENT
>Organization:
_
>Environment:
FreeBSD damask 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Sep 12 17:04:55
SAMST 2007 root at localhost:/usr/obj/usr/src/sys/CS2 i386
>Description:
please add new function to pkg_add:
parameter for install packages without dependencies

>How-To-Repeat:
_
>Fix:
_

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->krion 
Responsible-Changed-By: remko 
Responsible-Changed-When: Wed Oct 10 10:11:13 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117065 

From: Kirill Ponomarew <krion@voodoo.bawue.com>
To: samflanker@gmail.com
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/117065: install packages without dependencies
Date: Wed, 10 Oct 2007 16:12:45 +0200

 On Wed, Oct 10, 2007 at 10:11:13AM +0000, remko@FreeBSD.org wrote:
 > Synopsis: install packages without dependencies
 
 What do you mean ? We have -f option for that.
 
 -Kirill

From: sam <samflanker@gmail.com>
To: bug-followup@FreeBSD.org,  samflanker@gmail.com
Cc:  
Subject: Re: bin/117065: install packages without dependencies
Date: Thu, 11 Oct 2007 13:27:59 +0400

 -f option is dont helping
 
 /Vladimir Ermakov
 

From: sam <samflanker@gmail.com>
To: Kirill Ponomarew <krion@voodoo.bawue.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/117065: install packages without dependencies
Date: Fri, 12 Oct 2007 12:48:11 +0400

 example
 
 # pkg_add -fr wxgtk2                     Fetching 
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-6-stable/Latest/wxgtk2.tbz... 
 Done.
 Fetching 
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-6-stable/All/xproto-7.0.10.tbz... 
 Done.
 Fetching 
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-6-stable/All/xineramaproto-1.1.2.tbz... 
 Done.
 Fetching 
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-6-stable/All/xf86vidmodeproto-2.2.2.tbz... 
 Done.
 Fetching 
 ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-6-stable/All/xf86miscproto-0.9.2.tbz... 
 Done.
 ^CSignal 2 received, cleaning up..
 
 # pkg_info | grep -i wxgtk
 #
 # pkg_info | grep -i xproto
 xproto-7.0.10       X11 protocol headers
 #
 
 
 

From: sam <samflanker@gmail.com>
To: Kirill Ponomarew <krion@voodoo.bawue.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/117065: install packages without dependencies
Date: Fri, 19 Oct 2007 16:52:22 +0400

 This is a multi-part message in MIME format.
 --------------040903050504070305090408
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 patch is tested on FreeBSD 6.2-STABLE amd64
 
 add to man page:
 *
 -i*
 
 	      Don't  do  a  dependency	check before installing a package.
 
 
 /Vladimir Ermakov
 
 
 --------------040903050504070305090408
 Content-Type: text/plain;
  name="pkg_install.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="pkg_install.diff"
 
 diff -ruN pkg_install.bak/add/add.h pkg_install/add/add.h
 --- pkg_install.bak/add/add.h	2007-10-19 14:32:38.000000000 +0400
 +++ pkg_install/add/add.h	2006-05-14 10:52:24.000000000 +0400
 @@ -31,7 +31,6 @@
  extern Boolean	NoRecord;
  extern Boolean	FailOnAlreadyInstalled;
  extern Boolean	KeepPackage;
 -extern Boolean IgnoreDeps;
  extern char	*Mode;
  extern char	*Owner;
  extern char	*Group;
 diff -ruN pkg_install.bak/add/main.c pkg_install/add/main.c
 --- pkg_install.bak/add/main.c	2007-10-17 17:21:22.000000000 +0400
 +++ pkg_install/add/main.c	2007-02-07 12:14:26.000000000 +0300
 @@ -27,7 +27,7 @@
  #include "lib.h"
  #include "add.h"
  
 -static char Options[] = "hviIRfFnrp:P:SMt:C:K";
 +static char Options[] = "hvIRfFnrp:P:SMt:C:K";
  
  char	*Prefix		= NULL;
  Boolean	PrefixRecursive	= FALSE;
 @@ -37,7 +37,6 @@
  Boolean Remote		= FALSE;
  Boolean KeepPackage	= FALSE;
  Boolean FailOnAlreadyInstalled	= TRUE;
 -Boolean IgnoreDeps	= FALSE;
  
  char	*Mode		= NULL;
  char	*Owner		= NULL;
 @@ -166,9 +165,6 @@
  	case 'C':
  	    Chroot = optarg;
  	    break;
 -	case 'i':
 -	    IgnoreDeps = TRUE;
 -	    break;
  
  	case 'h':
  	case '?':
 @@ -324,7 +320,7 @@
  usage()
  {
      fprintf(stderr, "%s\n%s\n",
 -	"usage: pkg_add [-viInrfRMSK] [-t template] [-p prefix] [-P prefix] [-C chrootdir]",
 +	"usage: pkg_add [-vInrfRMSK] [-t template] [-p prefix] [-P prefix] [-C chrootdir]",
  	"               pkg-name [pkg-name ...]");
      exit(1);
  }
 diff -ruN pkg_install.bak/add/perform.c pkg_install/add/perform.c
 --- pkg_install.bak/add/perform.c	2007-10-19 14:32:33.000000000 +0400
 +++ pkg_install/add/perform.c	2006-05-14 10:52:24.000000000 +0400
 @@ -34,6 +34,7 @@
  static int sanity_check(char *);
  static char LogDir[FILENAME_MAX];
  static int zapLogDir;		/* Should we delete LogDir? */
 +
  int
  pkg_perform(char **pkgs)
  {
 @@ -279,9 +280,9 @@
      }
  
      /* Now check the packing list for dependencies */
 -	if(!IgnoreDeps){
      for (p = Plist.head; p ; p = p->next) {
  	char *deporigin;
 +
  	if (p->type != PLIST_PKGDEP)
  	    continue;
  	deporigin = (p->next->type == PLIST_DEPORIGIN) ? p->next->name : NULL;
 @@ -295,7 +296,7 @@
  	    !(deporigin != NULL && matchbyorigin(deporigin, NULL) != NULL)) {
  	    char path[FILENAME_MAX], *cp = NULL;
  
 -	    if (!Fake&&!IgnoreDeps) {
 +	    if (!Fake) {
  		char prefixArg[2 + MAXPATHLEN]; /* "-P" + Prefix */
  		if (PrefixRecursive) {
  		    strlcpy(prefixArg, "-P", sizeof(prefixArg));
 @@ -367,7 +368,6 @@
  	else if (Verbose)
  	    printf(" - already installed.\n");
      }
 -	}
  
      if (code != 0)
  	goto bomb;
 @@ -514,7 +514,6 @@
  		depnames[0] = p->name;
  		depnames[1] = NULL;
  	    }
 -		if(!IgnoreDeps){
  	    for (i = 0; depnames[i] != NULL; i++) {
  		sprintf(contents, "%s/%s/%s", LOG_DIR, depnames[i],
  			REQUIRED_BY_FNAME);
 @@ -532,7 +531,6 @@
  		}
  	    }
  	}
 -	}
  	if (Verbose)
  	    printf("Package %s registered in %s\n", Plist.name, LogDir);
      }
 
 --------------040903050504070305090408--

From: sam <samflanker@gmail.com>
To: bug-followup@FreeBSD.org
Cc: remko@freebsd.org, Kirill Ponomarew <krion@voodoo.bawue.com>, 
 sss123next@gmail.com
Subject: Re: bin/117065: install packages without dependencies
Date: Fri, 19 Oct 2007 17:20:33 +0400

 This is a multi-part message in MIME format.
 --------------030701010605050603000800
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 i am sorry, entangle
 included is fixed patch
 
 /Vladimir Ermakov
 
 
 
 --------------030701010605050603000800
 Content-Type: text/plain;
  name="pkg_install.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="pkg_install.diff"
 
 diff -ruN pkg_install.bak/add/add.h pkg_install/add/add.h
 --- pkg_install.bak/add/add.h	2006-05-14 10:52:24.000000000 +0400
 +++ pkg_install/add/add.h	2007-10-19 14:32:38.000000000 +0400
 @@ -31,6 +31,7 @@
  extern Boolean	NoRecord;
  extern Boolean	FailOnAlreadyInstalled;
  extern Boolean	KeepPackage;
 +extern Boolean IgnoreDeps;
  extern char	*Mode;
  extern char	*Owner;
  extern char	*Group;
 diff -ruN pkg_install.bak/add/main.c pkg_install/add/main.c
 --- pkg_install.bak/add/main.c	2007-02-07 12:14:26.000000000 +0300
 +++ pkg_install/add/main.c	2007-10-17 17:21:22.000000000 +0400
 @@ -27,7 +27,7 @@
  #include "lib.h"
  #include "add.h"
  
 -static char Options[] = "hvIRfFnrp:P:SMt:C:K";
 +static char Options[] = "hviIRfFnrp:P:SMt:C:K";
  
  char	*Prefix		= NULL;
  Boolean	PrefixRecursive	= FALSE;
 @@ -37,6 +37,7 @@
  Boolean Remote		= FALSE;
  Boolean KeepPackage	= FALSE;
  Boolean FailOnAlreadyInstalled	= TRUE;
 +Boolean IgnoreDeps	= FALSE;
  
  char	*Mode		= NULL;
  char	*Owner		= NULL;
 @@ -165,6 +166,9 @@
  	case 'C':
  	    Chroot = optarg;
  	    break;
 +	case 'i':
 +	    IgnoreDeps = TRUE;
 +	    break;
  
  	case 'h':
  	case '?':
 @@ -320,7 +324,7 @@
  usage()
  {
      fprintf(stderr, "%s\n%s\n",
 -	"usage: pkg_add [-vInrfRMSK] [-t template] [-p prefix] [-P prefix] [-C chrootdir]",
 +	"usage: pkg_add [-viInrfRMSK] [-t template] [-p prefix] [-P prefix] [-C chrootdir]",
  	"               pkg-name [pkg-name ...]");
      exit(1);
  }
 diff -ruN pkg_install.bak/add/perform.c pkg_install/add/perform.c
 --- pkg_install.bak/add/perform.c	2006-05-14 10:52:24.000000000 +0400
 +++ pkg_install/add/perform.c	2007-10-19 14:32:33.000000000 +0400
 @@ -34,7 +34,6 @@
  static int sanity_check(char *);
  static char LogDir[FILENAME_MAX];
  static int zapLogDir;		/* Should we delete LogDir? */
 -
  int
  pkg_perform(char **pkgs)
  {
 @@ -280,9 +279,9 @@
      }
  
      /* Now check the packing list for dependencies */
 +	if(!IgnoreDeps){
      for (p = Plist.head; p ; p = p->next) {
  	char *deporigin;
 -
  	if (p->type != PLIST_PKGDEP)
  	    continue;
  	deporigin = (p->next->type == PLIST_DEPORIGIN) ? p->next->name : NULL;
 @@ -296,7 +295,7 @@
  	    !(deporigin != NULL && matchbyorigin(deporigin, NULL) != NULL)) {
  	    char path[FILENAME_MAX], *cp = NULL;
  
 -	    if (!Fake) {
 +	    if (!Fake&&!IgnoreDeps) {
  		char prefixArg[2 + MAXPATHLEN]; /* "-P" + Prefix */
  		if (PrefixRecursive) {
  		    strlcpy(prefixArg, "-P", sizeof(prefixArg));
 @@ -368,6 +367,7 @@
  	else if (Verbose)
  	    printf(" - already installed.\n");
      }
 +	}
  
      if (code != 0)
  	goto bomb;
 @@ -514,6 +514,7 @@
  		depnames[0] = p->name;
  		depnames[1] = NULL;
  	    }
 +		if(!IgnoreDeps){
  	    for (i = 0; depnames[i] != NULL; i++) {
  		sprintf(contents, "%s/%s/%s", LOG_DIR, depnames[i],
  			REQUIRED_BY_FNAME);
 @@ -531,6 +532,7 @@
  		}
  	    }
  	}
 +	}
  	if (Verbose)
  	    printf("Package %s registered in %s\n", Plist.name, LogDir);
      }
 
 --------------030701010605050603000800--

From: sam <samflanker@gmail.com>
To: bug-followup@FreeBSD.org,  samflanker@gmail.com
Cc:  
Subject: Re: bin/117065: install packages without dependencies
Date: Mon, 05 Nov 2007 11:32:52 +0300

 This is a multi-part message in MIME format.
 --------------020608090806080004080002
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed
 Content-Transfer-Encoding: 7bit
 
 for 8.0-CURRENT
 
 
 --------------020608090806080004080002
 Content-Type: text/plain;
  name="pkg_install.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
  filename="pkg_install.patch"
 
 diff -ruN pkg_install.bak/add/add.h pkg_install/add/add.h
 --- pkg_install.bak/add/add.h	2006-03-09 18:49:19.000000000 +0400
 +++ pkg_install/add/add.h	2007-11-05 11:54:35.000000000 +0400
 @@ -31,6 +31,7 @@
  extern Boolean	NoRecord;
  extern Boolean	FailOnAlreadyInstalled;
  extern Boolean	KeepPackage;
 +extern Boolean	IgnoreDeps;
  extern char	*Mode;
  extern char	*Owner;
  extern char	*Group;
 diff -ruN pkg_install.bak/add/main.c pkg_install/add/main.c
 --- pkg_install.bak/add/main.c	2007-10-11 14:26:18.000000000 +0500
 +++ pkg_install/add/main.c	2007-11-03 13:39:00.000000000 +0400
 @@ -27,7 +27,7 @@
  #include "lib.h"
  #include "add.h"
  
 -static char Options[] = "hvIRfFnrp:P:SMt:C:K";
 +static char Options[] = "hviIRfFnrp:P:SMt:C:K";
  
  char	*Prefix		= NULL;
  Boolean	PrefixRecursive	= FALSE;
 @@ -37,6 +37,7 @@
  Boolean Remote		= FALSE;
  Boolean KeepPackage	= FALSE;
  Boolean FailOnAlreadyInstalled	= TRUE;
 +Boolean IgnoreDeps	= FALSE;
  
  char	*Mode		= NULL;
  char	*Owner		= NULL;
 @@ -167,6 +168,9 @@
  	case 'C':
  	    Chroot = optarg;
  	    break;
 +	case 'i':
 +	    IgnoreDeps = TRUE;
 +	    break;
  
  	case 'h':
  	case '?':
 @@ -322,7 +326,7 @@
  usage()
  {
      fprintf(stderr, "%s\n%s\n",
 -	"usage: pkg_add [-vInfFrRMSK] [-t template] [-p prefix] [-P prefix] [-C chrootdir]",
 +	"usage: pkg_add [-viInfFrRMSK] [-t template] [-p prefix] [-P prefix] [-C chrootdir]",
  	"               pkg-name [pkg-name ...]");
      exit(1);
  }
 diff -ruN pkg_install.bak/add/perform.c pkg_install/add/perform.c
 --- pkg_install.bak/add/perform.c	2006-03-09 18:49:19.000000000 +0400
 +++ pkg_install/add/perform.c	2007-11-05 12:05:40.000000000 +0400
 @@ -252,6 +252,7 @@
      }
  
      /* Now check the packing list for conflicts */
 +	if(!IgnoreDeps){
      for (p = Plist.head; p != NULL; p = p->next) {
  	if (p->type == PLIST_CONFLICTS) {
  	    int i;
 @@ -296,7 +297,7 @@
  	    !(deporigin != NULL && matchbyorigin(deporigin, NULL) != NULL)) {
  	    char path[FILENAME_MAX], *cp = NULL;
  
 -	    if (!Fake) {
 +	    if (!Fake&&!IgnoreDeps) {
  		char prefixArg[2 + MAXPATHLEN]; /* "-P" + Prefix */
  		if (PrefixRecursive) {
  		    strlcpy(prefixArg, "-P", sizeof(prefixArg));
 @@ -368,6 +369,7 @@
  	else if (Verbose)
  	    printf(" - already installed.\n");
      }
 +	}
  
      if (code != 0)
  	goto bomb;
 @@ -514,6 +516,7 @@
  		depnames[0] = p->name;
  		depnames[1] = NULL;
  	    }
 +		if(!IgnoreDeps){
  	    for (i = 0; depnames[i] != NULL; i++) {
  		sprintf(contents, "%s/%s/%s", LOG_DIR, depnames[i],
  			REQUIRED_BY_FNAME);
 @@ -531,6 +534,7 @@
  		}
  	    }
  	}
 +	}
  	if (Verbose)
  	    printf("Package %s registered in %s\n", Plist.name, LogDir);
      }
 
 --------------020608090806080004080002--
State-Changed-From-To: open->patched 
State-Changed-By: krion 
State-Changed-When: Sat Nov 10 09:40:52 UTC 2007 
State-Changed-Why:  
MFC after 14 days. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=117065 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/117065: commit references a PR
Date: Sat, 10 Nov 2007 09:40:46 +0000 (UTC)

 krion       2007-11-10 09:40:40 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.sbin/pkg_install/add add.h main.c perform.c pkg_add.1 
   Log:
   Add -i option for package installation without fetching and
   installing its dependencies.
   
   PR:             bin/117065
   Submitted by:   Vladimir Ermakov <samflanker@gmail.com>
   MFC after:      14 days
   
   Revision  Changes    Path
   1.15      +1 -0      src/usr.sbin/pkg_install/add/add.h
   1.75      +6 -2      src/usr.sbin/pkg_install/add/main.c
   1.81      +5 -1      src/usr.sbin/pkg_install/add/perform.c
   1.72      +4 -1      src/usr.sbin/pkg_install/add/pkg_add.1
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Volker <volker@vwsoft.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/117065: install packages without dependencies
Date: Sat, 08 Mar 2008 03:03:19 +0100

 Please note: MFC is missing
State-Changed-From-To: patched->closed 
State-Changed-By: gavin 
State-Changed-When: Fri Jun 6 12:09:29 UTC 2008 
State-Changed-Why:  
Close, patch was MFC'd to RELENG_7 and RELENG_6 by flz on 2008-04-07 
so will be fixed in 6.4 and 7.0-RELEASE 

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