Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-74733

"qmake -install" preserves permissions of the source file unlike install command in old releases

XMLWordPrintable

    • Linux/X11
    • 3cdf46059a668f588fe237aa881c300dd76cbf9e (qt/qtbase/5.12) 448177d857963a8d3ab1db8d1bc8332d552e6bed (qt/qtbase/dev)

      Since 5.9, qmake is used to install files. It preserves the permissions set for a file. However, older releases used install command that explicitly set permissions to 755 for executables and 644 for other files.

      Result now is that the user has to configure umask properly to make sure the permissions of files produced by the compiler make sense.

      In makefiles from older qmake:

      INSTALL_FILE  = install -m 644 -p
      INSTALL_PROGRAM = install -m 755 -p
      

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

            jbornema Joerg Bornemann
            poikelin Joni Poikelin
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes