|
2026-07-03
| ||
| 12:53 | • Closed ticket [1782934fff]: make install problems plus 6 other changes artifact: db944a8b37 user: jan.nijtmans | |
|
2025-08-13
| ||
| 09:44 | • Closed ticket [31d4fa115b]: Tweak install permissions plus 6 other changes artifact: 24fec91c6f user: jan.nijtmans | |
| 08:54 | Fix [31d4fa115b]: Tweak install permissions check-in: 6cd38367d2 user: jan.nijtmans tags: core-9-0-branch | |
|
2025-08-12
| ||
| 10:30 | • Ticket [31d4fa115b] Tweak install permissions status still Open with 3 other... artifact: 5667744904 user: jan.nijtmans | |
| 10:23 | Proposed fix for [31d4fa115b]: Tweak install permissions closed check-in: 135761fd80 user: jan.nijtmans tags: bug-31d4fa115b | |
|
2025-08-06
| ||
| 10:10 | • Ticket [31d4fa115b] Tweak install permissions status still Open with 3 other... artifact: f2bfa8ad99 user: soshiny | |
|
2025-01-21
| ||
| 16:31 | • Ticket [31d4fa115b]: 3 changes artifact: 4e6f92bf89 user: stu | |
|
2025-01-20
| ||
| 12:54 | • Ticket [31d4fa115b]: 4 changes artifact: 982d751cc8 user: stu | |
| 11:28 | • New ticket [31d4fa115b]. artifact: 7978f56fd1 user: stu | |
Tweak install permissions
Closed / Fixed31d4fa115b63f6935aa8fe774feb742b4f0dd005Created 2 years agoUpdated 1 year ago
Descriptionplain2025-01-20 11:28:20
Install tclsh with 755 perms.
Same with the .so but use 755 instead of the 555 in the removed "chmod" line.
755 is more consistent with the rest of the install, which is 644 for files and 755 for dirs.
Index: unix/Makefile.in
==================================================================
--- unix/Makefile.in
+++ unix/Makefile.in
@@ -152,12 +152,12 @@
INSTALL_STRIP_PROGRAM = strip
INSTALL_STRIP_LIBRARY = strip -x
INSTALL = $(SHELL) $(UNIX_DIR)/install-sh -c
-INSTALL_PROGRAM = ${INSTALL}
-INSTALL_LIBRARY = ${INSTALL}
+INSTALL_PROGRAM = ${INSTALL} -m 755
+INSTALL_LIBRARY = ${INSTALL} -m 755
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_DATA_DIR = ${INSTALL} -d -m 755
# NATIVE_TCLSH is the name of a tclsh executable that is available *BEFORE*
# running make for the first time. Certain build targets (make genstubs) need
@@ -1019,11 +1019,10 @@
$(INSTALL_DATA_DIR) "$$i"; \
fi; \
done
@echo "Installing $(LIB_FILE) to $(DLL_INSTALL_DIR)/"
@@INSTALL_LIB@
- @chmod 555 "$(DLL_INSTALL_DIR)/$(LIB_FILE)"
@echo "Installing ${TCL_EXE} as $(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
@$(INSTALL_PROGRAM) ${TCL_EXE} "$(BIN_INSTALL_DIR)/tclsh$(VERSION)${EXE_SUFFIX}"
@echo "Installing tclConfig.sh to $(CONFIG_INSTALL_DIR)/"
@$(INSTALL_DATA) tclConfig.sh "$(CONFIG_INSTALL_DIR)/tclConfig.sh"
@echo "Installing tclooConfig.sh to $(CONFIG_INSTALL_DIR)/"
Referenced by3
db944a8b37Closed ticket [1782934fff]: make install problems plus 6 other changes ticket2026-07-03 12:53:066cd38367d2Fix [31d4fa115b]: Tweak install permissions check-in2025-08-13 08:54:40135761fd80Proposed fix for [31d4fa115b]: Tweak install permissions check-in2025-08-12 10:23:07
stuplain2025-01-20 12:54:35
Also, is it necessary to install the .so with executable permissions? Why not 644?
stu Ticket [31d4fa115b]: 3 changes
[History diff]2025-01-21 16:31:13
soshinyplain2025-08-06 10:10:44
I'd like to add that I ran into troubles with the Conan package of tcl (and tk) due to the missing write permissions on the .so files. I would be in favor of 755 permissions as well. See: https://github.com/conan-io/conan-center-index/issues/28050.
jan.nijtmanswiki2025-08-12 10:30:15
I agree that 755 is more logical, and prevents possible problems. I don't see any negative impact with this change.
jan.nijtmanswiki2025-08-13 09:44:50
Fixed in [9.0] and 9.1.
Closing.
If there is desire to backport this to 8.6 as well, please let it know in this ticket. Since 8.6.17 is near, I don't want to do the backport now.
Log in (anonymous is fine) to add a comment.