From owner-freebsd-ports@FreeBSD.ORG Wed Oct 17 13:05:04 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 47B445C4 for ; Wed, 17 Oct 2012 13:05:04 +0000 (UTC) (envelope-from mcdouga9@egr.msu.edu) Received: from mail.egr.msu.edu (hill.egr.msu.edu [35.9.37.162]) by mx1.freebsd.org (Postfix) with ESMTP id 007348FC08 for ; Wed, 17 Oct 2012 13:05:03 +0000 (UTC) Received: from hill (localhost [127.0.0.1]) by mail.egr.msu.edu (Postfix) with ESMTP id B74AB9088F for ; Wed, 17 Oct 2012 09:04:57 -0400 (EDT) X-Virus-Scanned: amavisd-new at egr.msu.edu Received: from mail.egr.msu.edu ([127.0.0.1]) by hill (hill.egr.msu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1i-TsWXVE9o8 for ; Wed, 17 Oct 2012 09:04:57 -0400 (EDT) Received: from daemon.localdomain (daemon.egr.msu.edu [35.9.44.65]) by mail.egr.msu.edu (Postfix) with ESMTP id 7931290889 for ; Wed, 17 Oct 2012 09:04:57 -0400 (EDT) Received: by daemon.localdomain (Postfix, from userid 21281) id 7458E9107C; Wed, 17 Oct 2012 09:04:57 -0400 (EDT) Date: Wed, 17 Oct 2012 09:04:57 -0400 From: Adam McDougall To: freebsd-ports@freebsd.org Subject: pkg install order dependency problem Message-ID: <20121017130456.GY48053@egr.msu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2012 13:05:04 -0000 Short version: If you make a pkg repo with poudriere that includes java/diablo-jdk16 and tell pkg to install it, it knows pkgconf is a dep of xproto but it installs it in the wrong order so it fails. diablo-jdk16 is not on pkgbeta so I cannot test with that repo. I realize there are other jdk choices but this issue is about why pkg would get the install order wrong (it also seems to be missing a newline on the error). Please let me know if I can provide more information or test something. Thanks. This is on a recent 9.x-amd64 test system with no packages old or new: root@test:/root # env PACKAGESITE="http://my.local.server/pkg/freebsd:9:x86:64/latest" pkg update The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: y Bootstrapping pkg please wait Installing pkg-1.0.1... done If you are upgrading from the old package format, first run: # pkg2ng Updating repository catalogue repo.txz 100% 792KB 791.5KB/s 791.5KB/s 00:00 root@test:/root # pkg info pkg-1.0.1 New generation package manager root@test:/root # pkg install java/diablo-jdk16 Updating repository catalogue Repository catalogue is up-to-date, no need to fetch fresh copy The following packages will be installed: Installing javavmwrapper: 2.4 Installing compat7x-amd64: 7.3.703000.201008_1 Installing xextproto: 7.2.0 Installing xproto: 7.0.22 Installing pkgconf: 0.8.9 Installing diablo-jdk: 1.6.0.07.02_20 The installation will require 166 MB more space 56 MB to be downloaded Proceed with installing packages [y/N]: y javavmwrapper-2.4.txz 100% 18KB 17.6KB/s 17.6KB/s 00:00 compat7x-amd64-7.3.703000.201008_1.txz 100% 5010KB 4.9MB/s 4.9MB/s 00:00 xextproto-7.2.0.txz 100% 23KB 22.7KB/s 22.7KB/s 00:00 xproto-7.0.22.txz 100% 59KB 59.2KB/s 59.2KB/s 00:00 pkgconf-0.8.9.txz 100% 22KB 21.9KB/s 21.9KB/s 00:00 diablo-jdk-1.6.0.07.02_20.txz 100% 52MB 51.7MB/s 51.7MB/s 00:00 Checking integrity... done Installing javavmwrapper-2.4... done Installing compat7x-amd64-7.3.703000.201008_1... done Installing xextproto-7.2.0... done Installing xproto-7.0.22...missing dependency pkgconf-0.8.9root@test:/root # root@test:/root # root@test:/root # pkg install java/diablo-jdk16 Updating repository catalogue Repository catalogue is up-to-date, no need to fetch fresh copy The following packages will be installed: Installing xproto: 7.0.22 Installing pkgconf: 0.8.9 Installing diablo-jdk: 1.6.0.07.02_20 The installation will require 149 MB more space 0 B to be downloaded Proceed with installing packages [y/N]: y Checking integrity... done Installing xproto-7.0.22...missing dependency pkgconf-0.8.9root@test:/root # root@test:/root # root@test:/root # If I go ahead and install pkgconf manually, xproto and thus diablo-jdk succeed. Interestingly, if I only request to install xproto, it gets the order right: root@test:/root # pkg install xproto Updating repository catalogue Repository catalogue is up-to-date, no need to fetch fresh copy The following packages will be installed: Installing pkgconf: 0.8.9 Installing xproto: 7.0.22 The installation will require 428 kB more space 0 B to be downloaded Proceed with installing packages [y/N]: y Checking integrity... done Installing pkgconf-0.8.9... done Installing xproto-7.0.22... done