From nobody Sun Dec 31 02:25:09 2023 X-Original-To: ports-bugs@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 4T2jd21qKBz55sRk for ; Sun, 31 Dec 2023 02:25:10 +0000 (UTC) (envelope-from bugzilla-noreply@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 4T2jd16s1Xz3ZJK for ; Sun, 31 Dec 2023 02:25:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1703989510; a=rsa-sha256; cv=none; b=w//EKjOQshYuxZQArA5E74klyDbo1/GG0G8y/hbRRDqdImVsLAxsR2fNm14zLUa7qF3XNs rJdPEXv/Nr9t3+LvAAi0Ki/o5R1VNstSLYYJwnW6GVtjhNvU4qW44gAVpsywWyBtO9xBbK t6FmWj6XHnOcdoqFubxpddKlB2AkolZqeolMBIWQmqFQVsKZ9FZ38kTw81jxCop3nxTdPU q05RaxYCQNeBnC/m4qfCw1aU43ZXEGODNThvHZxhUC0rwWKw1KkktJdo7ccAWNCIbreaEM PLL/Oag7UpfrpBxDrs9oZ/TbeLHvh40PpJNO7q+2RsTGAQxJOI8LYITHOuzADQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1703989510; 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=E9cY5HnH+pKfKrEQjMB+9ytacbi30FMQCA/2Vifb9YA=; b=uXSmOhyBwPovFFqPk2mZPz+Q4kw2XmUf8KyK906DRUD74saYaQgHMu4qBjW0to7/MJl6c1 915Z5dPbbWpCwxnZQ5duV4uehFhLAfBYa9xxMPoN/AE4T3dkDfnken8jenHcvXEmqUj7dP WndV1KbkZXFM/RXZpz1n52txlEHG4VCBhHlB0P7PwPZgZfFgdycugwKarFIwtF+FvhLSVM WZ3Pr/M7c4aM8RZucwDsox9luzs3U3O6HGk97b1msLRIJxjKaOUsh8BKWPKfBBNGuPKIeC R6zT+xf3tF4Pd8CCi9lwupCXCRs08k9Nmxv1wC0qG78d1A/JevdoCNKpFtjpNA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4T2jd15yRqz1ZL for ; Sun, 31 Dec 2023 02:25:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3BV2P9Jm036460 for ; Sun, 31 Dec 2023 02:25:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3BV2P9Uc036459 for ports-bugs@FreeBSD.org; Sun, 31 Dec 2023 02:25:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 276031] graphics/oidn: fetch target tries to execute from $DISTDIR Date: Sun, 31 Dec 2023 02:25:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: milios@ccsys.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: yuri@freebsd.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276031 Bug ID: 276031 Summary: graphics/oidn: fetch target tries to execute from $DISTDIR Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: yuri@freebsd.org Reporter: milios@ccsys.com Assignee: yuri@freebsd.org Flags: maintainer-feedback?(yuri@freebsd.org) Created attachment 247365 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D247365&action= =3Dedit git diff graphics/oidn I have /usr/ports/distfiles mounted noexec and while i realize that in and = of itself is no security panacea i'd like to keep it that way as part of a bro= ader defense in depth policy At any rate, none of the other 3000+ ports i build for my organization try = to invoke any executable from ${DISTDIR} and I think we just might be able to agree that none should. So, upon investigating this case, I have determined the executable in quest= ion to effectively be one big NOOP. The attached patch merely adds --no-checkou= t to the `git clone` operation (in its short form, -n) to bypass the error altogether while creating an identical tarball. Admittedly, this quick fix renders the construct being used by the pre-fetch target here to be less ro= bust and flexible in the face of hypothetical future updates to the origin distribution repository. I like the method and practice the pre-fetch construct in this port employs= to create a reproducible distfile. If it is known by anyone reading to be a us= eful or common construct I would be happy to further investigate or participate = in deciding/writing a more robust and generic solution. =3D=3D=3D> Cleaning for oidn-2.1.0 =3D=3D=3D> License APACHE20 accepted by the user =3D=3D> Fetching the oidn/weights subproject with large LFS files Downloading rt_alb.tza (1.8 MB) Downloading rt_hdr.tza (1.8 MB) Downloading rt_hdr_alb.tza (1.8 MB) Downloading rt_hdr_alb_nrm.tza (1.8 MB) Downloading rt_hdr_calb_cnrm.tza (1.8 MB) Downloading rt_ldr.tza (1.8 MB) Downloading rt_ldr_alb.tza (1.8 MB) Downloading rt_ldr_alb_nrm.tza (1.8 MB) Downloading rt_ldr_calb_cnrm.tza (1.8 MB) Downloading rt_nrm.tza (1.8 MB) Downloading rtlightmap_dir.tza (1.8 MB) Downloading rtlightmap_hdr.tza (1.8 MB) fatal: cannot exec '/usr/ports/distfiles/oidn-weights-4322c25e25a05584f65da1a4be5cef40a4b2e90b= /.git/hooks/post-checkout': Permission denied *** Error code 1 Stop. make: stopped in /usr/ports/graphics/oidn root@matrix:~ # mount|grep distfiles neo/os/FreeBSD/ports/distfiles on /usr/ports/distfiles (zfs, local, noatime, noexec, nosuid, nfsv4acls) root@matrix:~ # --=20 You are receiving this mail because: You are the assignee for the bug.=