HomeFreeBSD

include: put includes into -dev packages

Description

include: put includes into -dev packages

The includes build is kind of funky, as we support either copying or
symlinking files into /usr/include. For copies, we were supplying
the include/ ${TAG_ARGS}, which puts packages into FreeBSD-runtime,
without any consideration to the fact that we're installing headers.

Let's copy the approach that the symlinks target uses for now, and
add ",dev" to the TAG_ARGS so that headers at least end up in
FreeBSD-runtime-dev, which is more appropriate. Some of these includes
are actually technically supposed to be in *other* packages and their
INCSGROUP's PACKAGE setting is actually correct, but this is less
trivial to solve. This is a bandaid to fix the immediate problem of
some headers ending up in two different packages.

PR: 267526
Reviewed by: dfr, manu
Differential Revision: https://reviews.freebsd.org/D37256

(cherry picked from commit 8b8babf044ca8e8f0d49894c3a41d429146ffc5a)

Details

Provenance
kevansAuthored on Nov 10 2022, 4:20 AM
Reviewer
dfr
Differential Revision
D37256: include: put includes into -dev packages
Parents
rGfa4ac142ef99: mktemp: don't double up on trailing slashes for -t paths
Branches
Unknown
Tags
Unknown