Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-22307

[4.8 -> 4.9] Deployment of symlinks sets wrong target path

    XMLWordPrintable

    Details

    • Commits:
      7f0663dede1c811a54a1b28e9abc556c76738928 (qt-creator/qt-creator/4.9)

      Description

      sftp command to deploy the symlink of a lib is wrong, here is an example:

      10:05:01: sftp> -rm /usr/lib/libsequencer.so
      10:05:01: sftp> ln -s /[absolute path to my build directory...]/libsequencer/libsequencer.so /usr/lib/libsequencer.so
      10:05:01: sftp> put /[absolute path to my build directory...]/libsequencer/libsequencer.so.1.0.0 /usr/lib/libsequencer.so.1.0.0
      10:05:03: sftp> -rm /usr/lib/libsequencer.so.1.0
      10:05:03: sftp> ln -s /[absolute path to my build directory...]/libsequencer/libsequencer.so.1.0 /usr/lib/libsequencer.so.1.0
      10:05:03: sftp> -rm /usr/lib/libsequencer.so.1
      10:05:03: sftp> ln -s /[absolute path to my build directory...]/libsequencer/libsequencer.so.1 /usr/lib/libsequencer.so.1

       The link is set to link target's file to its copy on the host.

      I.e. the path is wrong because it points to a folder on the host. The filename is wrong because it points to a copy of itself instead of the most specific version of the library. For example the last command should be :

      sftp> ln -s /usr/lib/libsequencer/libsequencer.so.1.0.0 /usr/lib/libsequencer.so.1

      NOTE : It worked fine on Qt Creator 4.8

      Here is what I think is a relevant extract of my .pro file:

      TEMPLATE = lib
      TARGET = sequencer
      [...]
      target.path = /usr/lib
      INSTALLS += target

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              • Assignee:
                kandeler Christian Kandeler
                Reporter:
                charly Charles Retailleau
              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes