Artifacts Associated With Ticket 3d6d7523525d19ff
Ticket change [9fcf0ebcee] (rid 234266) by yarda on 2024-10-15 22:15:53:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
If configured with zipfs, targets install-libraries and install-msgs aren't added to the install target, thus the following command has to be run to install it all: # make install install-libraries install-msgs Is it expected?
- foundin initialized to: "9.0.0"
- is_private initialized to: "0"
- login: "yarda"
- priority initialized to: "5 Medium"
- private_contact initialized to: "362c7c9ba8659317170601ba50e062e2d08c07e3"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "yarda"
- subsystem initialized to: "53. Configuration and Build Tools"
- title initialized to: "libraries not installed if configured with zipfs"
- type initialized to: "Bug"
Ticket change [f50242eba4] (rid 234267) by yarda on 2024-10-15 23:04:58:
- icomment: "Linux x86_64, Fedora Rawhide (f42)."
- login: "yarda"
- mimetype: "text/plain"
Ticket change [a462e8e70e] (rid 234289) by oehhar on 2024-10-16 12:27:50:
- icomment:
I suppose, all this is now in the zip attached to the tcl dll library file. Check, if tclsh finds the missing content without those installations. Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"
- icomment:
Ticket change [f8ecb0ebef] (rid 234328) by yarda on 2024-10-17 11:27:39:
- icomment:
I am afraid, I don't understand. I am Fedora packager and I am building distro package from the sources. With Tcl 8.6 the library was installed, with Tcl 9.0.0 it is not installed. I was unable to find any related note regarding it. It also seems on Windows it's installed. I suspect the following lines in the configure script: if test "${ZIPFS_BUILD}" = 1; then if test "${SHARED_BUILD}" = 0; then ZIPFS_BUILD=2; printf "%s\n" "#define ZIPFS_BUILD 2" >>confdefs.h else printf "%s\n" "#define ZIPFS_BUILD 1" >>confdefs.h \ fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } INSTALL_LIBRARIES=install-libraries INSTALL_MSGS=install-msgs fi If I am not mistaken if ZIPFS_BUILD is 1 then the INSTALL_LIBRARIES and INSTALL_MSGS aren't set and later in the Makefile: INSTALL_BASE_TARGETS = install-binaries $(INSTALL_LIBRARIES) $(INSTALL_MSGS) $(INSTALL_TZDATA) ... INSTALL_TARGETS = $(INSTALL_BASE_TARGETS)... install: $(INSTALL_TARGETS) So it's not installed. - login: "yarda"
- mimetype: "text/plain"
- icomment:
Ticket change [d262419ee7] (rid 234329) by yarda on 2024-10-17 11:38:16:
- icomment:
And it seems it's not built-in. If I manually remove it: # rm -f /usr/share/tcl9.0/init.tcl # tclsh application-specific initialization failed: Cannot find a usable init.tcl in the following directories: {} /usr/share/tcl9.0 /usr/lib/tcl9.0 /lib/tcl9.0 /usr/library /library /tcl9.0/library /tcl9.0.0/library /tcl9.0.0/library This probably means that Tcl wasn't installed properly. % The build log is here: https://download.copr.fedorainfracloud.org/results/jskarvad/TclTK9.0.0/fedora-rawhide-x86_64/08144852-tcl/builder-live.log.gz - login: "yarda"
- mimetype: "text/plain"
- icomment:
Ticket change [d0fddaed2b] (rid 234330) by yarda on 2024-10-17 11:59:09:
- icomment:
The same result with build without Fedora downstream patches.
- login: "yarda"
- mimetype: "text/plain"
- icomment:
Ticket change [42e2ef5a35] (rid 234331) by jan.nijtmans on 2024-10-17 13:24:43:
- icomment:
Looking at the log: <pre> find-debuginfo: starting Extracting debug info from 2 files objcopy: unable to copy file '/builddir/build/BUILD/tcl-9.0.0-build/BUILDROOT/usr/lib64/libtcl9.0.so'; reason: Permission denied objcopy: unable to copy file '/builddir/build/BUILD/tcl-9.0.0-build/BUILDROOT/usr/lib64/libtcl9.0.so'; reason: Permission denied DWARF-compressing 2 files </pre> My guess is that "find-debuginfo" strips the debug info from libtcl9.0.so. If it does, it will strip the attached zip-file as well. You can re-add the zip-file after this processing with something like: <pre> cat /builddir/build/BUILD/tcl-9.0.0-build/tcl9.0.0/unix/libtcl9.0.0.zip >>/builddir/build/BUILD/tcl-9.0.0-build/BUILDROOT/usr/lib64/libtcl9.0.so zip -A /builddir/build/BUILD/tcl-9.0.0-build/BUILDROOT/usr/lib64/libtcl9.0.so </pre> The first command appends the zip-file to the shared library. The second command updates the offsets. This zip-file contains the "init.tcl" and the other required files, so they don't need to be installed separately any more. They simply became part of libtcl9.0.so Hope this helps, Jan Nijtmans - login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [2c93bf6a9b] (rid 234332) by jan.nijtmans on 2024-10-17 13:28:40:
- icomment:
Another remark (looking at the logs): Please install the fedora package for [https://packages.fedoraproject.org/pkgs/libtommath/libtommath/|libtommath] as well. Tcl will then use it in stead of its internal libtommath subset. Hope this helps, Jan Nijtmans - login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [b2fe9a362a] (rid 234334) by apnadkarni on 2024-10-17 14:33:07:
- icomment:
Distributions that prefer the 8.x layout without an embedded ZIP file may possibly find a build with `--disable-zipfs` to be more suitable.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [b7b233f577] (rid 234337) by yarda on 2024-10-17 16:52:45:
- closedate changed to: "2460601.20330536"
- closer changed to: "yarda"
- icomment:
Thanks for the info, I can confirm that if built outside of the Fedora build system it works. In Fedora build system (koji/copr over rpmbuild) it doesn't work even if the stripping is explicitly disabled. I will open related Fedora ticket. Sorry for the noise.
- login: "yarda"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"