From owner-freebsd-questions@FreeBSD.ORG Sun Mar 4 01:45:13 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 039F616A400 for ; Sun, 4 Mar 2007 01:45:13 +0000 (UTC) (envelope-from bsd-unix@earthlink.net) Received: from pop-satin.atl.sa.earthlink.net (pop-satin.atl.sa.earthlink.net [207.69.195.63]) by mx1.freebsd.org (Postfix) with ESMTP id D484313C491 for ; Sun, 4 Mar 2007 01:45:12 +0000 (UTC) (envelope-from bsd-unix@earthlink.net) Received: from fl-71-54-28-212.dhcp.embarqhsd.net ([71.54.28.212] helo=kt.weeeble.com) by pop-satin.atl.sa.earthlink.net with smtp (Exim 3.36 #1) id 1HNfmc-0007KW-00; Sat, 03 Mar 2007 20:45:06 -0500 Date: Sat, 3 Mar 2007 20:45:03 -0500 From: Randy Pratt To: Patrick =?ISO-8859-1?Q?Lamaizi=E8re?= Message-Id: <20070303204503.08692af8.bsd-unix@earthlink.net> In-Reply-To: <200703040157.55118.patfbsds+questions@davenulle.org> References: <200703040157.55118.patfbsds+questions@davenulle.org> X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.9; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: [portupgrade] pkgdb -L X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Mar 2007 01:45:13 -0000 On Sun, 4 Mar 2007 01:57:54 +0100 Patrick Lamaizi=E8re wrote: > Hello, >=20 > I'm asking about the goal of the new option -L of pkgdb : > -L --fix-lost Check and restore lost dependencies against the ports tree. >=20 > What is a lost dependency ? I hope I can explain this right. Its a situation where a dependency was marked as "DELETED" in /var/db/pkg/*/+CONTENTS for some versions of portupgrade (a bug). Using the -L forces a recheck of each ports dependencies and updates /var/db/pkg/*/+CONTENTS in accordance with the port skeleton(s). See this thread for more information: http://docs.freebsd.org/cgi/mid.cgi?20070205001114.b4f77f86.bsd-unix > # pkgdb -L > Look for lost dependencies: > ImageMagick-6.3.2.0: found > print/ghostscript-afpl > -> Fixed. > ORBit2-2.14.6: ok > [...] >=20 > But i use ghostscript-gnu-7.07_15 >=20 > So : > # pkgdb -F > ---> Checking the package registry database > Stale dependency: ImageMagick-6.3.2.0 -> ghostscript-afpl-8.54,1=20 > (print/ghostscript-afpl): > ghostscript-gnu-7.07_15 (score:70%) ? ([y]es/[n]o/[a]ll) [a] >=20 > And then i've got the same lost dependency again. >=20 > I do not understand the goal and the utility of this option -L, a sample ? I had the same issue where different ports wanted different versions of ghostscript but both versions will work (for me) in the applications I have installed. It was an easy matter using pkgtools.conf to specify that portupgrade use a particular version with the ALT_PKGDEP variable. This is the case mentioned in /usr/ports/UPDATING: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 20070301: AFFECTS: users of ports-mgmt/portupgrade* AUTHOR: sem@FreeBSD.org Because of a bug in previous version, it's recomended you fill ALT_PKGDEP section in pkgtools.conf file for portupgrade be aware of alternative dependencies you use, and run pkgdb -L to restore dependencies that was lost. Example of ALT_PKGDEP section: ALT_PKGDEP =3D { 'www/apache13' =3D> 'www/apache13-modssl', 'print/ghostscript-afpl' =3D> 'print/ghostscript-gnu', } Note also, portupgrade knows nothing how to handle ports with different suffixes (E.g. -nox11). So you should define explicitly variables (E.g. WITHOUT_X11=3Dyes) for the ports in /etc/make.conf or pkgtools.conf (MAKE_ARGS section) files. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ Depending on how long it has been since your ports were updated, the 20070102 entry regarding portupgrade may also be of interest. HTH, Randy --=20