Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drop TCP Wrappers support + misc. build system cleanup #128

Merged
merged 6 commits into from
Jan 18, 2025

Conversation

garlick
Copy link
Member

@garlick garlick commented Jan 18, 2025

This drops support for the antiquated TCP Wrappers package.

It also tidies up some other quaint stuff like conditional support for long options.

Finally, some configure options added for niche use cases are simplified/removed.

Problem: the README, debian control file, and install-deps-deb.sh
script mention libpopt, but that was only a requirement for dbench,
which we no longer vendor.

Drop libpopt references.
Problem: posix requires getopt.h, yet we check for it, and each command
line tool falls back to short opts if long opts are unavailable, but
support is ubiquitous.

Drop the conditional header include, and the short option fallback.
If we encounter a place where getopt_long() is missing, we can provide
it via libmissing.
Problem: TCP wrappers was useful before operating systems had firewalls,
but less so these days.

Drop support for TCP Wrappers.
Problem: configure.ac includes checks for vsnprintf(3) and vsscanf(3)
but the HAVE_VSNPRINTF and HAVE_VSSCANF preprocessor defines are not used.

Drop the checks.  These functions have been standardized for some time.
Problem: configure --disable-tests doesn't accomplish anything.

Running 'make check' and getting a positive outcome when nothing
was run is misleading.  The right thing to do is to skip individual
tests when features are de-selected.

For now just remove this configure option.
Problem: logic for platform defaults in configure.ac is a bit complex.

Drop the platform-specific logic that to set --disable-diodmount on
FreeBSD.  Those building server-only FreeBSD diod installations
(if there still are any!) can specify that option explicitly.
Copy link
Member

@grondo grondo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a quick review and LGTM!

@garlick
Copy link
Member Author

garlick commented Jan 18, 2025

Thanks!

@mergify mergify bot merged commit a0569b5 into chaos:master Jan 18, 2025
5 checks passed
@garlick garlick deleted the build_cleanup branch January 18, 2025 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants