public inbox for buildbot@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] libabigail builder needs to run inside a sub build dir
@ 2023-04-09 21:20 Mark Wielaard
  0 siblings, 0 replies; only message in thread
From: Mark Wielaard @ 2023-04-09 21:20 UTC (permalink / raw)
  To: buildbot; +Cc: Dodji Seketeli, Mark Wielaard

Otherwise the website isn't generated.
---
 builder/master.cfg | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/builder/master.cfg b/builder/master.cfg
index 57d7fb8..e66804b 100644
--- a/builder/master.cfg
+++ b/builder/master.cfg
@@ -1015,6 +1015,16 @@ configure_step = steps.Configure(
                  "--enable-maintainer-mode"],
         name="configure", haltOnFailure=True,
         logfiles={"config.log": "config.log"})
+# create a build subdir
+mkdir_build_step = steps.ShellCommand(
+        command=["mkdir", "build"],
+        name="mkdir build")
+# configure in a build subdir
+build_configure_step = steps.Configure(
+        workdir='build/build',
+        command=["../configure"],
+        name="configure", haltOnFailure=True,
+        logfiles={"config.log": "config.log"})
 # Sets package_version property so it can be used from a next step
 # Gets version from the config.h files, so needs to be run after
 # configure. Normally used together with package_name property as
@@ -3603,9 +3613,11 @@ libabigail_rm_dist = steps.ShellCommand(
         name= "rm -rf libabigail-*")
 
 libabigail_make_html_doc_step = steps.Compile(
+        workdir="build/build",
         name="make html-doc",
         command=["make", "html-doc"])
 libabigail_create_output_step = steps.ShellCommand(
+        workdir="build/build",
         name="create output",
         command="mkdir /home/builder/shared/output && mv ./doc/manuals/html /home/builder/shared/output/manuals && mv ./doc/api/html /home/builder/shared/output/api && mv ./doc/website/html /home/builder/shared/output/website")
 libabigail_create_publish_file_step = steps.ShellCommand(
@@ -3642,7 +3654,8 @@ libabigail_factory_checkonly.addStep(make_distclean_step)
 libabigail_factory_snapshot_html_doc = util.BuildFactory()
 libabigail_factory_snapshot_html_doc.addStep(libabigail_git_step)
 libabigail_factory_snapshot_html_doc.addStep(autoreconf_step)
-libabigail_factory_snapshot_html_doc.addStep(configure_step)
+libabigail_factory_snapshot_html_doc.addStep(mkdir_build_step)
+libabigail_factory_snapshot_html_doc.addStep(build_configure_step)
 libabigail_factory_snapshot_html_doc.addStep(libabigail_make_html_doc_step)
 libabigail_factory_snapshot_html_doc.addStep(wait_snapshots_output_ready_step)
 libabigail_factory_snapshot_html_doc.addStep(libabigail_create_output_step)
-- 
2.31.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-09 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-09 21:20 [PATCH] libabigail builder needs to run inside a sub build dir Mark Wielaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).