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

With -developer-build make install fails trying to create lib folder in / at host filesystem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.15
    • Network
    • None
    • Android, Linux/X11

      Ubuntu 18.04 Qt 5.15 android build after configuring to developer build with:

      ../configure -xplatform android-clang --disable-rpath -nomake tests -nomake examples -android-ndk /home/rami/Android/Sdk/ndk-bundle/ -android-sdk /home/rami/Android/Sdk -no-warnings-are-errors -prefix /home/rami/builds/Qt/5_15_dbg -developer-build

      make install..:

      make install

      ..fail cause snippets.pro (or something after it) tries to create libs folder in the root of Ubuntu file system. If that would be lib - instead of libs - that could compromise the host OS.

      Why this needs root priviledges and why it creates folder in the root of the host file system? And not using relative path instead?

      cd network/doc/snippets/ && ( test -e Makefile || /home/rami/dev/docs/JIRA/QTBUG-82617/qt5code/qt5/qt5-bld/qtbase/bin/qmake -o Makefile /home/rami/dev/docs/JIRA/QTBUG-82617/qt5code/qt5/qtbase/src/network/doc/snippets/snippets.pro ) && make -f Makefile install
      make[3]: Entering directory '/home/rami/dev/docs/JIRA/QTBUG-82617/qt5code/qt5/qt5-bld/qtbase/src/network/doc/snippets'
      /home/rami/dev/docs/JIRA/QTBUG-82617/qt5code/qt5/qt5-bld/qtbase/bin/qmake -o Makefile /home/rami/dev/docs/JIRA/QTBUG-82617/qt5code/qt5/qtbase/src/network/doc/snippets/snippets.pro
      make -f Makefile.Armeabi-v7a install
      make[4]: Entering directory '/home/rami/dev/docs/JIRA/QTBUG-82617/qt5code/qt5/qt5-bld/qtbase/src/network/doc/snippets'
      mkdir: cannot create directory ‘/libs’: Permission denied
      Makefile.Armeabi-v7a:357: recipe for target 'install_target' failed
      make[4]: *** [install_target] Error 1
      make[4]: Leaving directory '/home/rami/dev/docs/JIRA/QTBUG-82617/qt5code/qt5/qt5-bld/qtbase/src/network/doc/snippets'
      Makefile:101: recipe for target 'armeabi-v7a-arm64-v8a-x86-x86_64-install' failed
      make[3]: *** [armeabi-v7a-arm64-v8a-x86-x86_64-install] Error 2
      make[3]: Leaving directory '/home/rami/dev/docs/JIRA/QTBUG-82617/qt5code/qt5/qt5-bld/qtbase/src/network/doc/snippets'
      Makefile:894: recipe for target 'sub-network-doc-snippets-install_subtargets' failed
      make[2]: *** [sub-network-doc-snippets-install_subtargets] Error 2
      make[2]: Leaving directory '/home/rami/dev/docs/JIRA/QTBUG-82617/qt5code/qt5/qt5-bld/qtbase/src'
      Makefile:62: recipe for target 'sub-src-install_subtargets' failed
      make[1]: *** [sub-src-install_subtargets] Error 2
      make[1]: Leaving directory '/home/rami/dev/docs/JIRA/QTBUG-82617/qt5code/qt5/qt5-bld/qtbase'
      Makefile:100: recipe for target 'module-qtbase-install_subtargets' failed
      make: *** [module-qtbase-install_subtargets] Error 2

      IF run with..

      sudo make install

      ..succeeds.

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

            tpochep Timur Pocheptsov
            rampe Rami Potinkara
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes