salmonella bug repro pasted by DeeEff on Thu Nov 20 20:41:31 2025
-- my-egg.egg
((synopsis "test egg")
(dependencies srfi-4)
(test-dependencies test)
(components
(extension
my-egg
(source my-egg.sld)))
--- my-egg.sld
(module my-egg *
(import (chicken base) (srfi-4))
(define foo u8vector))
--- set this environment
export CHICKEN_INSTALL_PREFIX=/tmp/venv/
export CHICKEN_INSTALL_REPOSITORY=/tmp/venv/
export CHICKEN_REPOSITORY_PATH=/tmp/venv/lib/chicken:/home/jeremy/.local/share/basket/5.4.0/lib/chicken/11
export PATH="/tmp/venv/bin:$PATH"
--- invocation
$ chicken-install salmonella
$ salmonellaAttempt to fix "salmonella bug repro" added by mario-goulart on Sun Nov 30 17:42:31 2025
$ git diff
diff --git a/salmonella.scm b/salmonella.scm
index c8981e5..9ae6ed7 100644
--- a/salmonella.scm
+++ b/salmonella.scm
@@ -218,7 +218,10 @@
(maybe-exe "chicken-install")
default-chicken-install-program))))
(host-repository-path
- (shell-command-output chicken-install '(-repository)))
+ (begin
+ ;; Get the repository path set at CHICKEN installation time
+ (unset-environment-variable! "CHICKEN_INSTALL_REPOSITORY")
+ (shell-command-output chicken-install '(-repository))))
(binary-version (pathname-file host-repository-path))
(major-version
(let ((v (shell-command-output