From nobody Wed Mar 23 23:14:18 2022 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id A1FD21A3498E for ; Wed, 23 Mar 2022 23:14:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KP41Q4DYnz3hg3; Wed, 23 Mar 2022 23:14:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648077258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wNv/sY0NhmZ7yForEz2vZ2dnWWgK+GxJLNk3CLjUi8Q=; b=iBYswxVyibsYgEeRgbQ+FAxM9YW4RTKtGroEnYAeSYIHXcZssrw8V5n+VUAzl+viJyzxum 0ZKhJYQ/SL33wHbp5xKMtV/CzQEUy3pyN8Hx/PDQvZgWpsnjH5Xhy4KtEUJj8mvzEsSTWr lCEz+H5Fl8I6Oo6KpGLFYp/9TNgal/i542TryNaTIjREnp0xneYz0uUEH8u72f0E9ew1KH HknCwp59gg9UH4/YMKGWc5Ze9oALyZS+5WGRp14s3Gkd6JOBedNvsUPZWj9GZpTokT3taB BKxoFVUta9lhxb75qopqwIWp8ZNoFit3qgQwgY1i8zCD033fsJxlFEXVHOrYAw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7210D4E00; Wed, 23 Mar 2022 23:14:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22NNEIKv090886; Wed, 23 Mar 2022 23:14:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22NNEItt090885; Wed, 23 Mar 2022 23:14:18 GMT (envelope-from git) Date: Wed, 23 Mar 2022 23:14:18 GMT Message-Id: <202203232314.22NNEItt090885@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: "Danilo G. Baio" Subject: git: ac411586cb - main - website: Fix build when public dir is already populated List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dbaio X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ac411586cb2ed824242fcbb258d94330e617d103 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648077258; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wNv/sY0NhmZ7yForEz2vZ2dnWWgK+GxJLNk3CLjUi8Q=; b=SSaBAbakdGchpl5aRC5VQgJ96jRB9zRnMXlRNfX9NxXxCKfOxB89EggmHMDOktyOfB/xzm EVZ0/q132lcWxE3WdKovNy7MFBLYjUn0RuslAjKeRq/kdtsaXz7svSvXA98DkVqxo/Ve1c 0ytRWbuz1O1slAYYJtTKp7dri92dQ/zJGIuXQh8Knf5l9QksJRxGILQSHPQ4doEejFVx7R fAxUEq+gU4blL0q+TNSV2eNVNM/4K4krascjaBCrE5m90QmYECnSA4mC5s+K5NLpxTqWyY 0pJ1qqchZyWnw9S4UZq1cZ3n7zv90cyIbaLfF0EYtHzITjsTGx8HQ5l6N9Z4Ag== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648077258; a=rsa-sha256; cv=none; b=dvKFvJMxe9dh5iORhdCF0zhmIZt+LsjQ4d/GxrfRBjD7Lwm7DryHqG/g82ba3C+Zk8A2uD TvhnQBBWlIq0zuvo1SJ12T0k/FjoUQeqF3cLHARWXPMqY806uREHml7VWMQMaqZ5g+n541 GMY1u87+5sjplQbYTkMJfrCZOozef1bz012JkZVNCKEk7mIajezrJNgF6SqXEUsQW3BT+x +CLSIoArHDE2+LemFjDBn4IH7eERloB4zGbXvY1egEgAJBiN6GFfXQy8VW/O4qE5bLAWSB UABW/mKBzPhUVMBu+4K//fEDhbgHfdAkPk2YeV3Q1u2foCp7CX0q0G0aBS/r6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dbaio: URL: https://cgit.FreeBSD.org/doc/commit/?id=ac411586cb2ed824242fcbb258d94330e617d103 commit ac411586cb2ed824242fcbb258d94330e617d103 Author: Danilo G. Baio AuthorDate: 2022-03-23 00:18:32 +0000 Commit: Danilo G. Baio CommitDate: 2022-03-23 23:13:38 +0000 website: Fix build when public dir is already populated All CGI scripts are set with 555 permission mode in the post-build target, and this makes the following builds hang if not cleaned the public (temp) directory before or changed CGI permissions to 755. Error: Error building site: process: readAndProcessContent: open /doc/website/public/cgi/mailindex.cgi: permission denied PR: 256352 Reviewed by: lwhsu wosch Differential Revision: https://reviews.freebsd.org/D34641 --- website/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/website/Makefile b/website/Makefile index c10ec92408..bda2590cde 100644 --- a/website/Makefile +++ b/website/Makefile @@ -63,8 +63,8 @@ SKIP_LANGS+= ${a} .ORDER: build post-build .ORDER: post-build end-message -all: starting-message generate-releases build post-build end-message -run: starting-message generate-releases run-local +all: starting-message generate-releases cgi-pre-permissions build post-build end-message +run: starting-message generate-releases cgi-pre-permissions run-local clean: hugo-clean releases-clean starting-message: .PHONY @@ -93,6 +93,11 @@ build: .PHONY post-build: cgi-permissions +cgi-pre-permissions: +.if exists(./public/cgi) + @chmod 755 ./public/cgi/*.cgi +.endif + cgi-permissions: @chmod 555 ./public/cgi/*.cgi