Subject: pkg/32422: depends bin-installed automatically not flagged as automatic
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 12/31/2005 07:10:00
>Number:         32422
>Category:       pkg
>Synopsis:       depends bin-installed automatically not flagged as automatic
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 31 07:10:00 +0000 2005
>Originator:     Chapman Flack
>Release:        pkgsrc-2005Q4
NetBSD 2.0 NetBSD 2.0 (lundestad) #12: Thu Dec  8 18:40:35 EST 2005  xxx@xxx:/usr/src/sys/arch/i386/compile/lundestad i386

A new feature in pkgsrc-2005Q4 and the latest pkg_install tools
should flag automatically-installed dependent packages.  For the
bin-install case, that should be done by these lines:

.if defined(_AUTOMATIC) && !empty(_AUTOMATIC:Myes)

Two problems. First, pkg_add doesn't have a -a flag; the new
flag for "automatic" is -A (upper case).

So why is no error message produced?  That's because the variable
_AUTOMATIC does not get set to the value yes; it's set to YES; so
the above code isn't executed anyway and that's why nobody caught
the -a.
bin-install a package that is not available in binary form but whose
depends are. Observe that the depends (those installed by pkg_add)
are not flagged automatic (they show up in pkg_info -u, which they
---	2005-12-05 17:07:07.000000000 -0500
+++	2005-12-31 01:57:32.000000000 -0500
@@ -3471,8 +3471,8 @@
-.if defined(_AUTOMATIC) && !empty(_AUTOMATIC:Myes)
+.if defined(_AUTOMATIC) && !empty(_AUTOMATIC:MYES)