From owner-freebsd-ports@FreeBSD.ORG Sat Dec 19 15:13:36 2009 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DBA0106568D; Sat, 19 Dec 2009 15:13:36 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) by mx1.freebsd.org (Postfix) with ESMTP id 35BBF8FC1D; Sat, 19 Dec 2009 15:13:36 +0000 (UTC) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id CBED119E046; Sat, 19 Dec 2009 16:13:34 +0100 (CET) Received: from [192.168.1.2] (r5bb235.net.upc.cz [86.49.61.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 5966419E044; Sat, 19 Dec 2009 16:13:32 +0100 (CET) Message-ID: <4B2CED9B.6010903@quip.cz> Date: Sat, 19 Dec 2009 16:13:31 +0100 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.1.6) Gecko/20091206 SeaMonkey/2.0.1 MIME-Version: 1.0 To: Doug Barton References: <4B159C5C.2090407@FreeBSD.org> In-Reply-To: <4B159C5C.2090407@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: portmaster-with-package-support release candidate available for testing / pkg_add: illegal option -- - 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: Sat, 19 Dec 2009 15:13:36 -0000 Doug Barton wrote: > Howdy! > > I'm very excited to announce that what I hope to be the final version > of the new portmaster with package support is now available for > testing. I've done quite a bit of regression testing myself, but the > last time I posted about the beta version several people were kind > enough to give it a go and I got several really good suggestions. It > would be really great if more users could give this version a try > before I commit it to the actual port. > > You can find the information on accessing the svn version at > http://dougbarton.us/portmaster-proposal.html [...] Hi Doug, I gave it a try, but no luck :) I tried portmaster --local-packagedir=/usr/ports/packages -P python26-2.6.2_3 and got error message: ===>>> Currently installed version: python26-2.6.2_3 ===>>> Port directory: /usr/ports/lang/python26 ===>>> Gathering dependency list for lang/python26 from ports ===>>> No dependencies for lang/python26 ===>>> Starting build and/or install for lang/python26 <<<=== ===>>> All dependencies are up to date ===>>> Checking package repository for latest available version ===>>> Available package (python26-2.6.4) matches the ports tree ===>>> Creating a backup package for old version python26-2.6.2_3 ===>>> Package saved to /usr/ports/packages/portmaster-backup pkg_delete: package 'python26-2.6.2_3' is required by these other packages and may not be deinstalled (but I'll delete it anyway): python-2.6,2 ===>>> Installing package pkg_add: illegal option -- - usage: pkg_add [-vInrfRMSK] [-t template] [-p prefix] [-P prefix] [-C chrootdir] pkg-name [pkg-name ...] ===>>> A backup package for python26-2.6.2_3 should be located in /usr/ports/packages/portmaster-backup ===>>> Installation of python26-2.6.4.tbz (lang/python26) failed ===>>> Aborting update I don't know if it is well known / documented somewhere in portmaster, but after debugging, I realized that pkg_add on FreeBSD 6.3 has no long options (--no-deps --force), there is only -f, but no -i. If it can't be worked around, than packages support on FreeBSD < 7 should be completely disabled. Tested in jailed FreeBSD 6.3-RELEASE-p5 with portmaster Version 2.15 And one question - is it really mandatory to use --local-packagedir=/usr/ports/packages if I want to install locally available packages from standard path /usr/local/packages/All? Shouldn't it be default behavior? Without --local-packagedir portmaster is trying to fetch it from FTP: "Package and/or archive not found at: http://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.3-release/lang/" and doesn't look at the local directory: "There is no valid package to install, building port instead" Miroslav Lachman