{"thread":{"id":"66953","subject":"[PATCH] ci: use sudo when replacing dirname","startedAt":"2026-11-29T17:48:29Z","lastAt":"2026-11-29T18:32:11Z","messageCount":3,"participants":["Alessio Attilio via GitGitGadget","Todd Zullinger","ATTILIO ALESSIO"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"559643","messageId":"pull.2335.git.1795974509492.gitgitgadget@gmail.com","threadId":"66953","inReplyTo":null,"subject":"[PATCH] ci: use sudo when replacing dirname","fromName":"Alessio Attilio via GitGitGadget","fromEmail":"gitgitgadget@gmail.com","sentAt":"2026-11-29T17:48:29Z","receivedAt":"2026-11-29T17:48:29Z","isPatch":true,"sender":{"key":"name:Alessio Attilio","avatar":null},"body":"From: Alessio Attilio <attilio.alessio@protonmail.com>\n\nUbuntu 26.04 already provides /usr/bin/dirname. The dependency\ninstaller replaces it with gnudirname to work around a bug in\nuutils, but needs elevated privileges to replace the existing file.\n\nSigned-off-by: Alessio Attilio <attilio.alessio@protonmail.com>\n---\n    ci: use sudo when replacing dirname\n\nPublished-As: https://github.com/gitgitgadget/git/releases/tag/pr-2335%2Fkairosci%2Fattilio%2Fci-dirname-fix-v1\nFetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-2335/kairosci/attilio/ci-dirname-fix-v1\nPull-Request: https://github.com/gitgitgadget/git/pull/2335\n\n ci/install-dependencies.sh | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh\nindex 10c3530d1a..fc506c436d 100755\n--- a/ci/install-dependencies.sh\n+++ b/ci/install-dependencies.sh\n@@ -84,7 +84,7 @@ ubuntu-*|i386/ubuntu-*|debian-*)\n \t# See <https://github.com/uutils/coreutils/issues/10508>.\n \tif test -x /usr/bin/gnudirname\n \tthen\n-\t\tln -sfT /usr/bin/gnudirname /usr/bin/dirname\n+\t\tsudo ln -sfT /usr/bin/gnudirname /usr/bin/dirname\n \tfi\n \n \tcase \"$distro\" in\n\nbase-commit: 1630431f326e15fcde608827b5ff38422528eb59\n-- \ngitgitgadget\n\n"},{"id":"559644","messageId":"20261129175910.bCTHswdq@teonanacatl.net","threadId":"66953","inReplyTo":"pull.2335.git.1795974509492.gitgitgadget@gmail.com","subject":"Re: [PATCH] ci: use sudo when replacing dirname","fromName":"Todd Zullinger","fromEmail":"tmz@pobox.com","sentAt":"2026-11-29T17:59:10Z","receivedAt":"2026-11-29T17:59:10Z","isPatch":true,"sender":{"key":"tmz@pobox.com","avatar":"https://avatars.githubusercontent.com/u/806319?v=4"},"body":"Alessio Attilio via GitGitGadget wrote:\n> From: Alessio Attilio <attilio.alessio@protonmail.com>\n> \n> Ubuntu 26.04 already provides /usr/bin/dirname. The dependency\n> installer replaces it with gnudirname to work around a bug in\n> uutils, but needs elevated privileges to replace the existing file.\n> \n> Signed-off-by: Alessio Attilio <attilio.alessio@protonmail.com>\n> ---\n>     ci: use sudo when replacing dirname\n> \n> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-2335%2Fkairosci%2Fattilio%2Fci-dirname-fix-v1\n> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-2335/kairosci/attilio/ci-dirname-fix-v1\n> Pull-Request: https://github.com/gitgitgadget/git/pull/2335\n> \n>  ci/install-dependencies.sh | 2 +-\n>  1 file changed, 1 insertion(+), 1 deletion(-)\n> \n> diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh\n> index 10c3530d1a..fc506c436d 100755\n> --- a/ci/install-dependencies.sh\n> +++ b/ci/install-dependencies.sh\n> @@ -84,7 +84,7 @@ ubuntu-*|i386/ubuntu-*|debian-*)\n>  \t# See <https://github.com/uutils/coreutils/issues/10508>.\n>  \tif test -x /usr/bin/gnudirname\n>  \tthen\n> -\t\tln -sfT /usr/bin/gnudirname /usr/bin/dirname\n> +\t\tsudo ln -sfT /usr/bin/gnudirname /usr/bin/dirname\n>  \tfi\n>  \n>  \tcase \"$distro\" in\n> \n> base-commit: 1630431f326e15fcde608827b5ff38422528eb59\n\nWasn't this already done at the beginning of the month in\nc9d34aed3f (install-dependencies: work around a permission\nproblem, 2026-11-01)?\n\n-- \nTodd\n\n"},{"id":"559645","messageId":"3M4_PTHt_xz18nUj6fYeFumshiA5K5YfRHTnbjkY_gMdGF0ggbJr95P-KrgYVUsw1GPUw10FfXRYeEqI0qRCZ7NknpBF-9c2iVD0UI7iedY=@protonmail.com","threadId":"66953","inReplyTo":"20261129175910.bCTHswdq@teonanacatl.net","subject":"Re: [PATCH] ci: use sudo when replacing dirname","fromName":"ATTILIO ALESSIO","fromEmail":"attilio.alessio@protonmail.com","sentAt":"2026-11-29T18:32:11Z","receivedAt":"2026-11-29T18:32:11Z","isPatch":true,"sender":{"key":"attilio.alessio@protonmail.com","avatar":null},"body":"\n> Wasn't this already done at the beginning of the month in\n> c9d34aed3f (install-dependencies: work around a permission\n> problem, 2026-11-01)?\n> \n\n> --\n> Todd\n> \n\n\nOops, my branch was behind master and I missed that commit; sorry for the noise!\n\nAlessio"}]}