Skip to content
Tcl Source Code History Of Ticket 3d6d752352
Login

History Of Ticket 3d6d752352

Artifacts Associated With Ticket 3d6d752352

  1. Ticket change [9fcf0ebcee] (rid 234266) by yarda on 2024-10-15 22:15:53:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. 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?
      
    5. foundin initialized to: "9.0.0"
    6. is_private initialized to: "0"
    7. login: "yarda"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "362c7c9ba8659317170601ba50e062e2d08c07e3"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "yarda"
    14. subsystem initialized to: "53. Configuration and Build Tools"
    15. title initialized to: "libraries not installed if configured with zipfs"
    16. type initialized to: "Bug"
  2. Ticket change [f50242eba4] (rid 234267) by yarda on 2024-10-15 23:04:58:

    1. icomment: "Linux x86_64, Fedora Rawhide (f42)."
    2. login: "yarda"
    3. mimetype: "text/plain"
  3. Ticket change [a462e8e70e] (rid 234289) by oehhar on 2024-10-16 12:27:50:

    1. 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
      
    2. login: "oehhar"
    3. mimetype: "text/x-fossil-wiki"
    4. username: "oehhar"
  4. Ticket change [f8ecb0ebef] (rid 234328) by yarda on 2024-10-17 11:27:39:

    1. 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.
      
    2. login: "yarda"
    3. mimetype: "text/plain"
  5. Ticket change [d262419ee7] (rid 234329) by yarda on 2024-10-17 11:38:16:

    1. 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
      
    2. login: "yarda"
    3. mimetype: "text/plain"
  6. Ticket change [d0fddaed2b] (rid 234330) by yarda on 2024-10-17 11:59:09:

    1. icomment:
      The same result with build without Fedora downstream patches.
      
    2. login: "yarda"
    3. mimetype: "text/plain"
  7. Ticket change [42e2ef5a35] (rid 234331) by jan.nijtmans on 2024-10-17 13:24:43:

    1. 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
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  8. Ticket change [2c93bf6a9b] (rid 234332) by jan.nijtmans on 2024-10-17 13:28:40:

    1. 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
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  9. Ticket change [b2fe9a362a] (rid 234334) by apnadkarni on 2024-10-17 14:33:07:

    1. 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.
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  10. Ticket change [b7b233f577] (rid 234337) by yarda on 2024-10-17 16:52:45:

    1. closedate changed to: "2460601.20330536"
    2. closer changed to: "yarda"
    3. 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.
      
    4. login: "yarda"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"