[Pkg-electronics-devel] Bug#1064281: ghdl: Building ghdl fails if LLVM and Clang versions are not provided explicitly

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Mon Feb 19 15:34:50 GMT 2024


Package: ghdl
Version: 3.0.0+dfsg2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu noble ubuntu-patch

Dear Maintainer,

the 3.0.0+dfsg2 packaging requires that LLVM < 17 should be installed.
As this is already the LLVM default we must explicitely install the
LLVM 16 and Clang 16 packages for building.

  * Explicitely use llvm-16, clang-16 (LP: #2047298)

Thanks for considering the patch.


-- System Information:
Debian Release: trixie/sid
  APT prefers noble
  APT policy: (500, 'noble')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.6.0-14-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
diff -Nru ghdl-3.0.0+dfsg2/debian/control ghdl-3.0.0+dfsg2/debian/control
--- ghdl-3.0.0+dfsg2/debian/control	2023-10-01 01:16:46.000000000 +0200
+++ ghdl-3.0.0+dfsg2/debian/control	2024-02-19 12:49:34.000000000 +0100
@@ -12,8 +12,8 @@
                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:17~) <!pkg.ghdl.nollvm>,
-               clang (>= 1:3.5) <!pkg.ghdl.nollvm>,
+               llvm-16-dev <!pkg.ghdl.nollvm>,
+               clang-16 <!pkg.ghdl.nollvm>,
                zlib1g-dev
 Standards-Version: 4.6.2
 Homepage: https://github.com/ghdl/ghdl
diff -Nru ghdl-3.0.0+dfsg2/debian/rules ghdl-3.0.0+dfsg2/debian/rules
--- ghdl-3.0.0+dfsg2/debian/rules	2023-10-01 01:16:46.000000000 +0200
+++ ghdl-3.0.0+dfsg2/debian/rules	2024-02-19 12:49:34.000000000 +0100
@@ -4,6 +4,8 @@
 # for Ada code anyway
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-format
 
+export PATH:=$(PATH):/usr/lib/llvm-16/bin
+
 #export DH_VERBOSE = 1
 
 include /usr/share/dpkg/default.mk


More information about the Pkg-electronics-devel mailing list