[Bug 279345] ports-mgmt/pkg: 1.21.3 will not build: missing pkg_repos.h

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 27 May 2024 23:00:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279345

--- Comment #9 from John Marshall <john@jmarshall.id.au> ---
Guilty!

- I had introduced local.sys.mk files on both systems (fine)
- Inspired by other .mk files, I had wrapped it in '.if !target()' (bad)

- If I removed local.sys.mk, I could build pkg.
- If I replaced local.sys.mk with an empty file, I could build pkg.
- If I introduced a single line with a target (__<local.sys.mk>__:), the build
of pkg would break.

It seems that having a target in local.sys.mk is bad news. I have replaced that
conditional wrapper with '.if !defined()' and the world is happy again.

Thank you Baptiste for giving some of your time to help me. Sorry again for the
noise.

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