Page MenuHomeFreeBSD

avoid installing if_wg.h twice
ClosedPublic

Authored by emaste on May 9 2023, 10:56 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 3, 7:02 AM
Unknown Object (File)
Tue, Oct 29, 2:12 PM
Unknown Object (File)
Fri, Oct 18, 9:17 PM
Unknown Object (File)
Fri, Oct 18, 3:39 AM
Unknown Object (File)
Oct 3 2024, 3:08 PM
Unknown Object (File)
Oct 2 2024, 9:37 PM
Unknown Object (File)
Oct 2 2024, 6:00 AM
Unknown Object (File)
Oct 1 2024, 1:45 PM
Subscribers
None

Details

Summary

if_wg.h was installed via dev/wg in LSUBDIRS and also explicitly.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.
emaste added inline comments.
include/Makefile
53

full set of wg includes via LSUBDIRS:

./usr/include/dev/wg/compat.h type=file uname=root gname=wheel mode=0444 size=351 tags=package=runtime,dev
./usr/include/dev/wg/crypto.h type=file uname=root gname=wheel mode=0444 size=3234 tags=package=runtime,dev
./usr/include/dev/wg/if_wg.h type=file uname=root gname=wheel mode=0444 size=1167 tags=package=runtime,dev
./usr/include/dev/wg/version.h type=file uname=root gname=wheel mode=0444 size=35 tags=package=runtime,dev
./usr/include/dev/wg/wg_cookie.h type=file uname=root gname=wheel mode=0444 size=2192 tags=package=runtime,dev
./usr/include/dev/wg/wg_noise.h type=file uname=root gname=wheel mode=0444 size=4188 tags=package=runtime,dev

Yeah, I don't see any reason to prefer the separate INCSGROUP over LSUBDIRS, this seems sane.

This revision is now accepted and ready to land.May 10 2023, 12:20 AM
include/Makefile
360

OTOH, we probably just need to add it to this list here and in the symlinks target to limit it to just the one header we need for userladn.

strip dev/wg from LSUBDIRS in the copies and symlinks targets instead

This revision now requires review to proceed.May 10 2023, 12:36 AM
This revision is now accepted and ready to land.May 10 2023, 12:41 AM
This revision was automatically updated to reflect the committed changes.

Yes, the intention was to only install the one header needed for userland, not all of them.