From owner-freebsd-ports Thu Aug 3 8:37:51 2000 Delivered-To: freebsd-ports@freebsd.org Received: from symbion.srrc.usda.gov (symbion.srrc.usda.gov [199.133.86.40]) by hub.freebsd.org (Postfix) with ESMTP id 1F9CA37BA48 for ; Thu, 3 Aug 2000 08:37:46 -0700 (PDT) (envelope-from gjohnson@nola.srrc.usda.gov) Received: (from glenn@localhost) by symbion.srrc.usda.gov (8.9.3/8.9.3) id KAA73949; Thu, 3 Aug 2000 10:35:51 -0500 (CDT) (envelope-from glenn) From: Glenn Johnson Date: Thu, 3 Aug 2000 10:35:50 -0500 To: Francisco Reyes Cc: "ports@FreeBSD.ORG" Subject: Re: Updating ported software Message-ID: <20000803103550.A73707@node1.cluster.srrc.usda.gov> Mail-Followup-To: glenn, Francisco Reyes , "ports@FreeBSD.ORG" References: <200008012013.e71KDci14953@bmah-freebsd-0.cisco.com> <200008030453.AAA30994@vulcan.addy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200008030453.AAA30994@vulcan.addy.com>; from fran@reyes.somos.net on Thu, Aug 03, 2000 at 12:19:10AM -0400 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Aug 03, 2000 at 12:19:10AM -0400, Francisco Reyes wrote: > How about when one is trying to update a package for which other > packages depend? > > Example we packages: > A > B <==depends on A > > And I wanto to upgrade A Whenever I had this I had to force pkg_delete > to delete the package and reinstall A. My only concern with that > method is that then the dependency for B points to the wrong package. > > If only one package depends on another it is easy. I can delete > both. The issue is with packages which may have multiple other > packages depending on them. > > How do others handle this? What I do is copy the file /var/db/pkg/packageA/+REQUIRED_BY someplace convenient. Then I would do a 'make' for packageA to be sure it builds. After I know it builds correctly I will do a 'pkg_delete -f packageA'. Then a 'make install' for packageA. Then finally move the +REQUIRED_BY file back to /var/db/pkg/packageA. Now, if packageA is a library and there has been a version bump for that library you will have to reinstall all of the packages that depend on packageA (listed in the +REQUIRED_BY file) to pick up the new library. One thing to watch out for here is that sometimes the port Makefiles may still be looking for the old version. That is not suppose to happen but occasionally does. If so, just tweak the Makefile to look for the new library version and send-pr so it can be fixed. Hope that helps. -- Glenn Johnson USDA, ARS, SRRC Phone: (504) 286-4252 New Orleans, LA 70124 e-mail: gjohnson@nola.srrc.usda.gov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message