From owner-freebsd-ports@FreeBSD.ORG Wed Jul 15 09:58:05 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 8D2C9106564A; Wed, 15 Jul 2009 09:58:05 +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 46D828FC14; Wed, 15 Jul 2009 09:58:04 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from localhost (localhost.codelab.cz [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 96CE819E023; Wed, 15 Jul 2009 11:58:02 +0200 (CEST) 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 5739619E019; Wed, 15 Jul 2009 11:58:00 +0200 (CEST) Message-ID: <4A5DA829.7090405@quip.cz> Date: Wed, 15 Jul 2009 11:58:01 +0200 From: Miroslav Lachman <000.fbsd@quip.cz> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: cz, cs, en, en-us MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <4A5C954C.5060507@quip.cz> <4A5C9A98.5020006@isafeelin.org> <4A5CB871.5070003@quip.cz> <4A5CDCD6.9030201@FreeBSD.org> <4A5DA330.609@quip.cz> In-Reply-To: <4A5DA330.609@quip.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Frederique Rijsdijk , Doug Barton Subject: Re: portmaster -x not working? 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: Wed, 15 Jul 2009 09:58:05 -0000 Miroslav Lachman wrote: > Doug Barton wrote: > >> Try using just this: >> >> portmaster -x mysql-client- phpMyAdmin-3.1.5 >> >> That should work. If it does not, please let me know. > > > part 2: > > It is working with -x mysql, but not with -x mysql- or -x mysql-client > or -x mysql-client- [...] > So, something is broken, but I don't know what. I got some progress. I hack a function check_exclude, to be more verbose and it help a little: check_exclude () { echo "Exclude: $EXCL" echo "Dependency: $1" [ -n "$EXCL" ] || return 0 case "$1" in *${EXCL}*) if [ -n "$PM_VERBOSE" ]; then echo "===>>> Skipping $1" echo " because it matches the pattern: *${EXCL}*" fi return 1 ;; esac return 0 } root@track ~/# ~/portmaster -v -x mysql-client- phpMyAdmin-3.1.4 ===>>> Currently installed version: phpMyAdmin-3.1.4 ===>>> Port directory: /usr/ports/databases/phpmyadmin ===>>> Launching 'make checksum' for databases/phpmyadmin in background ===>>> Gathering dependency list for databases/phpmyadmin from ports ===>>> Starting recursive 'make config' check ===>>> Checking dependency: /usr/ports/databases/mysql50-client Exclude: mysql-client- Dependency: databases/mysql50-client So the problem is, that portmaster is doing match to ports directory mysql50-client which is different from the package name mysql-client-5.x.x Should it be better documented in manpage, or modified to match package name? (or check both?) Miroslav Lachman