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
=== modified file 'debian/control'
--- debian/control 2014-02-20 07:08:01 +0000
+++ debian/control 2014-02-24 14:18:46 +0000
@@ -8,6 +8,7 @@
8 dbus-test-runner,8 dbus-test-runner,
9 dh-migrations,9 dh-migrations,
10 dh-translations (>= 94),10 dh-translations (>= 94),
11 doxygen,
11 google-mock (>= 1.6.0+svn437),12 google-mock (>= 1.6.0+svn437),
12 google-mock,13 google-mock,
13 gsettings-desktop-schemas-dev,14 gsettings-desktop-schemas-dev,
1415
=== modified file 'debian/rules'
--- debian/rules 2014-01-30 17:39:24 +0000
+++ debian/rules 2014-02-24 14:18:46 +0000
@@ -3,15 +3,9 @@
33
4# Uncomment this to turn on verbose mode.4# Uncomment this to turn on verbose mode.
5#export DH_VERBOSE=15#export DH_VERBOSE=1
6DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)6include /usr/share/dpkg/default.mk
7DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
8gles2_architectures := armel armhf7gles2_architectures := armel armhf
98
10DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
11
12export CFLAGS=$(shell echo $$CFLAGS | sed -e 's/\-Wall//') -Wno-error=deprecated-declarations
13export CXXFLAGS=$(shell echo $$CXXFLAGS | sed -e 's/\-Wall//') -Wno-error=deprecated-declarations
14
15# http://ccache.samba.org/manual.html#_precompiled_headers9# http://ccache.samba.org/manual.html#_precompiled_headers
16CCACHE_SLOPPINESS=time_macros10CCACHE_SLOPPINESS=time_macros
1711
@@ -55,7 +49,7 @@
55 dh_shlibdeps -l$(LIBUNITY_PRIVATE) -O--parallel49 dh_shlibdeps -l$(LIBUNITY_PRIVATE) -O--parallel
5650
57override_dh_auto_test:51override_dh_auto_test:
58 make -C obj-$(DEB_HOST_GNU_TYPE) check-headless52 dh_auto_test -- check-headless
5953
60%:54%:
61 dh $@ --with translations,quilt,python2,migrations --parallel55 dh $@ --with translations,quilt,python2,migrations --parallel