Skip to content

Commit

Permalink
GNUmakefile: Remove STATUS files when vendoring dependencies
Browse files Browse the repository at this point in the history
The STATUS files contain information obtained from the CHICKEN
implementation fetching the vendored dependencies. This includes the
build-id (which refers to a Git commit in the CHICKEN repository).
Unfortunately, this build ID is only set if Git was installed when
CHICKEN was build which is not the case for the Alpine Linux CHICKEN
package, for example. Therefore, the STATUS file generated on an Alpine
machine is incompatible with a Debian CHICKEN installation.

AFAIK, the STATUS files should not be needed for vendored source code
hence we can safely remove them thus ensuring that the seem tarball
can be build on Alpine and Debian.
  • Loading branch information
nmeum committed Jul 11, 2023
1 parent 131dec6 commit 6b65714
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ install:

vendor:
env -i CHICKEN_EGG_CACHE=$(CHICKEN_EGG_CACHE) chicken-install -r -recursive -test
find $(CHICKEN_EGG_CACHE) \( -name STATUS -a -type f \) -exec rm {} +
# XXX: Make sure to remove the vendor directory before running `make dist`.
# As libraries are, unfortunately, build within the vendor directory.
dist: VERSION = $(shell git describe --tags)
Expand Down

0 comments on commit 6b65714

Please sign in to comment.