freebsd-nq/share/mk
Eric van Gyzen c9d34d6652 Fix INSTALL_AS_USER with external nsswitch databases
The INSTALL_AS_USER option tells "install" to use the current
user name as the owner of the installed file.  The "install"
command executed by the build is statically linked, so it does not
load nsswitch modules, such as nss_ldap.so, so it fails when
the user is only defined in such a database.

Fix it to use the current UID instead of user name.  This works
for all users.  I expect it is also slightly more efficient.

Reviewed by:	sjg
MFC after:	3 days
Sponsored by:	Dell EMC
Differential Revision:	https://reviews.freebsd.org/D10862
2017-05-28 00:45:28 +00:00
..
atf.test.mk
auto.obj.mk If MAKEOBJDIRPREFIX is a prefix match for .CURDIR, then __objdir is .CURDIR 2017-04-18 23:59:15 +00:00
bsd.arch.inc.mk
bsd.clang-analyze.mk
bsd.compiler.mk Detect clang on macOS. The version string is slightly different. 2016-10-24 17:59:25 +00:00
bsd.confs.mk DIRDEPS_BUILD: Fix '/' in group names creating a bad cookie. 2016-12-03 05:29:35 +00:00
bsd.cpu.mk Explicitly set the desired MIPS ABI in toolchain flags. 2017-04-07 20:02:01 +00:00
bsd.crunchgen.mk META_MODE: Fix build-tools still sometimes rebuilding during target build. 2017-04-06 18:21:59 +00:00
bsd.dep.mk META_MODE: Fix not using .depend files when no OBJDIR is present. 2017-03-17 18:08:36 +00:00
bsd.doc.mk Revert crap accidentally committed 2017-01-28 16:31:23 +00:00
bsd.dtb.mk
bsd.endian.mk Add full softfloat and hardfloat support for MIPS. 2016-10-31 15:33:58 +00:00
bsd.files.mk DIRDEPS_BUILD: Fix '/' in group names creating a bad cookie. 2016-12-03 05:29:35 +00:00
bsd.incs.mk DIRDEPS_BUILD: Fix '/' in group names creating a bad cookie. 2016-12-03 05:29:35 +00:00
bsd.info.mk Revert r301079. 2016-06-03 19:25:36 +00:00
bsd.init.mk Fix INSTALL_AS_USER with external nsswitch databases 2017-05-28 00:45:28 +00:00
bsd.kmod.mk WITH_META_MODE: Resolve SYSDIR to avoid changed build commands. 2016-05-31 23:08:43 +00:00
bsd.lib.mk Always set CLEANFILES, even if not building. 2016-11-13 00:10:56 +00:00
bsd.libnames.mk Create libefivar library. This library aims to provide 2016-10-11 22:30:41 +00:00
bsd.links.mk
bsd.man.mk Revert r301079. 2016-06-03 19:25:36 +00:00
bsd.mkopt.mk
bsd.nls.mk Revert r301079. 2016-06-03 19:25:36 +00:00
bsd.obj.mk AUTO_OBJ: Support SRCS/DPSRCS that contain '/' and require a nested OBJDIR. 2016-08-30 22:48:05 +00:00
bsd.opts.mk
bsd.own.mk Fix INSTALL_AS_USER 2017-05-28 00:43:12 +00:00
bsd.port.mk
bsd.port.options.mk
bsd.port.post.mk
bsd.port.pre.mk
bsd.port.subdir.mk
bsd.prog.mk Add rules to build LLVM IR binaries and libraries. 2016-11-01 21:27:42 +00:00
bsd.progs.mk PROGS+META_MODE: Avoid rebuilding common sources when recursing. 2017-05-09 18:45:34 +00:00
bsd.README Fix a couple of typos and reword some sentences in bsd.README. 2017-03-08 05:49:58 +00:00
bsd.snmpmod.mk Add a make target (smilint) for running smilint tool against BMIBS 2017-01-17 03:38:49 +00:00
bsd.stand.mk Do not use -msoft-float with intention of disabling FP on aarch64 2017-04-07 22:58:25 +00:00
bsd.subdir.mk DIRDEPS_BUILD: Consolidate some logic for skipping of reading Makefile.depend. 2016-11-13 00:11:05 +00:00
bsd.suffixes-posix.mk Extract suffix rules into bsd.suffixes[-posix].mk. 2016-10-12 00:42:46 +00:00
bsd.suffixes.mk Revert r307823 (Use upstream suffixes for LLVM IR) for now. It causes a 2016-10-27 18:46:52 +00:00
bsd.symver.mk
bsd.sys.mk Disable -Waddress-of-packed-member for WARNS <= 3. 2017-01-08 14:49:50 +00:00
bsd.test.mk Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
dirdeps.mk Fix typo in comment. 2017-03-07 01:42:30 +00:00
gendirdeps.mk Update meta* from bmake-20161212 2016-12-23 02:57:00 +00:00
host-target.mk
install-new.mk
local.autodep.mk
local.dirdeps.mk DIRDEPS_BUILD: Exclude secure/lib* libraries for host builds. 2016-05-04 03:13:48 +00:00
local.gendirdeps.mk DIRDEPS_BUILD: Clang headers are now in lib/clang/headers 2016-09-02 19:28:24 +00:00
local.init.mk
local.meta.sys.mk Tell bmake (meta mode) to ignore changes to /usr/local/etc/libmap.d/* 2017-05-11 19:49:22 +00:00
local.sys.env.mk
local.sys.mk WITH_META_MODE: Enable printing of some of make's environment on error. 2016-06-14 16:20:25 +00:00
Makefile Extract suffix rules into bsd.suffixes[-posix].mk. 2016-10-12 00:42:46 +00:00
meta2deps.py Fix syntax error in parse_path after r316952. 2017-05-08 20:44:21 +00:00
meta2deps.sh Update meta* from bmake-20161212 2016-12-23 02:57:00 +00:00
meta.autodep.mk When MAKEOBJDIRPREFIX points to a case-insensitive file system, the 2016-09-24 15:11:27 +00:00
meta.stage.mk Update dirdeps/meta bits from latest bmake. 2017-03-06 23:13:25 +00:00
meta.subdir.mk
meta.sys.mk Avoid clobbering existing value of META_COOKIE_TOUCH 2016-09-13 22:17:25 +00:00
netbsd-tests.test.mk
plain.test.mk
src.init.mk
src.libnames.mk Build zstandard with threading enabled 2017-05-06 10:59:10 +00:00
src.opts.mk revert r313473 (Disable LLD_IS_LD option combinations that fail) 2017-04-30 16:12:23 +00:00
src.sys.env.mk WITH_META_MODE: Don't let subdir traversals for 'make install' re-enable meta mode. 2016-08-25 23:55:56 +00:00
src.sys.mk
stage-install.sh
suite.test.mk Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed 2016-05-04 23:20:53 +00:00
sys.dependfile.mk
sys.mk Explicitly set the desired MIPS ABI in toolchain flags. 2017-04-07 20:02:01 +00:00
tap.test.mk
version_gen.awk