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

Qt 5.1 shadow builds are broken with -prefix $PWD

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Done
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.1.0 RC1
    • Component/s: Build tools: qmake
    • Labels:
      None
    • Commits:
      e7e360f046e03455210320319d9e89838328cc3c

      Description

      $ ../qtbase/configure -opensource -confirm-license -prefix $PWD
      [...]
      $ gmake
      cd src/ && ( test -e Makefile || /tmp/qt-build/bin/qmake /tmp/qt-src/src/src.pro -o Makefile ) && gmake -f Makefile 
      gmake[1]: Entering directory `/tmp/qt-build/src'
      cd tools/bootstrap/ && ( test -e Makefile || /tmp/qt-build/bin/qmake /tmp/qt-src/src/tools/bootstrap/bootstrap.pro -o Makefile ) && gmake -f Makefile 
      Project MESSAGE: /tmp/qt-build/bin/syncqt -minimal -module QtCore -module QtDBus -module QtXml -version 5.1.0 -outdir /tmp/qt-build /tmp/qt-src
      sh: /tmp/qt-build/bin/syncqt: No such file or directory
      Project ERROR: Failed to run: /tmp/qt-build/bin/syncqt -minimal -module QtCore -module QtDBus -module QtXml -version 5.1.0 -outdir /tmp/qt-build /tmp/qt-src
      gmake[1]: *** [sub-bootstrap-make_first] Error 3
      gmake[1]: Leaving directory `/tmp/qt-build/src'
      gmake: *** [sub-src-make_first] Error 2
      

      This was caused by commit 6b38524bba4254c06ac5811fdde66bcafb49632f (https://codereview.qt-project.org/55863) because of a failure in 8a78225a337862225ffb598761a95c025107501b (https://codereview.qt-project.org/55862)

      In that build, we have:

      $ /tmp/qt-build/bin/qmake -query QT_HOST_BINS
      /tmp/qt-build/bin
      

      But qtPrepareTool (qt_functions.prf) searches for an existing file with .pl in the name in order to run. It doesn't exist because syncqt.pl can only be found in the source tree, not in the target / shadow tree (before installation).

      Proposed solutions:

      1. Search the qtbase source tree
      2. Have the configure script symlink and/or copy syncqt.pl to the installation

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              buddenha Oswald Buddenhagen
              Reporter:
              thiago Thiago Macieira
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes