From 301eedd615b1f9f7369f39c06831dbec84235c08 Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Tue, 18 Jan 2022 00:07:04 +0100 Subject: Place the locks in a subdirectory of /etc/xml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * $ROOT/run is not mounted in stage1root during stage1 build, which leads to build failures * Even if we mount it, we don't have /run/lock in there then (applies also to stage2 and stage3). * On systemd installs we could workaround via running systemd-tmpfiles, but * On openrc installs /run/lock is created inside openrc, inaccessible for a chroot. * Crossdev users do not mount /run either. While all these things could be worked around somehow, that amounts to a lot of effort for no gain. Signed-off-by: Andreas K. Hüttel --- build-docbook-catalog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build-docbook-catalog b/build-docbook-catalog index aabc756..1b4ccf3 100755 --- a/build-docbook-catalog +++ b/build-docbook-catalog @@ -8,7 +8,7 @@ ROOTCONFDIR="${EPREFIX}"/etc/xml ROOTCATALOG=${ROOTCONFDIR}/catalog CATALOG=${ROOTCONFDIR}/docbook DOCBOOKDIR="${EPREFIX}"/usr/share/sgml/docbook -LOCKDIR=${EPREFIX}/run/lock +LOCKDIR=${EPREFIX}/etc/xml/.lock DTDS=() SIMPLE_DTDS=() LATEST_DTD= @@ -69,7 +69,7 @@ main() { local lock_dir="${ROOT}${LOCKDIR}" if [[ ! -d ${lock_dir} ]] ; then - error "${lock_dir}: missing critical system path; please create it" + mkdir -p "${lock_dir}" fi local lock="${lock_dir}/build-docbook-catalog.lock" -- cgit v1.2.3-65-gdbad