[Bug 265250] ports-mgmt/portmaster -F does not suppress build of depends (for sysutils/restic, for one)

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 16 Jul 2022 08:18:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=265250

            Bug ID: 265250
           Summary: ports-mgmt/portmaster -F does not suppress build of
                    depends (for sysutils/restic, for one)
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: security
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: mandree@FreeBSD.org
                CC: eduardo@FreeBSD.org, se@FreeBSD.org
                CC: eduardo@FreeBSD.org, se@FreeBSD.org

I was trying portmaster -F -G <some list of origins)
and found that it was waiting "forever" for a ports fetch.

I saw that one of the ports actually started to BUILD a requisite, this is
pstree:

|-+- 06876 root /bin/sh /usr/local/sbin/portmaster -D -G -F sysutils/restic
 | \-+- 07800 root /usr/bin/make -DBATCH checksum
 |   \-+- 07837 root /bin/sh /usr/ports/Mk/Scripts/do-depends.sh
 |     \-+- 07859 root /usr/bin/make -C /usr/ports/lang/go118
-DINSTALLS_DEPENDS install
 |       \-+- 07869 root /bin/sh make.bash -v
 |         \-+- 07901 root ./cmd/dist/dist bootstrap -a -v
 |           \-+- 07905 root
/usr/ports/lang/go118/work/go-freebsd-amd64-bootstrap/bin/go install
-gcflags=-l -tags=math_big_pure_go compiler_bootstrap -v bootstrap/cmd/...
 |             \--- 07964 root
/usr/ports/lang/go118/work/go-freebsd-amd64-bootstrap/pkg/tool/freebsd_amd64/compile
-o /tmp/go-build3063314774/b067/_pkg_.a -trimpath /tmp/go-build3063314774/b067

It can go fetch go118, but it should not attempt to build it under portmaster
-F.

Proposal/request: portmaster should try harder to prevent installation of
requisites in "-F" fetch-only mode. 
Not sure but I will present this idea for thought if portmaster needs to
"poison" the ports tree's environment somewhat to break build or depends
attempts.

-- 
You are receiving this mail because:
You are the assignee for the bug.