From owner-freebsd-questions Sun Feb 24 7: 5:13 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mired.org (dsl-64-192-6-133.telocity.com [64.192.6.133]) by hub.freebsd.org (Postfix) with SMTP id 5111137B405 for ; Sun, 24 Feb 2002 07:05:07 -0800 (PST) Received: (qmail 5933 invoked by uid 100); 24 Feb 2002 15:05:05 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15481.288.969944.692115@guru.mired.org> Date: Sun, 24 Feb 2002 09:05:04 -0600 To: "Joe & Fhe Barbish" Cc: questions@freebsd.org Subject: RE: How to list port dependencies In-Reply-To: References: <15480.35795.543145.356610@guru.mired.org> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: "Mike Meyer" X-Delivery-Agent: TMDA/0.46 (Python 2.2; freebsd-4.5-STABLE-i386) 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 Joe & Fhe Barbish types: > Thanks for the script, But I need more info about how to use it. > > You said "First, make sure your /usr/ports/INDEX file is up to > date by doing a "make INDEX" in that directory". > > I cd /usr/ports and issued make INDEX, get message don't know > how to make index. Did ls on /usr/ports and there is no INDEX file. That's very odd. Did you have the makefile in /usr/ports at all? > Did cvsup for ports-base which created INDEX file and whole bunch > more stuff. Make INDEX now returns 'INDEX is up to date message. That's a lie. INDEX in the CVS tree is only updated every so often. Doing "make INDEX" makes it match what's in the ports tree - but may not work if you don't have the entire tree. > Cd /usr/ports/www/apache13-fp and them run your script and get no > output displayed on the screen. The only thing I added to your > script is #! /bin/sh as the first line. The two make commands I started with just grovel through the INDEX file. You're getting the information for the INDEX file in the cvs repository, which may or may not match what's really in the ports tree. That's why I said you needed to make sure the INDEX file was up to date before you started. Trying doing an "rm /usr/ports/INDEX" then a "make INDEX" and see what happens. Of course, if you don't have the ports tree, making the index is liable to fail in strange ways. > Some background on my environment. This FBSD machine is a gateway/firewall. > I want the smallest operating system/software footprint I can get to keep > the back ups short and fast. To this end I only download the makefiles > for the ports I want to install. The big cvsup src & ports groups > were never added to my hard drive. The ports system isn't designed to work that way. First, you don't want the Makefile, you need the most of the port - the packing list, the checksum, any patches, and any other misc. files it may need. About all you can leave out are the pkg-descr and pkg-comment files. Second, some ports are "slave" ports, and build variants of a "master" port. You can't build the slave port without the master port, even though the Makefile in the slave port lists no dependencies - it includes the makefile for the master port. > I think I am missing some files your script is counting on. Any ideas? I have two alternatives for you. One is to download the entire ports tree, build the things you need, then remove the ports that were only needed to build a port, but not to run it, then remove the ports tree. The other is to install packages, which will do what you want without having to have the ports tree around at all. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message