Merge ~a-volkov/kubuntu-packaging/+git/extra-cmake-modules:kubuntu_hirsute_staging into ~kubuntu-packagers/kubuntu-packaging/+git/extra-cmake-modules:kubuntu_hirsute_staging

Proposed by Alexander Volkov
Status: Needs review
Proposed branch: ~a-volkov/kubuntu-packaging/+git/extra-cmake-modules:kubuntu_hirsute_staging
Merge into: ~kubuntu-packagers/kubuntu-packaging/+git/extra-cmake-modules:kubuntu_hirsute_staging
Diff against target: 100 lines (+38/-12)
4 files modified
debian/control (+29/-8)
debian/extra-cmake-modules-doc.install (+1/-0)
debian/extra-cmake-modules.install (+2/-0)
debian/rules (+6/-4)
Reviewer Review Type Date Requested Status
Kubuntu Packagers Pending
Review via email: mp+394345@code.launchpad.net

This proposal supersedes a proposal from 2020-09-22.

To post a comment you must log in.
Revision history for this message
Jose Manuel Santamaria Lema (panfaust) wrote : Posted in a previous version of this proposal

NOTES (mostly for us, kubuntu devs reviewing the patch):

1. This change (move documentation to its own extra-cmake-modules-doc package) was included in the package from debian experimental src:extra-cmake-modules version 5.74.0-2

2. The package mentioned above is waiting in Debian's NEW queue: https://ftp-master.debian.org/new/extra-cmake-modules_5.74.0-2.html

3. In the source package mentioned above, extra-cmake-modules-doc declares a Breaks/Replaces against "extra-cmake-modules (>> 5.74.0-1)" I have the impression that this version is incorrect and the Breaks/Replaces should be declared against "extra-cmake-modules (>> 5.74.0-2)" because 5.74.0-2 would be the first package version in debian providing the split package.

4. Relevant commits from debian's git (in the order they were done):

https://salsa.debian.org/qt-kde-team/kde/extra-cmake-modules/-/commit/80bb8c1f6df1316adcc0b363f61195c89e374135

https://salsa.debian.org/qt-kde-team/kde/extra-cmake-modules/-/commit/c0865f8c7d38096c218ba8123e759f2f66f5895a

https://salsa.debian.org/qt-kde-team/kde/extra-cmake-modules/-/commit/8f77efe57e70d776c13e8710b0eb91a175df5cde

https://salsa.debian.org/qt-kde-team/kde/extra-cmake-modules/-/commit/81e87e653e8cb366da4b017929c98bf6628f1bec

https://salsa.debian.org/qt-kde-team/kde/extra-cmake-modules/-/commit/f491b24e8984506366c2b088a06f7b14ce6da858

Unmerged commits

07186d5... by Alexander Volkov

Extract extra-cmake-modules-doc package

Don't build it when nodoc profile is enabled.
This makes possible to build extra-cmake-modules without rather
heavy dependency on python-sphinx. Besides, the binary package
extra-cmake-modules will not depend on libjs-underscore and
node-jquery.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/control b/debian/control
2index ddbd1be..84d0a31 100644
3--- a/debian/control
4+++ b/debian/control
5@@ -6,14 +6,14 @@ Uploaders: Maximiliano Curia <maxy@debian.org>
6 Build-Depends: cmake (>= 2.8.12~),
7 debhelper (>= 11~),
8 dh-linktree,
9- libjs-jquery,
10- libjs-underscore,
11+ libjs-jquery <!nodoc>,
12+ libjs-underscore <!nodoc>,
13 pkg-kde-tools (>= 0.15.16~),
14- python3-distutils,
15- python3-setuptools,
16- python3-sphinx,
17- python3-sphinxcontrib.qthelp,
18- python3-sphinxcontrib.serializinghtml,
19+ python3-distutils <!nodoc>,
20+ python3-setuptools <!nodoc>,
21+ python3-sphinx <!nodoc>,
22+ python3-sphinxcontrib.qthelp <!nodoc>,
23+ python3-sphinxcontrib.serializinghtml <!nodoc>,
24 qtdeclarative5-dev (>= 5.6.1),
25 qttools5-dev (>= 5.6.1),
26 qttools5-dev-tools (>= 5.6.1),
27@@ -26,7 +26,7 @@ Package: extra-cmake-modules
28 Architecture: any
29 Depends: ${misc:Depends},
30 ${shlibs:Depends},
31-Suggests: qt5-qmake, qtbase5-dev
32+Suggests: qt5-qmake, qtbase5-dev, extra-cmake-modules-doc
33 Description: Extra modules and scripts for CMake
34 Extra CMake Modules, or ECM, aims to augment CMake with additional modules. It
35 serves as both a staging ground for new modules before they are moved upstream
36@@ -37,3 +37,24 @@ Description: Extra modules and scripts for CMake
37 other projects will find it useful, and outside contributions are always
38 welcome. The main rule for new modules is that there must be at least two
39 downstream users.
40+
41+Package: extra-cmake-modules-doc
42+Build-Profiles: <!nodoc>
43+Architecture: all
44+Multi-Arch: foreign
45+Section: doc
46+Depends: ${misc:Depends}
47+Breaks: extra-cmake-modules (<< 5.77)
48+Replaces: extra-cmake-modules (<< 5.77)
49+Description: Extra modules and scripts for CMake
50+ Extra CMake Modules, or ECM, aims to augment CMake with additional modules. It
51+ serves as both a staging ground for new modules before they are moved upstream
52+ to CMake and a place for modules that, for whatever reason, are not a good fit
53+ for CMake itself.
54+ .
55+ It is primarily driven by the needs of the KDE community, but it is hoped that
56+ other projects will find it useful, and outside contributions are always
57+ welcome. The main rule for new modules is that there must be at least two
58+ downstream users.
59+ .
60+ This package contains HTML documentation and man pages.
61diff --git a/debian/extra-cmake-modules-doc.install b/debian/extra-cmake-modules-doc.install
62new file mode 100644
63index 0000000..f3a3e78
64--- /dev/null
65+++ b/debian/extra-cmake-modules-doc.install
66@@ -0,0 +1 @@
67+usr/share/doc/ECM
68diff --git a/debian/linktrees b/debian/extra-cmake-modules-doc.linktrees
69similarity index 100%
70rename from debian/linktrees
71rename to debian/extra-cmake-modules-doc.linktrees
72diff --git a/debian/extra-cmake-modules.install b/debian/extra-cmake-modules.install
73new file mode 100644
74index 0000000..ceca159
75--- /dev/null
76+++ b/debian/extra-cmake-modules.install
77@@ -0,0 +1,2 @@
78+usr/share/ECM
79+usr/share/man
80diff --git a/debian/rules b/debian/rules
81index 24d9561..c5653d9 100755
82--- a/debian/rules
83+++ b/debian/rules
84@@ -10,10 +10,12 @@ override_dh_auto_configure:
85
86 override_dh_install:
87 $(overridden_command)
88- rm debian/extra-cmake-modules/usr/share/doc/ECM/html/_static/jquery.js
89- ln -s /usr/share/javascript/jquery/jquery.js debian/extra-cmake-modules/usr/share/doc/ECM/html/_static/jquery.js
90- rm debian/extra-cmake-modules/usr/share/doc/ECM/html/_static/underscore.js
91- ln -s /usr/share/javascript/underscore/underscore.js debian/extra-cmake-modules/usr/share/doc/ECM/html/_static/underscore.js
92+ifeq (,$(filter $(DEB_BUILD_PROFILES),nodoc))
93+ rm debian/extra-cmake-modules-doc/usr/share/doc/ECM/html/_static/jquery.js
94+ ln -s /usr/share/javascript/jquery/jquery.js debian/extra-cmake-modules-doc/usr/share/doc/ECM/html/_static/jquery.js
95+ rm debian/extra-cmake-modules-doc/usr/share/doc/ECM/html/_static/underscore.js
96+ ln -s /usr/share/javascript/underscore/underscore.js debian/extra-cmake-modules-doc/usr/share/doc/ECM/html/_static/underscore.js
97+endif
98
99 override_dh_auto_test:
100 # Disable dh_auto_test at build time

Subscribers

People subscribed via source and target branches