Re: Automatic Cygwin installation for CI ?

2023-12-15 Thread Thomas Wolff via Cygwin



Am 15.12.2023 um 18:07 schrieb Mainz, Roland via Cygwin:

Hi!



Is there any documentation how Cygwin 3.5.0 can be automatically (without GUI 
and user intervention, e.g. via *.bat script) be installed as part of a CI 
(Continuous integration) build environment ?



Bye,
Roland
Appveyor CI provides a cygwin environment. You could try to find how 
they do it.


--
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: Automatic Cygwin installation for CI ?

2023-12-15 Thread Marco Atzeri via Cygwin

On 15/12/2023 18:07, Mainz, Roland via Cygwin wrote:


Hi!



Is there any documentation how Cygwin 3.5.0 can be automatically (without GUI 
and user intervention, e.g. via *.bat script) be installed as part of a CI 
(Continuous integration) build environment ?



Bye,
Roland



the source code of the Cygwin build server is here

   https://cygwin.com/cgit/cygwin-apps/scallywag/

It builds cygwin packages and eventually also install them,
It creates the proper development environment installing the
needed package for every instance

log of the outcome are available at

 https://cygwin.com/cgi-bin2/jobs.cgi

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: How efficient is 'sleep'?

2023-12-15 Thread Eliot Moss via Cygwin

On 12/15/2023 4:55 PM, Backwoods BC via Cygwin wrote:

I have quite a few "service-like" scripts that I put into the
background and then have them wake up on a regular basis to do
something. I use 'sleep' for the timing of the wakeup periods.

My question is: How efficient is 'sleep'? I know of other OSes that
just set a timer flag and the process isn't allocated any CPU time
until the timer expires.

I know that creating a service or even using Task Scheduler are more
"proper" ways of doing this, but they are also much more work and
would require a significant learning curve as my background is
embedded systems, not Windows. I know that my lazy way probably has a
penalty, but just how bad is it?

Thanks


You could strace on it to see what system calls it makes, but I am
pretty sure it sets up a timer interrupt and then waits for an event.
Very efficient.  It does not, for example, continually read the clock
until the requested amount of time has passed.

The more interesting question is this.  If you coded something like:

while true; do x; sleep 60; done

are you ok with x starting more than 60 seconds apart, because the time
to execute x itself, to fork and wait for the processes, etc., gets added
into each iteration?  If you prefer the invocations of x start at the start
of each minute, then you need to calculate, on each iteration, how long to
sleep.  There's loads of info on this stackoverflow page:

https://stackoverflow.com/questions/645992/sleep-until-a-specific-time-date

Cheers - 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: How efficient is 'sleep'?

2023-12-15 Thread Brian Inglis via Cygwin

On 2023-12-15 14:55, Backwoods BC via Cygwin wrote:

I have quite a few "service-like" scripts that I put into the
background and then have them wake up on a regular basis to do
something. I use 'sleep' for the timing of the wakeup periods.

My question is: How efficient is 'sleep'? I know of other OSes that
just set a timer flag and the process isn't allocated any CPU time
until the timer expires.

I know that creating a service or even using Task Scheduler are more
"proper" ways of doing this, but they are also much more work and
would require a significant learning curve as my background is
embedded systems, not Windows. I know that my lazy way probably has a
penalty, but just how bad is it?


Install Cygwin packages cron plus cygrunsrv to run daemons as services.
Setup cron service by running /usr/sbin/cron-config as elevated admin.
Then use crontab to schedule scripts every so often or at specific times or 
days.
Install package and read man pages or see the current package repo:

https://github.com/vixie/cron/blob/master/crontab.5

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

La perfection est atteinte   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut
-- Antoine de Saint-Exupéry


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


How efficient is 'sleep'?

2023-12-15 Thread Backwoods BC via Cygwin
I have quite a few "service-like" scripts that I put into the
background and then have them wake up on a regular basis to do
something. I use 'sleep' for the timing of the wakeup periods.

My question is: How efficient is 'sleep'? I know of other OSes that
just set a timer flag and the process isn't allocated any CPU time
until the timer expires.

I know that creating a service or even using Task Scheduler are more
"proper" ways of doing this, but they are also much more work and
would require a significant learning curve as my background is
embedded systems, not Windows. I know that my lazy way probably has a
penalty, but just how bad is it?

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


Re: Automatic Cygwin installation for CI ?

2023-12-15 Thread Bill Stewart via Cygwin
On Fri, Dec 15, 2023 at 10:07 AM Mainz, Roland  wrote:

Is there any documentation how Cygwin 3.5.0 can be automatically (without
> GUI and user intervention, e.g. via *.bat script) be installed as part of a
> CI (Continuous integration) build environment ?
>

Have you looked at cygwin.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


Re: [Attn. MAINTAINERS] Heads up: Perl 5.36.1 is imminent

2023-12-15 Thread Jon Turney via Cygwin-apps

On 23/10/2023 19:53, Jon Turney via Cygwin-apps wrote:

On 02/05/2023 21:34, Jon Turney via Cygwin-apps wrote:

On 01/05/2023 21:00, Achim Gratz via Cygwin-apps wrote:


I'm going to release Perl 5.36.1 to Cygwin in a few days.  I've skipped
5.34 in order to update only every second year (which I've done since
the 5.22 release).  I haven't seen any trouble in my own Perl
distribution packages from the update even though there are lots of
them that haven't been updated since at least 5.22.  So I hope it will
be smooth sailing for anything else depending on Perl also.

Any maintainer having packages that depend on perl5_032 should
re-release or upgrade these soon-ish after the Perl update is available,
as otherwise users are either blocked from upgrading Perl or will have
to uninstall the affected packages.  The rebuilt packages need to have a
dependency on perl5_036, which cygport provides automatically.


There's an updated report available [1], which should list the 
affected packages.


[1] https://cygwin.com/packages/reports/perl_rebuilds.html



Hi Jari,

Is it possible to get a rebuild/update of pristine-tar and sendxmpp for 
perl5.36?


Ping?

Please indicate if these packages will be updated, or should be removed.



Automatic Cygwin installation for CI ?

2023-12-15 Thread Mainz, Roland via Cygwin


Hi!



Is there any documentation how Cygwin 3.5.0 can be automatically (without GUI 
and user intervention, e.g. via *.bat script) be installed as part of a CI 
(Continuous integration) build environment ?



Bye,
Roland


i. A. Roland Mainz
Entwickler Steuerungssoftware
TEE

ROVEMA GmbH

Industriestr. 1, 35463
Fernwald, Germany
 T  +49 641 409 528
 @ roland.ma...@rovema.de
 
www.rovema.com



ROVEMA GmbH
Industriestrasse 1, 35463 Fernwald, Germany
Geschäftsführer:
Christoph Gusenleitner
Dr. Dirk Panhans
Handelsregister-Eintrag/Commercial Register: Amtsgericht Gießen, HRB 8551
USt.-Ident./VAT ID No.: DE 301 430 123



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