From b65856fbb0895d4b08f35b2d3a9bb5b5a2069e1d Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Wed, 24 Jul 2024 21:23:20 +0000 Subject: [PATCH] Revert "Create a .gitignore file in the CANONICAL_O directory" The packages 'python-jsonschema-specifications', 'pydantic-core', and likely other packages based on Python maturin silently stopped installing files to the host and target directories after commit a14c862c08. A similar issue was reported by the Conda project[1]. It seems some build tools scan for gitignore files to decide what files to build and install. I attempted various combinations of gitignore patterns including mimicking the Conda project's gitignore[2], but the only thing that has worked reliably is the original `/output` ignore in the root Buildroot directory. This reverts commit a14c862c08865e053d5fce90a0d0323b8f9e4bc0. [1] https://github.com/PyO3/maturin/issues/1911 [2] https://github.com/conda-forge/conda-smithy/blob/main/conda_smithy/feedstock_content/.gitignore Reported-by: Bryan Brattlof Signed-off-by: Brandon Maier Signed-off-by: Thomas Petazzoni --- .gitignore | 1 + Makefile | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 14b7ca5040..bb02d9f572 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/output /dl /.auto.deps /.config.cmd diff --git a/Makefile b/Makefile index 0432a014ab..f51e8f690f 100644 --- a/Makefile +++ b/Makefile @@ -63,9 +63,6 @@ ifneq ($(findstring @,$(CANONICAL_O)),) $(error The build directory can not contain a '@') endif -# Create a default .gitignore file that ignores everything -$(shell echo "*" > "$(CANONICAL_O)/.gitignore") - CANONICAL_CURDIR = $(realpath $(CURDIR)) REQ_UMASK = 0022