From owner-freebsd-questions Thu Jul 18 8:57:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1BCDD37B400 for ; Thu, 18 Jul 2002 08:57:47 -0700 (PDT) Received: from smtp.a1poweruser.com (oh-chardon6a-62.clvhoh.adelphia.net [68.65.175.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09D0243E64 for ; Thu, 18 Jul 2002 08:57:46 -0700 (PDT) (envelope-from barbish@a1poweruser.com) Received: from barbish (lanwin1 [10.0.10.6]) by smtp.a1poweruser.com (Postfix) with SMTP id 5369896; Thu, 18 Jul 2002 12:03:41 -0400 (EDT) Reply-To: From: "Joe & Fhe Barbish" To: "parv" Cc: "FBSDQ" Subject: RE: pkg_add problem w/ slightly old dependencies Date: Thu, 18 Jul 2002 11:57:44 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20020717211337.GA9000@moo.holy.cow> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG When you issue the make package command on an port directory it first does the port install which will auto install all the dependent ports, followed by building the package and writing it into the port directory you started with. If I understand you correctly, you have saved this newly built package, de-installed the port version and while trying to install the package you just built using the pkg_add command the package add process is asking for package versions of the dependent ports. What you have run into is when doing the 'make package' on the original port the resulting package does not contain the dependent ports with it. What I do is create /usr/ports/packages/ directory and move all the package files to it. First I do an ' make package on the port I want. During the install you will see each dependent port downloaded and installed. After the original package is built, I move it to /usr/ports/packages/. I then de-install the original port and all its dependents followed by doing an 'make package' on each dependent, move that package to /usr/ports/packages/. When all the dependents packages have been build, I package delete each dependent. Now any time I want to re-add the parent package I cd /usr/ports/packages/ then pkg_add package name and as the parent package gets installed all it's dependents are found. I do this with all my ports I use and bkup the /usr/ports/packages/ directory so after cloning a new box or after disaster recovery where I have to install FBSD from scratch I can install all the ports I use very easily without fooling around with the cvsup of the ports tree or the downloading of the port's tar file again. This method keeps the port and it's dependents in sync. Hope This helps -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of parv Sent: Wednesday, July 17, 2002 5:14 PM To: f-ports; f-q Subject: pkg_add problem w/ slightly old dependencies (mutt-devel port is just an example below; it happens w/ any other port in similar scenario.) i installed mutt-devel & created a mutt-1.5.1 package. after de installing it and trying to do pkg_add, i get the following error... # pkg_add ./mutt-devel-1.5.1.tgz pkg_add: could not find package libslang-1.4.5 ! pkg_add: could not find package libiconv-1.8 ! pkg_add: could not find package gettext-0.11.2 ! pkg_add: could not find package expat-1.95.3 ! pkg_add: could not find package cyrus-sasl-1.5.27_4 ! ...though i don't have those particular ports installed, i sure do have the ports which come darn close to the list... libslang-1.4.3 libiconv-1.7.0.1 gettext-0.11.1_3 expat-1.95.2 cyrus-sasl-1.5.27_2 ...it is not easy or practical to always upgrade the installed ports whenever pkg_add fails. the only choice, if there is one, that remains is of re-building & re-installing the port. is there a way to workaround the problem w/o the rebuild/reinstall process so that pkg_add would work w/ already installed ports? - parv -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message