Merge lp:~xnox/unity/fix-packaging into lp:unity

Proposed by Dimitri John Ledkov
Status: Rejected
Rejected by: Stephen M. Webb
Proposed branch: lp:~xnox/unity/fix-packaging
Merge into: lp:unity
Diff against target: 41 lines (+3/-8)
2 files modified
debian/control (+1/-0)
debian/rules (+2/-8)
To merge this branch: bzr merge lp:~xnox/unity/fix-packaging
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Needs Fixing
Dimitri John Ledkov Approve
Stephen M. Webb (community) Needs Fixing
Review via email: mp+207920@code.launchpad.net

Commit message

* Add missing build-dep on doxygen
* Drop broken CFLAGS processing, obsolete, and now actively prevents distro-default flags to be used
* Support DEB_BUILD_OPTIONS=nocheck in the override_dh_auto_test target
* Use stock variables from /usr/share/dpkg/default.mk instead of generating custom ones
* Use dpkg-buildflags to enfoce distro-default flags

Description of the change

* Add missing build-dep on doxygen
* Drop broken CFLAGS processing, obsolete, and now actively prevents distro-default flags to be used
* Support DEB_BUILD_OPTIONS=nocheck in the override_dh_auto_test target
* Use stock variables from /usr/share/dpkg/default.mk instead of generating custom ones
* Use dpkg-buildflags to enfoce distro-default flags

To post a comment you must log in.
Revision history for this message
Stephen M. Webb (bregma) wrote :

No changes without a bug number. LP: #1284047 might be a good candidate.

review: Needs Fixing
Revision history for this message
Stephen M. Webb (bregma) wrote :

Also, Unity uses debhelper compat level 9, where including /usr/share/dpkg/default.mk is deprecated. This change should use DEB_C[XX]FLAGS_STRIP and DEB_C[XX]FLAGS_APPEND instead (see dpkg-buildflags(1)).

lp:~xnox/unity/fix-packaging updated
3682. By Dimitri John Ledkov

bug references

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

done.

review: Approve
lp:~xnox/unity/fix-packaging updated
3683. By Dimitri John Ledkov

Drop redundant DPKG_EXPORT_BUILDFLAGS

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Stephen M. Webb (bregma) wrote :

 override_dh_auto_test:
 - make -C obj-$(DEB_HOST_GNU_TYPE) check-headless
 + dh_auto_test -- check-headless

Running dh_auto_test _always_ runs "make check" regardless of any additional make target specified. 'make check' will fail in a headless package build environment (which is why the check-headless target exists). The original line explicitly running the 'make' command is correct. If you want to support 'nocheck' you will have to use the old ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) trick.

Unmerged revisions

3683. By Dimitri John Ledkov

Drop redundant DPKG_EXPORT_BUILDFLAGS

3682. By Dimitri John Ledkov

bug references

3681. By Dimitri John Ledkov

* Add missing build-dep on doxygen
* Drop broken CFLAGS processing, obsolete, and now actively prevents distro-default flags to be used
* Support DEB_BUILD_OPTIONS=nocheck in the override_dh_auto_test target
* Use stock variables from /usr/share/dpkg/default.mk instead of generating custom ones
* Use dpkg-buildflags to enfoce distro-default flags

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-02-20 07:08:01 +0000
3+++ debian/control 2014-02-24 14:18:46 +0000
4@@ -8,6 +8,7 @@
5 dbus-test-runner,
6 dh-migrations,
7 dh-translations (>= 94),
8+ doxygen,
9 google-mock (>= 1.6.0+svn437),
10 google-mock,
11 gsettings-desktop-schemas-dev,
12
13=== modified file 'debian/rules'
14--- debian/rules 2014-01-30 17:39:24 +0000
15+++ debian/rules 2014-02-24 14:18:46 +0000
16@@ -3,15 +3,9 @@
17
18 # Uncomment this to turn on verbose mode.
19 #export DH_VERBOSE=1
20-DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
21-DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
22+include /usr/share/dpkg/default.mk
23 gles2_architectures := armel armhf
24
25-DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
26-
27-export CFLAGS=$(shell echo $$CFLAGS | sed -e 's/\-Wall//') -Wno-error=deprecated-declarations
28-export CXXFLAGS=$(shell echo $$CXXFLAGS | sed -e 's/\-Wall//') -Wno-error=deprecated-declarations
29-
30 # http://ccache.samba.org/manual.html#_precompiled_headers
31 CCACHE_SLOPPINESS=time_macros
32
33@@ -55,7 +49,7 @@
34 dh_shlibdeps -l$(LIBUNITY_PRIVATE) -O--parallel
35
36 override_dh_auto_test:
37- make -C obj-$(DEB_HOST_GNU_TYPE) check-headless
38+ dh_auto_test -- check-headless
39
40 %:
41 dh $@ --with translations,quilt,python2,migrations --parallel