This is the mail archive of the
mailing list for the Cygwin project.
Re: units issues
- From: Brian Inglis <Brian dot Inglis at SystematicSw dot ab dot ca>
- To: cygwin-apps at cygwin dot com
- Date: Mon, 22 May 2017 14:58:24 -0600
- Subject: Re: units issues
- Authentication-results: sourceware.org; auth=none
- References: <c2742327-a4d3-6e3c-88ad-5cf95af89b8a@SystematicSw.ab.ca> <email@example.com> <e65a0c0b-737e-2d10-b5c9-ef1ee5d6f99d@SystematicSw.ab.ca> <7f2814c4-518a-c097-de05-f4c694dbf362@SystematicSw.ab.ca> <firstname.lastname@example.org> <b2d200f9-2401-50a2-ecc3-567fcad95923@SystematicSw.ab.ca> <f16d69d5-9b9b-0089-b73a-2b0abdc0ce3d@SystematicSw.ab.ca> <email@example.com> <977d9380-31dc-78de-a260-16689664129d@SystematicSw.ab.ca>
- Reply-to: Brian dot Inglis at SystematicSw dot ab dot 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
- 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
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
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