From owner-freebsd-ports@FreeBSD.ORG Mon Jun 19 12:51:53 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org 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 6898416A47C; Mon, 19 Jun 2006 12:51:53 +0000 (UTC) (envelope-from freebsd-questions@auscert.org.au) Received: from titania.auscert.org.au (gw.auscert.org.au [203.5.112.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9642443D68; Mon, 19 Jun 2006 12:51:52 +0000 (GMT) (envelope-from freebsd-questions@auscert.org.au) Received: from app.auscert.org.au (app [10.0.1.192]) by titania.auscert.org.au (8.12.10/8.12.10) with ESMTP id k5JCpouE086289; Mon, 19 Jun 2006 22:51:50 +1000 (EST) Received: from app.auscert.org.au (localhost.auscert.org.au [127.0.0.1]) by app.auscert.org.au (8.13.1/8.13.1) with ESMTP id k5JCpo7Y054704; Mon, 19 Jun 2006 22:51:50 +1000 (EST) (envelope-from freebsd-questions@auscert.org.au) Message-Id: <200606191251.k5JCpo7Y054704@app.auscert.org.au> To: freebsd-questions@freebsd.org From: freebsd-questions@auscert.org.au Date: Mon, 19 Jun 2006 22:51:50 +1000 Cc: freebsd-ports@freebsd.org Subject: portupgrade confusing '-P' and '-p'? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 12:51:53 -0000 Hi, I'm in the middle of configuring a repeatable jail installation with some ports - in a nutshell, I want to install from locally built packages, but if not available locally I want to build the port myself _and_ create a package for future repetition. To prevent remote fetching, I set the PKG_FETCH variable to /bin/false as recommended. Here's the part I found curious: # portinstall -N -P -p x11-toolkits/gtk20 [Updating the pkgdb in /var/db/pkg ... - 63 packages found (-0 +0) done] ---> Checking for the latest package of 'x11-toolkits/gtk20' ---> Found a package of 'x11-toolkits/gtk20': /usr/ports/packages/All/gtk-2.8.18_1.tbz (gtk-2.8.18_1) ---> Fetching the package(s) for 'gtk-2.8.19' (x11-toolkits/gtk20) [Updating the pkgdb in /var/db/pkg ... - 63 packages found (-0 +0) done] ---> Fetching gtk-2.8.19 ** The command returned a non-zero exit status: 127 ** Failed to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-5.3-release/All/gtk-2.8.19.tbz ** The command returned a non-zero exit status: 127 ** Failed to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-5.3-release/All/gtk-2.8.19.tgz ** Failed to fetch gtk-2.8.19 ** Listing the failed packages (*:skipped / !:failed) ! gtk-2.8.19 (fetch error) ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed ---> Fetching the latest package(s) for 'gtk20' (x11-toolkits/gtk20) ---> Fetching gtk20 ** The command returned a non-zero exit status: 127 ** Failed to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-5.3-release/Latest/gtk20.tbz ** The command returned a non-zero exit status: 127 ** Failed to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-5.3-release/Latest/gtk20.tgz ** Failed to fetch gtk20 ** Listing the failed packages (*:skipped / !:failed) ! gtk20@ (fetch error) ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed ---> Located a package version 2.8.18_1 (/usr/ports/packages/All/gtk-2.8.18_1.tbz) ---> Using it anyway although it is not the latest version (2.8.19), since -PP/--use-packages-only is specified ---> Installing 'gtk-2.8.18_1' from a package ---> Installing the new version via the package pkg_add: warning: package 'gtk-2.8.18_1' requires 'libxml2-2.6.24_1', but 'libxml2-2.6.26' is installed Note from the above that portinstall is presuming that -PP was used and is not building the port. I can omit the '-p' and this stops the occurrence of this error, but then I don't get a package creation and that means I'll have to build this port from scratch every time I want to install it. I could force package creation of all ports, but this seems wasteful when only a few require this process. Is this a bug in portupgrade, or have I just used a conflicting array of arguments? cheers, -- Joel Hatton -- Infrastructure Manager | Hotline: +61 7 3365 4417 AusCERT - Australia's national CERT | Fax: +61 7 3365 7031 The University of Queensland | WWW: www.auscert.org.au Qld 4072 Australia | Email: auscert@auscert.org.au