All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/postgresql: add patch to disable docs build
@ 2024-12-10 15:42 Maxim Kochetkov via buildroot
  2024-12-10 23:00 ` Julien Olivain
  0 siblings, 1 reply; 4+ messages in thread
From: Maxim Kochetkov via buildroot @ 2024-12-10 15:42 UTC (permalink / raw)
  To: buildroot; +Cc: Maxim Kochetkov

docbook package is needed for building docs. Build fails without it
if xmllint is found on host:

I/O error : Attempt to load network entity: http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
../doc/src/sgml/postgres.sgml:22: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"
]>
  ^
../doc/src/sgml/postgres.sgml:24: element book: validity error : No declaration for attribute id of element book
<book id="postgres">
                   ^

So disable docs build.

Fixes: https://autobuild.buildroot.org/results/711c101d9a4807fcb59cff2b7c89454f96cc3e2d/
Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
---
 ...ld-drop-docs-build-from-world-target.patch | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/postgresql/0001-meson.build-drop-docs-build-from-world-target.patch

diff --git a/package/postgresql/0001-meson.build-drop-docs-build-from-world-target.patch b/package/postgresql/0001-meson.build-drop-docs-build-from-world-target.patch
new file mode 100644
index 0000000000..92ddbf7da6
--- /dev/null
+++ b/package/postgresql/0001-meson.build-drop-docs-build-from-world-target.patch
@@ -0,0 +1,34 @@
+From 304889951e5fd2b40864770ef2432c83b68c0c1a Mon Sep 17 00:00:00 2001
+From: Maxim Kochetkov <fido_max@inbox.ru>
+Date: Tue, 10 Dec 2024 13:55:09 +0300
+Subject: [PATCH 1/1] meson.build: drop docs build from "world" target
+
+"world" target is used to compile all the PG extensions and
+plugins. There is no way to disable documentation builds for
+"world" target. However documentation needs a lot of extra
+xml/sgml/docbook tools, schemas etc...
+So let's just drop docs tarets.
+
+Signed-off-by: Maxim Kochetkov <fido_max@inbox.ru>
+---
+ meson.build | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/meson.build b/meson.build
+index 005dc9f353..2504a3c8f5 100644
+--- a/meson.build
++++ b/meson.build
+@@ -3588,8 +3588,8 @@ alias_target('pl', pl_targets)
+ alias_target('contrib', contrib_targets)
+ alias_target('testprep', testprep_targets)
+ 
+-alias_target('world', all_built, docs)
+-alias_target('install-world', install_quiet, installdocs)
++alias_target('world', all_built)
++alias_target('install-world', install_quiet)
+ 
+ run_target('help',
+   command: [
+-- 
+2.45.2
+
-- 
2.45.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-12-31 17:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-10 15:42 [Buildroot] [PATCH 1/1] package/postgresql: add patch to disable docs build Maxim Kochetkov via buildroot
2024-12-10 23:00 ` Julien Olivain
2024-12-11  4:27   ` Maxim Kochetkov via buildroot
2024-12-31 17:17   ` Julien Olivain

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.