From owner-freebsd-ports@FreeBSD.ORG Thu Jul 24 16:41:02 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 913C637B401 for ; Thu, 24 Jul 2003 16:41:02 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1B1D43F3F for ; Thu, 24 Jul 2003 16:41:00 -0700 (PDT) (envelope-from diz@linuxpowered.com) Received: from linuxpowered.com (12-238-113-137.client.attbi.com[12.238.113.137](untrusted sender)) by comcast.net (rwcrmhc11) with SMTP id <2003072423405701300ot2fne> (Authid: jdisnard); Thu, 24 Jul 2003 23:40:57 +0000 Message-ID: <3F206E87.9010908@linuxpowered.com> Date: Thu, 24 Jul 2003 18:40:55 -0500 From: Jon Disnard User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: preinstalled ports always cause error code 1 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2003 23:41:03 -0000 Hello all, I maintain a -current system, and I cvsup the ports tree nightly, and portupgrade weekly. I have been running portupgrade recently when I noticed a trend of similare failures that is consitent with the one bellow for all the upgraded ports: __BEGIN__ ---> Installing the new version via the port ===> Installing for fontconfig-2.2.90_3 ===> fontconfig-2.2.90_3 depends on executable: pkg-config - found ===> fontconfig-2.2.90_3 depends on shared library: freetype.9 - found ===> fontconfig-2.2.90_3 depends on shared library: expat.4 - found ===> Generating temporary packing list ===> Checking if x11-fonts/fontconfig already installed *** Error code 1 Stop in /usr/ports/x11-fonts/fontconfig. *** Error code 1 Stop in /usr/ports/x11-fonts/fontconfig. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade1275.0 make reinstall egrep: /var/db/pkg/fontconfig-2.2.1/+CONTENTS: No such file or directory ---> Restoring the old version __END__ As you can see there is an "*** Error code 1" at the moment when portupgrade checks to see if the port is already installed. This actually happens when I run the "make install" manually for any given port that is already installed. So I assume that the ports system is using pkg_info to discover if the given port is installed, os I decided to give it a try manually: __BEGIN__ buda# pkg_info | grep "fontconfig" pkg_info: can't find package 'cyrus-sasl-2.1.13_2' installed or in a file! fontconfig-2.2.1 An XML-based font configuration API for X Windows __END__ As you can see I have uncovered the error about cyrus-sasl, which was unexpected, and probably somehow having a relationship with fontconfig. I assume that was a problem with the pkgdb, so I did `pkgdb -F` and returned the following results: __BEGIN__ buda# pkgdb -F ---> Checking the package registry database Duplicated origin: devel/libtool13 - libtool-1.3.4_4 libtool-1.3.5 Unregister any of them? [no] yes Unregister libtool-1.3.4_4 keeping the installed files intact? [no] yes -> libtool-1.3.5 is kept. --> Saving the libtool-1.3.4_4's +CONTENTS file as /var/db/pkg/libtool-1.3.5/+CONTENTS.libtool-1.3.4_4 --> Unregistering libtool-1.3.4_4 --> Done. [Updating the pkgdb in /var/db/pkg ... - 242 packages found (-1 +0) (...) done] Stale dependency: g-wrap-1.3.4_3 -> libtool-1.3.4_4 (devel/libtool13): __END__ As you can see the trail leads me to libtool being upgraded, and correcting several dependancies that I spared you from reading. :-) This is where the trail grew cold because I know that I have indeed installed cyrus-sasl at some point int eh past when I was playing with openldap. Pkg_info yields nothing about the cyrus-sasl, and doing a `which slapd` yields nothing either. It seems that slapd has gone missing on my system, and I have no idea why? I obviously thought about manually reinstalling slapd, so I did a "makesearch key=cyrus-sasl" wich yielded: __BEGIN__ Port: cyrus-sasl-2.1.13_4 Path: /usr/ports/security/cyrus-sasl2 Info: RFC 2222 SASL (Simple Authentication and Security Layer) Maint: ume@FreeBSD.org Index: security ipv6 B-deps: R-deps: Port: cyrus-sasl-saslauthd-2.1.13 Path: /usr/ports/security/cyrus-sasl2-saslauthd Info: SASL authentication server for cyrus-sasl2 Maint: ume@FreeBSD.org Index: security ipv6 B-deps: cyrus-sasl-2.1.13_4 R-deps: cyrus-sasl-2.1.13_4 __END__ I don't recall the saslauthd port ever existing previously. Could this be part of my problem? For now I'm in a holding pattern until I recive consultation from this list. Any clues, hints, or whatever constructive critiqe you kind folks can provide is highly welcome. Thanks in advance, -Jon