Merge lp:~charlesk/indicator-datetime/remove-unneeded-dependencies into lp:indicator-datetime/14.04

Proposed by Charles Kerr
Status: Merged
Approved by: Sebastien Bacher
Approved revision: 333
Merged at revision: 331
Proposed branch: lp:~charlesk/indicator-datetime/remove-unneeded-dependencies
Merge into: lp:indicator-datetime/14.04
Diff against target: 68 lines (+2/-17)
3 files modified
CMakeLists.txt (+0/-1)
debian/control (+1/-10)
debian/rules (+1/-6)
To merge this branch: bzr merge lp:~charlesk/indicator-datetime/remove-unneeded-dependencies
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Sebastien Bacher Approve
Review via email: mp+212325@code.launchpad.net

Commit message

Remove unused dependencies from packaging.

Description of the change

Remove unused things from debian/control and debian/rules.

Removed:
 * libpolkit-gobject-1-dev
 * gnome-common
 * libgconf2-dev
 * libcairo2-dev
 * libgtk-3-dev
 * libido3-0.1-dev
 * libxorg-gtest-dev

Changed from Required to Recommended:
 * geoclue

In debian/rules, don't override_dh_install. This needs another pair of eyes to confirm, but but none of the other indicators use anything like the rule being removed. Removing this has two effects on the build-area: (1) The unused file "untitled.pot" is no longer generated, (2) indicator-datetime.desktop no longer has a duplicate X-Ubuntu-Gettext-Domain entry.

=====

Comparing two builddeb logs, this is the section that disappears by removing the override_dh_install code:

   debian/rules override_dh_install
make[1]: Entering directory `/home/phablet/src/indicator-datetime/build-area/indicator-datetime-13.10.0+14.04.20140321'
cd po; intltool-update --pot --verbose
Unsuccessful open on filename containing newline at /usr/bin/intltool-update line 1149.
Building untitled.pot...
Running xgettext --add-comments --directory=. --default-domain=untitled --flag=g_strdup_printf:1:c-format --flag=g_string_printf:2:c-format --flag=g_string_append_printf:2:c-format --flag=g_error_new:3:c-format --flag=g_set_error:4:c-format --flag=g_markup_printf_escaped:1:c-format --flag=g_log:3:c-format --flag=g_print:1:c-format --flag=g_printerr:1:c-format --flag=g_printf:1:c-format --flag=g_fprintf:2:c-format --flag=g_sprintf:2:c-format --flag=g_snprintf:3:c-format --flag=g_scanner_error:2:c-format --flag=g_scanner_warn:2:c-format --output=untitled.pot --files-from=./POTFILES.in.temp --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=T_ --from-code=UTF-8 --<email address hidden>" --from-code=UTF-8
Removing generated header (.h) files...done.
Wrote untitled.pot
dh_install --fail-missing
Can't stat debian/tmp: No such file or directory
 at /usr/bin/dh_install line 245.
# Language packs
for d in $(find debian/indicator-datetime -type f \( -name "*.desktop" -o -name "*.directory" \) ); do \
  sed -ri '/^(Name|GenericName|Comment|X-GNOME-FullName)\[/d' $d; \
  echo "X-Ubuntu-Gettext-Domain=indicator-datetime" >> $d; \
        done;

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
332. By Charles Kerr

in debian/rules, move unneeded intltool and .desktop file rules.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sebastien Bacher (seb128) wrote :

> In debian/rules, don't override_dh_install. This needs another pair of eyes to confirm, but but none of the other indicators use anything like the rule being removed.

Thanks Charles, those changes look good! The intltool/gettext domain work is indeed not needed since the package use dh_translations (--with translations being listed in rules). You need to keep the override section with the "dh_install --fail-missing" line though. That lines makes the build stop if new files are installed by "make install" but not ending in any .deb, that allows us to not overlook installing new files when we get some

review: Needs Fixing
333. By Charles Kerr

restore 'override_dh_install: dh_install --fail-missing' based on seb128's feedback (thanks seb)

Revision history for this message
Charles Kerr (charlesk) wrote :

> You need to keep the override section with the "dh_install --fail-missing" line though

Thanks for pointing that out!

Fixed r333

Revision history for this message
Sebastien Bacher (seb128) wrote :

great!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2014-02-19 15:35:51 +0000
3+++ CMakeLists.txt 2014-03-24 15:47:32 +0000
4@@ -34,7 +34,6 @@
5 pkg_check_modules (SERVICE_DEPS REQUIRED
6 glib-2.0>=2.36
7 gio-unix-2.0>=2.36
8- geoclue>=0.12
9 libical>=0.48
10 libecal-1.2>=3.5
11 libedataserver-1.2>=3.5
12
13=== modified file 'debian/control'
14--- debian/control 2014-02-19 15:35:51 +0000
15+++ debian/control 2014-03-24 15:47:32 +0000
16@@ -9,23 +9,14 @@
17 python3-dbusmock,
18 debhelper (>= 9),
19 dh-translations,
20- intltool (>= 0.35.0),
21- gnome-common,
22 language-pack-en-base,
23- libxorg-gtest-dev,
24 libgtest-dev,
25 libglib2.0-dev (>= 2.35.4),
26 libnotify-dev (>= 0.7.6),
27 libcanberra-dev,
28- libido3-0.1-dev (>= 0.2.90),
29- libgeoclue-dev (>= 0.12.0),
30 libecal1.2-dev (>= 3.5),
31 libical-dev (>= 1.0),
32- libgtk-3-dev (>= 3.1.4),
33- libcairo2-dev (>= 1.10),
34- libpolkit-gobject-1-dev,
35 libedataserver1.2-dev (>= 3.5),
36- libgconf2-dev (>= 2.31),
37 liburl-dispatcher1-dev,
38 libproperties-cpp-dev,
39 libdbustest1-dev,
40@@ -42,11 +33,11 @@
41 Architecture: any
42 Depends: ${shlibs:Depends},
43 ${misc:Depends},
44- geoclue-ubuntu-geoip | geoclue-provider,
45 systemd-services,
46 systemd-shim,
47 Recommends: indicator-applet | indicator-renderer,
48 evolution-data-server,
49+ geoclue-ubuntu-geoip | geoclue-provider,
50 unity-control-center (>= 14.04.3) | ubuntu-system-settings,
51 Suggests: click,
52 Conflicts: indicator-datetime (<< 13.10.0)
53
54=== modified file 'debian/rules'
55--- debian/rules 2013-12-13 18:20:58 +0000
56+++ debian/rules 2014-03-24 15:47:32 +0000
57@@ -6,11 +6,6 @@
58 dh $@ --with translations
59
60 override_dh_install:
61- cd po; intltool-update --pot --verbose
62 dh_install --fail-missing
63- # Language packs
64- for d in $$(find debian/indicator-datetime -type f \( -name "*.desktop" -o -name "*.directory" \) ); do \
65- sed -ri '/^(Name|GenericName|Comment|X-GNOME-FullName)\[/d' $$d; \
66- echo "X-Ubuntu-Gettext-Domain=indicator-datetime" >> $$d; \
67- done;
68+
69

Subscribers

People subscribed via source and target branches