Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
rankwidth


Commits:
013a3792 by Antonio Rojas at 2025-09-20T10:22:20+02:00
upgpkg: 0.9-4: igraph 1.0 rebuild

- - - - -


5 changed files:

- .SRCINFO
- PKGBUILD
- REUSE.toml
- igraph-0.10.patch
- + igraph-1.0.patch


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = rankwidth
        pkgdesc = A program that calculates rank-width and rank-decompositions
        pkgver = 0.9
-       pkgrel = 3
+       pkgrel = 4
        url = https://sourceforge.net/projects/rankwidth/
        arch = x86_64
        license = GPL-2.0-or-later
@@ -9,7 +9,9 @@ pkgbase = rankwidth
        depends = glibc
        source = 
https://master.dl.sourceforge.net/project/rankwidth/rw-0.9.tar.gz
        source = igraph-0.10.patch
+       source = igraph-1.0.patch
        sha256sums = 
c1e03506fe25cdfcb428c051fc56b2d2affb5b06fba3f2ce756631466befb441
-       sha256sums = 
328d8ee4aeac26cbd104c02e156cf511aeb736d1a1a6903071c055714bb9c4c4
+       sha256sums = 
1eee3993779b4ed60d9069652c03e6ec90738e9e8ee1ed8e0916d513c97746fb
+       sha256sums = 
0dddbd2fc40a6fd16304d96171df689cd7f35951336156cee717b47eed0f0c2b
 
 pkgname = rankwidth


=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
 
 pkgname=rankwidth
 pkgver=0.9
-pkgrel=3
+pkgrel=4
 pkgdesc='A program that calculates rank-width and rank-decompositions'
 arch=(x86_64)
 url='https://sourceforge.net/projects/rankwidth/'
@@ -11,12 +11,15 @@ depends=(igraph
          glibc)
 makedepends=()
 source=(https://master.dl.sourceforge.net/project/rankwidth/rw-$pkgver.tar.gz
-        igraph-0.10.patch)
+        igraph-0.10.patch
+        igraph-1.0.patch)
 sha256sums=('c1e03506fe25cdfcb428c051fc56b2d2affb5b06fba3f2ce756631466befb441'
-            '328d8ee4aeac26cbd104c02e156cf511aeb736d1a1a6903071c055714bb9c4c4')
+            '1eee3993779b4ed60d9069652c03e6ec90738e9e8ee1ed8e0916d513c97746fb'
+            '0dddbd2fc40a6fd16304d96171df689cd7f35951336156cee717b47eed0f0c2b')
 
 prepare() {
   patch -d rw-$pkgver -p1 < igraph-0.10.patch # Fix build with igraph 0.10
+  patch -d rw-$pkgver -p1 < igraph-1.0.patch # Fix build with igraph 1.0
 }
 
 build() {


=====================================
REUSE.toml
=====================================
@@ -24,6 +24,7 @@ SPDX-License-Identifier = "0BSD"
 [[annotations]]
 path = [
     "igraph-0.10.patch",
+    "igraph-1.0.patch",
 ]
 SPDX-FileCopyrightText = "rankwidth contributors"
 SPDX-License-Identifier = "GPL-2.0-or-later"


=====================================
igraph-0.10.patch
=====================================
@@ -6,7 +6,7 @@ diff -ru rw-0.9.orig/simplerw.c rw-0.9/simplerw.c
                return(-1);
        }
 -      igraph_get_adjacency(&igraph, &imatrix, IGRAPH_GET_ADJACENCY_BOTH, 0);
-+      igraph_get_adjacency(&igraph, &imatrix, IGRAPH_GET_ADJACENCY_BOTH, 0, 
0);
++      igraph_get_adjacency(&igraph, &imatrix, IGRAPH_GET_ADJACENCY_BOTH, 0, 
IGRAPH_LOOPS_ONCE);
        igraph_destroy(&igraph);
        if(igraph_matrix_nrow(&imatrix) > MAX_VERTICES)
        {


=====================================
igraph-1.0.patch
=====================================
@@ -0,0 +1,12 @@
+diff -ru rw-0.9.orig/simplerw.c rw-0.9/simplerw.c
+--- rw-0.9.orig/simplerw.c     2025-09-20 10:18:24.521575587 +0200
++++ rw-0.9/simplerw.c  2025-09-20 10:20:07.399882281 +0200
+@@ -121,7 +121,7 @@
+       }
+ 
+       // Check for undirectedness
+-      if(igraph_is_directed(&igraph) || igraph_is_simple(&igraph, &isimple) 
|| !isimple)
++      if(igraph_is_directed(&igraph) || igraph_is_simple(&igraph, &isimple, 
IGRAPH_DIRECTED) || !isimple)
+       {
+               printf("Input is not a simple, undirected graph from file 
%s.\n", filename);
+               igraph_destroy(&igraph);



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/rankwidth/-/commit/013a379248dd8fbc6aa88a2c80ba017733f0ce25

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/rankwidth/-/commit/013a379248dd8fbc6aa88a2c80ba017733f0ce25
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to