@@ -585,6 +585,10 @@ $(tests-container) $(addsuffix /tests,$(subdirs)) : \
$(objpfx)testroot.pristine/install.stamp :
test -d $(objpfx)testroot.pristine || \
mkdir $(objpfx)testroot.pristine
+ # We need a writable /etc for some of the tests.
+ test -d $(objpfx)testroot.pristine/etc || \
+ mkdir $(objpfx)testroot.pristine/etc && \
+ chmod 777 $(objpfx)testroot.pristine/etc
# We need a working /bin/sh for some of the tests.
test -d $(objpfx)testroot.pristine/bin || \
mkdir $(objpfx)testroot.pristine/bin
@@ -28,7 +28,7 @@ ifdef have-GLIBC_2.28
# distribution with some additional changes from the TI-RPC package
# which is also available from Sun. The files are heavily changed to
# compile cleanly and to fit in the GNU environment. All the code
-# from Sun's rpc, and etc subdirectories is in this directory;
+# from Sun's rpc and etc subdirectories is in this directory;
# the rpc subdirectory contains only the header files. Other than
# that, several files were renamed so as not to exceed 14-character
# file name limits:
@@ -47,7 +47,7 @@ ifdef have-GLIBC_2.28
# svc_auth_unix.c -> svc_authux.c
# xdr_reference.c -> xdr_ref.c
-headers = rpc/netdb.h
+install-others = $(inst_sysconfdir)/rpc
ifeq ($(build-shared),yes)
need-export-routines := auth_des auth_unix clnt_gen clnt_perr clnt_tcp \