Skip to contentSkip to conversation

gst1-validate: disable buliding documentation using sphinx

PATCH New Peter Seiderer 3 participants 3 messages Aug 10, 2017 – Aug 11, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gst1-validate: disable buliding documentation using sphinx

Fix build failure in case (a non functional) sphinx documentation system is installed on the host (reported [1] and fix tested [2] by grunpferd at netscape.net).

Fixes:

sphinx-build -b html -d ./doctrees . ./html
Error: Source directory doesn't contain a conf.py file.

[1] http://lists.busybox.net/pipermail/buildroot/2017-August/200021.html
[2] http://lists.busybox.net/pipermail/buildroot/2017-August/200033.html

---
 package/gstreamer1/gst1-validate/gst1-validate.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/gstreamer1/gst1-validate/gst1-validate.mk +4 -0
index c5e3ec6fc9..c6e2ac9e15 100644
@@ -18,4 +18,8 @@ GST1_VALIDATE_DEPENDENCIES = \
 	python \
 	$(if $(BR2_PACKAGE_CAIRO),cairo)
 
+# disabling building documentation in case sphinx
+# framework installed on host
+GST1_VALIDATE_CONF_ENV = ac_cv_prog_enable_sphinx_doc=no
+
 $(eval $(autotools-package))
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 gst1-validate: disable buliding documentation using sphinx

Quoted 22 lines · Peter Seiderer

Fix build failure in case (a non functional) sphinx documentation system is installed on the host (reported [1] and fix tested [2] by grunpferd at netscape.net).

Fixes:

sphinx-build -b html -d ./doctrees . ./html
Error: Source directory doesn't contain a conf.py file.

[1] http://lists.busybox.net/pipermail/buildroot/2017-August/200021.html
[2] http://lists.busybox.net/pipermail/buildroot/2017-August/200033.html

---
 package/gstreamer1/gst1-validate/gst1-validate.mk | 4 ++++
 1 file changed, 4 insertions(+)
package/gstreamer1/gst1-validate/gst1-validate.mk +0 -0
index c5e3ec6fc9..c6e2ac9e15 100644

package/gstreamer1/gst1-validate/gst1-validate.mk GST1_VALIDATE_DEPENDENCIES = \ · line 23

Quoted 6 lines
package/gstreamer1/gst1-validate/gst1-validate.mk +3 -0
@@ -18,4 +18,8 @@ GST1_VALIDATE_DEPENDENCIES = \
 	python \
 	$(if $(BR2_PACKAGE_CAIRO),cairo)
 
+# disabling building documentation in case sphinx
+# framework installed on host
+GST1_VALIDATE_CONF_ENV = ac_cv_prog_enable_sphinx_doc=no

GST1_VALIDATE_CONF_OPTS += --disable-sphinx-doc
should work as well, no?

Ross, could you test that?

Regards,
Arnout

Quoted 3 lines
package/gstreamer1/gst1-validate/gst1-validate.mk +1 -0
+
 $(eval $(autotools-package))
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#2 lore raw

PATCH 1/1 gst1-validate: disable buliding documentation using sphinx

G'day Arnout,

Just gave a test of:

Quoted 4 lines

GST1_VALIDATE_CONF_OPTS += --disable-sphinx-doc
should work as well, no?

Ross, could you test that?

And I can confirm this works also.
It looks a little more elegant!
The main thing is that none of that documentation is produced only to be thrown away, wasting space and compute cycles.

It gets harder these days to work out what tools are prerequisites to build so many things!
I am not sure if meson will make this harder or easier, but it seems there are a number of packages that are starting to move towards meson instead of make with autoconf tooling.

So I am happy with either solution here, although the later seems just a little nicer!

Regards,

Ross

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20170811/57adda91/attachment.html>