Re: Terminator 2.0

2021-10-08 Thread mray271 via Cygwin

Hi Russel,

I create an issue here:
https://github.com/gnome-terminator/terminator/issues/523


On 10/8/21 4:25 AM, Russell VT wrote:
This developer seems to have taken on the role as "main distributor," 
rather than making this a simple Python module that's distributed 
through the likes of PyPy. Judging from the number of "unsupported" 
distributions/versions in their list, 
 
I would think you should take this up with the module owner, rather 
than with any Cygwin maintainer.


If they would, instead, distribute this over a more-common 
software repository... then, maybe I would answer this differently.


Cheers -
RVT


On Fri, Oct 8, 2021 at 12:59 AM mray271 via Cygwin  
wrote:



Now that Terminator development is reinvigorated and Python 3
compat, is
there a way I can get it working in Cygwin ?

https://github.com/gnome-terminator/terminator

Both the current offerings of Terminator and Guake are reliant on
Python
2.7 and severely buggy or no longer working on Windows 10.

Thanks!


-- 
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



--
Russell M. Van Tassell 



--
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


Curl

2021-10-08 Thread Jeremy Luttrell via Cygwin



-- 
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: Prompt wrapping lines problems

2021-10-08 Thread L A Walsh



Did you try the the solution suggested?  I.e. 


What do you see if you type:

 echo "$TERM"

How did you start your bash prompt? 


Also might be useful to send the output of:

 stty -a


On 2021/10/06 03:35, jp via Cygwin wrote:

Hello,I have the problem described in this page 
:https://superuser.com/questions/283236/cygwin-bash-prompt-is-wrapping-lines-on-the-same-line
I've tried everything to solved this but I didn't succeed. I have to reinstall 
again a previous version of cygwin...
So please, for the next version of cygwin, resolved this in the package, 
because it totally drive me crazy...
Thanks a lot and thanks for your great work for the cygwin software.



--
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: [PATCH] Cygwin: pty: Fix master closing error regarding attach_mutex.

2021-10-08 Thread Ken Brown

On 10/8/2021 12:28 PM, Takashi Yano wrote:

- If two or more pty masters are opened in a process, closing master
   causes error when closing attach_mutex. This patch fixes the issue.

Addresses:
https://cygwin.com/pipermail/cygwin-developers/2021-October/012418.html
---
  winsup/cygwin/fhandler_tty.cc | 7 +--
  winsup/cygwin/release/3.3.0   | 3 +++
  2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 05fe5348a..823dabf73 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -57,6 +57,7 @@ struct pipe_reply {
  };
  
  extern HANDLE attach_mutex; /* Defined in fhandler_console.cc */

+static LONG NO_COPY master_cnt = 0;
  
  inline static bool pcon_pid_alive (DWORD pid);
  
@@ -2041,7 +2042,8 @@ fhandler_pty_master::close ()

}
  release_output_mutex ();
  master_fwd_thread->terminate_thread ();
- CloseHandle (attach_mutex);
+ if (InterlockedDecrement (_cnt) == 0)
+   CloseHandle (attach_mutex);
}
  }
  
@@ -2876,7 +2878,8 @@ fhandler_pty_master::setup ()

if (!(pcon_mutex = CreateMutex (, FALSE, buf)))
  goto err;
  
-  attach_mutex = CreateMutex (, FALSE, NULL);

+  if (InterlockedIncrement (_cnt) == 1)
+attach_mutex = CreateMutex (, FALSE, NULL);
  
/* Create master control pipe which allows the master to duplicate

   the pty pipe handles to processes which deserve it. */
diff --git a/winsup/cygwin/release/3.3.0 b/winsup/cygwin/release/3.3.0
index 2f7340ac5..2df81a4ae 100644
--- a/winsup/cygwin/release/3.3.0
+++ b/winsup/cygwin/release/3.3.0
@@ -71,3 +71,6 @@ Bug Fixes
in ps(1) output.
Addresses: https://cygwin.com/pipermail/cygwin/2021-July/248998.html
   https://cygwin.com/pipermail/cygwin/2021-August/249124.html
+
+- Fix pty master closing error regarding attach_mutex.
+  Addresses: 
https://cygwin.com/pipermail/cygwin-developers/2021-October/012418.html


Pushed.  Thanks.

Ken


[PATCH] Cygwin: pty: Fix master closing error regarding attach_mutex.

2021-10-08 Thread Takashi Yano
- If two or more pty masters are opened in a process, closing master
  causes error when closing attach_mutex. This patch fixes the issue.

Addresses:
https://cygwin.com/pipermail/cygwin-developers/2021-October/012418.html
---
 winsup/cygwin/fhandler_tty.cc | 7 +--
 winsup/cygwin/release/3.3.0   | 3 +++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 05fe5348a..823dabf73 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -57,6 +57,7 @@ struct pipe_reply {
 };
 
 extern HANDLE attach_mutex; /* Defined in fhandler_console.cc */
+static LONG NO_COPY master_cnt = 0;
 
 inline static bool pcon_pid_alive (DWORD pid);
 
@@ -2041,7 +2042,8 @@ fhandler_pty_master::close ()
}
  release_output_mutex ();
  master_fwd_thread->terminate_thread ();
- CloseHandle (attach_mutex);
+ if (InterlockedDecrement (_cnt) == 0)
+   CloseHandle (attach_mutex);
}
 }
 
@@ -2876,7 +2878,8 @@ fhandler_pty_master::setup ()
   if (!(pcon_mutex = CreateMutex (, FALSE, buf)))
 goto err;
 
-  attach_mutex = CreateMutex (, FALSE, NULL);
+  if (InterlockedIncrement (_cnt) == 1)
+attach_mutex = CreateMutex (, FALSE, NULL);
 
   /* Create master control pipe which allows the master to duplicate
  the pty pipe handles to processes which deserve it. */
diff --git a/winsup/cygwin/release/3.3.0 b/winsup/cygwin/release/3.3.0
index 2f7340ac5..2df81a4ae 100644
--- a/winsup/cygwin/release/3.3.0
+++ b/winsup/cygwin/release/3.3.0
@@ -71,3 +71,6 @@ Bug Fixes
   in ps(1) output.
   Addresses: https://cygwin.com/pipermail/cygwin/2021-July/248998.html
  https://cygwin.com/pipermail/cygwin/2021-August/249124.html
+
+- Fix pty master closing error regarding attach_mutex.
+  Addresses: 
https://cygwin.com/pipermail/cygwin-developers/2021-October/012418.html
-- 
2.33.0



Re: GNU Emacs 28.0.50 crash (emacs-w32)

2021-10-08 Thread Ken Brown via Cygwin

On 10/7/2021 4:21 PM, Jim Reisert AD1C wrote:

I'm about to announce a new test release that tries to work around the problem
in a different way.  I'd be interested in hearing how that works too.


I updated Emacs and turned off "native-comp-async-query-on-exit".
This time, there was no error report from emacs-w32, it just silently
exited while the compilation was ongoing.  I don't know if that was
the desired outcome.


Yes.  All I did was to suppress the error report.  It turns out that there was 
actually a Cygwin bug underlying this, which will be fixed in Cygwin 3.3.0:


  https://cygwin.com/pipermail/cygwin-developers/2021-October/012418.html

So I'll be able to remove the workaround once Cygwin 3.3.0 is released.

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


[ANNOUNCEMENT] Updated: nco-5.0.3-1

2021-10-08 Thread Marco Atzeri via Cygwin-announce via Cygwin

Version 5.0.3-1 of

  nco

is available in the Cygwin distribution.

CHANGES
Latest upstream release

DESCRIPTION
The NCO toolkit manipulates and analyzes data stored in netCDF-accessible
formats, including DAP, HDF4, and HDF5. It exploits the geophysical
expressivity of many CF (Climate & Forecast) metadata conventions

HOMEPAGE
http://nco.sourceforge.net/

Marco Atzeri

If you have questions or comments, please send them to the
cygwin mailing list at: cygwin (at) cygwin (dot) com .

--
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


Updated: nco-5.0.3-1

2021-10-08 Thread Marco Atzeri via Cygwin-announce

Version 5.0.3-1 of

  nco

is available in the Cygwin distribution.

CHANGES
Latest upstream release

DESCRIPTION
The NCO toolkit manipulates and analyzes data stored in netCDF-accessible
formats, including DAP, HDF4, and HDF5. It exploits the geophysical
expressivity of many CF (Climate & Forecast) metadata conventions

HOMEPAGE
http://nco.sourceforge.net/

Marco Atzeri

If you have questions or comments, please send them to the
cygwin mailing list at: cygwin (at) cygwin (dot) com .




Re: Terminator 2.0

2021-10-08 Thread Russell VT via Cygwin
This developer seems to have taken on the role as "main distributor,"
rather than making this a simple Python module that's distributed through
the likes of PyPy. Judging from the number of "unsupported"
distributions/versions in their list,
 I
would think you should take this up with the module owner, rather than with
any Cygwin maintainer.

If they would, instead, distribute this over a more-common
software repository... then, maybe I would answer this differently.

Cheers -
RVT


On Fri, Oct 8, 2021 at 12:59 AM mray271 via Cygwin 
wrote:

>
> Now that Terminator development is reinvigorated and Python 3 compat, is
> there a way I can get it working in Cygwin ?
>
> https://github.com/gnome-terminator/terminator
>
> Both the current offerings of Terminator and Guake are reliant on Python
> 2.7 and severely buggy or no longer working on Windows 10.
>
> Thanks!
>
>
> --
> 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
>


-- 
Russell M. Van Tassell 

-- 
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: [PATCH] Cygwin: Make native clipboard layout same for 32- and 64-bit

2021-10-08 Thread Takashi Yano
How about simply just:

diff --git a/winsup/cygwin/fhandler_clipboard.cc 
b/winsup/cygwin/fhandler_clipboard.cc
index ccdb295f3..d822f4fc4 100644
--- a/winsup/cygwin/fhandler_clipboard.cc
+++ b/winsup/cygwin/fhandler_clipboard.cc
@@ -28,9 +28,10 @@ static const WCHAR *CYGWIN_NATIVE = 
L"CYGWIN_NATIVE_CLIPBOARD";
 
 typedef struct
 {
-  timestruc_t  timestamp;
-  size_t   len;
-  char data[1];
+  uint64_t tv_sec;
+  uint64_t tv_nsec;
+  uint64_t len;
+  char data[1];
 } cygcb_t;
 
 fhandler_dev_clipboard::fhandler_dev_clipboard ()
@@ -74,7 +75,10 @@ fhandler_dev_clipboard::set_clipboard (const void *buf, 
size_t len)
}
   clipbuf = (cygcb_t *) GlobalLock (hmem);
 
-  clock_gettime (CLOCK_REALTIME, >timestamp);
+  struct timespec ts;
+  clock_gettime (CLOCK_REALTIME, );
+  clipbuf->tv_sec = ts.tv_sec;
+  clipbuf->tv_nsec = ts.tv_nsec;
   clipbuf->len = len;
   memcpy (clipbuf->data, buf, len);
 
@@ -179,7 +183,10 @@ fhandler_dev_clipboard::fstat (struct stat *buf)
  && (hglb = GetClipboardData (format))
  && (clipbuf = (cygcb_t *) GlobalLock (hglb)))
{
- buf->st_atim = buf->st_mtim = clipbuf->timestamp;
+ struct timespec ts;
+ ts.tv_sec = clipbuf->tv_sec;
+ ts.tv_nsec = clipbuf->tv_nsec;
+ buf->st_atim = buf->st_mtim = ts;
  buf->st_size = clipbuf->len;
  GlobalUnlock (hglb);
}

-- 
Takashi Yano 


Terminator 2.0

2021-10-08 Thread mray271 via Cygwin



Now that Terminator development is reinvigorated and Python 3 compat, is 
there a way I can get it working in Cygwin ?


https://github.com/gnome-terminator/terminator

Both the current offerings of Terminator and Guake are reliant on Python 
2.7 and severely buggy or no longer working on Windows 10.


Thanks!


--
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