Re: cut and paste doesn't work

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 21/01/2021 07:34, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
>> -Original Message-
>> From: Cygwin  On Behalf Of Thomas Wolff
>> Sent: 21 January 2021 02:08
>>
>> Am 20.01.2021 um 21:31 schrieb Wojciech Puchar:
>>> trying to mark text in cygwin windows by mouse doesn't work at all.
>>> Windows 10.
>>>
>>> The same cygwin 64 installation on windows 7 works properly.
>>>
>>> It was installed to windows 10 host by simply copying whole c:\cygwin
>>> directory.
>>>
>>> Everything works except cut&paste.
>> What does `ls -l /dev/clipboard` say?
>> Copying the filesystem rather than installing loses some special file
>> properties, especially in the /dev folder.
>> Not sure whether it's possible to fix that with `mknod`.
> There might be other problems as well. Symlinks are also going to be 
> affected. We couldn't find a reliable solution back in Win7 to simply copy 
> Cygwin installation by preserving the symlinks in a zip archive.
>
> I would strongly advise to perform a normal installation and simply copy only 
> the contents of your Cygwin home directory (C:\Cygwin\home\). It 
> will be quicker that trying to identify and fix all the possible issues.
>
> Panos

NB: I don't think I have this problem, but I do seem to have an
unrelated problem where as soon as I select any text in mintty it
immediately replaced my clipboard contents which that selection. This is
very annoying, because when copying text to mintty I frequently click
and drag a small amount of text by accident.

Is this configurable somehow?

Hamish



0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: cut and paste doesn't work

2021-01-21 Thread Andrey Repin
Greetings, Hamish McIntyre-Bhatty!

> On 21/01/2021 07:34, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
>>> -Original Message-
>>> From: Cygwin  On Behalf Of Thomas Wolff
>>> Sent: 21 January 2021 02:08
>>>
>>> Am 20.01.2021 um 21:31 schrieb Wojciech Puchar:
 trying to mark text in cygwin windows by mouse doesn't work at all.
 Windows 10.

 The same cygwin 64 installation on windows 7 works properly.

 It was installed to windows 10 host by simply copying whole c:\cygwin
 directory.

 Everything works except cut&paste.
>>> What does `ls -l /dev/clipboard` say?
>>> Copying the filesystem rather than installing loses some special file
>>> properties, especially in the /dev folder.
>>> Not sure whether it's possible to fix that with `mknod`.
>> There might be other problems as well. Symlinks are also going to be 
>> affected. We couldn't find a reliable solution back in Win7 to simply copy 
>> Cygwin installation by preserving the symlinks in a zip archive.
>>
>> I would strongly advise to perform a normal installation and simply copy 
>> only the contents of your Cygwin home directory (C:\Cygwin\home\). 
>> It will be quicker that trying to identify and fix all the possible issues.
>>
>> Panos

> NB: I don't think I have this problem, but I do seem to have an
> unrelated problem where as soon as I select any text in mintty it
> immediately replaced my clipboard contents which that selection.

This is standard behavior for a terminal for as long as I recall.

> This is very annoying, because when copying text to mintty I frequently click
> and drag a small amount of text by accident.

> Is this configurable somehow?

Of course it is configurable.
mintty - Options - Selection.


-- 
With best regards,
Andrey Repin
Thursday, January 21, 2021 13:07:38

Sorry for my terrible english...

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


gdb dysfuntional: no output in bash window, no echo

2021-01-21 Thread Tord Andreasson via Cygwin
Hi,

I just updated my cygwin 64 bit installation in order to resume a
programming project that I left aside quite some time ago.
Everything seems to work as it used to as I am able to pick up the project
where I left it, I can build and run the application however gdb I/O seems
broken.

Here are the symptoms:
After starting gdb, nothing happens apart from a process gdb.exe is
started, however, no output is displayed in the bash window. This is
regardless if I supply arguments to gdb or not.

gdb is however alive and responsive to input commands, although nothing is
echoed or output in the window. For instance, debugging a very simple
program that just creates a file and writes some text on it


torda@Tord-desktop ~/HelloWorld
$ which gdb
/usr/bin/gdb


torda@Tord-desktop ~ /HelloWorld
$ gdb ./helloworld.exe

run 

quit 
torda@Tord-desktop ~/HelloWorld
$

Hopefully this description is comprehensible, if not please let me know if
anything is missing.

Any idea what I should look at to troubleshoot the issue?

Best wishes,
Tord
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: cut and paste doesn't work

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 21/01/2021 10:09, Andrey Repin wrote:
> Greetings, Hamish McIntyre-Bhatty!
>
>> NB: I don't think I have this problem, but I do seem to have an
>> unrelated problem where as soon as I select any text in mintty it
>> immediately replaced my clipboard contents which that selection.
> This is standard behavior for a terminal for as long as I recall.

No terminal I have ever used other than MinTTY behaves this way with
text selection, with the exception of the Windows command prompt. In
fairness, it probably makes sense for it to behave in a way that is more
normal for Windows users (I primarily run Linux).

>> This is very annoying, because when copying text to mintty I frequently click
>> and drag a small amount of text by accident.
>> Is this configurable somehow?
> Of course it is configurable.
> mintty - Options - Selection.

Ah excellent, thank you :) AFAIR I don't seem to have a menubar when I
run MinTTY, how can I get to the options?

Hamish



0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: gdb dysfuntional: no output in bash window, no echo

2021-01-21 Thread Marco Atzeri via Cygwin

On 21.01.2021 13:06, Tord Andreasson via Cygwin wrote:

Hi,




torda@Tord-desktop ~ /HelloWorld
$ gdb ./helloworld.exe

run 

quit 
torda@Tord-desktop ~/HelloWorld
$

Hopefully this description is comprehensible, if not please let me know if
anything is missing.

Any idea what I should look at to troubleshoot the issue?

Best wishes,
Tord


black on black background ?
https://sourceware.org/gdb/current/onlinedocs/gdb/Output-Styling.html
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Martyn B

Hi list!

Usually after an ssh session, the lines in my terminal are persistant 
after exiting the session. This is what I need.


But at the moment when I exit an ssh session into Cygwin, the terminal 
gets cleared and all session information is lost.


How can I change this behavior? I need the commands and their output.

Server: Cygwin 3.1.4-1 on Windows 10 (1909), CYGWIN cygsshd
Client: Ubuntu 20.04 / Gnome terminal, xterm
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Takashi Yano via Cygwin
On Thu, 21 Jan 2021 14:08:45 +0100
Martyn B wrote:
> Hi list!
> 
> Usually after an ssh session, the lines in my terminal are persistant 
> after exiting the session. This is what I need.
> 
> But at the moment when I exit an ssh session into Cygwin, the terminal 
> gets cleared and all session information is lost.
> 
> How can I change this behavior? I need the commands and their output.
> 
> Server: Cygwin 3.1.4-1 on Windows 10 (1909), CYGWIN cygsshd
> Client: Ubuntu 20.04 / Gnome terminal, xterm

Please update cygwin to 3.1.7.

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


Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Takashi Yano via Cygwin
On Thu, 21 Jan 2021 22:13:53 +0900
Takashi Yano via Cygwin  wrote:
> On Thu, 21 Jan 2021 14:08:45 +0100
> Martyn B wrote:
> > Hi list!
> > 
> > Usually after an ssh session, the lines in my terminal are persistant 
> > after exiting the session. This is what I need.
> > 
> > But at the moment when I exit an ssh session into Cygwin, the terminal 
> > gets cleared and all session information is lost.
> > 
> > How can I change this behavior? I need the commands and their output.
> > 
> > Server: Cygwin 3.1.4-1 on Windows 10 (1909), CYGWIN cygsshd
> > Client: Ubuntu 20.04 / Gnome terminal, xterm
> 
> Please update cygwin to 3.1.7.

Sorry, I might misunderstand your problem.

Does your problem happen when you exit from ssh session to cygwin?
If so, are you using ~/.bash_logout (for bash) or ~/.logout (for tcsh)?

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


Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Martyn B

Takashi Yano via Cygwin wrote on 21.01.21 14:29:

Takashi Yano via Cygwin  wrote:


Please update cygwin to 3.1.7.


Sorry, I might misunderstand your problem.

Does your problem happen when you exit from ssh session to cygwin?
If so, are you using ~/.bash_logout (for bash) or ~/.logout (for tcsh)?



Thanks for asking.

Cygwin version is 3.1.7 now

This is exactly what happens:

-
(1) Screen looks like this:
-

martyn@linuxbox:~$ echo local command 1
local command 1
martyn@linuxbox:~$ echo local command 2
local command 2
martyn@linuxbox:~$ ssh Winuser@

-
hit RETURN
-
(2) Screen looks like this:
-

martyn@linuxbox:~$ echo local command 1
local command 1
martyn@linuxbox:~$ echo local command 2
local command 2
martyn@linuxbox:~$ ssh Winuser@
Last login: Thu Jan 21 14:52:35 2021 from 

Winuser@WINDOWS-BOX ~
$ echo I want to keep this output
I want to keep this output

Winuser@WINDOWS-BOX ~
$ vim /home/Winuser/editing-testtext.txt

Winuser@WINDOWS-BOX ~
$ ls /home/Winuser/editing-testtext.txt
/home/Winuser/editing-testtext.txt

Winuser@WINDOWS-BOX ~
$ exit

-
hit RETURN
-
(3) Screen looks like this:
-

Connection to  closed.
martyn@linuxbox:~$ echo all lines are gone
all lines are gone
martyn@linuxbox:~$

-
ADDITIONAL INFORMATION
-
- same behavior if I use "exit" or "logout".
"bash_logout" gives me "command not found"
- shell is /bin/bash on both sides
- the command "cygcheck -c Cygwin" clears the local lines from
screen (1) immediately even _before_ exit

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


Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Marco Atzeri via Cygwin

On 21.01.2021 14:08, Martyn B wrote:

Hi list!

Usually after an ssh session, the lines in my terminal are persistant 
after exiting the session. This is what I need.


But at the moment when I exit an ssh session into Cygwin, the terminal 
gets cleared and all session information is lost.


How can I change this behavior? I need the commands and their output.

Server: Cygwin 3.1.4-1 on Windows 10 (1909), CYGWIN cygsshd
Client: Ubuntu 20.04 / Gnome terminal, xterm


very simple:

ssh  |& tee /tmp/ssh.log


you can also use screen logging capability
https://stackpointer.io/unix/linux-ssh-session-logging/564/
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Martyn B

Marco Atzeri via Cygwin wrote on 21.01.21 16:13:


very simple:

ssh  |& tee /tmp/ssh.log


you can also use screen logging capability
https://stackpointer.io/unix/linux-ssh-session-logging/564/


Thanks for the suggestions. I am aware of tee and screen and might as 
well even copy/paste the screen content before I terminate the connection.


Still I'd prefer to
1) understand why this happens. - Is this the Cygwin standard behavior?
2) thus hopefully learn a solution that keeps my server logins uniform 
and leaves the chronology of the terminal window lines untouched


I've posted the exact output and some additional information here:
https://sourceware.org/pipermail/cygwin/2021-January/247546.html





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


Re: How to reinstall everything?

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 16/01/2021 21:02, Marco Atzeri via Cygwin wrote:
>> On 16.01.2021 20:55, Hamish McIntyre-Bhatty via Cygwin wrote:
>>> In reply to Marco Atzeri:
>>>
>>> """
>>> Some time ago I put a script here:
>>> https://stackoverflow.com/questions/46829532/cygwin-save-package-selections-for-later-reinstall
>>>
>>>
>>> """
>>>
>>> This has been very useful for me. Is this in a git/other repository
>>> somewhere? If not, I think it might aid discovery for it to go with
>>> some other useful scripts in this repository:
>>> https://github.com/michaelgchu/Cygwin_Specific_Repo.
>>>
>>> What do you think of this idea Marco?
>>>
>>> Hamish McIntyre-Bhatty
>>>
>> feel free to use it. I never store anywhere other than stackoverflow.
>> Attached the current version, I don't rememeber if I changed
>> it in the meantime.
>>
>> Attached another that you can find useful
>> it uses cygcheck and binutils to provide the list of first level
>> packages containing the needed DLL's
>>
>> $ cyg-dependency.sh /usr/bin/octave-5.2.0.exe
>> /usr/bin/cygwin1.dll  =>  cygwin-3.1.7-1
>> /usr/bin/cygX11-6.dll  =>  libX11_6-1.7.0-1
>> /usr/bin/cyggcc_s-seh-1.dll  =>  libgcc1-10.2.0-1
>> /usr/bin/cygstdc++-6.dll  =>  libstdc++6-10.2.0-1
>> KERNEL32.dll  =>   Windows System
>>
>> I found useful to avoid some screwup
>>
>> Regards
>> Marco

Bumping in case you didn't see my follow up query Marco:

What license are these available under? Obviously I'll attribute them to
you if they make it into that repo.

Hamish



0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread matthew patton via Cygwin


On Thursday, January 21, 2021, 10:49:14 AM EST, Martyn B 
 wrote:  
 > 1) understand why this happens. - Is this the Cygwin standard behavior?

Not in the slightest.
  
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Sargasso.net mirror is gone?

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
Hi there,

Did I miss something? I've been using the sargasso.net Cygwin mirror,
but it seems to be gone from the list and I get warnings now when I try
to use it. I imagine there must have been a notice about this that I
missed, but thought I should check.

Hamish



0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


missing perl directories

2021-01-21 Thread Anthony Heading
Hi,

Whenever I have a new cygwin setup,  I get an error/warning when trying to 
install perl modules:

% cpan install Win32::Symlink
Loading internal logger. Log::Log4perl recommended for better logging
[...]
Use of uninitialized value $what in concatenation (.) or string at 
/usr/share/perl5/5.30/App/Cpan.pm line 679,  line 1.
Warning: You do not have write permission for Perl library directories.

I think it is just because the site_perl directories do not exist.

% perl -V
Summary of my perl5 (revision 5 version 30 subversion 3) configuration:
[...]
  @INC:
/usr/local/lib/perl5/site_perl/5.30/x86_64-cygwin-threads
/usr/local/share/perl5/site_perl/5.30
/usr/lib/perl5/vendor_perl/5.30/x86_64-cygwin-threads
/usr/share/perl5/vendor_perl/5.30
/usr/lib/perl5/5.30/x86_64-cygwin-threads
/usr/share/perl5/5.30

ls: cannot access '/usr/local/lib/perl5/site_perl/5.30/x86_64-cygwin-threads': 
No such file or directory
ls: cannot access '/usr/local/share/perl5/site_perl/5.30': No such file or 
directory

If I simply create these empty directories the problem goes away.

Could the perl package just include these empty directories?


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


Re: gdb dysfuntional: no output in bash window, no echo

2021-01-21 Thread Marco Atzeri via Cygwin

please reply to the mailing list

On 21.01.2021 15:39, Tord Andreasson wrote:

Hi Marco,

I did not think about that, and I really wonder if that is the root 
cause behind the issue since the content of bash window remains the 
same, without any blank lines (or lines using e.g. black text on a black 
background) added as I type commands, except from when I type quit, then 
the window returns to the bash prompt.


Let me try to describe the behavior I experience. The last 3 lines in 
the bash windows are as follows:

torda@Tord-desktop/
$ gdb
new blank line. Whatever command I type in gdb, this line remains blank 
until I type quit, then the window returns to the prompt.>

torda@ Tord-desktop/
$

To change the color settings and have them I guess that I should create 
a .gdbinit file in the root directory?

Is there a way to have gdb print the current settings and save on file?

Cheers
Tord


also trim and bottom posting are traditional here, please.


the .gdbinit should be under

$HOME/.config/gdb/gdbinit
$HOME/.gdbinit


https://sourceware.org/gdb/current/onlinedocs/gdb/Initialization-Files.html#System-Wide-Init-Files
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: cut and paste doesn't work

2021-01-21 Thread Eliot Moss

On 1/21/2021 2:34 AM, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:

-Original Message-
From: Cygwin  On Behalf Of Thomas Wolff
Sent: 21 January 2021 02:08

Am 20.01.2021 um 21:31 schrieb Wojciech Puchar:

trying to mark text in cygwin windows by mouse doesn't work at all.
Windows 10.

The same cygwin 64 installation on windows 7 works properly.

It was installed to windows 10 host by simply copying whole c:\cygwin
directory.

Everything works except cut&paste.

What does `ls -l /dev/clipboard` say?
Copying the filesystem rather than installing loses some special file
properties, especially in the /dev folder.
Not sure whether it's possible to fix that with `mknod`.


There might be other problems as well. Symlinks are also going to be affected. 
We couldn't find a reliable solution back in Win7 to simply copy Cygwin 
installation by preserving the symlinks in a zip archive.

I would strongly advise to perform a normal installation and simply copy only the 
contents of your Cygwin home directory (C:\Cygwin\home\). It will be 
quicker that trying to identify and fix all the possible issues.

Panos


I observe that it is possible to get a list of what is installed and do a more automated install of 
the same things again.  The techniques were posted recently in other threads, I believe.  I agree 
that this would be more reliable than trying to copy the file structure,

unless you really really know what you're doing.

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


Re: Sargasso.net mirror is gone?

2021-01-21 Thread Marco Atzeri via Cygwin

On 21.01.2021 17:06, Hamish McIntyre-Bhatty via Cygwin wrote:

Hi there,

Did I miss something? I've been using the sargasso.net Cygwin mirror,
but it seems to be gone from the list and I get warnings now when I try
to use it. I imagine there must have been a notice about this that I
missed, but thought I should check.

Hamish



the process is almost automatic
when a mirror is for some time out of sync, it is removed from the list



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


Re: [ANNOUNCEMENT] Test: python packages

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 19/01/2021 21:08, Marco Atzeri via Cygwin-announce via Cygwin wrote:
> Several python packages have been uploaded as test
>
> idle38-3.8.7-1
> python38-3.8.7-1
> python38-devel-3.8.7-1
> python38-test-3.8.7-1
> python38-tkinter-3.8.7-1
>
> python36-astroid-2.4.2-1
> python37-astroid-2.4.2-1
> python38-astroid-2.4.2-1
>
> python36-isort-5.7.0-1
> python37-isort-5.7.0-1
> python38-isort-5.7.0-1
>
> python36-mccabe-0.6.1-1
> python37-mccabe-0.6.1-1
> python38-mccabe-0.6.1-1
>
> python36-pylint-2.6.0-1
> python37-pylint-2.6.0-1
> python38-pylint-2.6.0-1
>
> python36-pytest-benchmark-3.2.3-1
> python37-pytest-benchmark-3.2.3-1
> python38-pytest-benchmark-3.2.3-1
>
> python36-lazy-object-proxy-1.5.2-1
> python37-lazy-object-proxy-1.5.2-1
> python38-lazy-object-proxy-1.5.2-1
>
> python36-wrapt-1.12.1-1
> python37-wrapt-1.12.1-1
> python38-wrapt-1.12.1-1
>
> CYGWIN CHANGES
>
> As python2 is no longer supported
>
> https://devguide.python.org/devcycle/#end-of-life-branches
>
> the package are updated to include postinstall script that
> use "alternatives" to define for
>
>   /usr/bin/python
>
>   /usr/bin/python3
>   /usr/bin/idle3
>   /usr/bin/pydoc3
>
> a default to the highest package available.
>
> $ alternatives --display python
> python - status is auto.
>  link currently points to /usr/bin/python3.8
> /usr/bin/python3.7 - priority 37
> /usr/bin/python3.8 - priority 38
> /usr/bin/python3.6 - priority 36
> /usr/bin/python2.7 - priority 27
> Current `best' version is /usr/bin/python3.8.
>
> The following link are not provided anymore.
> /usr/bin/idle
> /usr/bin/pydoc
>
> The python3 package will pull python38 package.
>
> Rationale:
> https://www.python.org/dev/peps/pep-0394/
> In other systems as Debian
> /usr/bin/python is discouraged.
>
> As on Cygwin we have still several third packages depending on
> python2, the usage of alternatives should allow to manage
> until all are updated to python3
>
> DESCRIPTION
> Python is a programming language that lets you work quickly
> and integrate systems more effectively.
> Python is powerful... and fast; plays well with others;
> runs everywhere; is friendly & easy to learn; is Open.
>
> HOMEPAGE
> https://www.python.org/
>
> Regards
> Marco Atzeri

Thanks for packaging pylint Marco, should be very useful.

While things are mostly fine (I tested with 32-bit and 64-bit with
python36-pylint), I did notice a few things with the pylint packages:

1: The "pylint" package itself (the test package) doesn't install any of
the python3x-pylint packages - is this intentional?

2: There is no "pylint" or "pylint3" command available in the terminal
after install. Not a deal breaker as one can use "python3.x -m pylint
./file.py" but being able to run "pylint(3) ./file.py" is a nice
convenience feature :)

Hamish



0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Sargasso.net mirror is gone?

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 21/01/2021 16:16, Marco Atzeri via Cygwin wrote:
> On 21.01.2021 17:06, Hamish McIntyre-Bhatty via Cygwin wrote:
>> Hi there,
>>
>> Did I miss something? I've been using the sargasso.net Cygwin mirror,
>> but it seems to be gone from the list and I get warnings now when I try
>> to use it. I imagine there must have been a notice about this that I
>> missed, but thought I should check.
>>
>> Hamish
>>
>
> the process is almost automatic
> when a mirror is for some time out of sync, it is removed from the list

Good to know, I will use a different mirror then.

Hamish



0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: missing perl directories

2021-01-21 Thread Marco Atzeri via Cygwin

On 21.01.2021 17:09, Anthony Heading wrote:

Hi,

Whenever I have a new cygwin setup,  I get an error/warning when trying to 
install perl modules:





ls: cannot access '/usr/local/lib/perl5/site_perl/5.30/x86_64-cygwin-threads': 
No such file or directory
ls: cannot access '/usr/local/share/perl5/site_perl/5.30': No such file or 
directory

If I simply create these empty directories the problem goes away.

Could the perl package just include these empty directories?


/usr/local/* are "local"

no package should touch them

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


Re: How to reinstall everything?

2021-01-21 Thread Marco Atzeri via Cygwin

On 21.01.2021 17:00, Hamish McIntyre-Bhatty via Cygwin wrote:

On 16/01/2021 21:02, Marco Atzeri via Cygwin wrote:

On 16.01.2021 20:55, Hamish McIntyre-Bhatty via Cygwin wrote:

In reply to Marco Atzeri:




Bumping in case you didn't see my follow up query Marco:

What license are these available under? Obviously I'll attribute them to
you if they make it into that repo.

Hamish



BSD license  is fine
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: How to reinstall everything?

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 21/01/2021 16:24, Marco Atzeri via Cygwin wrote:
> On 21.01.2021 17:00, Hamish McIntyre-Bhatty via Cygwin wrote:
>> On 16/01/2021 21:02, Marco Atzeri via Cygwin wrote:
 On 16.01.2021 20:55, Hamish McIntyre-Bhatty via Cygwin wrote:
> In reply to Marco Atzeri:
>
>>
>> Bumping in case you didn't see my follow up query Marco:
>>
>> What license are these available under? Obviously I'll attribute them to
>> you if they make it into that repo.
>>
>> Hamish
>>
>
> BSD license  is fine
>
Okay thanks :)


0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: [ANNOUNCEMENT] Test: python packages

2021-01-21 Thread Marco Atzeri via Cygwin

On 21.01.2021 17:18, Hamish McIntyre-Bhatty via Cygwin wrote:

On 19/01/2021 21:08, Marco Atzeri via Cygwin-announce via Cygwin wrote:

Several python packages have been uploaded as test


Hi Hamish
please trim when replying


Thanks for packaging pylint Marco, should be very useful.

While things are mostly fine (I tested with 32-bit and 64-bit with
python36-pylint), I did notice a few things with the pylint packages:

1: The "pylint" package itself (the test package) doesn't install any of
the python3x-pylint packages - is this intentional?

2: There is no "pylint" or "pylint3" command available in the terminal
after install. Not a deal breaker as one can use "python3.x -m pylint
./file.py" but being able to run "pylint(3) ./file.py" is a nice
convenience feature :)

Hamish


it should pull python38-pylint

$ cygcheck -l python38-pylint | grep bin
/usr/bin/pylint3.8
/usr/bin/epylint3.8
/usr/bin/pyreverse3.8
/usr/bin/symilar3.8
/usr/bin/pylint
/usr/bin/epylint
/usr/bin/pyreverse
/usr/bin/symilar
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Sargasso.net mirror is gone?

2021-01-21 Thread Marco Atzeri via Cygwin

On 21.01.2021 17:19, Hamish McIntyre-Bhatty via Cygwin wrote:

On 21/01/2021 16:16, Marco Atzeri via Cygwin wrote:

On 21.01.2021 17:06, Hamish McIntyre-Bhatty via Cygwin wrote:

Hi there,





the process is almost automatic
when a mirror is for some time out of sync, it is removed from the list


Good to know, I will use a different mirror then.

Hamish



the list is here:

https://cygwin.com/mirrors.html

"Note: We automatically poll these mirrors on a regular basis to ensure 
that mirrors have the latest Cygwin packages available. The list of 
mirrors below reflects all of the mirrors who appear to have up-to-date 
copies of the Cygwin release area."

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


Re: [ANNOUNCEMENT] Test: python packages

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 21/01/2021 16:27, Marco Atzeri via Cygwin wrote:
> On 21.01.2021 17:18, Hamish McIntyre-Bhatty via Cygwin wrote:
>> On 19/01/2021 21:08, Marco Atzeri via Cygwin-announce via Cygwin wrote:
>>> Several python packages have been uploaded as test
>
> Hi Hamish
> please trim when replying
Sorry, will do next time.
>
>> Thanks for packaging pylint Marco, should be very useful.
>>
>> While things are mostly fine (I tested with 32-bit and 64-bit with
>> python36-pylint), I did notice a few things with the pylint packages:
>>
>> 1: The "pylint" package itself (the test package) doesn't install any of
>> the python3x-pylint packages - is this intentional?
>>
>> 2: There is no "pylint" or "pylint3" command available in the terminal
>> after install. Not a deal breaker as one can use "python3.x -m pylint
>> ./file.py" but being able to run "pylint(3) ./file.py" is a nice
>> convenience feature :)
>>
>> Hamish
>
> it should pull python38-pylint
>
> $ cygcheck -l python38-pylint | grep bin
> /usr/bin/pylint3.8
> /usr/bin/epylint3.8
> /usr/bin/pyreverse3.8
> /usr/bin/symilar3.8
> /usr/bin/pylint
> /usr/bin/epylint
> /usr/bin/pyreverse
> /usr/bin/symilar

Okay, just realised I was wrong about the shortcut, as I do have
/usr/bin/pylint3.6. My bad.

However, it didn't pull python38-pylint in for me. An interesting thing
just happened when I opened setup again though: it says pending
operations are to remove "pylint" and install "python38-pylint". When I
told it I wanted to keep "pylint" I got a dependency issue, see attached
screenshot.

In case it's helpful to know, I had the old "pylint" package installed
already and upgraded it to your test version.

Hamish



0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: [ANNOUNCEMENT] Test: python packages

2021-01-21 Thread Marco Atzeri via Cygwin

On 21.01.2021 17:37, Hamish McIntyre-Bhatty via Cygwin wrote:

On 21/01/2021 16:27, Marco Atzeri via Cygwin wrote:

On 21.01.2021 17:18, Hamish McIntyre-Bhatty via Cygwin wrote:

On 19/01/2021 21:08, Marco Atzeri via Cygwin-announce via Cygwin wrote:

Several python packages have been uploaded as test






it should pull python38-pylint

$ cygcheck -l python38-pylint | grep bin
/usr/bin/pylint3.8
/usr/bin/epylint3.8
/usr/bin/pyreverse3.8
/usr/bin/symilar3.8
/usr/bin/pylint
/usr/bin/epylint
/usr/bin/pyreverse
/usr/bin/symilar


Okay, just realised I was wrong about the shortcut, as I do have
/usr/bin/pylint3.6. My bad.

However, it didn't pull python38-pylint in for me. An interesting thing
just happened when I opened setup again though: it says pending
operations are to remove "pylint" and install "python38-pylint". When I
told it I wanted to keep "pylint" I got a dependency issue, see attached
screenshot.

In case it's helpful to know, I had the old "pylint" package installed
already and upgraded it to your test version.

Hamish



on the setup.ini you can see

---
@ python38-pylint
sdesc: "python code static checker"
...
[test]
version: 2.6.0-1
...
depends2: python38, python38-astroid, python38-isort, python38-mccabe, 
python38-pytest, python38-toml


obsoletes: pylint<<

build-depends: cygport


install one and it will remove the other, also as they have
the same content in this case


Regards
Marco


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


Re: [ANNOUNCEMENT] Test: python packages

2021-01-21 Thread Hamish McIntyre-Bhatty via Cygwin
On 21/01/2021 16:52, Marco Atzeri via Cygwin wrote:
> On 21.01.2021 17:37, Hamish McIntyre-Bhatty via Cygwin wrote:
>> On 21/01/2021 16:27, Marco Atzeri via Cygwin wrote:
>>> On 21.01.2021 17:18, Hamish McIntyre-Bhatty via Cygwin wrote:
 On 19/01/2021 21:08, Marco Atzeri via Cygwin-announce via Cygwin
 wrote:
> Several python packages have been uploaded as test
>>>
>
>>>
>>> it should pull python38-pylint
>>>
>>> $ cygcheck -l python38-pylint | grep bin
>>> /usr/bin/pylint3.8
>>> /usr/bin/epylint3.8
>>> /usr/bin/pyreverse3.8
>>> /usr/bin/symilar3.8
>>> /usr/bin/pylint
>>> /usr/bin/epylint
>>> /usr/bin/pyreverse
>>> /usr/bin/symilar
>>
>> Okay, just realised I was wrong about the shortcut, as I do have
>> /usr/bin/pylint3.6. My bad.
>>
>> However, it didn't pull python38-pylint in for me. An interesting thing
>> just happened when I opened setup again though: it says pending
>> operations are to remove "pylint" and install "python38-pylint". When I
>> told it I wanted to keep "pylint" I got a dependency issue, see attached
>> screenshot.
>>
>> In case it's helpful to know, I had the old "pylint" package installed
>> already and upgraded it to your test version.
>>
>> Hamish
>>
>
> on the setup.ini you can see
>
> ---
> @ python38-pylint
> sdesc: "python code static checker"
> ...
> [test]
> version: 2.6.0-1
> ...
> depends2: python38, python38-astroid, python38-isort, python38-mccabe,
> python38-pytest, python38-toml
>
> obsoletes: pylint    <<
>
> build-depends: cygport
> 
>
> install one and it will remove the other, also as they have
> the same content in this case

That makes sense, but that's not what happened here - it prompted to
remove "pylint" itself and install "python38-plint" but only after
running setup again after installing the new test "pylint" package.
Maybe I'm being a bit stupid but this seems like weird behaviour in
setup.exe - I would have expected it to do this when I asked to upgrade
"pylint" in the first place, or to automatically install
"python38-pylint" when I selected "pylint".

Hamish



0x87B761FE07F548D6.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Takashi Yano via Cygwin
On Thu, 21 Jan 2021 15:45:28 +0100
Martyn B wrote:
> - same behavior if I use "exit" or "logout".
>  "bash_logout" gives me "command not found"
> - shell is /bin/bash on both sides

What does "cat ~/.bash_logout" say?

> - the command "cygcheck -c Cygwin" clears the local lines from
>  screen (1) immediately even _before_ exit

This is normal behavior of cygwin 3.1.7.
I doubt some non-cygwin program is automatically executed
in ~/.bash_logout .

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


Re: How to reinstall everything?

2021-01-21 Thread Bill Stewart
On Sun, Jan 17, 2021 at 11:23 AM matthew patton wrote:

> can we fix setup.exe to read STDIN with '-P', like so?
> echo 'pkg1,pkg2,pkg3' | setup.exe -P -

What problem does this solve for you?

PowerShell example, if you're not familiar:

$packages = 'pkg1','pkg2','pkg3'
setup -P ($packages -join ',')

Or even this:

setup -P ((Get-Content packages.txt) -join ',')

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


Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Ken Brown via Cygwin

On 1/21/2021 12:28 PM, Takashi Yano via Cygwin wrote:

On Thu, 21 Jan 2021 15:45:28 +0100
Martyn B wrote:

- same behavior if I use "exit" or "logout".
  "bash_logout" gives me "command not found"
- shell is /bin/bash on both sides


What does "cat ~/.bash_logout" say?


- the command "cygcheck -c Cygwin" clears the local lines from
  screen (1) immediately even _before_ exit


This is normal behavior of cygwin 3.1.7.
I doubt some non-cygwin program is automatically executed
in ~/.bash_logout .


There's also /etc/bash.bash_logout.  The default version of that clears the 
screen:

$ cat /etc/defaults/etc/bash.bash_logout
[...]
# base-files version 4.3-2

# /etc/bash.bash_logout: executed by bash(1) when login shell exits.

# The latest version as installed by the Cygwin Setup program can
# always be found at /etc/defaults/etc/bash.bash_logout

# Modifying /etc/bash.bash_logout directly will prevent
# setup from updating it.

# System-wide bashrc file

# when leaving the console clear the screen to increase privacy
if [ "$SHLVL" = 1 ]; then
  [ -x /usr/bin/clear ] && /usr/bin/clear
fi

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


Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Takashi Yano via Cygwin
On Thu, 21 Jan 2021 13:13:56 -0500
Ken Brown wrote:
> # when leaving the console clear the screen to increase privacy
> if [ "$SHLVL" = 1 ]; then
>[ -x /usr/bin/clear ] && /usr/bin/clear
> fi

That should be the culprit. 
Is editing /etc/bash.bash_logout the right thing?

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


Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread matthew patton via Cygwin
On Thursday, January 21, 2021, 01:30:41 PM EST, Takashi Yano via Cygwin 
 wrote:
 
 
 On Thu, 21 Jan 2021 13:13:56 -0500
Ken Brown wrote:
> # when leaving the console clear the screen to increase privacy
> if [ "$SHLVL" = 1 ]; then
>    [ -x /usr/bin/clear ] && /usr/bin/clear
> fi

That should be the culprit. 
Is editing /etc/bash.bash_logout the right thing?

Yes. and furthermore REVERT that little cherry-bomb. Put the lines in and 
commented-out is fine. It's not OK to screw with people's environment like that.
  
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: [ANNOUNCEMENT] Test: python packages

2021-01-21 Thread Marco Atzeri via Cygwin

On 21.01.2021 18:06, Hamish McIntyre-Bhatty via Cygwin wrote:



install one and it will remove the other, also as they have
the same content in this case


That makes sense, but that's not what happened here - it prompted to
remove "pylint" itself and install "python38-plint" but only after
running setup again after installing the new test "pylint" package.
Maybe I'm being a bit stupid but this seems like weird behaviour in
setup.exe - I would have expected it to do this when I asked to upgrade
"pylint" in the first place, or to automatically install
"python38-pylint" when I selected "pylint".

Hamish



probably a consequence of being still test classified packages

Marco

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


Re: gdb not working properly in Cygwin

2021-01-21 Thread Marco Atzeri via Cygwin

On 21.01.2021 20:02, Daniel, Barry K. via Cygwin wrote:

I am trying to build and debug a linux application on a Windows 10 machine.  I have installed Cygwin64 with GDB and the GCC compliers.  
When I open up a Cygwin64 terminal and type "gcc -version" or "g++ --version" I get the normal information about those 
packages.  However, when I type in "gdb -version" it print a blank line and I am back at the shell prompt.  No text is printed.  
If I type in "gdb" or "gdb hello.exe", I never get a "(gdb)" prompt. The cursor just sits there and there is 
no response.  I have waited for many minutes with no response.  I have to 'Ctrl-Z' to get back the shell prompt.  Surely there is a simple 
solution to this problem but I can't find it anywhere.




try

 strace -o /tmp/gdb.strace /usr/bin/gdb --version

if there is DLL loading issue should produce a error message
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: Terminal output disappearing after SSH into cygwin

2021-01-21 Thread Ken Brown via Cygwin

On 1/21/2021 1:30 PM, Takashi Yano via Cygwin wrote:

On Thu, 21 Jan 2021 13:13:56 -0500
Ken Brown wrote:

# when leaving the console clear the screen to increase privacy
if [ "$SHLVL" = 1 ]; then
[ -x /usr/bin/clear ] && /usr/bin/clear
fi


That should be the culprit.
Is editing /etc/bash.bash_logout the right thing?


That's what I do.  The only caveat is that once you edit that file, it will 
never be updated by setup again.  So if there's a new release of base-files, you 
should compare /etc/bash.bash_logout with /etc/defaults/etc/bash.bash_logout to 
see if there are any changes that you want to pick up.


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


Re: gdb not working properly in Cygwin

2021-01-21 Thread Tord Andreasson via Cygwin
Hi,

I encounter the same issue too.

gdb starts however there is no gdb prompt, nothing is echoed and nothing is
printed on the bash window except an empty blank line. From now you operate
blindfolded.

Debugging a simple application that prints "Hello World" on file
demonstrates that gdb loads the application and is responsive to commands;
"run" will run the program to its completion, and "quit" will return to the
bash prompt.

I tried "strace -o /tmp/gdb.strace /usr/bin/gdb --version" and indeed there
are lines with 37 error messages in it. Since the trace file is large (2MB)
I have extracted the lines containing the error messages and attached them
to this email. I can attach the full gdb.strace if that is needed.

I have no insight into what these errors are and how to remedy or
workaround them, any help would be appreciated.

Best Regards,
Tord
   62  450584 [main] gdb 1374 seterrno_from_nt_status: 
/home/corinna/src/cygwin/cygwin-3.1.7/cygwin-3.1.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/fhandler.cc:728
 status 0xC034 -> windows error 2
   32  450616 [main] gdb 1374 geterrno_from_win_error: windows error 2 == errno 
2
   86  452243 [main] gdb 1374 seterrno_from_nt_status: 
/home/corinna/src/cygwin/cygwin-3.1.7/cygwin-3.1.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/fhandler.cc:728
 status 0xC03A -> windows error 3
   62  452305 [main] gdb 1374 geterrno_from_win_error: windows error 3 == errno 
2
   62  518377 [main] gdb 1374 seterrno_from_nt_status: 
/home/corinna/src/cygwin/cygwin-3.1.7/cygwin-3.1.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/fhandler.cc:728
 status 0xC03A -> windows error 3
   30  518407 [main] gdb 1374 geterrno_from_win_error: windows error 3 == errno 
2
   60  519679 [main] gdb 1374 seterrno_from_nt_status: 
/home/corinna/src/cygwin/cygwin-3.1.7/cygwin-3.1.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/fhandler.cc:728
 status 0xC03A -> windows error 3
   30  519709 [main] gdb 1374 geterrno_from_win_error: windows error 3 == errno 
2
   59  520974 [main] gdb 1374 seterrno_from_nt_status: 
/home/corinna/src/cygwin/cygwin-3.1.7/cygwin-3.1.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/fhandler.cc:728
 status 0xC03A -> windows error 3
   30  521004 [main] gdb 1374 geterrno_from_win_error: windows error 3 == errno 
2
   62  522697 [main] gdb 1374 seterrno_from_nt_status: 
/home/corinna/src/cygwin/cygwin-3.1.7/cygwin-3.1.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/fhandler.cc:728
 status 0xC03A -> windows error 3
   30  522727 [main] gdb 1374 geterrno_from_win_error: windows error 3 == errno 
2
   59  523988 [main] gdb 1374 seterrno_from_nt_status: 
/home/corinna/src/cygwin/cygwin-3.1.7/cygwin-3.1.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/fhandler.cc:728
 status 0xC03A -> windows error 3
   30  524018 [main] gdb 1374 geterrno_from_win_error: windows error 3 == errno 
2
   59  525278 [main] gdb 1374 seterrno_from_nt_status: 
/home/corinna/src/cygwin/cygwin-3.1.7/cygwin-3.1.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/fhandler.cc:728
 status 0xC03A -> windows error 3
   31  525309 [main] gdb 1374 geterrno_from_win_error: windows error 3 == errno 
2
   49  813854 [main] gdb 1374 seterrno_from_nt_status: 
/home/corinna/src/cygwin/cygwin-3.1.7/cygwin-3.1.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/fhandler.cc:728
 status 0xC034 -> windows error 2
   30  813884 [main] gdb 1374 geterrno_from_win_error: windows error 2 == errno 
2
   46  815017 [main] gdb 1374 seterrno_from_nt_status: 
/home/corinna/src/cygwin/cygwin-3.1.7/cygwin-3.1.7-1.x86_64/src/newlib-cygwin/winsup/cygwin/fhandler.cc:728
 status 0xC034 -> windows error 2
   31  815048 [main] gdb 1374 geterrno_from_win_error: windows error 2 == errno 
2
  269  964793 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
   79 1154210 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
   36 1439036 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
   38 1460417 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
   36 1463609 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
  213 3092858 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
  217 3255406 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
  216 3431324 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
  216 3470229 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
  217 3481299 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
  221 3496431 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
  218 3587569 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
  218 3607055 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
  216 3740537 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
  217 3755725 [main] gdb 1374 geterrno_from_win_error: windows error 18 == 
errno 89
   31 38283

Re: gdb not working properly in Cygwin

2021-01-21 Thread matthew patton via Cygwin
On Thursday, January 21, 2021, 05:29:27 PM EST, Tord Andreasson via Cygwin 
 wrote:
 
 > I tried "strace -o /tmp/gdb.strace /usr/bin/gdb --version" and indeed there
>are lines with 37 error messages in it. Since the trace file is large (2MB)
$ Err_6.4.5.exe  0xC034 says:

  STATUS_OBJECT_NAME_NOT_FOUND                                   ntstatus.h# 
Object Name not found.# as an HRESULT: Severity: FAILURE (1), FACILITY_NULL 
(0x0), Code 0x34# for hex 0x34 / decimal 52  ERROR_DUP_NAME                     
                            winerror.h# You were not connected because a 
duplicate name exists on# the network. If joining a domain, go to System in 
Control# Panel to change the computer name and try again. If joining# a 
workgroup, choose another workgroup name.

and Err_6.4.5.exe  0xC03A syas:
  STATUS_OBJECT_PATH_NOT_FOUND                                   ntstatus.h# 
{Path Not Found}# The path %hs does not exist.# as an HRESULT: Severity: 
FAILURE (1), FACILITY_NULL (0x0), Code 0x3a# for hex 0x3a / decimal 58

You may very well need ScDebugProcess rights added to your Windows account.
  
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: gdb not working properly in Cygwin

2021-01-21 Thread Ken Brown via Cygwin

On 1/21/2021 5:27 PM, Tord Andreasson via Cygwin wrote:

Hi,

I encounter the same issue too.

gdb starts however there is no gdb prompt, nothing is echoed and nothing is
printed on the bash window except an empty blank line. From now you operate
blindfolded.

Debugging a simple application that prints "Hello World" on file
demonstrates that gdb loads the application and is responsive to commands;
"run" will run the program to its completion, and "quit" will return to the
bash prompt.

I tried "strace -o /tmp/gdb.strace /usr/bin/gdb --version" and indeed there
are lines with 37 error messages in it. Since the trace file is large (2MB)
I have extracted the lines containing the error messages and attached them
to this email. I can attach the full gdb.strace if that is needed.

I have no insight into what these errors are and how to remedy or
workaround them, any help would be appreciated.


Many errors are to be expected, so your excerpt of gdb.strace doesn't really 
tell us much.  Please post the full strace output somewhere.  And please send 
cygcheck output *as an attachment* as instructed here:


  https://cygwin.com/problems.html

Ken


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


Re: Sargasso.net mirror is gone?

2021-01-21 Thread Brian Inglis

On 2021-01-21 09:32, Marco Atzeri via Cygwin wrote:

On 21.01.2021 17:19, Hamish McIntyre-Bhatty via Cygwin wrote:

On 21/01/2021 16:16, Marco Atzeri via Cygwin wrote:

On 21.01.2021 17:06, Hamish McIntyre-Bhatty via Cygwin wrote:

Hi there,





the process is almost automatic
when a mirror is for some time out of sync, it is removed from the list


Good to know, I will use a different mirror then.

Hamish



the list is here:

https://cygwin.com/mirrors.html

"Note: We automatically poll these mirrors on a regular basis to ensure that 
mirrors have the latest Cygwin packages available. The list of mirrors below 
reflects all of the mirrors who appear to have up-to-date copies of the Cygwin 
release area."


More importantly - those not under mirrors are here:

https://cygwin.com/mirrors-report.html

- sargasso.net had a recent cert problem for 35 hours
- it has been renewed recently
- temporary network and cert issues are often quickly cleared up
- it's helpful to contact the mirror site and let them know there's an issue, in 
case they haven't noticed there's an issue with the mirror because it uses a 
different cert, or is on an isolated server, subnet, or VLAN.


--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


Re: missing perl directories

2021-01-21 Thread Brian Inglis

On 2021-01-21 09:09, Anthony Heading wrote:

Whenever I have a new cygwin setup,  I get an error/warning when trying to 
install perl modules:

% cpan install Win32::Symlink
Loading internal logger. Log::Log4perl recommended for better logging
[...]
Use of uninitialized value $what in concatenation (.) or string at 
/usr/share/perl5/5.30/App/Cpan.pm line 679,  line 1.
Warning: You do not have write permission for Perl library directories.

I think it is just because the site_perl directories do not exist.

% perl -V
Summary of my perl5 (revision 5 version 30 subversion 3) configuration:
[...]
   @INC:
 /usr/local/lib/perl5/site_perl/5.30/x86_64-cygwin-threads
 /usr/local/share/perl5/site_perl/5.30
 /usr/lib/perl5/vendor_perl/5.30/x86_64-cygwin-threads
 /usr/share/perl5/vendor_perl/5.30
 /usr/lib/perl5/5.30/x86_64-cygwin-threads
 /usr/share/perl5/5.30

ls: cannot access '/usr/local/lib/perl5/site_perl/5.30/x86_64-cygwin-threads': 
No such file or directory
ls: cannot access '/usr/local/share/perl5/site_perl/5.30': No such file or 
directory

If I simply create these empty directories the problem goes away.

Could the perl package just include these empty directories?


I don't knowingly use perl packages but I have those directories:

$ perl -V | tail -6 | xargs ls -d
/usr/lib/perl5/5.30/x86_64-cygwin-threads 
/usr/local/share/perl5/site_perl/5.30

/usr/lib/perl5/vendor_perl/5.30/x86_64-cygwin-threads  /usr/share/perl5/5.30
/usr/local/lib/perl5/site_perl/5.30/x86_64-cygwin-threads 
/usr/share/perl5/vendor_perl/5.30


either something has not completed correctly, or something is missing in recent 
installations.


--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
--
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple