From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38036 invoked by alias); 20 Oct 2015 19:18:42 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 38019 invoked by uid 89); 20 Oct 2015 19:18:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 20 Oct 2015 19:18:41 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id B118CA807C9; Tue, 20 Oct 2015 21:18:38 +0200 (CEST) Date: Tue, 20 Oct 2015 19:18:00 -0000 From: Corinna Vinschen To: cygwin-apps@cygwin.com Subject: Re: upset, genini: different version ordering Message-ID: <20151020191838.GA11047@calimero.vinschen.de> Reply-To: cygwin-apps@cygwin.com Mail-Followup-To: cygwin-apps@cygwin.com References: <55AD399D.7020001@dronecode.org.uk> <5617C006.7070908@dronecode.org.uk> <20151019154236.GC18989@calimero.vinschen.de> <87mvvehj3t.fsf@Rainer.invalid> <1445275721.10544.14.camel@cygwin.com> <87a8rehgkg.fsf@Rainer.invalid> <20151020102722.GH5319@calimero.vinschen.de> <562642B2.5030607@dronecode.org.uk> <20151020155048.GI5319@calimero.vinschen.de> <1445360608.12108.35.camel@cygwin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline In-Reply-To: <1445360608.12108.35.camel@cygwin.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-10/txt/msg00047.txt.bz2 --T4sUOijqQbZv57TR Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2463 On Oct 20 12:03, Yaakov Selkowitz wrote: > On Tue, 2015-10-20 at 17:50 +0200, Corinna Vinschen wrote: > > > Adding epoch parsing would be additional work. I'm not sure how much= value > > > that would have since (a) we are effectively limited to 2 package ver= sions, > > > and (b) we can force a given ordering using setup.hint > >=20 > > Yaakov thinks we need epoch. Yaakov, could you briefly outline why we > > should need it? Do we have real-world examples in the distro where we > > could need it? I guess Achim's perl packages are particulary nice > > examples? >=20 > First, let's remember that this isn't just about upset getting prev: and > curr: right, but also about setup knowing when to upgrade by default. > Therefore, simply tweaking setup.hint files is insufficient. >=20 > Besides sorting out our current discrepancies, here is a perfect example > of a use for epoch: >=20 > https://cygwin.com/ml/cygwin-announce/2015-07/msg00015.html > https://cygwin.com/ml/cygwin-announce/2015-07/msg00050.html >=20 > In short, xdelta was updated from 1.x to 3.x, then it was realized that > both were needed, and so xdelta was reverted to 1.x and xdelta3 was > created. Instead of saying "oh btw you need to revert xdelta to 1.x > yourself" (which is all we could do currently), the solution would be to > bump epoch on xdelta-1.x, which would force it to be considered newer > than the short-lived xdelta-3.x by both upset and setup. >=20 > As for implementation, the idea would be to use a special character in > the version number of tarballs as so (pseudocode): >=20 > char epoch[N] =3D {}, *sep; > if ((sep =3D strchr(version, SEPARATOR))) { > strncpy(epoch, version, sep - version); > version =3D sep + 1; > } else > epoch[0] =3D "0"; >=20 > Then compare epochs first, then version and release to determine which > is newer. As for the separator, in RPM it is ':' but as we will need to > have this character in the tarball name and Windows doesn't allow that > in filenames, we will need to pick something else. SEPARATOR=3D@ ? > On the cygport side, this would be triggered by defining EPOCH in > the .cygport file, *not* by using this character in VERSION. And adding an extra test for the epoch doesn't seem overly tricky in setup. Upset, well, Jon? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --T4sUOijqQbZv57TR Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWJpOOAAoJEPU2Bp2uRE+gAxsQAJc4w+gjuL4ZZFbx/m6eAqOC pxWOE3kgxNXobahBG4SwLfwzu2aIm7YrjPFLf/hEWM3FC3xmKHt+/TtntYYqPy6b v6gt/QERcWD5yIqCdODVPo+HR210gd5CFu7dkgQuZOHRNigdhE23iRZE/aU1s2UO wGhdXUT99kwp403RQIJSyVhJ+gNmEMW18VkddRgYwHkBgpfTEKrfxBvOIiHo7fe/ rc3P1rEqEr8Dfb7DoJ5UxVPteuW2frJ/VpBGVJUJwawjfKAT8Uq3V4RKda7S9tNn TyPToLqnT17EfokBAp7VvUXfc8Z1xq+IQ+710RHGpi5r2A+G1FOcgu94bqU2pVno anuQ6/enUALpyFTmtHmgaWgnCPzTu26ILRxUaVOoao3Aguup/ztmjrufgVHqkAyr iuC05GqNittWM+eKglHtEAzgBaxlFSQqSFJl7XOBmfWWnNJneI5UHDF2/A1tFVme rvbiuEpdhpP3xgqweovfxl59TFsgvG7ou3PrQgf3uETJ51P7J9UxRhbX05N945we TqJC6P54Ji8Uj+zU7LT/nIaJ3i00iw5xnn1u1RYSIq2VgWJhzrzmssepEGJF4eSK 7KnIMuiLXujXOmx4daEu4TW8B7khjPNDamjbTjr5Bso1rVfF2RZYWv4hBFRHOZ87 YnYENhDAgVDcqreDGDi2 =a1Mz -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--