Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cf7d0078fad10380dd180d4941c989a7422abb8c
Ticket: 3490157fffffffffffffffffffffffffffffffff
ranlib after install with read-only permissions
User & Date: pooryorick on 2012-02-21 18:34:28
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    the install-libraries target uses ranlib on the file after it has been installed read-only, causing a failure when installation is done as a non-root user.  The fix below simply removes the ranlib calls.  Assuming that no modern linker out there is comparing the timestamp of the symbol table in the archive with the file mtime, this should work.  If it is still necessary to support linkers that do that, the Makefile would need to be modified to not remove write permissions until the ranlib step is done.
    
    --- Makefile.in 2012-02-20 14:39:38.000000000 -0500
    +++ Makefile.in.new     2012-02-21 12:09:23.000000000 -0500
    @@ -136,7 +136,6 @@
     install-package: package
            @mkdir -p $(DESTDIR)$(pkglibdir)
            $(INSTALL_PROGRAM) $(PKG_LIB_FILE) $(DESTDIR)$(pkglibdir)/$(PKG_LIB_FILE)
    -       $(RANLIB) $(DESTDIR)$(pkglibdir)/$(PKG_LIB_FILE)
            $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir)/pkgIndex.tcl
            $(INSTALL_DATA) tclooConfig.sh $(DESTDIR)$(pkglibdir)/tclooConfig.sh
     #      for p in $(SRC_DIR)/library/*.tcl ; do \
    @@ -163,8 +162,7 @@
     install-libraries: libraries
            @echo "Installing $(PKG_STUB_LIB_FILE) in $(DESTDIR)$(pkglibdir)"
            @mkdir -p $(DESTDIR)$(pkglibdir)
    -       $(INSTALL_PROGRAM) $(PKG_STUB_LIB_FILE) $(DESTDIR)$(pkglibdir)
    -       $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$(PKG_STUB_LIB_FILE)
    +       $(INSTALL_DATA) $(PKG_STUB_LIB_FILE) $(DESTDIR)$(pkglibdir)
     
     #========================================================================
     # Install documentation. Unix manpages should go in the $(mandir) directory.
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "pooryorick"
  10. subsystem changed to: "35. TclOO Package"
  11. title changed to: "ranlib after install with read-only permissions"
  12. type changed to: "Bug"