From patchwork Mon Jul 22 20:45:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tulio Magno Quites Machado Filho X-Patchwork-Id: 33772 Received: (qmail 59069 invoked by alias); 22 Jul 2019 20:45:53 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 58774 invoked by uid 89); 22 Jul 2019 20:45:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.1 spammy=installation X-HELO: mx0a-001b2d01.pphosted.com From: Tulio Magno Quites Machado Filho To: Florian Weimer , DJ Delorie , libc-alpha@sourceware.org Subject: [PATCH] test-container: Install with $(all-subdirs) [BZ #24794] Date: Mon, 22 Jul 2019 17:45:33 -0300 Message-Id: <20190722204533.21535-1-tuliom@linux.ibm.com> In-Reply-To: <87k1cekzr9.fsf@oldenburg2.str.redhat.com> References: <87k1cekzr9.fsf@oldenburg2.str.redhat.com> Whenever a sub-make is created, it inherits the variable subdirs from its parent. This is also true when make check is called with a restricted list of subdirs. In this scenario, make install is executed "partially" and testroot.pristine ends up with an incomplete installation. 2019-07-22 Tulio Magno Quites Machado Filho [BZ #24794] * Makefile (testroot.pristine/install.stamp): Pass subdirs='$(all-subdirs)' to make install. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a4ed747cef..9fbf705200 100644 --- a/Makefile +++ b/Makefile @@ -401,7 +401,8 @@ ifeq ($(run-built-tests),yes) $(test-wrapper) cp $$dso $(objpfx)testroot.pristine$$dso ;\ done endif - $(MAKE) install DESTDIR=$(objpfx)testroot.pristine + $(MAKE) install DESTDIR=$(objpfx)testroot.pristine \ + subdirs='$(all-subdirs)' touch $(objpfx)testroot.pristine/install.stamp tests-special-notdir = $(patsubst $(objpfx)%, %, $(tests-special))