* [Buildroot] [PATCH 1/1] package/kf5/kf5-extra-cmake-modules: do not build documentation
@ 2022-01-13 23:37 Adrian Perez de Castro
2022-02-03 20:39 ` Arnout Vandecappelle
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Perez de Castro @ 2022-01-13 23:37 UTC (permalink / raw)
To: buildroot; +Cc: Pierre Ducroquet
Pass needed CMake options to disable generating documentations. The
documentation is built using python-sphinx, which is not packaged in
Buildroot.
Prior to this change, if the build host would have a Python installation
with the sphinx module installed the automatic detection tried to build
documentation, which would fail in cases where the sphinxcontrib-qthelp
package is missing from the host Python installation. The error message
in this case was:
Extension error:
Could not import extension ecm (exception: cannot import name
'htmlescape' from 'sphinx.util.pycompat'
(/usr/lib/python3.10/site-packages/sphinx/util/pycompat.py))
Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
---
| 5 +++++
1 file changed, 5 insertions(+)
--git a/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk b/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk
index 3c4281b960..ba2748456e 100644
--- a/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk
+++ b/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk
@@ -14,4 +14,9 @@ KF5_EXTRA_CMAKE_MODULES_DEPENDENCIES = host-pkgconf
KF5_EXTRA_CMAKE_MODULES_INSTALL_STAGING = YES
KF5_EXTRA_CMAKE_MODULES_INSTALL_TARGET = NO
+KF5_EXTRA_CMAKE_MODULES_CONF_OPTS += \
+ -DBUILD_HTML_DOCS=OFF \
+ -DBUILD_MAN_DOCS=OFF \
+ -DBUILD_QTHELP_DOCS=OFF
+
$(eval $(cmake-package))
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/kf5/kf5-extra-cmake-modules: do not build documentation
2022-01-13 23:37 [Buildroot] [PATCH 1/1] package/kf5/kf5-extra-cmake-modules: do not build documentation Adrian Perez de Castro
@ 2022-02-03 20:39 ` Arnout Vandecappelle
2022-02-16 8:29 ` Peter Korsgaard
0 siblings, 1 reply; 3+ messages in thread
From: Arnout Vandecappelle @ 2022-02-03 20:39 UTC (permalink / raw)
To: Adrian Perez de Castro, buildroot; +Cc: Pierre Ducroquet
On 14/01/2022 00:37, Adrian Perez de Castro wrote:
> Pass needed CMake options to disable generating documentations. The
> documentation is built using python-sphinx, which is not packaged in
> Buildroot.
>
> Prior to this change, if the build host would have a Python installation
> with the sphinx module installed the automatic detection tried to build
> documentation, which would fail in cases where the sphinxcontrib-qthelp
> package is missing from the host Python installation. The error message
> in this case was:
>
> Extension error:
> Could not import extension ecm (exception: cannot import name
> 'htmlescape' from 'sphinx.util.pycompat'
> (/usr/lib/python3.10/site-packages/sphinx/util/pycompat.py))
>
> Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
Applied to master, thanks.
(AFAICS the v2 was in fact identical)
Regards,
Arnout
> ---
> .../kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk b/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk
> index 3c4281b960..ba2748456e 100644
> --- a/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk
> +++ b/package/kf5/kf5-extra-cmake-modules/kf5-extra-cmake-modules.mk
> @@ -14,4 +14,9 @@ KF5_EXTRA_CMAKE_MODULES_DEPENDENCIES = host-pkgconf
> KF5_EXTRA_CMAKE_MODULES_INSTALL_STAGING = YES
> KF5_EXTRA_CMAKE_MODULES_INSTALL_TARGET = NO
>
> +KF5_EXTRA_CMAKE_MODULES_CONF_OPTS += \
> + -DBUILD_HTML_DOCS=OFF \
> + -DBUILD_MAN_DOCS=OFF \
> + -DBUILD_QTHELP_DOCS=OFF
> +
> $(eval $(cmake-package))
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/kf5/kf5-extra-cmake-modules: do not build documentation
2022-02-03 20:39 ` Arnout Vandecappelle
@ 2022-02-16 8:29 ` Peter Korsgaard
0 siblings, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2022-02-16 8:29 UTC (permalink / raw)
To: Arnout Vandecappelle; +Cc: Adrian Perez de Castro, Pierre Ducroquet, buildroot
>>>>> "Arnout" == Arnout Vandecappelle <arnout@mind.be> writes:
> On 14/01/2022 00:37, Adrian Perez de Castro wrote:
>> Pass needed CMake options to disable generating documentations. The
>> documentation is built using python-sphinx, which is not packaged in
>> Buildroot.
>>
>> Prior to this change, if the build host would have a Python installation
>> with the sphinx module installed the automatic detection tried to build
>> documentation, which would fail in cases where the sphinxcontrib-qthelp
>> package is missing from the host Python installation. The error message
>> in this case was:
>>
>> Extension error:
>> Could not import extension ecm (exception: cannot import name
>> 'htmlescape' from 'sphinx.util.pycompat'
>> (/usr/lib/python3.10/site-packages/sphinx/util/pycompat.py))
>>
>> Signed-off-by: Adrian Perez de Castro <aperez@igalia.com>
> Applied to master, thanks.
> (AFAICS the v2 was in fact identical)
Committed to 2021.02.x and 2021.11.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-02-16 8:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-13 23:37 [Buildroot] [PATCH 1/1] package/kf5/kf5-extra-cmake-modules: do not build documentation Adrian Perez de Castro
2022-02-03 20:39 ` Arnout Vandecappelle
2022-02-16 8:29 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.