delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/23/09:08:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <003d01c30999$69884390$78d96f83@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: "Warren Young" <warren AT etr-usa DOT com>, "Cygwin-L" <cygwin AT cygwin DOT com>
References: <000201c30915$dcf96180$5c16989e AT oemcomputer> <3EA688E7 DOT 2030607 AT etr-usa DOT com>
Subject: Re: Cygwin patch numbers
Date: Wed, 23 Apr 2003 14:08:19 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Warren Young wrote:
> Peter S Tillier wrote:
>>
>> However when gawk --version is executed the version number only displays
>> as 3.1.2 (the GNU awk version/patch number).  Would it be possible for
>> the Cygwin patch number (the -2 above) to be included in the version
>> number for each tool/package please?
>
> Even assuming the simplest case where there's just a single file
> containing the displayed version number, it would still be a pain to
> keep the displayed package update level part in synch with in the
> package's file name.  Changing that version number usually requires
> rebuilding all of the binaries in the package, but repackaging a program
> is often done for reasons that don't in and of themselves require
> rebuilding everything.  For example, maintainers sometimes forget to
> include a file in the package.  Should they have to rebuild their whole
> package just to bump the package update level?

RPM forces this, doesn't it?

> What I'd rather see is a move to a packaging scheme like RPM that keeps
> a database of files that belong to packages:
>
> $ rpm -qf `which gawk`
> gawk-3.1.2-2
> $

It's slow, and only gets the package name, but this may help:

zgrep -F `which gawk | sed -e s,^/,,` /etc/setup/*.lst.gz \
| sed -e 's,^/etc/setup/\(.*\)\.lst\.gz:.*$,\1,'

You could conceivably put that in a script and feed the result to cygcheck
to get the full version info.


Max.


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

- Raw text -


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