HomeFreeBSD

bsd.files.mk: Fix FILESPACKAGE

Description

bsd.files.mk: Fix FILESPACKAGE

Because TAGS may already have a package tag, assigning TAGS to
FILESTAGS causes the value of FILESPACKAGE to be ignored.

Only assign tags other than package, and take the default package from
${PACKAGE}, which matches the behaviour of bsd.confs.mk and bsd.man.mk.

This fixes several files that were wrongly installed in utilities,
including /usr/share/examples/sendmail/mailer.conf and some files
in /usr/share/nls.

The fix trips a bug in share/syscons where Makefile.inc was setting
FILESPACKAGE to the wrong package, but the problem was hidden because
the subdirectories set PACKAGE explicitly. Fix this by setting the
correct FILESPACKAGE in Makefile.inc and removing the PACKAGEs.

Reviewed by: manu
Differential Revision: https://reviews.freebsd.org/D51784

Details

Provenance
ivyAuthored on Aug 7 2025, 11:43 AM
Reviewer
manu
Differential Revision
D51784: bsd.files.mk: Fix FILESPACKAGE
Parents
rG7ed6b6b9d1a7: packages: move route(6)d to the rip package
Branches
Unknown
Tags
Unknown