GNU bug report logs - #70087
[PATCH 1/4] gnu: gecode: Update to development version 6.3.0.

Previous Next

Package: guix-patches;

Reported by: Herman Rimm <herman <at> rimm.ee>

Date: Sat, 30 Mar 2024 11:41:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Herman Rimm <herman <at> rimm.ee>
To: Andreas Enge <andreas <at> enge.fr>
Cc: Eric Bavier <bavier <at> posteo.net>, Sharlatan Hellseher <sharlatanus <at> gmail.com>, 70087 <at> debbugs.gnu.org
Subject: [bug#70087] [PATCH 1/4] gnu: gecode: Update to development version 6.3.0.
Date: Tue, 14 May 2024 09:31:47 +0200
Hello,

On Sun, May 12, 2024 at 09:08:55PM +0200, Andreas Enge wrote:
> Is a newer package really needed? Why this commit from 2020, and not another
> one from 2024? Their git repository is, let us say, unusual: The master
> branch has not seen any commit after the 6.2.0 release except for a license
> change. Work seems to be done in the origin/release/6.3.0 branch.

A new version is required because for e.g. [1] the current gecode gives:

  $ minizinc --solver gecode magic_square.mzn
  /gnu/store/nxk99lxxlsyjg1wy9xjcsyhx1904qy1h-minizinc-2.5.5/share/minizinc/std/nvalue_fn.mzn:7.57-67:
  MiniZinc: type error: no function or predicate with this signature found: `nvalue(var int,array[$_] of var int)'
  Cannot use the following functions or predicates with the same identifier:
  function var int : nvalue(array[$_] of var int: x);
      (requires 1 argument, but 2 given)
  predicate nvalue(var int: n,array[int] of var int: x);
      (argument 2 expects type array[int] of var int, but type array[$_] of var int given)
  
While the development version returns:

  $ minizinc --solver gecode magic_square.mzn
  Total: 15
  
   2  7  6
   9  5  1
   4  3  8
  ----------

I don't remember why I specifically picked that commit, I could try
packaging at a more recent commit.

> in any case it could not be called 6.3.0, since there is no such release.

Can I use the 'git-version' procedure in the updated package and create
a 'gecode/pinned' package which inherits from it for the 6.2.0 release?

Cheers,
Herman

[1]: http://csplib.github.io/csplib-PR-builds/PR-18/Problems/prob019/models/magic_square.mzn.html




This bug report was last modified 1 year and 40 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.