delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/01/31/15:46:28

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D0D3838582B8
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1706733985;
bh=fUTy+NdAwGYM47PfgEYDw+WGSPDiKF0vFGRNPXLApJY=;
h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=T+WnOc6AlUH3WsbuHnWAuukqqTMUesPJYsnmEDoIquKIUmCZtXqCfAqGrqyEPwnZn
wswx09nO45ToLGhtGgvXpIwZ17qCEVd2ZXdiuzQoOxYoSDI+nPjOrt//jkYXYZRHBP
O2AZu92H7OD3N2iytfV/G59W9z/m56NiMYGIa/dw=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 20A303858C78
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 20A303858C78
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706733925; cv=none;
b=aQ30ZD7QlUm4ZuiwKhnNxtPfHBlNpJpyWCDAVxmpLgBckEuQO3ZQ8haIeSR1NgtZqJ9gmMwNRSB0pxVcu2mDku/lDQ3HA8U10Gbe/1z+0WD2ZsWAXFAZXEBNdITCCtR14E8lVBmRHHozNLpWjPcIThLJPYzPkFZPOWJFawqMBdI=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1706733925; c=relaxed/simple;
bh=nVoY9jTNhTRw7g3OIFN8UtykVqwAo1uTtcKbZJrkOHA=;
h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From;
b=gCXBO4AXt/8h/Q79cKLnyjeJav3KEON/Un1F0/vawWf8QEiexz8PYOuUU6BvT6VM5Nbx47GvCRnGnr7X3XqOXUQW4KDZ4XrHZtLI9DPB5DKnYw4m4hJyMQbmvAaICqR2s2bf2YiuKBahrlc39JE702d0CUKuKAxWsYgtBFNXFgg=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Authority-Analysis: v=2.4 cv=P8GZhTAu c=1 sm=1 tr=0 ts=65bab162
a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17
a=IkcTkHD0fZMA:10 a=HiWkEfo4AAAA:8 a=vTr9H3xdAAAA:8 a=2MB4vAxnMitXTz6RU1QA:9
a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=_QplDg0m8TGAdENQf2wZ:22
a=7PCjnrUJ-F5voXmZD6jJ:22
Message-ID: <2c43c0cd-c52d-4363-ad6e-140d3e174442@Shaw.ca>
Date: Wed, 31 Jan 2024 13:45:21 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: ncurses version (was: Tmux crashes on copy)
To: Cygwin Apps <cygwin-apps AT cygwin DOT com>
References: <CADr_F644gWjSLKTFMLp=7ajFu0VXSwZr=Xq+cjuGYA+wbGdrYw AT mail DOT gmail DOT com>
<20240118 DOT 163759 DOT 544696899534989142 DOT yasu AT utahime DOT org>
<20240118172431 DOT 8308e15fc705d96fc39410d7 AT nifty DOT ne DOT jp>
<35eb821c-5270-406c-985f-b6107b43be9a AT SystematicSW DOT ab DOT ca>
<2016e573-7282-4fa3-bee4-e54d36ac0c2d AT SystematicSW DOT ab DOT ca>
<a910f721-6047-4162-a86b-61d4ec8f93ca AT dronecode DOT org DOT uk> <878r45wgjw.fsf@>
Organization: Inglis
In-Reply-To: <878r45wgjw.fsf@>
X-CMAE-Envelope: MS4xfBF9UjKVmp6c6Kn9q+qNlRMj8rKMjht1Biy1JquC9/txnTpnZhGNBdmRv/Gzf5pFFhaLbf+fxwoOujlCuegGsmNhEuPayRp+FtXr8dpClj8tv+aEroKv
CJ3BQ8stK2KPWtRTnoquU2o1RS3hMT8uU+3teHBEdKZRiOAXSWJ1h/ASFyRG3Bj/gpfx8dGMFuenLVbuKAhiMH+6x0iBUQ+jPEYPA5JGaYJPfZbAnyGVF/Hw
X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,
SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Cygwin Apps <cygwin-apps AT cygwin DOT com>
Cc: Brian Inglis <Brian DOT Inglis AT Shaw DOT ca>, cygwin AT cygwin DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 40VKkSuD010550

On 2024-01-31 10:36, ASSI via Cygwin wrote:
> Jon Turney via Cygwin writes:
>> If upstream really is making multiple releases called '6.4', which
>> we're supposed to distinguish by some other means, then there aren't
>> really any good answers...

> There's only one official 6.4 release, but just about everyone packages
> one of the roughly weekly snapshots inbetween releases (depending on
> where you are looking they are also called beta versions), which are
> named 6.4-yyyymmdd upstream.  We can't have a "-" in the version number,
> hence the suggestion to replace it with a "+".

[moving discussion to -apps]

Upstream developer is Thomas Dickey at invisible-island.net so no git.

My only concern is if 6.4+20240203-1 !> 6.4-20240120 as strvercmp test beds 
disagree, presumably about the effect of the delimiter, possibly because the + 
may be treated similarly to a prefix for an RC preceding the 6.4 release?

For guidance I have looked at:

	https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/

which states that ~ prefixes pre-stable "snapshot" releases and ^ prefixes 
post-stable "snapshot" releases where . or nothing prefixes upstream bugfix or 
patch level releases, so perhaps we should just use version suffix .yyyymmdd?

I have downloaded and locally installed Fedora rpmdevtools package but Cygwin 
python rpm module seems to lack labelCompare():

$ rpmdev-vercmp 6.4+20240203-1 6.4-20240120
/usr/local/lib/python3.9/site-packages/rpm.py:15: UserWarning: The RPM Python 
bindings are not currently available via PyPI.

Please install them with your distro package manager (typically called
'python2-rpm' or 'python3-rpm'), and ensure that any virtual environments
needing the API are configured to be able to see the system site packages
directory.

   warnings.warn(warning_msg)
Traceback (most recent call last):
   File "/home/BWI/bin/rpmdev-vercmp", line 121, in <module>
     main()
   File "/home/BWI/bin/rpmdev-vercmp", line 108, in main
     rc = rpm.labelCompare((e1 or None, v1 or None, r1 or None),
AttributeError: module 'rpm' has no attribute 'labelCompare'

I also pip3 installed SAS SW rpm_vercmp which seems okay:

$ python3 -c 'import 
rpm_vercmp;print(rpm_vercmp.vercmp("6.4+20240203-1","6.4-20240120"))
'
1

and wrote a wrapper for shell script functions I found which agrees:

$ ~/src/fedora/rpm-ver.bash 6.4+20240203-1 6.4-20240120
0 6 4 20240203 1
0 6 4 20240120
6.4+20240203-1   6.4-20240120
0 6 4 20240203 1         0 6 4 20240120
sizes 5 4 max 5
20240203 != 20240120
8 ? 8
1

How are Cygwin pre-stable RC releases defined differently from post-stable 
snapshot releases and upstream patch releases?

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

- Raw text -


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