freebsd-src/etc
Mark Johnston 5105e1ebec krb5: Fix the installed compile_et
We now build compile_et from krb5/util/compile_et.  The compile_et make
target runs compile_et.sh through a preprocessor that does some
substitution on the script, in particular it defines the directory where
compile_et can find et_h.awk and et_c.awk.

We build compile_et as a bootstrap tool since it's used to build krb5.
It also gets installed by installworld, presumably because we did that
with Heimdal Kerberos too and there's some chance that third-party
projects are using it.

There are two problems, both fixed by this patch:

First, we don't actually install those awk scripts anywhere, so
/usr/sbin/compile_et isn't usable on an installed system.  Let's simply
install them to /usr/share/et, which is where upstream puts them.

Second, compile_et is a bootstrap tool and gets installed into WORLDTMP
during the bootstrap phase of the build.  At that point we preprocess it
to set the directory where it can find those awk scripts.  That
directory is currently set with `KRB5_ETDIR?= ${DESTDIR}/usr/share/et`,
but DESTDIR points into the object directory, so this value is bogus.

Since all build-time invocations of compile_et explicitly specify the
script directory with the -d option, let's just update the path to point
to the installed script directory.  In particular, avoid fixing DESTDIR
in the script, since we don't do that generally.

PR:		288929
Reviewed by:	ivy, cy
Sponsored by:	The FreeBSD Foundation
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D52004
2025-08-19 13:20:16 +00:00
..
gss Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
gss-krb5 gssapi,krb5: Replace libgssapi with the MIT version 2025-08-07 10:17:00 -07:00
mail mailer.conf for sendmail: remove duplicate word. 2024-08-07 17:03:12 +03:00
mtree krb5: Fix the installed compile_et 2025-08-19 13:20:16 +00:00
root etc: remove leftover leading empty comments, blank lines 2023-08-22 13:03:28 -05:00
sendmail Remove residual blank line at start of Makefile 2024-07-15 16:43:39 -06:00
termcap termcap.small: Include xterm-256color 2023-12-02 00:55:56 -05:00
group etc: remove leftover leading empty comments, blank lines 2023-08-22 13:03:28 -05:00
Makefile etc: Avoid duplicate gss files installation 2025-06-17 15:50:01 -04:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
master.passwd etc: remove leftover leading empty comments, blank lines 2023-08-22 13:03:28 -05:00
shells etc: remove leftover leading empty comments, blank lines 2023-08-22 13:03:28 -05:00