Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Apr 2007 12:40:34 GMT
From:      Andy Hilker<ah@crypta.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/111536: pkgdb -L sometimes restores wrong dependencies (does not honour pkgtools.conf make args)
Message-ID:  <200704131240.l3DCeYPL093198@www.freebsd.org>
Resent-Message-ID: <200704131250.l3DCo1Lu080356@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         111536
>Category:       ports
>Synopsis:       pkgdb -L sometimes restores wrong dependencies (does not honour pkgtools.conf make args)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 13 12:50:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Andy Hilker
>Release:        6.2-RELEASE-p2
>Organization:
>Environment:
6.2-RELEASE-p2 
>Description:
When using "pkgdb -L" the dependencies are restore from the ports Makefile. In case a dependency does not exist while "WITHOUT_Feature=yes" during make, the dependency will be restored even this is wrong...

However pkgdb honours the options file created by "make config". But this is not helpful when using "Batch=yes" and portupgrade utility in big environments, where make config is not used.
>How-To-Repeat:
Install amanda-client with:

case 1 (wrong behaviour):
cd /usr/ports/misc/amanda-client 
make WITH_DUMP_SNAPSHOT="Y" WITHOUT_GNUTAR="Y" install clean
pkgdb -L


case 2 (wrong behaviour):
cd /usr/ports/misc/amanda-client 
make config (switch off GNUTAR)
pkgdb -L


>Fix:
Maybe pkgdb should use the "make_args" environment variables from pkgtools.conf.

The reason of this behaviour is that e.g. amanda Makefile uses "if defined" and "if ! defined" which seems not to be set during pkgdb run.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704131240.l3DCeYPL093198>