delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/03/24/17:10:11

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:reply-to:to:message-id
:subject:mime-version:content-type:content-transfer-encoding
:references; q=dns; s=default; b=lpfV+ODLbwfD092+oM++sOmnw+luUmL
r5NegIqot4aY2aGDRMJJrWLuw9UqbbO5Dx/g4xl3VzqAomxIpy0FOnQ8xkF/Jrv7
HwBvz046gMh6KXvEktKQFz13Lgib2yyMCxONwz3Pu4kB5hCRcwHNIopCUrBPZLef
0wysBCR7l+70=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:reply-to:to:message-id
:subject:mime-version:content-type:content-transfer-encoding
:references; s=default; bh=U1ID4ie0SI2dVtpWRe6iZBTT004=; b=E5vqC
rCL5DPVshv3QDzjXe8dED/Uh1imA75GwwLEqBWD0J1ODs5Sqkg0p22jy1ve4tKjf
L2lZTHSdsagDq57FlL2UOMGGjodg2zIPFOr1z7l+45lHNdOU92cOiyh8y9xVQI/R
Y23k+ZOJQ8Q6pBJT6mesfUgOheURrlKb6QgbBs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.3 required=5.0 tests=AWL,BAYES_20,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,FREEMAIL_REPLYTO_END_DIGIT,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=no version=3.3.2 spammy=networking, 5.6, converter, prices
X-HELO: nm26-vm4.bullet.mail.ne1.yahoo.com
Date: Fri, 24 Mar 2017 21:09:46 +0000 (UTC)
From: "Ian Lambert via cygwin" <cygwin AT cygwin DOT com>
Reply-To: Ian Lambert <ian DOT lambert_42 AT yahoo DOT com>
Reply-To: Ian Lambert <ian DOT lambert_42 AT yahoo DOT com>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-ID: <1925262808.2517393.1490389786483@mail.yahoo.com>
Subject: inetutils-server, OpenSP and units install glitches and fixes
MIME-Version: 1.0
References: <1925262808 DOT 2517393 DOT 1490389786483 DOT ref AT mail DOT yahoo DOT com>
X-IsSubscribed: yes

Running setup updates and installs in mirror-mode, I had 3 problems. The first is "fixed." The 2nd is fixed, with a question. The 3rd is still a puzzle.

Setup message:

Package: _/Unknown package
	inetutils-server.sh exit code 1
	OpenSP.sh exit code 127

/var/log/setup.log.full excerpts:


2017/03/24 09:48:43 running: E:\cygwin64-3\bin\bash.exe --norc --noprofile "/etc/postinstall/inetutils-server.sh"
*** Warning: The owner and the Administrators need
*** Warning: to have .w. permission to /var/run.
*** Warning: Here are the current permissions and ACLS:
*** Warning:     drwxr-xr-x 1 myuser Domain Users 0 Mar 14 17:48 /var/run
*** Warning:     # file: /var/run
*** Warning:     # owner: myuser
*** Warning:     # group: Domain Users
*** Warning:     user::rwx
*** Warning:     group::r-x
*** Warning:     other:r-x
*** Warning:     
*** Warning: Please change the user and/or group ownership, 
*** Warning: permissions, or ACLs of /var/run.
...

*** ERROR: Problem with /var/run directory. Exiting.
2017/03/24 09:49:28 abnormal exit: exit code=1

=============

(1) "Fix:" Finally realized ftp, talk, telnet or uucp aren't needed, and uninstalled inetutils-server and inetutils. "Common networking clients and servers" sounded necessary, but apparently not. :D

=============

(2)

2017/03/24 09:49:28 running: E:\cygwin64-3\bin\bash.exe --norc --noprofile "/etc/postinstall/OpenSP.sh"
/etc/postinstall/OpenSP.sh: line 1: /usr/bin/install-catalog: No such file or directory
2017/03/24 09:49:28 abnormal exit: exit code=127


Fix: installed sgml-common (containing install-catalog). After the above error, it was not yet installed and not pending. Then installed OpenSP. It was also not yet installed, and not pending.

Question: These were obviously needed for each other, and needed by other packages, so why didn't the first install work, and why did they not show up as pending the next time?

=============

(3) "units" converter sounded useful, but install failed with:


2017/03/24 09:51:44 running: E:\cygwin64-3\bin\bash.exe --norc --noprofile "/etc/postinstall/zp_units_cur.sh"
Error connecting to currency server. <urlopen error [Errno 8] Name or service not known>


So, this is trying to do:

/etc/postinstall
$ cat zp_units_cur.sh 
/usr/bin/find /usr/share/units/currency.units -mtime +0 -exec /usr/bin/units_cur \;

and units_cur is a python3 script trying to do:

$ grep http /usr/bin/units_cur
  currencies = ET.parse(urllib.request.urlopen('http://rss.timegenie.com/forex.xml')).findall('data')
outstr += '\n\n# Precious metals prices from http://services.packetizer.com/spotprices/\n\n'
  spotprices = ET.parse(urllib.request.urlopen('http://services.packetizer.com/spotprices/?f=xml'))


And of course this fails behind my proxy, because with --norc and --noprofile, setup/bash doesn't have the proxy info'.

Questions: Is it kosher for security for an installing package like this to obtain something from the internet like this, and if so, how can I give it the proxy info (other than running it with rc and profile)?


On a related note, using not ancient Red Hat 5.6 where the mirror is stored, tar won't expand the Cygwin packages?

$ tar -xvf units-2.13-1.tar.xz 

tar: This does not look like a tar archive
tar: Skipping to next header
tar: Archive contains obsolescent base-64 headers
tar: Read 9640 bytes from units-2.13-1.tar.xz
tar: Error exit delayed from previous errors

$ tar --version
tar (GNU tar) 1.15.1


but tar Packaged by Cygwin (1.29-1) will.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019