tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
xcircuit: fix build with gcc 14
Sigmanificient
8 months ago
c06a4060
190ee55c
+29
2 changed files
expand all
collapse all
unified
split
pkgs
by-name
xc
xcircuit
declare-missing-prototype.patch
package.nix
+24
pkgs/by-name/xc/xcircuit/declare-missing-prototype.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
From 323c4c437b0eb027ac5acbd2d0c5b6d62a38befb Mon Sep 17 00:00:00 2001
2
+
From: Florian Weimer <fweimer@redhat.com>
3
+
Date: Tue, 11 Apr 2023 09:03:09 +0200
4
+
Subject: [PATCH] Declare UDrawXAt in prototypes.h
5
+
6
+
This avoids an implicit function declaration in functions.c for
7
+
HAVE_CAIRO. Future compilers will not accept such implicit function
8
+
declarations by default, leading to a build failure.
9
+
---
10
+
prototypes.h | 1 +
11
+
1 file changed, 1 insertion(+)
12
+
13
+
diff --git a/prototypes.h b/prototypes.h
14
+
index d577c854c48eddf1b9d086294930c714d69b7af5..5ec4b272722fd658253b70a3fe211c65881075a5 100644
15
+
--- a/prototypes.h
16
+
+++ b/prototypes.h
17
+
@@ -431,6 +431,7 @@ extern void UDrawSimpleLine(XPoint *, XPoint *);
18
+
extern void UDrawLine(XPoint *, XPoint *);
19
+
extern void UDrawCircle(XPoint *, u_char);
20
+
extern void UDrawX(labelptr);
21
+
+extern void UDrawXAt(XPoint *);
22
+
extern void UDrawXDown(labelptr);
23
+
extern int toplevelwidth(objinstptr, short *);
24
+
extern int toplevelheight(objinstptr, short *);
+5
pkgs/by-name/xc/xcircuit/package.nix
···
38
"--with-ngspice=${lib.getBin ngspice}/bin/ngspice"
39
];
40
0
0
0
0
0
41
buildInputs = with xorg; [
42
cairo
43
ghostscript
···
38
"--with-ngspice=${lib.getBin ngspice}/bin/ngspice"
39
];
40
41
+
patches = [
42
+
# fix compilation with GCC 14
43
+
./declare-missing-prototype.patch
44
+
];
45
+
46
buildInputs = with xorg; [
47
cairo
48
ghostscript