From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4C5B2158087 for ; Mon, 17 Jan 2022 23:13:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 350702BC00C; Mon, 17 Jan 2022 23:13:47 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7EC1C2BC00C for ; Mon, 17 Jan 2022 23:13:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E1E7A343043 for ; Mon, 17 Jan 2022 23:13:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 35057261 for ; Mon, 17 Jan 2022 23:13:43 +0000 (UTC) From: "Andreas K. Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas K. Hüttel" Message-ID: <1642461177.301eedd615b1f9f7369f39c06831dbec84235c08.dilfridge@gentoo> Subject: [gentoo-commits] proj/build-docbook-catalog:master commit in: / X-VCS-Repository: proj/build-docbook-catalog X-VCS-Files: build-docbook-catalog X-VCS-Directories: / X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas K. Hüttel X-VCS-Revision: 301eedd615b1f9f7369f39c06831dbec84235c08 X-VCS-Branch: master Date: Mon, 17 Jan 2022 23:13:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e41785e1-d1a8-4759-b82b-0592752af5ee X-Archives-Hash: a5436d640b76747ee1e3f5c40d7c14ab commit: 301eedd615b1f9f7369f39c06831dbec84235c08 Author: Andreas K. Hüttel gentoo org> AuthorDate: Mon Jan 17 23:07:04 2022 +0000 Commit: Andreas K. Hüttel gentoo org> CommitDate: Mon Jan 17 23:12:57 2022 +0000 URL: https://gitweb.gentoo.org/proj/build-docbook-catalog.git/commit/?id=301eedd6 Place the locks in a subdirectory of /etc/xml * $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 gentoo.org> 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"