portmaster -x not working?

Miroslav Lachman 000.fbsd at quip.cz
Wed Jul 15 09:58:05 UTC 2009


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 at 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


More information about the freebsd-ports mailing list