Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2002 17:19:52 -0800 (PST)
From:      Alan Larson <larson@eng.paix.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   misc/45254: Sysinstall installs things it should not install, XF86 in my case.
Message-ID:  <200211130119.RAA35594@ground0.paix.net>

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

>Number:         45254
>Category:       misc
>Synopsis:       Sysinstall installs things it should not install, XF86 in my case.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 12 17:20:04 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Alan Larson
>Release:        FreeBSD 4.6.2-RELEASE i386
>Organization:
PAIX.net
>Environment:

	4.6.2 install CD

>Description:

When you want to install almost everything, an obvious thing to try is to
click on "All", and then select the things you DON'T want to turn them off.

Doing this with XF86 doesn't work, since distSetEverything() turns on
    XF86Dists = DIST_XF86_ALL;
    XF86ServerDists = DIST_XF86_SERVER_ALL;
    XF86FontDists = DIST_XF86_FONTS_ALL;
but unsetting XF86 doesn't turn them off.


>How-To-Repeat:

Do system install, or Upgrade, select "All", then go down into custom
and unselect "XFree86 Distribution".  Watching the install, or looking
at the results, you see a bunch of it still got installed.


>Fix:
	
For now, as a work-around, note that the software is demented.  Later,
someone should clear all the XF86 stuff there when it is turned off.


While there, shortening the code needed to do an exclusive-OR in the
routine dmenuSetFlag() might inspire more confidence.


int
dmenuSetFlag(dialogMenuItem *tmp)
{
    if (*((unsigned int *)tmp->data) & tmp->aux)
        *((unsigned int *)tmp->data) &= ~tmp->aux;
    else
        *((unsigned int *)tmp->data) |= tmp->aux;
    return DITEM_SUCCESS;
}


int
dmenuSetFlag(dialogMenuItem *tmp)
{
    *((unsigned int *)tmp->data) ^= tmp->aux;	/* toggle bit on/off */
    return DITEM_SUCCESS;
}
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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