Skip to content

Commit b0da5aa

Browse files
committed
graphviz: Avoid lock_t.
1 parent 396e937 commit b0da5aa

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

graphics/graphviz/distinfo

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
$NetBSD: distinfo,v 1.88 2024/11/18 13:59:28 micha Exp $
1+
$NetBSD: distinfo,v 1.89 2024/12/02 16:02:30 jperkin Exp $
22

33
BLAKE2s (graphviz-12.2.0.tar.gz) = e7ab7167a5af792de92dd33048a4a2b8b366a6850b4a7a7ce831151b31e8af16
44
SHA512 (graphviz-12.2.0.tar.gz) = d7c73aca3ccbce0327f48c58fa54b76be84140fc8ab99b91eb595b917f1ff89172aa868705df2d1bd50dc75328be824455cd9f6cf079dbb1269c40af9966d418
55
Size (graphviz-12.2.0.tar.gz) = 26813735 bytes
66
SHA1 (patch-config_config__perl.pl) = 430acb7d7ee3e149de0af9832c5a29602884f83e
77
SHA1 (patch-configure.ac) = dcb9fd2822d3eb5dddcda5a55746d51114f92d06
88
SHA1 (patch-lib_gvc_Makefile.am) = 8a25c16a31923fc42138773f308f3b3fc5ee662b
9+
SHA1 (patch-lib_gvpr_actions.c) = d82023aa576ed4404e3a123ee063d58228ec2ea6
10+
SHA1 (patch-lib_gvpr_compile.h) = 5cf479c021783f74fc7e886faf1c0cf5b8e721de
911
SHA1 (patch-plugin_gs_gvloadimage__gs.c) = 982ac1db252e3224633069db956c5dc803cd5ea9
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
$NetBSD: patch-lib_gvpr_actions.c,v 1.1 2024/12/02 16:02:30 jperkin Exp $
2+
3+
Avoid lock_t.
4+
5+
--- lib/gvpr/actions.c.orig 2024-12-02 15:59:23.387253475 +0000
6+
+++ lib/gvpr/actions.c
7+
@@ -502,7 +502,7 @@ int lockGraph(Agraph_t *g, int v) {
8+
if (data->lock.zombie)
9+
agclose(g);
10+
else
11+
- data->lock = (lock_t){0};
12+
+ data->lock = (gvprlock_t){0};
13+
}
14+
return oldv;
15+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
$NetBSD: patch-lib_gvpr_compile.h,v 1.1 2024/12/02 16:02:30 jperkin Exp $
2+
3+
Avoid lock_t.
4+
5+
--- lib/gvpr/compile.h.orig 2024-12-02 15:58:56.601986844 +0000
6+
+++ lib/gvpr/compile.h
7+
@@ -38,11 +38,11 @@ extern "C" {
8+
typedef struct {
9+
bool locked: 1; ///< is the lock currently taken?
10+
bool zombie: 1; ///< was a deletion request recorded while locked?
11+
-} lock_t;
12+
+} gvprlock_t;
13+
14+
typedef struct {
15+
Agrec_t h;
16+
- lock_t lock;
17+
+ gvprlock_t lock;
18+
} gval_t;
19+
20+
typedef struct {

0 commit comments

Comments
 (0)