From nobody Wed Dec 4 02:36:23 2024 X-Original-To: ports@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 4Y31qh150Mz5fjYn; Wed, 04 Dec 2024 02:36:32 +0000 (UTC) (envelope-from meta@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Y31qh0Qqdz4Dmp; Wed, 4 Dec 2024 02:36:32 +0000 (UTC) (envelope-from meta@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733279792; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=1NOeHrSejDIDnqqt/mqJprJMAhDT1y3KJlSO9Tus9Ac=; b=f8Qe7ZTy0wo6Xc+fD70nWxdOZYvkbzS1KgZ8m851aa6t/Bei1MFp4JkpAJiX6lZA2erlMO P67vt0HIdmft95KlCzphti3hshnxZXeWfz9E+1qKF9q67DvOMNg/jyNvbgR91puie/9MX8 zpl6tQDRXcVGHBpH4jQwpM/BYOhgxHo+qM3WXRtWTmoRJDcr+cg53hvc5zX8Rca8CyU+wd WofVqKX82agbNLH7a+0BCBGMojEz+P6IGL+yIhg6dgMRLK9QIJHaaGsNSPhb7vxapcdMJ9 NrpJlvy2IXe7uLHy97B4Qj1mm79VafqwgTyxCYovBvtid5oxu0cl1HWQlztY/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1733279792; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type; bh=1NOeHrSejDIDnqqt/mqJprJMAhDT1y3KJlSO9Tus9Ac=; b=lDFBhMh5lFNAqKcMzkHuVHZj4g4CKEAX9bl8Z/GuH80LYiLOEXvDqBzE28YjG53u9+et8H 501DynsrvuK9XwIC5XbIHkqgieug0j/v/IhQ0E8/S7KS5QqhAXYrboIxwBR8+V09La3k0E fXXn+hPVjPoDxeiBjACvPfaIqYHS+tvtrRPW9P+0u+jdIZncD9MtRYGH6ki5KJr0FPSlUj Hq0YcocP91Hdd2fq80nhxawUk9foHDYP7keY+o1bK0N24C6oNWajLHltJpq9C1BhrION2G n4LJ4wLuBlEoQwZHHRhYzTJm0fnQX0wheGKXPqlCHtkIz2NVm7DxATx5Umid+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1733279792; a=rsa-sha256; cv=none; b=OLlniRPha1UNXwzEK8NgM0VRDqL8Us0vWGFfL/DcDy5WHNJDF8RWlOi8qpq8y4cn7ATFOZ EAQhlylvJEnWEc3pcp/9MzfNwjcPkqBMLD0PpeqZ07VwrsE14VOvjhBeQcb/hpK4UYH+BI iVzrCBJWI6NmrprvD26UR3Pwb5NAGsXJhhj/a0xQg0BUNPyY9pfDWbfCXkaQLgJQjqzFgi d0aShkit5HOHnoiWtbbzVWqCTsdsDYWdFaYAlkNKpBZoIJQvljqUPLRzkQzhFNm6KnUfuO i9RonnLtGcSFhtbhLJ7P9YmUfKG8MBOv+QDy4hz/Jl80/vHiWQWM8eoFQ0PspQ== Received: from icepick.vmeta.jp (unknown [IPv6:2403:bd80:c100:401:9427:1f1a:757d:1558]) (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) (Authenticated sender: meta/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Y31qf1M2Dzbnb; Wed, 4 Dec 2024 02:36:29 +0000 (UTC) (envelope-from meta@freebsd.org) Date: Wed, 4 Dec 2024 11:36:23 +0900 From: Koichiro Iwao To: ports@freebsd.org Cc: go@freebsd.org Subject: go: exec go1.22.6: permission denied Message-ID: X-Operating-System: FreeBSD 14.2-PRERELEASE amd64 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hello folks, I got the following error when trying to build some go packages. I found the cause so I'd like to share it if this help someone. # portmaster www/gohugo ===> License APACHE20 accepted by the user ===> gohugo-0.139.3,1 depends on file: /usr/local/sbin/pkg - found ===> gohugo-0.139.3,1 depends on file: /usr/local/bin/go121 - found ===> gohugo-0.139.3,1 depends on package: ca_root_nss>0 - found ===> Fetching all distfiles required by gohugo-0.139.3,1 for building ===> Fetching github.com/gohugoio/hugo dependencies go: exec go1.22.6: permission denied *** Error code 1 Stop. make[1]: stopped in /usr/ports/www/gohugo It turns out this was because I had dropped exec bit on zroot/usr/ports/distfiles a decade ago according to the previously recommended filesystem layout. > zfs create -o exec=off -o setuid=off zroot/usr/ports/distfiles https://wiki.freebsd.org/RootOnZFS/PoolLayout After I turn on exec bit unser distfiles directory, it works perfectly. > zfs set exec=on zroot/usr/ports/distfiles I don't know if it was an intended design for the go framework to require the exec bit on the distfiles directory, but it is true that it does require the exec bit at the moment. Anyway, this situation is likely encountered by very few people, like me, who have been using ZFS on root for over 10 years, before bsdinstall added support for ZFS on root. Thanks, -- meta