|
|
d8307d |
From 354e4c1adddb1da19c1043e3e5db61ee2148d912 Mon Sep 17 00:00:00 2001
|
|
|
d8307d |
From: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
|
|
|
d8307d |
Date: Wed, 24 Jul 2019 19:49:00 -0300
|
|
|
d8307d |
Subject: test-container: Install with $(sorted-subdirs) [BZ #24794]
|
|
|
d8307d |
|
|
|
d8307d |
Commit 35e038c1d2ccb3a75395662f9c4f28d85a61444f started to use an
|
|
|
d8307d |
incomplete list of subdirs based on $(all-subdirs) causing
|
|
|
d8307d |
testroot.pristine to miss files from nss.
|
|
|
d8307d |
|
|
|
d8307d |
Tested if the list of files in testroot.pristine remains the same.
|
|
|
d8307d |
|
|
|
d8307d |
[BZ #24794]
|
|
|
d8307d |
* Makeconfig (all-subdirs): Improved source comments.
|
|
|
d8307d |
* Makefile (testroot.pristine/install.stamp): Pass
|
|
|
d8307d |
subdirs='$(sorted-subdirs)' to make install.
|
|
|
d8307d |
|
|
|
d8307d |
diff --git a/Makeconfig b/Makeconfig
|
|
|
d8307d |
index 0e386fbc19..fd36c58c04 100644
|
|
|
d8307d |
--- a/Makeconfig
|
|
|
d8307d |
+++ b/Makeconfig
|
|
|
d8307d |
@@ -1267,9 +1267,9 @@ else
|
|
|
d8307d |
libsupport = $(common-objpfx)support/libsupport.a
|
|
|
d8307d |
endif
|
|
|
d8307d |
|
|
|
d8307d |
-# These are the subdirectories containing the library source. The order
|
|
|
d8307d |
-# is more or less arbitrary. The sorting step will take care of the
|
|
|
d8307d |
-# dependencies.
|
|
|
d8307d |
+# This is a partial list of subdirectories containing the library source.
|
|
|
d8307d |
+# The order is more or less arbitrary. The sorting step will take care of the
|
|
|
d8307d |
+# dependencies and generate sorted-subdirs dynamically.
|
|
|
d8307d |
all-subdirs = csu assert ctype locale intl catgets math setjmp signal \
|
|
|
d8307d |
stdlib stdio-common libio malloc string wcsmbs time dirent \
|
|
|
d8307d |
grp pwd posix io termios resource misc socket sysvipc gmon \
|
|
|
d8307d |
diff --git a/Makefile b/Makefile
|
|
|
d8307d |
index 9fbf705200..ac1125853b 100644
|
|
|
d8307d |
--- a/Makefile
|
|
|
d8307d |
+++ b/Makefile
|
|
|
d8307d |
@@ -402,7 +402,7 @@ ifeq ($(run-built-tests),yes)
|
|
|
d8307d |
done
|
|
|
d8307d |
endif
|
|
|
d8307d |
$(MAKE) install DESTDIR=$(objpfx)testroot.pristine \
|
|
|
d8307d |
- subdirs='$(all-subdirs)'
|
|
|
d8307d |
+ subdirs='$(sorted-subdirs)'
|
|
|
d8307d |
touch $(objpfx)testroot.pristine/install.stamp
|
|
|
d8307d |
|
|
|
d8307d |
tests-special-notdir = $(patsubst $(objpfx)%, %, $(tests-special))
|