Hardcoded "-nocache" in Buildsystem/qmake.pm

Bug #1206234 reported by Alexey Ivanov
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
debhelper (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

From this bug https://bugreports.qt-project.org/browse/QTCREATORBUG-9840?focusedCommentId=210535&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-210535

Problem with build qtcreator 2.8.0 with -nocache specified. Because qtcreator is "unfair" recursive qmake project.

In my PPA i rewrote debian/rules like:

#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
export CPPFLAGS CFLAGS CXXFLAGS LDFLAGS

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

# Upstream changelog
upstream_changes := $(wildcard dist/changes-*)

%:
        dh $@ --parallel --list-missing --dbg-package=qtcreator-dbg --buildsystem=qmake_qt4 --builddirectory=builddir

override_dh_auto_configure:
        mkdir -p builddir
        cd builddir && qmake -makefile "IDE_LIBRARY_BASENAME=lib/$(DEB_HOST_MULTIARCH)" IDE_PACKAGE_MODE=1 USE_SYSTEM_BOTAN=1 "QMAKE_CFLAGS_RELEASE=${CFLAGS} ${CPPFLAGS}" "QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS} ${CPPFLAGS}" "QMAKE_LFLAGS_RELEASE=${LDFLAGS}" "QMAKE_STRIP=:" "PREFIX=/usr" "../qtcreator.pro" -r

override_dh_auto_install:
ifneq (,$(filter qtcreator-doc, $(shell dh_listpackages)))
        dh_auto_build -- qch_docs
endif
        dh_auto_install --destdir=debian/tmp/usr
        dh_auto_build -- install_docs INSTALL_ROOT=$(CURDIR)/debian/tmp/usr

override_dh_auto_clean:
        dh_auto_clean

override_dh_installdocs:
        dh_installdocs -pqtcreator $(upstream_changes)
        dh_installdocs --remaining-packages

override_dh_makeshlibs:
        # qtcreator doesn't provide any public libraries

override_dh_builddeb:
        dh_builddeb -- -Zxz

Tags: qmake
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in debhelper (Ubuntu):
status: New → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package debhelper - 10.10.5ubuntu1

---------------
debhelper (10.10.5ubuntu1) bionic; urgency=medium

  * Merge from current Debian unstable. Remaining changes:
    - Generate ddebs from debhelper instead of pkg-create-dbgsym
      + Make debhelper Conflict/Replace pkg-create-dbgsym to force it off.
      + Mirror udeb code in dh_builddeb to allow us to alter file extension.
      + Set dbgsym Package-Type to ddeb to get correct debian/files output.
    - dh_installchangelogs: Do not install upstream changelog in compat
      level 7 and higher to avoid pointlessly bloating installed packages.

debhelper (10.10.5) unstable; urgency=medium

  * meson.pm: Add missing import of generated_file that broke
    cross building.
  * Dh_Lib: Fix regression where an empty line before the source
    paragraph in d/control would cause parse error.
    (Closes: #879762)

 -- Gianfranco Costamagna <email address hidden> Fri, 27 Oct 2017 08:01:25 +0200

Changed in debhelper (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.