Bug#982185: llvmlite: reduce Build-Depends
Helmut Grohne
helmut at subdivi.de
Sun Feb 7 09:44:35 GMT 2021
Source: llvmlite
Version: 0.35.0-3
Tags: patch
User: debian-cross at lists.debian.org
Usertags: cross-satisfiability
llvmlite cannot be cross built from source, because its Build-Depends
are not satisfiable. Instead of looking into such a difficult problem, I
looked into easily droppable dependencies. Initially I just found that
zlib1g-dev and libedit-dev are completely unused and can be dropped. A
closer look revealed that the nodoc build profile is also kinda useless,
because the same can be implemented by a proper arch/indep split moving
nodoc dependencies to Build-Depends-Indep. Such dependencies
automatically become irrelevant to cross building. What formerly was a
nodoc build, now becomes an arch-only build. It also becomes a little
simpler in the process. Please consider applying the attached patch.
Helmut
-------------- next part --------------
diff --minimal -Nru llvmlite-0.35.0/debian/changelog llvmlite-0.35.0/debian/changelog
--- llvmlite-0.35.0/debian/changelog 2021-01-20 19:30:15.000000000 +0100
+++ llvmlite-0.35.0/debian/changelog 2021-02-07 10:34:30.000000000 +0100
@@ -1,3 +1,14 @@
+llvmlite (0.35.0-3.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Reduce Build-Depends: (Closes: #-1)
+ + Drop unused zlib1g-dev and libedit-dev.
+ + Replace conditional dh --with sphinxdoc with a dh-sequence-sphinxdoc
+ dependency.
+ + Replace nodoc profile with an arch/indep split.
+
+ -- Helmut Grohne <helmut at subdivi.de> Sun, 07 Feb 2021 10:34:30 +0100
+
llvmlite (0.35.0-3) unstable; urgency=medium
* Team upload.
diff --minimal -Nru llvmlite-0.35.0/debian/control llvmlite-0.35.0/debian/control
--- llvmlite-0.35.0/debian/control 2021-01-20 19:30:02.000000000 +0100
+++ llvmlite-0.35.0/debian/control 2021-02-07 10:34:30.000000000 +0100
@@ -10,10 +10,10 @@
python3-all-dev,
python3-setuptools,
llvm-9-dev,
- zlib1g-dev,
- libedit-dev,
- python3-sphinx <!nodoc>,
- python3-sphinx-rtd-theme <!nodoc>
+Build-Depends-Indep:
+ dh-sequence-sphinxdoc,
+ python3-sphinx,
+ python3-sphinx-rtd-theme,
Standards-Version: 4.5.0
Homepage: http://llvmlite.pydata.org/
Vcs-Git: https://salsa.debian.org/pkg-llvm-team/llvmlite.git
@@ -39,7 +39,6 @@
Package: llvmlite-doc
Section: doc
Architecture: all
-Build-Profiles: <!nodoc>
Depends:
${misc:Depends},
${sphinxdoc:Depends}
diff --minimal -Nru llvmlite-0.35.0/debian/rules llvmlite-0.35.0/debian/rules
--- llvmlite-0.35.0/debian/rules 2021-01-20 09:30:57.000000000 +0100
+++ llvmlite-0.35.0/debian/rules 2021-02-07 10:34:30.000000000 +0100
@@ -7,11 +7,7 @@
export CXXFLAGS := $(shell DEB_CXXFLAGS_MAINT_APPEND=-fPIC dpkg-buildflags --get CXXFLAGS)
%:
-ifeq (,$(findstring nodoc, $(DEB_BUILD_PROFILES)))
- dh $@ --with python3,sphinxdoc --buildsystem=pybuild
-else
dh $@ --with python3 --buildsystem=pybuild
-endif
override_dh_auto_test:
# prevent tests break if armhf/armel is build for, see #917252
@@ -23,9 +19,9 @@
override_dh_installdocs:
dh_installdocs -A README.rst
-ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
+
+execute_after_dh_installdocs-indep:
http_proxy='127.0.0.1:9' sphinx-build -N -bhtml docs/source/ debian/llvmlite-doc/usr/share/doc/llvmlite-doc/html/
-endif
override_dh_installchangelogs:
dh_installchangelogs -A CHANGE_LOG
More information about the Pkg-llvm-team
mailing list