mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
Commit1876de606eexposed missing symbols that the port security/krb5 installed that the base system did not install. Part of the solution was to make libprofile.so private (not libprofile.a) just as the port does, Red Hat Enterprise Linux does, and as installing MIT KRB5 by hand does. The actual fix for this was to put symbols and their corresponding functions into the correct librarires, i.e. libkrb5.so and othes, just as the port, Red Hat, and manually installed via tarball do. Unfortunately INTERNALLIB disables the include of bsd.incs.mk and the install of header files. This is still needed to install profile.h into /usr/include (just as the port installs it into ${LOCALBASE}/include and RHEL installs it in /usr/include). This commit fixes this by installing profile.h into /usr/include from the krb5/include Makfile. Reported by: fluffy Tested by: fluffy Reviewed by: fluffy Fixes:1876de606eMFC after: 3 days Differential Revision: https://reviews.freebsd.org/D58286
50 lines
1.4 KiB
Makefile
50 lines
1.4 KiB
Makefile
#
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
#
|
|
# Copyright (c) 2025 FreeBSD Foundation
|
|
#
|
|
# This sofware was developed by Cy Schubert <[email protected]>
|
|
# under sponsorship from the FreeBSD Foundation.
|
|
#
|
|
|
|
.include <src.opts.mk>
|
|
|
|
.include "../Makefile.inc"
|
|
|
|
SUBDIR= krb5 gssrpc gssapi
|
|
|
|
SUBDIR_PARALLEL=
|
|
|
|
INCSDIR= ${INCLUDEDIR}
|
|
|
|
.PATH: ${KRB5_DIR}/include
|
|
|
|
SRCS= ${GEN}
|
|
|
|
INCS= gssapi.h \
|
|
kdb.h \
|
|
krad.h \
|
|
krb5.h \
|
|
profile.h
|
|
|
|
CLEANFILES= osconf.new profile.h
|
|
|
|
# XXX The output of this needs to be verified against the osconf.h I created
|
|
# It is only used to verify osconf.h has not changed
|
|
osconf.h:
|
|
cat ./osconf.hin | sed -e "s\"@KRB5RCTMPDIR\"${KRB5RCTMPDIR}\"" -e "s\"@PREFIX\"${KRB5PREFIX}\"" -e "s\"@EXEC_PREFIX\"${KRB5_EXEC_PREFIX}\"" -e "s\"@BINDIR\"${KRB5_BINDIR}\"" -e "s\"@LIBDIR\"${KRB5_LIBDIR}\"" -e "s\"@SBINDIR\"${KRB5_SBINDIR}\"" -e "s\"@MODULEDIR\"${KRB5_MODULEDIR}\"" -e "s\"@GSSMODULEDIR\"${KRB5_GSSMODULEDIR}\"" -e "s\"@LOCALSTATEDIR\"${KRB5_LOCALSTATEDIR}\"" -e "s\"@RUNSTATEDIR\"${KRB5_RUNSTATEDIR}\"" -e "s\"@SYSCONFDIR\"${KRB5_SYSCONFDIR}\"" -e "s\"@DYNOBJEXT\"${KRB5_DYNOBJEXT}\"" -e "s\"@SYSCONFCONF\":${KRB5_SYSCONFCONF}\"" > osconf.new
|
|
sh ${MOVEIFCHANGED} osconf.new osconf.h
|
|
|
|
rebuild-error-tables: ${K5_ET_HEADERS}
|
|
|
|
.include "${KRB5_SRCTOP}/util/profile/Makefile.profile"
|
|
|
|
.PHONY: rebuild-error-tables osconf.h
|
|
|
|
.SUFFIXES: .et
|
|
|
|
.PATH: ${KRB5_DIR}/include/krb5 \
|
|
${KRB5_DIR}/util/profile
|
|
|
|
.include <bsd.prog.mk>
|