From owner-freebsd-questions@FreeBSD.ORG Tue Apr 28 22:13:47 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31455106566C for ; Tue, 28 Apr 2009 22:13:47 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id DA6B88FC12 for ; Tue, 28 Apr 2009 22:13:46 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so519816ywe.13 for ; Tue, 28 Apr 2009 15:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Gn1PtAj2p06b6vReeOYyzqHBjXq+GFXvS6yZbjXT2ws=; b=RAQFEPRuRGyKaOf9f4eIZ+GX8KsVInli4INz3KSuyWxFctCA8nKaGJVNEhNm77qe5z J2qSatuCFFXpy+fSy9PD5SBxq1tGZ4bPhJNiqyYShR8y41ptTCTbHT3ftGAlRPHU6u1U W6B78ggZ9H7UO/q1st1rLWgWA8HTZ3SglH1yg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=c0DaBsA8DCFSfpSpSNXXEtjZf/xpk11q8NWL45XgmIgTaYRG24ZyVkTJk2l8QnsvEv /0qptQwHU6U9mIzftmf0jbCo1Cta6yeLucEFnFBGR6cRfuv5JpvNLxNsrkl41tG/TGuQ eZNFJLMPlAurMm1+bWIb0YSd5UQcC8lSKGZso= Received: by 10.90.82.17 with SMTP id f17mr9051723agb.41.1240956826200; Tue, 28 Apr 2009 15:13:46 -0700 (PDT) Received: from ?216.16.29.53? (host-53.216-16-29.iw.net [216.16.29.53]) by mx.google.com with ESMTPS id 20sm490337agb.25.2009.04.28.15.13.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 28 Apr 2009 15:13:45 -0700 (PDT) Message-ID: <49F77FA3.4010009@gmail.com> Date: Tue, 28 Apr 2009 17:13:55 -0500 From: Adam Vandemore User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: questions@freebsd.org References: <49F5F9F9.5050506@InsightBB.com> <443absdhg1.fsf@be-well.ilk.org> <49F73F43.30101@InsightBB.com> <49F74466.7050409@otenet.gr> <49F77618.9090203@InsightBB.com> In-Reply-To: <49F77618.9090203@InsightBB.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: Chicken and egg 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: Tue, 28 Apr 2009 22:13:47 -0000 Steven Friedrich wrote: > Manolis Kiagias wrote: >> Steven Friedrich wrote: >>> Lowell Gilbert wrote: >>>> Steven Friedrich writes: >>>> >>>>> I've been having trouble with X11 ports, so I deleted all my packages >>>>> and tried to install xorg fresh. >>>>> >>>>> xorg port failed trying to build cairo, cairo failed because it >>>>> couldn't build libdrm, libdrm failed because cairo's headers weren't >>>>> installed. >>>>> >>>>> So in summary, I can't install cairo because it wants to build >>>>> libdrm, >>>>> which won't build/install because it wants cairo. >>>>> >>>>> And I tried to install packages or the X11 distro from the ftp site >>>>> and also from my 7.2 RC-1 media. I tried setting the Options for >>>>> "any" as well as RELEASE_7_2_0, to no avail. My system is up and >>>>> running multi-user, so sysinstall failed to install any packages. >>>>> >>>>> I built cairo with make -k install, so it would brute force past the >>>>> error, and after that I built libdrm and cairo again with portupgrade >>>>> -fr libdrm cairo. >>>> Not only have I not seen or heard of this problem before, I can't see >>>> any direct dependency of either libdrm or cairo on the other. >>>> >>> pkg_info -r cairo\* shows that cairo needs libdrm. >>> Information for cairo-1.8.6_1,1: >>> >>> Depends on: >>> ... >>> Dependency: libdrm-2.4.9 >>> ... >>> >>> If anyone has a has a test system, where they could try my scenario, >>> i.e., deleting all installed packages and trying to install xorg, I >>> think you'll find it. >>> >>> I have two identical systems that I have mobile racks in, allowing me >>> to swap out the hard drives. So I have 4 sets of drives, Lightning, >>> Daemon, FreakinBSD, and Gandalf. I saw this issue with Daemon. I >>> need to update FreakinBSD and Gandalf, so I'll try this again and get >>> it in a log file. >>> >>> libdrm doesn't build without cairo.h in /usr/local/include, but it >>> won't be there until you're built cairo, which depends on libdrm. >>> >> As Lowell already said, I can't find any dependency between libdrm and >> cairo. My guess is you package database has one or more stale >> dependencies. However, if the purpose is to wipe all packages you don't >> even have to bother with pkg_delete. In such cases I simply rm >> /usr/local and /var/db/pkg (Keep /var/db/pkg/linux_base-fc* if you are >> using the linux binary compatibility, as this is not installed in >> /usr/local but /usr/compat). I do this routinely on test systems. >> >> > On a system with cairo installed, try pkg_info -r cairo\*|grep drm > > Here's from one of my systems: > Dependency: libdrm-2.4.9 > > Since I used pkg_delete -a to get rid of all ports and packages, I > couldn't have any stale dependencies, could I ? > > After that I went to /usr/ports/x11/xorg and did a make install and it > failed. My ports are recent, I'm tracking 7.2-RC1, etc. > my system setup is similar to yours. cairo depends on libdrm in my setup, however I can find nowhere that libdrm depends on cairo. Does the following complete successfully, if not what errors do you see? update ports eg - portsnap fetch extract cd /usr/ports/graphics/libdrm make clean distclean deinstall reinstall -- Adam Vandemore Systems Administrator IMED Mobility (605) 498-1610