RE: Why does setup insist on trying to install colordiff?

2008-02-28 Thread Dave Korn
On 28 February 2008 14:35, Jerry D. Hedden wrote:

 Why does setup insist on trying to install colordiff?  How
 can this be turned off (without installing colordiff, of
 course)?

  It's a minor bug, there is no workaround at the moment apart from to
manually set the package to Skip in the chooser.  Frankly it's a hundred
times quicker and easier to just let it install, the package is tiny.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Why does setup insist on trying to install colordiff?

2008-02-28 Thread Jerry D. Hedden
   It's a minor bug, there is no workaround at the moment apart from to
  manually set the package to Skip in the chooser.  Frankly it's a hundred
  times quicker and easier to just let it install, the package is tiny.

My problem is that colordiff requires Perl, and I build my own version
of Perl and don't want it downloaded via setup.exe.  Hence why I
brought it up.

What is the bug?

Where is the mandatory/optional flags for modules?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Why does setup insist on trying to install colordiff?

2008-02-28 Thread Dave Korn
On 28 February 2008 15:05, Jerry D. Hedden wrote:

   It's a minor bug, there is no workaround at the moment apart from to
  manually set the package to Skip in the chooser.  Frankly it's a hundred
  times quicker and easier to just let it install, the package is tiny.
 
 My problem is that colordiff requires Perl, and I build my own version
 of Perl and don't want it downloaded via setup.exe.  Hence why I
 brought it up.

  Oh, ouch.  Maybe until we get this sorted out we should remove the
dependencies.

 What is the bug?
 
 Where is the mandatory/optional flags for modules?

  Nobody's quite sure where exactly the bug is yet, but how it's /supposed/ to
work is that everything in the Base category is mandatory, and everything
else is optional.


cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Why does setup insist on trying to install colordiff?

2008-02-28 Thread Kostya Altukhov
On Thu, Feb 28, 2008 at 6:19 PM, Dave Korn wrote:
   My problem is that colordiff requires Perl, and I build my own version
   of Perl and don't want it downloaded via setup.exe.  Hence why I
   brought it up.

   Oh, ouch.  Maybe until we get this sorted out we should remove the
  dependencies.

It is probably better to fix the bug itself than to remove the dependencies :)

I've actually looked in setup.exe source and I found this piece of code:

if (installed
|| categories.find (Base) != categories.end ()
|| categories.find (Misc) != categories.end ())
{
desired = default_version;

So by default setup attempts to install all packages in categories
Base and Misc. Why category Misc is treated as required? Maybe it
should be removed from this 'if'. But that requires changing
setup.exe, so the simplest fix would be just to change the category
for colordiff from Misc to Utils (like it was in the ITP).

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Why does setup insist on trying to install colordiff?

2008-02-28 Thread Jerry D. Hedden
 Nobody's quite sure where exactly the bug is yet, but how
 it's /supposed/ to work is that everything in the Base
 category is mandatory, and everything else is optional.

I notice that for colordiff the category is Misc, and there
are no other modules for that category.  Shouldn't the
category be Utils?

Is Misc a bogus category that is somehow getting lumped
into Base?

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Why does setup insist on trying to install colordiff?

2008-02-28 Thread Corinna Vinschen
On Feb 28 18:31, Kostya Altukhov wrote:
 On Thu, Feb 28, 2008 at 6:19 PM, Dave Korn wrote:
My problem is that colordiff requires Perl, and I build my own version
of Perl and don't want it downloaded via setup.exe.  Hence why I
brought it up.
 
Oh, ouch.  Maybe until we get this sorted out we should remove the
   dependencies.
 
 It is probably better to fix the bug itself than to remove the dependencies :)
 
 I've actually looked in setup.exe source and I found this piece of code:
 
 if (installed
 || categories.find (Base) != categories.end ()
 || categories.find (Misc) != categories.end ())
 {
 desired = default_version;
 
 So by default setup attempts to install all packages in categories
 Base and Misc. Why category Misc is treated as required? Maybe it
 should be removed from this 'if'. But that requires changing
 setup.exe, so the simplest fix would be just to change the category
 for colordiff from Misc to Utils (like it was in the ITP).

It's in Utils now.  Somebody already changed that on cygwin.com
a couple of hours ago.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Why does setup insist on trying to install colordiff?

2008-02-28 Thread Eric Blake
Corinna Vinschen corinna-cygwin at cygwin.com writes:

 It's in Utils now.  Somebody already changed that on cygwin.com
 a couple of hours ago.

No, all I did was touch the file on cygwin.com a couple of hours ago, hoping 
that it would be enough to trigger a setup.ini regeneration.  But before I 
touched the file, it _already_ was in Utils (in fact, in the original ITP, the 
setup.hint was already listed as Utils, never Misc).  And looking at cygwin.com 
right now, it looks like touching the setup.hint was not enough to trigger the 
desired setup.ini regen; setup.ini still wrongly claims it is Misc.  So the 
problem STILL exists, in spite of my attempts (unless I misunderstand how 
frequently setup.ini is regenerated).

-- 
Eric Blake



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Why does setup insist on trying to install colordiff?

2008-02-28 Thread Dave Korn
On 28 February 2008 17:01, Eric Blake wrote:

 (unless I
 misunderstand how frequently setup.ini is regenerated).

  Every ten minutes, regardless of timestamps, IIUIC.

cheers,
  DaveK
-- 
Can't think of a witty .sigline today


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Why does setup insist on trying to install colordiff?

2008-02-28 Thread Kostya Altukhov
On Thu, Feb 28, 2008 at 8:01 PM, Eric Blake wrote:
  No, all I did was touch the file on cygwin.com a couple of hours ago, hoping
  that it would be enough to trigger a setup.ini regeneration.  But before I
  touched the file, it _already_ was in Utils (in fact, in the original ITP, 
 the
  setup.hint was already listed as Utils, never Misc).

Looks like the category field in setup.hint has uppercase C. This
might cause it to be ignored by the script - please change it to
lowercase c.

--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Why does setup insist on trying to install colordiff?

2008-02-28 Thread Eric Blake
Kostya Altukhov kacygwinlist at gmail.com writes:

 Looks like the category field in setup.hint has uppercase C. This
 might cause it to be ignored by the script - please change it to
 lowercase c.

Bingo.  That was it.  Now you can wait for the fixed setup.ini to propagate to 
a mirror near you.  And we have another sanity check that needs to be added 
when checking out potential setup.hints.

-- 
Eric Blake




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Why does setup insist on trying to install colordiff?

2008-02-28 Thread Charles Wilson

Kostya Altukhov wrote:

I've actually looked in setup.exe source and I found this piece of code:

if (installed
|| categories.find (Base) != categories.end ()
|| categories.find (Misc) != categories.end ())
{
desired = default_version;

So by default setup attempts to install all packages in categories
Base and Misc. Why category Misc is treated as required? Maybe it
should be removed from this 'if'. But that requires changing
setup.exe, so the simplest fix would be just to change the category
for colordiff from Misc to Utils (like it was in the ITP).


It's done this way, because if you run setup.exe and choose install 
form local where
 1) the local directory you use is NOT a website mirror nor a typical 
setup-generated download dir with those funky 
http%3a%2f%2fmirror.calvin.edu%2fcygwin/ subdirectories.
 2) instead, the local directory is just a simple dir containing a 
jumble of tarballs.

 3) and there is no setup.ini in sight

Then, setup pretends that all of the tarballs are in the Misc category, 
and offers to install them all.  This is probably what you wanted, 
right? Otherwise, why else did you select install from this 
particular local directory?


Changing this behavior would be bad -- BUT it also means that NO real 
package's setup.hint should EVER claim to be in Category Misc.  Misc is 
special.


--
Chuck


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/