[Pkg-electronics-devel] Bug#970660: ghdl: Please migrate to gnat-10
Ludovic Brenta
ludovic at ludovic-brenta.org
Sun Sep 20 22:19:17 BST 2020
Package: ghdl
Severity: wishlist
X-Debbugs-Cc: Ludovic Brenta <ludovic at ludovic-brenta.org>
Hello!
As discussed on the debian-ada mailing list[1], we are migrating all
packages containing Ada sources to gnat-10. It is likely that gnat-9
will be removed from Debian before the freeze (and the severity of this
bug will then increase). Therefore, please update ghdl to build with
gnat-10 and gcc-10-source. I have checked that the simple patch below
results in a successful build:
[1] https://lists.debian.org/debian-ada/2020/09/msg00000.html
diff --git a/debian/control b/debian/control
index ea850c26..9e6082ee 100644
--- a/debian/control
+++ b/debian/control
@@ -4,8 +4,8 @@ Priority: optional
Maintainer: Debian Electronics Team <pkg-electronics-devel at lists.alioth.debian.org>
Uploaders: Andreas Bombe <aeb at debian.org>
Build-Depends: debhelper (>= 11),
- gnat-9,
- gcc-9-source <!pkg.ghdl.nogcc>,
+ gnat-10,
+ gcc-10-source <!pkg.ghdl.nogcc>,
libisl-dev (>= 0.14) <!pkg.ghdl.nogcc>,
libmpc-dev (>= 1.0) <!pkg.ghdl.nogcc>,
libmpfr-dev (>= 3.0.0-9~) <!pkg.ghdl.nogcc>,
diff --git a/debian/rules b/debian/rules
index 81ad8ac5..ad67d6b3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,17 +6,17 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all,-format
#export DH_VERBOSE = 1
+# These variables are used to find and unpack the gcc source
+GCC_VER := 10
+GCC_DIR := /usr/src/gcc-$(GCC_VER)
+GCC_TARBALL := $(notdir $(wildcard $(GCC_DIR)/gcc-*.tar.*))
+
include /usr/share/dpkg/default.mk
-include /usr/share/ada/debian_packaging-9.mk
+include /usr/share/ada/debian_packaging-$(GCC_VER).mk
# This variable is used in Makefile.in to adjust src/version.in
export PKG_VERSION := $(DEB_VENDOR) $(DEB_VERSION)
-# These variables are used to find and unpack the gcc source
-GCC_DIR := /usr/src/gcc-9
-GCC_VER := 9
-GCC_TARBALL := $(notdir $(wildcard $(GCC_DIR)/gcc-*.tar.*))
-
# Get parallel option to parallelize the gcc build specifically (Ada builds
# are already parallelized by code included from debian_packaging-*.mk above).
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
--
Ludovic Brenta.
More information about the Pkg-electronics-devel
mailing list