Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: ba2605f5dfc59db3dcc98aab173f4b78f33f45566c04114cfce73a4aa2b59268
Ticket: 46291ba24dc85c0e66ec1771e2f39bc8ab680920
win: install: bashism in Makefile.in
User & Date: anonymous on 2021-11-17 08:47:34
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    win/Makefile.in has bashism during install, when zipfs=no.
    
    This can be encountered during `make install` after configuring without zipfs.
    
    The following patch fixes it at core-8-branch, but the same fix should also be applied to main:
    ```
    From bf4a7c32971a3a56a96298875e754ca79334dfa8 Mon Sep 17 00:00:00 2001
    From: "Avi Halachmi (:avih)" <[email protected]>
    Date: Wed, 17 Nov 2021 10:33:14 +0200
    Subject: [PATCH] win: install: avoid bashism with zipfs=no
    
    The expansion form *foo.{ext1,ext2} is bash-specific, and if zipfs is
    disabled and the shell is not bash (e.g. on Debian when cross
    compiling to windows) then this line fails.
    
    Replace it with standard posix glob.
    ---
     win/Makefile.in | 3 ++-
     1 file changed, 2 insertions(+), 1 deletion(-)
    
    diff --git a/win/Makefile.in b/win/Makefile.in
    index 1e4b82299c..649f452324 100644
    --- a/win/Makefile.in
    +++ b/win/Makefile.in
    @@ -856,7 +856,8 @@ install-libraries: libraries install-tzdata install-msgs
     	    $(COPY) "$$i" "$(SCRIPT_INSTALL_DIR)"; \
     	    done;
     	@echo "Installing package cookiejar 0.2"
    -	@for j in $(ROOT_DIR)/library/cookiejar/*.{tcl,gz}; \
    +	@for j in $(ROOT_DIR)/library/cookiejar/*.tcl \
    +	          $(ROOT_DIR)/library/cookiejar/*.gz; \
     	    do \
     	    $(COPY) "$$j" "$(SCRIPT_INSTALL_DIR)/cookiejar0.2"; \
     	    done;
    -- 
    2.25.1
    
    ```
    
  5. foundin changed to: "8.7+ (main, core-8-branch)"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "anonymous"
  13. subsystem changed to: "53. Configuration and Build Tools"
  14. title changed to: "win: install: bashism in Makefile.in"
  15. type changed to: "Bug"