Page MenuHomeFreeBSD

Do not build libcasper regression tests if WITHOUT_CASPER is set
AbandonedPublic

Authored by olivier on Feb 7 2023, 11:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 23 2025, 2:10 PM
Unknown Object (File)
Nov 23 2025, 2:10 PM
Unknown Object (File)
Nov 23 2025, 12:36 PM
Unknown Object (File)
Nov 22 2025, 1:04 AM
Unknown Object (File)
Oct 10 2025, 11:48 AM
Unknown Object (File)
Oct 9 2025, 8:16 PM
Unknown Object (File)
Oct 9 2025, 5:58 AM
Unknown Object (File)
Aug 8 2025, 11:12 PM
Subscribers
None

Details

Reviewers
emaste
Summary

The comment in tools/build/options/WITHOUT_CASPER says "Do not build Casper program and related libraries".
The library isn't installed but the regression tests are still installed (so they are failing).

Test Plan

Build & install world with WITHOUT_CASPER then check there is no /usr/tests/lib/libcasper (neither the /usr/lib/libcasper.so too).

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

olivier created this revision.
olivier retitled this revision from Do not build libcasper if WITHOUT_CASPER is set to Do not build libcasper regression tests if WITHOUT_CASPER is set.

Need more work

In file included from /usr/src/bin/cat/cat.c:60:
/usr/obj/amd64.amd64/tmp/usr/include/capsicum_helpers.h:42:10: fatal error: 'libcasper.h' file not found
#include <libcasper.h>

libcasper provides non-sandboxed stubs so some tests should pass

perhaps we need to avoid installing specific tests