Index | Thread | Search

From:
Theo Buehler <tb@openbsd.org>
Subject:
Re: Unbreak borgbackup/2.0 build
To:
Bjorn Ketelaars <bket@openbsd.org>
Cc:
ports@openbsd.org
Date:
Wed, 9 Oct 2024 14:38:22 +0200

Download raw body.

Thread
On Wed, Oct 09, 2024 at 02:29:58PM +0200, Bjorn Ketelaars wrote:
> tb@ pointed out that the recent update of borgbackup/2.0
> (2.0.0b9->2.0.0b12) causes pkg tools to think the version went
> backwards. Issue is caused by me thinking that 'b' is supported as
> special version string. As a result from lexicographically sorting
> 2.0.0b9 is seen as newer than 2.0.0b12.
> 
> Solution has also been pointed out by tb@: Fix this by setting PKGNAME
> to include the supported 'beta' string and setting EPOCH.
>
> Tested by upgrading from 2.0.0b9 and 2.0.0b12.
> 
> OK?

As annoying as it is, I don't think there's a better way of handling
this. I wonder if this is a trap that should be flagged by portcheck
or even the package tools proper.

Assuming borgbackup 2.0.0 is ever released, EPOCH would have been needed
at that point in any case.

ok tb