Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-26 Thread Shaddy Baddah

Hi,


On 25/1/22 7:02 am, Jon Turney wrote:
> A new version of Setup (2.917) has been uploaded to:
>
>   https://cygwin.com/setup-x86_64.exe  (64 bit version)
>   https://cygwin.com/setup-x86.exe (32 bit version)
>
> Changes compared to 2.915:
...

I've had a new problem with this version, which I have been able to
work around.

I normally do a two stage update of Cygwin, with the second stage
being running down the "Install from Local Directory" path.

This was silently existing. As it turned out, it was doing so as I had
an old, setup.ini from a mirror I had unintentionally selected (rather
than my preferred mirror). Here's the preamble to that setup.ini:

==
# This file was automatically generated at 2021-09-28 15:09:17 GMT.
#
# If you edit it, your edits will be discarded next time the file is
# generated.
#
# See https://sourceware.org/cygwin-apps/setup.ini.html for a description
# of the format.
release: cygwin
arch: x86_64
setup-timestamp: 1632841757
include-setup: setup <2.878 not supported
setup-minimum-version: 2.895
setup-version: 2.909
==

I moved that out of the way, and then was able to proceed.

I was fortunate that I acted on a hunch. Otherwise, even with -v on
command line, there was nothing that could indicate to me what was
causing the issue.

I'm hoping that this silent exit can be fixed, to at least give an
indication, via logging or pop-up or other, of what is blocking the
install.

--
Regards,
Shaddy Baddah

--
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: zeromq-4.3.4-1

2022-01-26 Thread Marco Atzeri via Cygwin-announce

New version 4.3.4-1

  libzmq-devel
  libzmq-doc
  libzmq5

has been uploaded.

CHANGES
This is the latest upstream bug fix.
https://github.com/zeromq/libzmq/releases

DESCRIPTION
An open-source universal messaging library
ZeroMQ (also known as ØMQ, 0MQ, or zmq) looks like an embeddable
networking library but acts like a concurrency framework. It
gives you sockets that carry atomic messages across various
transports like in-process, inter-process, TCP, and multicast.

HOMEPAGE
https://zeromq.org/
https://github.com/zeromq/libzmq

Regards
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: zeromq-4.3.4-1

2022-01-26 Thread Marco Atzeri via Cygwin-announce

New version 4.3.4-1

  libzmq-devel
  libzmq-doc
  libzmq5

has been uploaded.

CHANGES
This is the latest upstream bug fix.
https://github.com/zeromq/libzmq/releases

DESCRIPTION
An open-source universal messaging library
ZeroMQ (also known as ØMQ, 0MQ, or zmq) looks like an embeddable
networking library but acts like a concurrency framework. It
gives you sockets that carry atomic messages across various
transports like in-process, inter-process, TCP, and multicast.

HOMEPAGE
https://zeromq.org/
https://github.com/zeromq/libzmq

Regards
Marco Atzeri

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



[ANNOUNCEMENT] Updated: scons-4.3.0-1

2022-01-26 Thread Marco Atzeri via Cygwin-announce

New version 4.3.0-1

  scons

has been uploaded.

CHANGES
This is the latest upstream bug fix.

DESCRIPTION
SCons is an Open Source software construction tool—that is,
a next-generation build tool. Think of SCons as an improved,
cross-platform substitute for the classic Make utility with
integrated functionality similar to autoconf/automake and
compiler caches such as ccache. In short, SCons is an easier,
more reliable and faster way to build software.

HOMEPAGE
https://scons.org/


Regards
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: scons-4.3.0-1

2022-01-26 Thread Marco Atzeri via Cygwin-announce

New version 4.3.0-1

  scons

has been uploaded.

CHANGES
This is the latest upstream bug fix.

DESCRIPTION
SCons is an Open Source software construction tool—that is,
a next-generation build tool. Think of SCons as an improved,
cross-platform substitute for the classic Make utility with
integrated functionality similar to autoconf/automake and
compiler caches such as ccache. In short, SCons is an easier,
more reliable and faster way to build software.

HOMEPAGE
https://scons.org/


Regards
Marco Atzeri

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



[ANNOUNCEMENT] Updated: nco-5.0.5-1

2022-01-26 Thread Marco Atzeri via Cygwin-announce

Version 5.0.5-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.5-1

2022-01-26 Thread Marco Atzeri via Cygwin-announce

Version 5.0.5-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: Attn maintainer: python-paramiko

2022-01-26 Thread Marco Atzeri

On 23.01.2022 23:17, Marco Atzeri wrote:

Michael,

can you please add the python39

$ cygcheck -cd |grep paramiko
python36-paramiko  2.7.2-0
python37-paramiko  2.7.2-0
python38-paramiko  2.7.2-0

and please avoid the usage of revision 0

Regards
Marco


Michael,
let me know if I should upload for you



Regards
Marco


[ANNOUNCEMENT] Updated: libtirpc-1.3.2-1

2022-01-26 Thread Marco Atzeri via Cygwin-announce

Updated version 1.3.2-1 of

  libtirpc-common
  libtirpc-devel
  libtirpc-doc
  libtirpc3

have been uploaded for cygwin

CHANGES
Last upstream release
https://sourceforge.net/p/libtirpc/mailman/message/37279515/

DESCRIPTION
Libtirpc is a port of Suns Transport-Independent
RPC library to Linux. It's being developed by the
Bull GNU/Linux NFSv4 project.

HOMEPAGE
https://sourceforge.net/projects/libtirpc/

Regards
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: libtirpc-1.3.2-1

2022-01-26 Thread Marco Atzeri via Cygwin-announce

Updated version 1.3.2-1 of

  libtirpc-common
  libtirpc-devel
  libtirpc-doc
  libtirpc3

have been uploaded for cygwin

CHANGES
Last upstream release
https://sourceforge.net/p/libtirpc/mailman/message/37279515/

DESCRIPTION
Libtirpc is a port of Suns Transport-Independent
RPC library to Linux. It's being developed by the
Bull GNU/Linux NFSv4 project.

HOMEPAGE
https://sourceforge.net/projects/libtirpc/

Regards
Marco Atzeri

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



[ANNOUNCEMENT] Updated: librsb-1.3.0.0-1

2022-01-26 Thread Marco Atzeri via Cygwin-announce

Updated version 1.3.0.0-1 of

   librsb-devel
   librsb0

have been uploaded for cygwin

CHANGES
Last upstream release
https://sourceforge.net/p/librsb/mailman/message/37595374/

DESCRIPTION
librsb is a library for sparse matrix computations featuring the
Recursive Sparse Blocks (RSB) matrix format. This format allows
cache efficient and multi-threaded (that is, shared memory parallel)
operations on large sparse matrices.

HOMEPAGE
http://librsb.sourceforge.net/

Regards
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: librsb-1.3.0.0-1

2022-01-26 Thread Marco Atzeri via Cygwin-announce

Updated version 1.3.0.0-1 of

   librsb-devel
   librsb0

have been uploaded for cygwin

CHANGES
Last upstream release
https://sourceforge.net/p/librsb/mailman/message/37595374/

DESCRIPTION
librsb is a library for sparse matrix computations featuring the
Recursive Sparse Blocks (RSB) matrix format. This format allows
cache efficient and multi-threaded (that is, shared memory parallel)
operations on large sparse matrices.

HOMEPAGE
http://librsb.sourceforge.net/

Regards
Marco Atzeri

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



Re: Cygwin/X with Win10 display scaling corrupting font display of typed characters - Issue identified - "Solution" found

2022-01-26 Thread Ken Whitesell

Thank You!!!

On 1/24/2022 10:02 AM, Jon Turney wrote:

On 20/01/2022 01:01, Ken Whitesell wrote:

On 1/19/2022 2:28 PM, Jon Turney wrote:

On 19/01/2022 00:02, Ken Whitesell wrote:

On 1/17/2022 1:29 PM, Ken Whitesell wrote:


Is there a known solution for this? (Or is it known that there is 
no solution?)


Thanks for reporting this.

Any guidance, pointers, suggestions of avenues for further 
research, or other information, will all be greatly appreciated.


After more research and experimentation, it appears to be related 
to one of xorg-server, xorg-server-common, or xorg-server-xorg.


Installing the older version 1.20.12-1 of these packages allows the 
windows to be moved between monitors without any issues. Upgrading 
to the current version 21.1.3-1 creates the problems. I'm able to 
replicate this behavior on two different laptops with two different 
external monitors.


It seems likely that this is an unintended effect of changes in 
xorg-server 21.1.0-1, trying to fix problems in this area (See [1])


Thanks for the references. I've read all the messages in the thread - 
I was particularly intrigued by this comment:


wrt the font scaling issue, looking at the source, it seems that we
don't re-consider the display dpi after a WM_DISPLAYCHANGE message, but
keep on using the value determined at startup.  This is probably a bug.

I'm curious enough to want to take a look at the code, but I've got 
no belief that I'm going to be able to find an answer. (I'm *not* a 
C++ programmer. I can read it and write a little of it, but that's 
about it.) I was going to start by comparing the last known-working 
version to the first known-non-working version, but given that it's a 
major release change, that's not likely going to be a useful 
approach. (I'm way out of my league here. It's probably going to take 
me a long time just to get to the point where I can even begin to 
explore this.)


The relevant change, which tries to fix the issue identified in that 
comment, and probably introduces this issue is:


https://gitlab.freedesktop.org/jturney/xserver/-/commit/b19b6266d33f2b911dc1826ad5c03da135a39957 



[...]

If I change the scaling from 125% to 100% on the laptop's display,
the problem appears until I restart Cygwin/X. Restarting Cygwin/X
shows it displaying properly, until I change the scaling again.


I could only reproduce this problem with mis-rendering when changing 
the scaling on the secondary monitor.


Wow, I did a really poor job of writing that. I'm sorry.

For clarity, just in case you were unable to interpret what I meant 
by what I wrote -


At start: Laptop scaling set at 125%, second monitor at 100%.

Mis-rendering occurs at start, on the second monitor only.

If I change the scaling on the laptop, while the current instance of 
XWin is running - the same mis-rendering now occurs on the laptop.


Interestingly enough, if I change the laptop from 125% to 100%, the 
tops are clipped as previously reported. But if I change the scaling 
from 125% to 150%, then the bottoms are clipped. (It kinda makes 
sense from what you've written.)


If I then stop and restart XWin after having reset the scaling such 
that both monitors have the same setting, then the problem doesn't 
appear.


Thanks for the clarification.

The laptop display is the primary monitor in all cases, correct?


Yes, the laptop display is the primary monitor in all cases.

But, the real reason for my reply at this point is to report that I have 
found a solution for _my_ issue.


I make no guarantees about any problems anyone else may be facing, nor 
can I make any statement about whether or not this causes other problems.


Obligatory disclaimer: I don't really know what I'm doing here. I'm not 
a Windows developer, and I know just enough about cygwin to muddle my 
way through doing what I want to do with the help of the mailing lists 
and other resources. I'm not in a position to _explain_ anything. This 
works for me, but that's as far as I can go.


First, the bottom line:

XWin.exe.manifest, line 21

change:
PerMonitorV2,PerMonitor
to
PerMonitor

Some details:

I managed to get to a point where I could build the packages from source 
and install them. I looked at the commit you referred me to, and started 
reverting changes, one-by-one - at least in so far as the change 
appeared to make sense to me.


Anyway, I got to this change, and sure enough, it worked. Removing the 
"PerMonitorV2" solved the issue. Also, I confirmed that it's the 
"PerMonitorV2" that is causing the issue and not having both of them by 
running another test with just the "PerMonitorV2" - and that still shows 
the problem.


References with further information if it's going to be helpful to 
anyone: 
https://docs.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process 
and 
https://docs.microsoft.com/en-us/windows/win32/hidpi/high-dpi-desktop-application-development-on-windows



--
Problem reports:  

Re: [ITP] biosig [was: Re: newcomer issues when packaging biosig, stimfit, etc.]

2022-01-26 Thread Marco Atzeri

On 26.01.2022 05:52, Marco Atzeri wrote:

On 26.01.2022 00:50, Alois Schlögl wrote:






Hi  Marco,


thanks for the improvements (especially, libb64 which enables 
biosig_fhir, and python-biosig).

Attached is a revised version. Check on playground was successful [1].


Regards,
    Alois


[1] https://github.com/cygwin/scallywag/actions/runs/1748211333



GTG for me.

I added the package on the package list

  $ grep biosig cygwin-pkg-maint
biosig   Alois Schloegl


you should be able to upload.
https://cygwin.com/package-upload.html

Regards
Marco



Alois,
do not forget to Announce on the proper mailing list

https://cygwin.com/mailman/listinfo/cygwin-announce

Regards
Marco



RE: [EXTERNAL] Re: Updated cygwin this morning, mintty window flashes briefly and quits

2022-01-26 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> Else how would you stop them in the first place?

Restarting the OS was the way (post install, to restart with the new DLL),
but that no longer works anymore with Win10.

Anton Lavrentiev
Contractor NIH/NLM/NCBI


-- 
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: svn crashes when connection to server refused

2022-01-26 Thread Marco Atzeri

On 26.01.2022 21:16, Andrey Repin wrote:

Greetings, marco atzeri!

Marco, on an unrelated note, can you please package Subversion with
alternatives support?
I understand that the request is uncommon, but I do have uncommon
requirements. I'm using a custom Subversion build, which is good for common
use, but have a small deficiency in LC_TIME handling (simply put, it always
output localized dates, regardless of the settings).
Thus I have to use a different Subversion binary for release automation.
I already do some massaging to a similar extent, but a proper alternatives
support would be much more convenient.

Thank you in advance.




Hi Andrey
what exactly do you mean ?

is you need svn to point to another program than

  /usr/bin/svn.exe

can not you set Alternatives to use a

  /usr/local/bin/svn

as switch point between /usr/bin/svn.exe and your alternate ?
What am I missing ?

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: services startup postinstall scripts

2022-01-26 Thread Brian Inglis

On 2022-01-26 07:50, Andrey Repin wrote:

Greetings, Brian Inglis!


restart them in a late local permanent postinstall script
/etc/postinstall/zp_z0_l_start_services.dash after setup.


It never occured to me that I can use postinstall tasks to restart services :D

Just add a line

for svc in cygserver $( cygrunsrv --list | grep -v cygserver ); do net start 
"$svc"; done

and you're golden!


To avoid conflicts you may first want to stop some Windows services 
using first sc, then net as backup:


for srv in  ssh ssh-agent sshbroker sshproxy\
sshd sshdbroker sshdproxy   \
vmictimesysnc w32time # for GPS ref Windows NTP server
do
sc stop $srv
sleep 1
net stop$srv
done

then start all Cygwin services using cygrunsrv, then sc, then net to be 
more sure:


for srv in $(cygrunsrv -L)
do
cygrunsrv -S$srv
sleep 1
sc start$srv
sleep 1
net start   $srv
done

with suitable checks, messages, and logging added.

--
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: svn crashes when connection to server refused

2022-01-26 Thread Andrey Repin
Greetings, marco atzeri!

Marco, on an unrelated note, can you please package Subversion with
alternatives support?
I understand that the request is uncommon, but I do have uncommon
requirements. I'm using a custom Subversion build, which is good for common
use, but have a small deficiency in LC_TIME handling (simply put, it always
output localized dates, regardless of the settings).
Thus I have to use a different Subversion binary for release automation.
I already do some massaging to a similar extent, but a proper alternatives
support would be much more convenient.

Thank you in advance.


-- 
With best regards,
Andrey Repin
Wednesday, January 26, 2022 22:57:02

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


Re: [ANNOUNCEMENT] cygwin 3.3.3-1 [with DEPRECATION NOTES]

2022-01-26 Thread Andrey Repin
Greetings, Andrey Repin!

> Greetings, Corinna Vinschen via Cygwin-announce!

>> The following packages have been uploaded to the Cygwin distribution:

>> * cygwin-3.3.3-1
>> * cygwin-devel-3.3.3-1
>> * cygwin-doc-3.3.3-1

> It seems there's some network shares problem going on with 3.3

> I've got a problem with recent Cygwin and some old scripts of mine.
> Particularly, the script at one point trying to normalize EOL's in a file so
> that following operations run smooth.

> But the step fails with message about permission changes.
> The problem is,
> 1. the file is located on a network share and
> 2. it is a noacl share.

> The scripts were running fine several months ago and nothing has сhanged on
> host and remote except Cygwin itself.

> $ ls -ld . ./Localization.lua
> drwxr-xr-x 1 anrdaemon None 0 Jan  2 12:07 .
> -rw-r--r-- 1 anrdaemon None 32212 Jan  1 14:32 ./Localization.lua

> $ /usr/bin/d2u ./Localization.lua
> dos2unix: Failed to change the permissions of temporary output file 
> ./d2utmpEBELkH: Permission denied
> dos2unix: problems converting file ./Localization.lua

> $ getfacl . ./Localization.lua
> getfacl: .: Not supported

> getfacl: ./Localization.lua: Not supported

> $ icacls Localization.lua
> Localization.lua No mapping between account names and security IDs was done. 
> (I)(F)
>  No mapping between account names and security IDs was done. 
> (I)(RX)
>  All:(I)(RX)

> Successfully processed 1 files; Failed processing 0 files

> Saved SID's are domain ones

> Localization.lua
> D:(A;ID;FA;;;S-1-5-21-2269650170-3990761244-2407083512-1105)
> (A;ID;0x1200a9;;;S-1-5-21-2269650170-3990761244-2407083512-513)
> (A;ID;0x1200a9;;;WD)

> Where S-1-5-21-2269650170-3990761244-2407083512-1105 is mine.

> # file: Localization.lua
> # owner: anrdaemon
> # group: domain\040users
> user::rwx
> user:anrdaemon:rwx
> group::r-x
> group:domain\040users:r-x
> mask::rwx
> other::r-x

> Client PC is not part of the domain, but user name and password do match.
> Again, rolling back to 3.2 restores the operation.

I've found a working domain client VM, and the issue remains even in domain
environment. Which is surprising, to say the least. And this is no antivirus
issue, as there's no any AV installed on the client VM.

> Cygwin Package Information
> Package  VersionStatus
> cygwin   3.3.3-1OK
> dos2unix 7.4.2-1OK

> cygcheck output attached.
> Strace output attached as well, but it's rather short.

> Downgrading to Cygwin 3.2.0 resolved the problem.

> Anything else I can do to provide more information?


-- 
With best regards,
Andrey Repin
Wednesday, January 26, 2022 21:47:56

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


Re: Is Cygwin in any way affected by "Log4j" / "Log4Shell"...???

2022-01-26 Thread Andrey Repin
Greetings, mail2s...@gmx.net!

Since Cygwin(as a library/wrapper layer) is not packaging or in any other way
providing Java code, no.

As a software distribution platform, there are 33 packages that contain .jar
files: https://cygwin.com/cgi-bin2/package-grep.cgi?grep=%5C.jar%24=x86_64
What they are doing and if they are susceptible to the exploit - a question to
the relevant package author(s).


-- 
With best regards,
Andrey Repin
Wednesday, January 26, 2022 20:20:45

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


Re: Updated cygwin this morning, mintty window flashes briefly and quits

2022-01-26 Thread Andrey Repin
Greetings, Lavrentiev, Anton (NIH/NLM/NCBI) [C]!

>> for svc in cygserver $( cygrunsrv --list | grep -v cygserver ); do net start 
>> "$svc"; done

>> and you're golden!

> Not so fast, you must have admin rights to start any Windows services,
> including cygserver.

> So maybe just bronze, and not so golden

This is assuming you do have them, of course. Else how would you stop them in
the first place?


-- 
With best regards,
Andrey Repin
Wednesday, January 26, 2022 20:08:15

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


Is Cygwin in any way affected by "Log4j" / "Log4Shell"...???

2022-01-26 Thread mail2spam



-- 
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: ExitProcess does not work in Cygwin?

2022-01-26 Thread Jay K
 > It is best to avoid Cygwin-specific code.

Agreed.
The code is mostly only ifdef win32 vs. Posix but just a few spots are 
Cygwin-specific.
(and Apple specific, Solaris specific, IA64-specific etc.)

 - Jay


From: Andrey Repin 
Sent: Wednesday, January 26, 2022 2:23 PM
To: Jay K ; cygwin@cygwin.com 
Subject: Re: ExitProcess does not work in Cygwin?

Greetings, Jay K!

 >> Just use POSIX exit(3)!


> I did switch my code:

> #ifdef __CYGWIN__
>  exit(x);
> #else
>  ExitProcess(x);
> #endif
> .

It is best to avoid Cygwin-specific code.
Use either Linux(POSIX) or Windows specific tests, and only test for Cygwin if
/absolutely/ necessary.


--
With best regards,
Andrey Repin
Wednesday, January 26, 2022 17:22:01

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


Re: g++ missing stddef.h

2022-01-26 Thread Andrey Repin
Greetings, Kevin Schnitzius!

>  On Wednesday, January 19, 2022, 12:46:26 AM EST, Marco Atzeri

> Works fine from bash.  It reproes from cmd.exe

Then your CMD environment is not set identical to your bash env.
Simple fix - use bash.


-- 
With best regards,
Andrey Repin
Wednesday, January 26, 2022 20:00:24

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


RE: Updated cygwin this morning, mintty window flashes briefly and quits

2022-01-26 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> for svc in cygserver $( cygrunsrv --list | grep -v cygserver ); do net start 
> "$svc"; done

> and you're golden!

Not so fast, you must have admin rights to start any Windows services, 
including cygserver.

So maybe just bronze, and not so golden

Anton Lavrentiev
Contractor NIH/NLM/NCBI

-- 
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 2/4] Cygwin: silence dblatex when building PDFs

2022-01-26 Thread Jon Turney

On 20/01/2022 20:02, Jon Turney wrote:

On 20/01/2022 16:46, Corinna Vinschen wrote:

On Jan 20 16:43, Jon Turney wrote:

On 19/01/2022 13:15, Jon Turney wrote:

Unless make is invoked with V=1, have xmlto pass '-q' to dblatex when
building PDFs, to avoid "default template used in programlisting or
screen" warnings from dblatex's verbatim.xsl stylesheet.
---
   winsup/doc/Makefile.am | 7 +--
   1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/winsup/doc/Makefile.am b/winsup/doc/Makefile.am
index 44b64babc..57b74341a 100644
--- a/winsup/doc/Makefile.am
+++ b/winsup/doc/Makefile.am
@@ -17,6 +17,9 @@ doc_DATA = \
   htmldir = $(datarootdir)/doc
   XMLTO=@XMLTO@ --skip-validation --with-dblatex
+XMLTO_DBLATEX_QUIET_=-p '-q'
+XMLTO_DBLATEX_QUIET=$(XMLTO_DBLATEX_QUIET_$(V))



This doesn't seem to be working as expected when building on Fedora 
Rawhide


Actually it's running on F35

[1], but it looks like xmlto isn't using dblatex despite ' 
--with-dblatex'?


Did you install dblatex?


Yes, I meant to write "... and dblatex being installed." :)

https://github.com/cygwin/cygwin/runs/4876704875?check_suite_focus=true#step:11:10 


This seems to be the output of 'mktexfmt pdflatex.fmt' which is run once 
to generate some stuff (the 'TeX format') which is cached in 
~/.texlive2021 (and so is appearing in every run in the ephermeral VM 
used by github actions)


So this could be suppressed by running something like that in the setup 
script.


Re: [EXTERNAL] Updated cygwin this morning, mintty window flashes briefly and quits

2022-01-26 Thread Andrey Repin
Greetings, Brian Inglis!

> restart them in a late local permanent postinstall script
> /etc/postinstall/zp_z0_l_start_services.dash after setup.

It never occured to me that I can use postinstall tasks to restart services :D

Just add a line

for svc in cygserver $( cygrunsrv --list | grep -v cygserver ); do net start 
"$svc"; done

and you're golden!


-- 
With best regards,
Andrey Repin
Wednesday, January 26, 2022 17:48:31

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


Re: Does cygwin have an 'autorun' utility/package?

2022-01-26 Thread Andrey Repin
Greetings, Mark Hansen!

> I have an application running under Linux which I would like to move to 
> Windows
> (with Cygwin). This application depends on getting notifications when a CD Rom
> drive status has changed (like audio CD inserted, ejected, etc.). For this, I
> use a Linux utility application named 'autorun':

> https://linux.die.net/man/1/autorun

> What's nice about this application is it can be configured to send 
> notifications when
> various drive events occur.

> I've looked through the package list for Cygwin and don't see anything like 
> this.

Check out http://www.uwe-sieber.de/usbdlm_e.html

This is no Cygwin app, but it's nonetheless a very powerful app that can deal
in various drive events.

> Does Cygwin have anything that could work?

> My Windows/C skills are about 20 years old so I was hoping to find an 
> existing utility
> application that can provide this functionality, rather than try write my own.


-- 
With best regards,
Andrey Repin
Wednesday, January 26, 2022 17:37:09

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


Re: ExitProcess does not work in Cygwin?

2022-01-26 Thread Andrey Repin
Greetings, Jay K!

 >> Just use POSIX exit(3)!


> I did switch my code:

> #ifdef __CYGWIN__
>  exit(x);
> #else
>  ExitProcess(x);
> #endif
> .

It is best to avoid Cygwin-specific code.
Use either Linux(POSIX) or Windows specific tests, and only test for Cygwin if
/absolutely/ necessary.


-- 
With best regards,
Andrey Repin
Wednesday, January 26, 2022 17:22:01

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


Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-26 Thread Adam Dinwoodie
On Tue, Jan 25, 2022 at 10:33:52PM +, Buchbinder, Barry (NIH/NIAID) [E] via 
Cygwin wrote:
> On Mon, Jan 24, 2022 at 6:12 PM Bill Stewart wrote:
> >
> >On Mon, Jan 24, 2022 at 3:49 PM Buchbinder, Barry (NIH/NIAID) [E] via Cygwin 
> >wrote:
> >
> >Windows protected your PC
> >> Microsoft Defender SmartScreen prevented an unrecognized app from starting.
> >> Running this app might put your PC at risk.
> >>
> >
> >Not to state the obvious, but this means that the Microsoft antivirus 
> >program prevented it from running.
> >
> >Exclude it.
> 
> I have no control over the antivirus, so cannot exclude it.
> 
> The point was that this wasn't a problem with 2.915, so most likely is the 
> result of some change made in 2.917.
> 
> However, this morning, after a reboot, it seems to work OK.

The difference was entirely that the new setup installer was new.
Microsoft Defender SmartScreen learns what programs are safe by seeing
how many people download and use them, on the basis that things that are
downloaded by lots of people and don't become known as a specific threat
should be fine, whereas something unknown may well be some new malware.

This flag doesn't indicate there's anything about 2.917 that had changed
to worry about, only that it had changed and that you were one of the
first to try to use it.

If you don't have the ability to override the spurious warning, your
only options will be to wait longer before using the new version, so
SmartScreen has a chance to learn it's safe from people who can click
past the warning, or to take it up with whoever manages your systems.
There is nothing the Cygwin project folks could do to help other than
never release new software.

There's a bit more information on the "reputation" checking under "How
Microsoft Defender SmartScreen works when a user tries to run an app" at
https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-smartscreen/microsoft-defender-smartscreen-set-individual-device

(For the sake of explicitness, I am a Microsoft employee these days, but
SmartScreen is nothing to do with my role at Microsoft, and Cygwin is at
best tangential.  I don't have any more knowledge or influence in this
area than any non-employee.)

Adam

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