public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
From: Brian Inglis <Brian.Inglis@SystematicSw.ab.ca>
To: cygwin-apps@cygwin.com
Subject: Re: units issues
Date: Mon, 22 May 2017 20:58:00 -0000	[thread overview]
Message-ID: <5d9a21b5-2c14-c1e8-2c33-6038aef22ace@SystematicSw.ab.ca> (raw)
In-Reply-To: <977d9380-31dc-78de-a260-16689664129d@SystematicSw.ab.ca>

On the cygwin list, Achim Gratz asked:
> Can you please make that configurable by some file in /var/lib/units 
> that will prevent the perpetual postinstall script from even forking
> if the user decides that this should not be updated?

Configuration of units is currently supported only in
/usr/share/units/*.units files which are defaulted by the utility,
specified on the command line, included from one of those, or specified
in ~/.units, and conditions may be specified depending only on either
locale or an environment variable.

The easiest approaches to this would be:
- rename or delete postinstall script which might upset cygcheck or
setup remove
- null /usr/share/units/currency.units, as it is required and produces
an error message if not available, but if it is empty, everything works.

It is not very useful if not up to date (I run the update daily), and if
not up to date, might as well be empty, but some opinions may differ.

In the postinstall script find which ensures updates happen at most daily:
/usr/bin/find /usr/share/units/currency.units -mtime +0 -exec
/usr/bin/units_cur \;
I could add a -size +0 qualifier, which would skip the update if the
file is empty, and avoid creating a config flag file in directory
/var/lib/units/, which is not currently created or used by the package.

I will ask upstream about disabling currency updates by the python
script, as that would be a preferred configurable approach.

In any case, I will raise handling an expired cert in the python update
script upstream, and suggest a configurable override.

Please respond with any advice on how disabling pi updates and expired
certs are or should be dealt with in postinstall scripts or python (I
posted a temporary replacement workaround script and change to the
original on the cygwin list, so the technical workaround is known and
handled).

and Ian Lambert reported:
> In /var/log/setup.log.full I see:
> Error connecting to currency server. <urlopen error [Errno 8] Name or service not known>
> Running /usr/bin/units_cur or /etc/postinstall/zp_units_cur.sh I get
> Error connecting to currency server. HTTP Error 407: Proxy Authentication Required
> I'm behind a proxy requiring username, password, and restrictions on user-agents...

I will raise handling proxies upstream, but once again, any advice is
welcome, including technical approaches that work with Windows proxies
under Cygwin in python3 (I am not a "python guy", and resort to google
and SO, although some of those "suggestions" just don't work, as I found
looking for ways to handle the expired cert).

I posted responses that I'd take the issues upstream, follow up here,
and report back, or provide a package update.

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

  parent reply	other threads:[~2017-05-22 20:58 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-25 22:42 [ITA] units Brian Inglis
2017-04-26  2:25 ` Yaakov Selkowitz
2017-04-26  2:59   ` Brian Inglis
2017-04-26 13:17     ` Jon Turney
2017-04-26 15:51     ` Brian Inglis
2017-04-26 18:30       ` Yaakov Selkowitz
2017-04-26 23:16         ` Brian Inglis
2017-04-26 23:20           ` Brian Inglis
2017-04-27 11:51             ` Jon Turney
2017-04-27 18:37               ` Brian Inglis
2017-04-27 23:31                 ` Brian Inglis
2017-05-22 20:58                 ` Brian Inglis [this message]
2017-05-23 17:28                   ` units issues Achim Gratz
2017-05-23 21:49                     ` Brian Inglis
2017-05-23 23:55                       ` Doug Henderson
2017-05-24  2:37                         ` Brian Inglis
2017-05-24 16:26                           ` Buchbinder, Barry (NIH/NIAID) [E]
2017-05-24 17:34                             ` Brian Inglis
2017-05-24 18:06                             ` Achim Gratz
2017-05-24 18:13                       ` Achim Gratz
2017-05-25  0:16                         ` Brian Inglis
2017-05-25  2:07                           ` Doug Henderson
2017-05-25  3:37                             ` Brian Inglis
2017-04-27 17:28   ` [ITA] units Andrew Schulman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5d9a21b5-2c14-c1e8-2c33-6038aef22ace@SystematicSw.ab.ca \
    --to=brian.inglis@systematicsw.ab.ca \
    --cc=cygwin-apps@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).