Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15539C433E6 for ; Fri, 22 Jan 2021 15:14:57 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C9E3723AAA for ; Fri, 22 Jan 2021 15:14:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C9E3723AAA Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.72842.131269 (Exim 4.92) (envelope-from ) id 1l2y8w-0008Am-N5; Fri, 22 Jan 2021 15:14:34 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 72842.131269; Fri, 22 Jan 2021 15:14:34 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l2y8w-0008Af-K2; Fri, 22 Jan 2021 15:14:34 +0000 Received: by outflank-mailman (input) for mailman id 72842; Fri, 22 Jan 2021 15:14:32 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1l2y8u-00089m-GL for xen-devel@lists.xenproject.org; Fri, 22 Jan 2021 15:14:32 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 04219876-0b43-4dce-9aec-d4dc72feeec3; Fri, 22 Jan 2021 15:14:31 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 6C80CB7CA; Fri, 22 Jan 2021 15:14:30 +0000 (UTC) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 04219876-0b43-4dce-9aec-d4dc72feeec3 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1611328470; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=o77QcCORTwruCKZaKWE882+Adk7xW9OlbIdyAQkRSHM=; b=Ogxf5+SJzDH/p+5Jy7JXGA5+x+BO4f+UJ+F+noHatD+gOT07yv1IPbOmhi3ba081L0i81c aKR2nDZsp9PIVlnVETa1Si6E4oAEaozwkO02+donzeXZOz1HsSEAlfRnmyIhpCs+EV9X6L TTf4RXwU5qjoMumU6PXiPlRq0MuVZV4= To: "xen-devel@lists.xenproject.org" Cc: Ian Jackson , Wei Liu , Anthony Perard From: Jan Beulich Subject: [PATCH] tools/libs: honor build dependencies for recently moved subdirs Message-ID: <42328c2a-0c4a-af4b-4fad-349e16bd45c3@suse.com> Date: Fri, 22 Jan 2021 16:14:30 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit While the lack of proper dependency tracking of #include-d files is wider than just the libs/ subtree, dealing with the problem universally there or in tools/Rules.mk is too much of a risk at this point in the release cycle. Add the missing inclusion of $(DEPS_INCLUDE) only in the specific Makefile-s, after having checked that their prior Makefile-s had such includes. Interestingly the $(DEPS_RM) use is present in tools/libs/libs.mk's clean target, so doesn't need taking care of in individual Makefile-s. Signed-off-by: Jan Beulich Release-acked-by: Ian Jackson --- a/tools/libs/ctrl/Makefile +++ b/tools/libs/ctrl/Makefile @@ -62,6 +62,8 @@ $(eval $(genpath-target)) $(LIB_OBJS) $(PIC_OBJS): _paths.h +-include $(DEPS_INCLUDE) + clean: cleanlocal .PHONY: cleanlocal --- a/tools/libs/guest/Makefile +++ b/tools/libs/guest/Makefile @@ -108,6 +108,8 @@ $(eval $(genpath-target)) xc_private.h: _paths.h +-include $(DEPS_INCLUDE) + .PHONY: cleanlocal cleanlocal: rm -f libxenguest.map --- a/tools/libs/light/Makefile +++ b/tools/libs/light/Makefile @@ -271,3 +271,5 @@ cleanlocal: $(RM) -f libxenlight.map $(RM) -f $(AUTOSRCS) $(AUTOINCS) $(MAKE) -C $(ACPI_PATH) ACPI_BUILD_DIR=$(CURDIR) clean + +-include $(DEPS_INCLUDE) --- a/tools/libs/store/Makefile +++ b/tools/libs/store/Makefile @@ -31,6 +31,8 @@ else PKG_CONFIG_REMOVE += -ldl endif +-include $(DEPS_INCLUDE) + .PHONY: install install: install-headers --- a/tools/libs/util/Makefile +++ b/tools/libs/util/Makefile @@ -52,6 +52,8 @@ $(LIB_OBJS) $(PIC_OBJS): $(AUTOINCS) _pa genpath-target = $(call buildmakevars2header,_paths.h) $(eval $(genpath-target)) +-include $(DEPS_INCLUDE) + clean: cleanlocal .PHONY: cleanlocal --- a/tools/libs/vchan/Makefile +++ b/tools/libs/vchan/Makefile @@ -11,6 +11,7 @@ SRCS-y += io.c NO_HEADERS_CHK := y include $(XEN_ROOT)/tools/libs/libs.mk +-include $(DEPS_INCLUDE) clean: cleanlocal