"Bug" in setup-x86.exe command line

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

"Bug" in setup-x86.exe command line

Kizito Porta Balanyà
Hello,

I use the latest version of the installer setup-x86.exe version 2.852
I think that the command line installer has some king of "bug".

The following line doesn't download the bash package:

setup-x86.exe --download --site
http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
--no-shortcuts --local-package-dir c:\testdir --packages bash

Instead the following line does it (csih package):

setup-x86.exe --download --site
http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
--no-shortcuts --local-package-dir c:\testdir --packages csih

I don't understand what is happening. I attache the log files: they
seem ok, but in fact the bash package is never downloaded.

Thanks a lot for your time.

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

setup.log (762 bytes) Download Attachment
setup.log.full (1K) Download Attachment
setup_csih.log (1K) Download Attachment
setup_csih.log.full (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: "Bug" in setup-x86.exe command line

Ken Brown-6
On 12/5/2014 12:47 PM, Kizito Porta Balanyà wrote:

> Hello,
>
> I use the latest version of the installer setup-x86.exe version 2.852
> I think that the command line installer has some king of "bug".
>
> The following line doesn't download the bash package:
>
> setup-x86.exe --download --site
> http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
> --no-shortcuts --local-package-dir c:\testdir --packages bash
>
> Instead the following line does it (csih package):
>
> setup-x86.exe --download --site
> http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
> --no-shortcuts --local-package-dir c:\testdir --packages csih
>
> I don't understand what is happening. I attache the log files: they
> seem ok, but in fact the bash package is never downloaded.

You may be misunderstanding what the --download option is supposed to
do.  I think it's supposed to cause setup to behave as though you had
checked the "Download Without Installing" option in an interactive
session.  So it should download whatever packages have been selected for
installation.  In your first run, the only package selected was bash,
which was already installed, so setup had nothing to do.  In the second
run, I assume that you didn't already have csih installed, so setup
downloaded it for later install.

Ken


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

Reply | Threaded
Open this post in threaded view
|

Re: "Bug" in setup-x86.exe command line

Kizito Porta Balanyà
In reply to this post by Kizito Porta Balanyà
> Hello,

>  I use the latest version of the installer setup-x86.exe version 2.852
> I think that the command line installer has some king of "bug".

> The following line doesn't download the bash package:

> setup-x86.exe --download --site
http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
--no-shortcuts --local-package-dir c:\testdir --packages bash

> Instead the following line does it (csih package):

> setup-x86.exe --download --site
> http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
> --no-shortcuts --local-package-dir c:\testdir --packages csih

> I don't understand what is happening. I attache the log files: they
> seem ok, but in fact the bash package is never downloaded.

>> You may be misunderstanding what the --download option is supposed to do.

No, it's not. It is a clean directory , whithout previous interactive
session and nothing is installed.

>> I think it's supposed to cause setup to behave as >> >> though you had checked the "Download Without Installing" option in an >> interactive session. So it should download whatever >>packages >> have been selected for installation. In your first run, the only >> package selected was bash, which was already installed, >>so setup had >> nothing to do. In the second run, I assume that you didn't already have csih installed, so setup downloaded it for >>later install.


I'm only trying to download packages, not installing them.

Bash is not downloaded, but csih it is (as example). Could you try
both commands and let me know if it works for you?

Thanks a lot for your time.

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

Reply | Threaded
Open this post in threaded view
|

Re: "Bug" in setup-x86.exe command line

marco atzeri-4
On 12/9/2014 6:07 PM, Kizito Porta Balanyà wrote:

>> Hello,
>
>> setup-x86.exe --download --site
>> http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
>> --no-shortcuts --local-package-dir c:\testdir --packages csih
>
>> I don't understand what is happening. I attache the log files: they
>> seem ok, but in fact the bash package is never downloaded.
>
>>> You may be misunderstanding what the --download option is supposed to do.
>
> No, it's not. It is a clean directory , whithout previous interactive
> session and nothing is installed.

what is happening is this:
- setup-x86 checks your installed packages
- bash is found and it is the last one
- nothing is downloaded

If you want to test differently try adding

-R c:\cygwin-test

this will fake an empty installation in a
different root.
However this will cause bash and all Base
and their dependency to be downloaded

I just get :

alternatives-1.3.30c-10.tar.bz2
libattr1-2.4.46-1.tar.bz2
base-cygwin-3.3-1.tar.bz2
base-files-4.2-3.tar.xz
bash-4.1.17-9.tar.xz
bzip2-1.0.6-2.tar.bz2
libbz2_1-1.0.6-2.tar.bz2
ca-certificates-2.1-1.tar.xz
coreutils-8.23-4.tar.xz
cygutils-1.4.14-1.tar.bz2
cygwin-1.7.33-1.tar.xz
dash-0.5.8-3.tar.xz
editrights-1.03-1.tar.xz
file-5.20-1.tar.xz
findutils-4.5.12-1.tar.xz
gawk-4.1.1-1.tar.xz
libgcc1-4.8.3-4.tar.xz
libstdc++6-4.8.3-4.tar.xz
libgdbm4-1.8.3-20.tar.bz2
getent-2.18.90-4.tar.xz
libintl8-0.18.3.2-2.tar.xz
libgmp10-6.0.0a-1.tar.xz
grep-2.21-1.tar.xz
groff-1.22.2-2.tar.xz
gzip-1.6-1.tar.xz
hostname-3.13-1.tar.bz2
ipc-utils-1.0-1.tar.bz2
less-444-1.tar.bz2
libargp-20110921-2.tar.bz2
libffi6-3.0.13-1.tar.bz2
libcharset1-1.14-2.tar.bz2
libiconv-1.14-2.tar.bz2
libiconv2-1.14-2.tar.bz2
libpipeline1-1.3.0-3.tar.xz
libtasn1_6-4.2-1.tar.xz
login-1.11-1.tar.xz
lynx-2.8.7-1.tar.bz2
man-db-2.6.7-2.tar.xz
mintty-1.1.3-1.tar.bz2
libmpfr4-3.1.2-1.tar.bz2
libncurses10-5.9-20140524-1.tar.xz
libncursesw10-5.9-20140524-1.tar.xz
terminfo-5.9-20140524-1.tar.xz
libopenssl100-1.0.1j-1.tar.xz
libp11-kit0-0.20.7-1.tar.xz
p11-kit-0.20.7-1.tar.xz
p11-kit-trust-0.20.7-1.tar.xz
libpcre1-8.35-1.tar.xz
libpopt0-1.16-1.tar.xz
popt-1.16-1.tar.xz
libreadline7-6.1.2-3.tar.bz2
rebase-4.4.1-1.tar.bz2
run-1.3.3-1.tar.xz
sed-4.2.2-3.tar.bz2
tar
tar-1.27.1-1.tar.xz
info-5.2-3.tar.xz
tzcode-2014j-1.tar.xz
libblkid1-2.25.2-1.tar.xz
libsmartcols1-2.25.2-1.tar.xz
libuuid1-2.25.2-1.tar.xz
util-linux-2.25.2-1.tar.xz
vim-minimal-7.4.527-1.tar.xz
which-2.20-2.tar.bz2
liblzma5-5.0.5-1.tar.xz
xz-5.0.5-1.tar.xz
zlib0-1.2.8-3.tar.xz
_autorebase-000720-1.tar.bz2
_update-info-dir-01315-1.tar.bz2

Regards
Marco


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

Reply | Threaded
Open this post in threaded view
|

Re: "Bug" in setup-x86.exe command line

Ken Brown-6
In reply to this post by Kizito Porta Balanyà
On 12/9/2014 12:07 PM, Kizito Porta Balanyà wrote:

>> Hello,
>
>>   I use the latest version of the installer setup-x86.exe version 2.852
>> I think that the command line installer has some king of "bug".
>
>> The following line doesn't download the bash package:
>
>> setup-x86.exe --download --site
> http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
> --no-shortcuts --local-package-dir c:\testdir --packages bash
>
>> Instead the following line does it (csih package):
>
>> setup-x86.exe --download --site
>> http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
>> --no-shortcuts --local-package-dir c:\testdir --packages csih
>
>> I don't understand what is happening. I attache the log files: they
>> seem ok, but in fact the bash package is never downloaded.
>
>>> You may be misunderstanding what the --download option is supposed to do.
>
> No, it's not. It is a clean directory , whithout previous interactive
                ^^
By "It" I assume you mean the local package directory c:\testdir.  But
you haven't specified a root directory for the install.  So setup
probably assumed whatever root directory you used in your last Cygwin
install.  If I'm not mistaken, this information is recorded in the
registry.  I hope someone will correct me if I'm wrong.

> session and nothing is installed.
>
>>> I think it's supposed to cause setup to behave as >> >> though you had checked the "Download Without Installing" option in an >> interactive session. So it should download whatever >>packages >> have been selected for installation. In your first run, the only >> package selected was bash, which was already installed, >>so setup had >> nothing to do. In the second run, I assume that you didn't already have csih installed, so setup downloaded it for >>later install.
>
>
> I'm only trying to download packages, not installing them.

That may be your intention/expectation, but setup is downloading them
*for later install*, as I said before.

> Bash is not downloaded, but csih it is (as example). Could you try
> both commands and let me know if it works for you?

I had already tried them before responding to your first message.  In my
case setup didn't download either bash or csih, presumably because they
were both already installed (in the Cygwin installation whose root was
stored in the registry).  On the other hand, I just now tried your first
command again, but I added "--root c:/foobar".  So I explicitly told
setup I'm doing a new installation, and this time it did download bash
(as well as all its dependencies).

I think setup is behaving as designed.

Ken

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

Reply | Threaded
Open this post in threaded view
|

Re: "Bug" in setup-x86.exe command line

BGINFO4X
In reply to this post by marco atzeri-4
2014-12-09 19:27 GMT+01:00 Marco Atzeri <[hidden email]>:

> On 12/9/2014 6:07 PM, Kizito Porta Balanyà wrote:
>>>
>>> Hello,
>>
>>
>>> setup-x86.exe --download --site
>>> http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
>>> --no-shortcuts --local-package-dir c:\testdir --packages csih
>>
>>
>>> I don't understand what is happening. I attache the log files: they
>>> seem ok, but in fact the bash package is never downloaded.
>>
>>
>>>> You may be misunderstanding what the --download option is supposed to
>>>> do.
>>
>>
>> No, it's not. It is a clean directory , whithout previous interactive
>> session and nothing is installed.
>
>
> what is happening is this:
> - setup-x86 checks your installed packages
> - bash is found and it is the last one
> - nothing is downloaded
>
> If you want to test differently try adding
>
> -R c:\cygwin-test
>
> this will fake an empty installation in a
> different root.
> However this will cause bash and all Base
> and their dependency to be downloaded

Yes, you are right. In my head had no sense downloading only + install
on a "fake directory".

I see that is by design, the installer is not only downloading
programs, it is also installing something, even an "empty
installation" -> c:\cygwin-test\etc ...  with setup.rc file ...

IMHO,  the setup.rc should be in the same folder as setup-x86.exe,
where you can find the other logs: setup.log , setup.log.full. It has
more sense , at least for me.


Thanks a lot for all your time.




> I just get :
>
> alternatives-1.3.30c-10.tar.bz2
> libattr1-2.4.46-1.tar.bz2
> base-cygwin-3.3-1.tar.bz2
> base-files-4.2-3.tar.xz
> bash-4.1.17-9.tar.xz
> bzip2-1.0.6-2.tar.bz2
> libbz2_1-1.0.6-2.tar.bz2
> ca-certificates-2.1-1.tar.xz
> coreutils-8.23-4.tar.xz
> cygutils-1.4.14-1.tar.bz2
> cygwin-1.7.33-1.tar.xz
> dash-0.5.8-3.tar.xz
> editrights-1.03-1.tar.xz
> file-5.20-1.tar.xz
> findutils-4.5.12-1.tar.xz
> gawk-4.1.1-1.tar.xz
> libgcc1-4.8.3-4.tar.xz
> libstdc++6-4.8.3-4.tar.xz
> libgdbm4-1.8.3-20.tar.bz2
> getent-2.18.90-4.tar.xz
> libintl8-0.18.3.2-2.tar.xz
> libgmp10-6.0.0a-1.tar.xz
> grep-2.21-1.tar.xz
> groff-1.22.2-2.tar.xz
> gzip-1.6-1.tar.xz
> hostname-3.13-1.tar.bz2
> ipc-utils-1.0-1.tar.bz2
> less-444-1.tar.bz2
> libargp-20110921-2.tar.bz2
> libffi6-3.0.13-1.tar.bz2
> libcharset1-1.14-2.tar.bz2
> libiconv-1.14-2.tar.bz2
> libiconv2-1.14-2.tar.bz2
> libpipeline1-1.3.0-3.tar.xz
> libtasn1_6-4.2-1.tar.xz
> login-1.11-1.tar.xz
> lynx-2.8.7-1.tar.bz2
> man-db-2.6.7-2.tar.xz
> mintty-1.1.3-1.tar.bz2
> libmpfr4-3.1.2-1.tar.bz2
> libncurses10-5.9-20140524-1.tar.xz
> libncursesw10-5.9-20140524-1.tar.xz
> terminfo-5.9-20140524-1.tar.xz
> libopenssl100-1.0.1j-1.tar.xz
> libp11-kit0-0.20.7-1.tar.xz
> p11-kit-0.20.7-1.tar.xz
> p11-kit-trust-0.20.7-1.tar.xz
> libpcre1-8.35-1.tar.xz
> libpopt0-1.16-1.tar.xz
> popt-1.16-1.tar.xz
> libreadline7-6.1.2-3.tar.bz2
> rebase-4.4.1-1.tar.bz2
> run-1.3.3-1.tar.xz
> sed-4.2.2-3.tar.bz2
> tar
> tar-1.27.1-1.tar.xz
> info-5.2-3.tar.xz
> tzcode-2014j-1.tar.xz
> libblkid1-2.25.2-1.tar.xz
> libsmartcols1-2.25.2-1.tar.xz
> libuuid1-2.25.2-1.tar.xz
> util-linux-2.25.2-1.tar.xz
> vim-minimal-7.4.527-1.tar.xz
> which-2.20-2.tar.bz2
> liblzma5-5.0.5-1.tar.xz
> xz-5.0.5-1.tar.xz
> zlib0-1.2.8-3.tar.xz
> _autorebase-000720-1.tar.bz2
> _update-info-dir-01315-1.tar.bz2
>
> Regards
> Marco
>
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>

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

Reply | Threaded
Open this post in threaded view
|

Re: "Bug" in setup-x86.exe command line

BGINFO4X
In reply to this post by Ken Brown-6
2014-12-09 19:28 GMT+01:00 Ken Brown <[hidden email]>:

> On 12/9/2014 12:07 PM, Kizito Porta Balanyà wrote:
>>>
>>> Hello,
>>
>>
>>>   I use the latest version of the installer setup-x86.exe version 2.852
>>> I think that the command line installer has some king of "bug".
>>
>>
>>> The following line doesn't download the bash package:
>>
>>
>>> setup-x86.exe --download --site
>>
>> http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
>> --no-shortcuts --local-package-dir c:\testdir --packages bash
>>
>>> Instead the following line does it (csih package):
>>
>>
>>> setup-x86.exe --download --site
>>> http://mirrors.kernel.org/sourceware/cygwin  --quiet-mode
>>> --no-shortcuts --local-package-dir c:\testdir --packages csih
>>
>>
>>> I don't understand what is happening. I attache the log files: they
>>> seem ok, but in fact the bash package is never downloaded.
>>
>>
>>>> You may be misunderstanding what the --download option is supposed to
>>>> do.
>>
>>
>> No, it's not. It is a clean directory , whithout previous interactive
>
>                ^^
> By "It" I assume you mean the local package directory c:\testdir.  But you
> haven't specified a root directory for the install.  So setup probably
> assumed whatever root directory you used in your last Cygwin install.  If
> I'm not mistaken, this information is recorded in the registry.  I hope
> someone will correct me if I'm wrong.

Yes you are right again,

HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
rootdir = C:\....

I found more information here:

http://stackoverflow.com/questions/7447468/how-to-set-cygwin-root-directory

https://cygwin.com/faq-nochunks.html#faq.setup.c

2.23.

How do I save, restore, delete, or modify the Cygwin information
stored in the registry?
Since Cygwin 1.7, there's nothing important in the registry anymore,
except for the installation directory information stored there for the
sake of setup-x86{_64}.exe. There's nothing left to manipulate
anymore.

>> session and nothing is installed.
>>
>>>> I think it's supposed to cause setup to behave as >> >> though you had
>>>> checked the "Download Without Installing" option in an >> interactive
>>>> session. So it should download whatever >>packages >> have been selected for
>>>> installation. In your first run, the only >> package selected was bash,
>>>> which was already installed, >>so setup had >> nothing to do. In the second
>>>> run, I assume that you didn't already have csih installed, so setup
>>>> downloaded it for >>later install.
>>
>>
>>
>> I'm only trying to download packages, not installing them.
>
>
> That may be your intention/expectation, but setup is downloading them *for
> later install*, as I said before.
>
>> Bash is not downloaded, but csih it is (as example). Could you try
>> both commands and let me know if it works for you?
>
>
> I had already tried them before responding to your first message.  In my
> case setup didn't download either bash or csih, presumably because they were
> both already installed (in the Cygwin installation whose root was stored in
> the registry).  On the other hand, I just now tried your first command
> again, but I added "--root c:/foobar".  So I explicitly told setup I'm doing
> a new installation, and this time it did download bash (as well as all its
> dependencies).
>
> I think setup is behaving as designed.
>

Thanks again for all your time.

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

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