[Pkg-electronics-devel] Bug#1122587: ghdl: Build-Depends no longer available: llvm-dev (< 1:20~)
Petter Reinholdtsen
pere at hungry.com
Fri Apr 17 22:02:44 BST 2026
Control: tags -1 + patch
On second thought, and given that version 5.1.1 is already imported
into salsa and failing to build, I suspect the following patch is an
easier first step, adjusting the configure file to accept LLVM 21 and
dropping the <<1:20~ build dependency.
I've commited this to salsa.
diff --git a/debian/control b/debian/control
index ba50784b..25149e5f 100644
--- a/debian/control
+++ b/debian/control
@@ -12,7 +12,7 @@ Build-Depends: debhelper-compat (= 13),
libmpfr-dev (>= 3.0.0-9~) <!pkg.ghdl.nogcc>,
libgmp-dev (>= 2:5.0.1~) <!pkg.ghdl.nogcc>,
texinfo <!pkg.ghdl.nogcc>,
- llvm-dev (<< 1:20~) <!pkg.ghdl.nollvm>,
+ llvm-dev <!pkg.ghdl.nollvm>,
clang (>= 1:3.5) <!pkg.ghdl.nollvm>,
zlib1g-dev,
python3-setuptools
diff --git a/debian/patches/1000-configure-llvm-21.patch b/debian/patches/1000-configure-llvm-21.patch
new file mode 100644
index 00000000..f3fa428c
--- /dev/null
+++ b/debian/patches/1000-configure-llvm-21.patch
@@ -0,0 +1,20 @@
+Description: Accept LLVM version 21 with the llvm backend.
+ Without this, configure refuse to build with the current LLVM version in
+ debian. The upstream version 6.0.0 already build with LLVM 21, so no
+ need to pass this patch upstream.
+Author: Petter Reinholdtsen <pere at debian.org>
+Bug-Debian: https://bugs.debian.org/1122587
+Forwarded: not-needed
+Reviewed-By: <name and email of someone who approved/reviewed the patch>
+Last-Update: 2026-04-17
+
+--- ghdl-5.1.1+dfsg.orig/configure
++++ ghdl-5.1.1+dfsg/configure
+@@ -330,6 +330,7 @@ if test $backend = llvm -o $backend = ll
+ check_version 18.1 $llvm_version ||
+ check_version 19. $llvm_version ||
+ check_version 20. $llvm_version ||
++ check_version 21. $llvm_version ||
+ false; then
+ echo "Debugging is enabled with llvm $llvm_version"
+ else
diff --git a/debian/patches/series b/debian/patches/series
index 8c931ac7..b51fd649 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -9,3 +9,4 @@ allow-non-linux-mcode
sparc-memmodel-include
avoid-have-backtrace
collect-gcc-options
+1000-configure-llvm-21.patch
--
Happy hacking
Petter Reinholdtsen
More information about the Pkg-electronics-devel
mailing list