Merge lp:~indicator-applet-developers/ubuntu/precise/indicator-datetime/upstream into lp:~ubuntu-desktop/indicator-datetime/ubuntu

Proposed by Charles Kerr
Status: Merged
Merged at revision: 144
Proposed branch: lp:~indicator-applet-developers/ubuntu/precise/indicator-datetime/upstream
Merge into: lp:~ubuntu-desktop/indicator-datetime/ubuntu
Diff against target: 777 lines (+263/-171)
13 files modified
ChangeLog (+28/-0)
Makefile.am (+1/-35)
Makefile.am.coverage (+48/-0)
Makefile.in (+47/-41)
configure (+100/-64)
configure.ac (+4/-2)
data/Makefile.in (+0/-1)
debian/changelog (+10/-0)
m4/gcov.m4 (+13/-10)
src/Makefile.in (+0/-1)
src/datetime-prefs.c (+1/-8)
src/datetime-service.c (+11/-8)
tests/Makefile.in (+0/-1)
To merge this branch: bzr merge lp:~indicator-applet-developers/ubuntu/precise/indicator-datetime/upstream
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+100886@code.launchpad.net

Description of the change

indicator-datetime (0.3.94-0ubuntu1~ppa1) precise; urgency=low

  * New upstream release.
    * Fix location timezone sorting issue.
    * Clicking the systems settings window shouldn't close the
      Locations dialog. (LP: #947315)
    * Add gcov targets to autotools build for code-coverage reporting.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'ChangeLog'
--- ChangeLog 2012-03-28 23:09:07 +0000
+++ ChangeLog 2012-04-04 22:01:22 +0000
@@ -1,5 +1,33 @@
1# Generated by Makefile. Do not edit.1# Generated by Makefile. Do not edit.
22
32012-04-04 Charles Kerr <charles.kerr@canonical.com>
4
5 0.3.94
6
72012-04-03 Charles Kerr <charles.kerr@canonical.com>
8
9 merge lp:~allanlesage/indicator-datetime/TDD to remove a dependency on gcovr, move gcov targets to their own makefile, and clean up .gcno files.
10
112012-03-27 Allan LeSage <allanlesage@gmail.com>
12
13 Removed gcovr dependency, moved coverage targets to own makefile, cleaning up *.gcno.
14
152012-04-02 Charles Kerr <charles.kerr@canonical.com>
16
17 merge lp:~charlesk/indicator-datetime/fiz-tz-offset to fix a timezone sorting issue reported by seb128 and diagnosed by desrt.
18
192012-04-02 Charles Kerr <charles.kerr@canonical.com>
20
21 fix timezone sorting issue reported by seb128 and diagnosed by desrt
22
232012-04-02 Charles Kerr <charles.kerr@canonical.com>
24
25 clicking the systems settings window shouldn't close the Locations dialog.
26
272012-03-29 Charles Kerr <charles.kerr@canonical.com>
28
29 clicking the systems settings window shouldn't close the 'Locations' dialog.
30
32012-03-28 Charles Kerr <charles.kerr@canonical.com>312012-03-28 Charles Kerr <charles.kerr@canonical.com>
432
5 0.3.9333 0.3.93
634
=== modified file 'Makefile.am'
--- Makefile.am 2012-02-17 22:15:25 +0000
+++ Makefile.am 2012-04-04 22:01:22 +0000
@@ -36,38 +36,4 @@
36 echo Failed to generate AUTHORS: not a branch >&2; \36 echo Failed to generate AUTHORS: not a branch >&2; \
37 fi37 fi
3838
3939include $(top_srcdir)/Makefile.am.coverage
40# Coverage targets
41
42.PHONY: clean-gcda
43clean-gcda:
44 @echo Removing old coverage results
45 -find -name '*.gcda' -print | xargs -r rm
46
47.PHONY: coverage-html generate-coverage-html clean-coverage-html
48coverage-html: clean-gcda
49 -$(MAKE) $(AM_MAKEFLAGS) -k check
50 $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
51
52generate-coverage-html:
53 @echo Collecting coverage data
54 $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool
55 LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info
56
57clean-coverage-html: clean-gcda
58 -$(LCOV) --directory $(top_builddir) -z
59 -rm -rf coverage.info coveragereport
60
61.PHONY: coverage-xml generate-coverage-xml clean-coverage-xml
62coverage-xml: clean-gcda
63 -$(MAKE) $(AM_MAKEFLAGS) -k check
64 $(MAKE) $(AM_MAKEFLAGS) generate-coverage-xml
65
66generate-coverage-xml:
67 @echo Generating coverage XML report
68 $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml
69
70clean-coverage-xml: clean-gcda
71 -rm -rf $(top_builddir)/coverage.xml
72
73clean-local: clean-coverage-html clean-coverage-xml
7440
=== added file 'Makefile.am.coverage'
--- Makefile.am.coverage 1970-01-01 00:00:00 +0000
+++ Makefile.am.coverage 2012-04-04 22:01:22 +0000
@@ -0,0 +1,48 @@
1
2# Coverage targets
3
4.PHONY: clean-gcno clean-gcda \
5 coverage-html generate-coverage-html clean-coverage-html \
6 coverage-gcovr generate-coverage-gcovr clean-coverage-gcovr
7
8clean-local: clean-gcno clean-coverage-html clean-coverage-gcovr
9
10if HAVE_GCOV
11
12clean-gcno:
13 @echo Removing old coverage instrumentation
14 -find -name '*.gcno' -print | xargs -r rm
15
16clean-gcda:
17 @echo Removing old coverage results
18 -find -name '*.gcda' -print | xargs -r rm
19
20coverage-html: clean-gcda
21 -$(MAKE) $(AM_MAKEFLAGS) -k check
22 $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
23
24generate-coverage-html:
25 @echo Collecting coverage data
26 $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool
27 LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info
28
29clean-coverage-html: clean-gcda
30 -$(LCOV) --directory $(top_builddir) -z
31 -rm -rf coverage.info coveragereport
32
33if HAVE_GCOVR
34
35coverage-gcovr: clean-gcda
36 -$(MAKE) $(AM_MAKEFLAGS) -k check
37 $(MAKE) $(AM_MAKEFLAGS) generate-coverage-gcovr
38
39generate-coverage-gcovr:
40 @echo Generating coverage GCOVR report
41 $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml
42
43clean-coverage-gcovr: clean-gcda
44 -rm -rf $(top_builddir)/coverage.xml
45
46endif # HAVE_GCOVR
47
48endif # HAVE_GCOV
049
=== modified file 'Makefile.in'
--- Makefile.in 2012-02-17 22:18:45 +0000
+++ Makefile.in 2012-04-04 22:01:22 +0000
@@ -14,6 +14,8 @@
14# PARTICULAR PURPOSE.14# PARTICULAR PURPOSE.
1515
16@SET_MAKE@16@SET_MAKE@
17
18# Coverage targets
17VPATH = @srcdir@19VPATH = @srcdir@
18pkgdatadir = $(datadir)/@PACKAGE@20pkgdatadir = $(datadir)/@PACKAGE@
19pkgincludedir = $(includedir)/@PACKAGE@21pkgincludedir = $(includedir)/@PACKAGE@
@@ -33,13 +35,14 @@
33POST_UNINSTALL = :35POST_UNINSTALL = :
34build_triplet = @build@36build_triplet = @build@
35host_triplet = @host@37host_triplet = @host@
36subdir = .
37DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \38DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
38 $(srcdir)/Makefile.in $(srcdir)/config.h.in \39 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
39 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \40 $(top_srcdir)/Makefile.am.coverage $(top_srcdir)/configure \
40 build-aux/compile build-aux/config.guess build-aux/config.sub \41 AUTHORS COPYING ChangeLog INSTALL NEWS build-aux/compile \
41 build-aux/depcomp build-aux/install-sh build-aux/ltmain.sh \42 build-aux/config.guess build-aux/config.sub build-aux/depcomp \
42 build-aux/missing build-aux/mkinstalldirs43 build-aux/install-sh build-aux/ltmain.sh build-aux/missing \
44 build-aux/mkinstalldirs
45subdir = .
43ACLOCAL_M4 = $(top_srcdir)/aclocal.m446ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
44am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \47am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
45 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \48 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
@@ -133,7 +136,6 @@
133CCPANELDIR = @CCPANELDIR@136CCPANELDIR = @CCPANELDIR@
134CFLAGS = @CFLAGS@137CFLAGS = @CFLAGS@
135COVERAGE_CFLAGS = @COVERAGE_CFLAGS@138COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
136COVERAGE_CXXFLAGS = @COVERAGE_CXXFLAGS@
137COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@139COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
138CPP = @CPP@140CPP = @CPP@
139CPPFLAGS = @CPPFLAGS@141CPPFLAGS = @CPPFLAGS@
@@ -304,7 +306,7 @@
304.SUFFIXES:306.SUFFIXES:
305am--refresh: Makefile307am--refresh: Makefile
306 @:308 @:
307$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)309$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.coverage $(am__configure_deps)
308 @for dep in $?; do \310 @for dep in $?; do \
309 case '$(am__configure_deps)' in \311 case '$(am__configure_deps)' in \
310 *$$dep*) \312 *$$dep*) \
@@ -327,6 +329,7 @@
327 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \329 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
328 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \330 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
329 esac;331 esac;
332$(top_srcdir)/Makefile.am.coverage:
330333
331$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)334$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
332 $(SHELL) ./config.status --recheck335 $(SHELL) ./config.status --recheck
@@ -841,40 +844,43 @@
841 echo Failed to generate AUTHORS: not a branch >&2; \844 echo Failed to generate AUTHORS: not a branch >&2; \
842 fi845 fi
843846
844# Coverage targets847.PHONY: clean-gcno clean-gcda \
845848 coverage-html generate-coverage-html clean-coverage-html \
846.PHONY: clean-gcda849 coverage-gcovr generate-coverage-gcovr clean-coverage-gcovr
847clean-gcda:850
848 @echo Removing old coverage results851clean-local: clean-gcno clean-coverage-html clean-coverage-gcovr
849 -find -name '*.gcda' -print | xargs -r rm852
850853@HAVE_GCOV_TRUE@clean-gcno:
851.PHONY: coverage-html generate-coverage-html clean-coverage-html854@HAVE_GCOV_TRUE@ @echo Removing old coverage instrumentation
852coverage-html: clean-gcda855@HAVE_GCOV_TRUE@ -find -name '*.gcno' -print | xargs -r rm
853 -$(MAKE) $(AM_MAKEFLAGS) -k check856
854 $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html857@HAVE_GCOV_TRUE@clean-gcda:
855858@HAVE_GCOV_TRUE@ @echo Removing old coverage results
856generate-coverage-html:859@HAVE_GCOV_TRUE@ -find -name '*.gcda' -print | xargs -r rm
857 @echo Collecting coverage data860
858 $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool861@HAVE_GCOV_TRUE@coverage-html: clean-gcda
859 LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info862@HAVE_GCOV_TRUE@ -$(MAKE) $(AM_MAKEFLAGS) -k check
860863@HAVE_GCOV_TRUE@ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
861clean-coverage-html: clean-gcda864
862 -$(LCOV) --directory $(top_builddir) -z865@HAVE_GCOV_TRUE@generate-coverage-html:
863 -rm -rf coverage.info coveragereport866@HAVE_GCOV_TRUE@ @echo Collecting coverage data
864867@HAVE_GCOV_TRUE@ $(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool
865.PHONY: coverage-xml generate-coverage-xml clean-coverage-xml868@HAVE_GCOV_TRUE@ LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info
866coverage-xml: clean-gcda869
867 -$(MAKE) $(AM_MAKEFLAGS) -k check870@HAVE_GCOV_TRUE@clean-coverage-html: clean-gcda
868 $(MAKE) $(AM_MAKEFLAGS) generate-coverage-xml871@HAVE_GCOV_TRUE@ -$(LCOV) --directory $(top_builddir) -z
869872@HAVE_GCOV_TRUE@ -rm -rf coverage.info coveragereport
870generate-coverage-xml:873
871 @echo Generating coverage XML report874@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@coverage-gcovr: clean-gcda
872 $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml875@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ -$(MAKE) $(AM_MAKEFLAGS) -k check
873876@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ $(MAKE) $(AM_MAKEFLAGS) generate-coverage-gcovr
874clean-coverage-xml: clean-gcda877
875 -rm -rf $(top_builddir)/coverage.xml878@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@generate-coverage-gcovr:
876879@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ @echo Generating coverage GCOVR report
877clean-local: clean-coverage-html clean-coverage-xml880@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ $(GCOVR) -x -r $(top_builddir) -o $(top_builddir)/coverage.xml
881
882@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@clean-coverage-gcovr: clean-gcda
883@HAVE_GCOVR_TRUE@@HAVE_GCOV_TRUE@ -rm -rf $(top_builddir)/coverage.xml
878884
879# Tell versions [3.59,3.63) of GNU make to not export all variables.885# Tell versions [3.59,3.63) of GNU make to not export all variables.
880# Otherwise a system limit (for SysV at least) may be exceeded.886# Otherwise a system limit (for SysV at least) may be exceeded.
881887
=== modified file 'configure'
--- configure 2012-03-28 23:09:07 +0000
+++ configure 2012-04-04 22:01:22 +0000
@@ -1,6 +1,6 @@
1#! /bin/sh1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for indicator-datetime 0.3.93.3# Generated by GNU Autoconf 2.68 for indicator-datetime 0.3.94.
4#4#
5# Report bugs to <http://bugs.launchpad.net/indicator-datetime>.5# Report bugs to <http://bugs.launchpad.net/indicator-datetime>.
6#6#
@@ -572,8 +572,8 @@
572# Identity of this package.572# Identity of this package.
573PACKAGE_NAME='indicator-datetime'573PACKAGE_NAME='indicator-datetime'
574PACKAGE_TARNAME='indicator-datetime'574PACKAGE_TARNAME='indicator-datetime'
575PACKAGE_VERSION='0.3.93'575PACKAGE_VERSION='0.3.94'
576PACKAGE_STRING='indicator-datetime 0.3.93'576PACKAGE_STRING='indicator-datetime 0.3.94'
577PACKAGE_BUGREPORT='http://bugs.launchpad.net/indicator-datetime'577PACKAGE_BUGREPORT='http://bugs.launchpad.net/indicator-datetime'
578PACKAGE_URL='http://launchpad.net/indicator-datetime'578PACKAGE_URL='http://launchpad.net/indicator-datetime'
579579
@@ -672,8 +672,13 @@
672INDICATORICONSDIR672INDICATORICONSDIR
673INDICATORDIR673INDICATORDIR
674COVERAGE_LDFLAGS674COVERAGE_LDFLAGS
675COVERAGE_CXXFLAGS
676COVERAGE_CFLAGS675COVERAGE_CFLAGS
676HAVE_GCOVR_FALSE
677HAVE_GCOVR_TRUE
678HAVE_LCOV_FALSE
679HAVE_LCOV_TRUE
680HAVE_GCOV_FALSE
681HAVE_GCOV_TRUE
677GCOVR682GCOVR
678GENHTML683GENHTML
679LCOV684LCOV
@@ -1395,7 +1400,7 @@
1395 # Omit some internal or obsolete options to make the list less imposing.1400 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.1401 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF1402 cat <<_ACEOF
1398\`configure' configures indicator-datetime 0.3.93 to adapt to many kinds of systems.1403\`configure' configures indicator-datetime 0.3.94 to adapt to many kinds of systems.
13991404
1400Usage: $0 [OPTION]... [VAR=VALUE]...1405Usage: $0 [OPTION]... [VAR=VALUE]...
14011406
@@ -1466,7 +1471,7 @@
14661471
1467if test -n "$ac_init_help"; then1472if test -n "$ac_init_help"; then
1468 case $ac_init_help in1473 case $ac_init_help in
1469 short | recursive ) echo "Configuration of indicator-datetime 0.3.93:";;1474 short | recursive ) echo "Configuration of indicator-datetime 0.3.94:";;
1470 esac1475 esac
1471 cat <<\_ACEOF1476 cat <<\_ACEOF
14721477
@@ -1600,7 +1605,7 @@
1600test -n "$ac_init_help" && exit $ac_status1605test -n "$ac_init_help" && exit $ac_status
1601if $ac_init_version; then1606if $ac_init_version; then
1602 cat <<\_ACEOF1607 cat <<\_ACEOF
1603indicator-datetime configure 0.3.931608indicator-datetime configure 0.3.94
1604generated by GNU Autoconf 2.681609generated by GNU Autoconf 2.68
16051610
1606Copyright (C) 2010 Free Software Foundation, Inc.1611Copyright (C) 2010 Free Software Foundation, Inc.
@@ -1971,7 +1976,7 @@
1971This file contains any messages produced by compilers while1976This file contains any messages produced by compilers while
1972running configure, to aid debugging if configure makes a mistake.1977running configure, to aid debugging if configure makes a mistake.
19731978
1974It was created by indicator-datetime $as_me 0.3.93, which was1979It was created by indicator-datetime $as_me 0.3.94, which was
1975generated by GNU Autoconf 2.68. Invocation command line was1980generated by GNU Autoconf 2.68. Invocation command line was
19761981
1977 $ $0 $@1982 $ $0 $@
@@ -2795,7 +2800,7 @@
27952800
2796# Define the identity of the package.2801# Define the identity of the package.
2797 PACKAGE='indicator-datetime'2802 PACKAGE='indicator-datetime'
2798 VERSION='0.3.93'2803 VERSION='0.3.94'
27992804
28002805
2801cat >>confdefs.h <<_ACEOF2806cat >>confdefs.h <<_ACEOF
@@ -12864,13 +12869,7 @@
12864 # AC_TDD_GCOV12869 # AC_TDD_GCOV
1286512870
1286612871
12867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether code coverage tools are available" >&512872 # Check whether --enable-gcov was given.
12868$as_echo_n "checking whether code coverage tools are available... " >&6; }
12869if ${ac_cv_check_gcov+:} false; then :
12870 $as_echo_n "(cached) " >&6
12871else
12872
12873# Check whether --enable-gcov was given.
12874if test "${enable_gcov+set}" = set; then :12873if test "${enable_gcov+set}" = set; then :
12875 enableval=$enable_gcov; use_gcov=$enableval12874 enableval=$enable_gcov; use_gcov=$enableval
12876else12875else
@@ -13006,43 +13005,6 @@
13006fi13005fi
1300713006
1300813007
13009 # Extract the first word of "gcovr", so it can be a program name with args.
13010set dummy gcovr; ac_word=$2
13011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13012$as_echo_n "checking for $ac_word... " >&6; }
13013if ${ac_cv_prog_GCOVR+:} false; then :
13014 $as_echo_n "(cached) " >&6
13015else
13016 if test -n "$GCOVR"; then
13017 ac_cv_prog_GCOVR="$GCOVR" # Let the user override the test.
13018else
13019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020for as_dir in $PATH
13021do
13022 IFS=$as_save_IFS
13023 test -z "$as_dir" && as_dir=.
13024 for ac_exec_ext in '' $ac_executable_extensions; do
13025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13026 ac_cv_prog_GCOVR="gcovr"
13027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13028 break 2
13029 fi
13030done
13031 done
13032IFS=$as_save_IFS
13033
13034fi
13035fi
13036GCOVR=$ac_cv_prog_GCOVR
13037if test -n "$GCOVR"; then
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOVR" >&5
13039$as_echo "$GCOVR" >&6; }
13040else
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13042$as_echo "no" >&6; }
13043fi
13044
13045
1304613008
13047 if test "$LCOV"; then13009 if test "$LCOV"; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&513010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
@@ -13079,10 +13041,8 @@
13079 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 513041 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
13080 fi13042 fi
1308113043
13082 if test -z "$GCOVR"; then13044 ac_cv_check_gcov=yes
13083 as_fn_error $? "Could not find gcovr; easy_install (or pip) gcovr" "$LINENO" 513045 ac_cv_check_lcov=yes
13084 fi
13085
1308613046
13087 # Remove all optimization flags from CFLAGS13047 # Remove all optimization flags from CFLAGS
1308813048
@@ -13094,11 +13054,75 @@
13094 COVERAGE_CXXFLAGS="-O0 -fprofile-arcs -ftest-coverage"13054 COVERAGE_CXXFLAGS="-O0 -fprofile-arcs -ftest-coverage"
13095 COVERAGE_LDFLAGS="-lgcov"13055 COVERAGE_LDFLAGS="-lgcov"
1309613056
13097fi13057 # Check availability of gcovr
1309813058 # Extract the first word of "gcovr", so it can be a program name with args.
13099fi13059set dummy gcovr; ac_word=$2
13100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_check_gcov" >&513060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13101$as_echo "$ac_cv_check_gcov" >&6; }13061$as_echo_n "checking for $ac_word... " >&6; }
13062if ${ac_cv_prog_GCOVR+:} false; then :
13063 $as_echo_n "(cached) " >&6
13064else
13065 if test -n "$GCOVR"; then
13066 ac_cv_prog_GCOVR="$GCOVR" # Let the user override the test.
13067else
13068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13069for as_dir in $PATH
13070do
13071 IFS=$as_save_IFS
13072 test -z "$as_dir" && as_dir=.
13073 for ac_exec_ext in '' $ac_executable_extensions; do
13074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13075 ac_cv_prog_GCOVR="gcovr"
13076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13077 break 2
13078 fi
13079done
13080 done
13081IFS=$as_save_IFS
13082
13083fi
13084fi
13085GCOVR=$ac_cv_prog_GCOVR
13086if test -n "$GCOVR"; then
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOVR" >&5
13088$as_echo "$GCOVR" >&6; }
13089else
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091$as_echo "no" >&6; }
13092fi
13093
13094
13095 if test -z "$GCOVR"; then
13096 ac_cv_check_gcovr=no
13097 else
13098 ac_cv_check_gcovr=yes
13099 fi
13100
13101fi
13102
13103 if test "x$ac_cv_check_gcov" = xyes; then
13104 HAVE_GCOV_TRUE=
13105 HAVE_GCOV_FALSE='#'
13106else
13107 HAVE_GCOV_TRUE='#'
13108 HAVE_GCOV_FALSE=
13109fi
13110
13111 if test "x$ac_cv_check_lcov" = xyes; then
13112 HAVE_LCOV_TRUE=
13113 HAVE_LCOV_FALSE='#'
13114else
13115 HAVE_LCOV_TRUE='#'
13116 HAVE_LCOV_FALSE=
13117fi
13118
13119 if test "x$ac_cv_check_gcovr" = xyes; then
13120 HAVE_GCOVR_TRUE=
13121 HAVE_GCOVR_FALSE='#'
13122else
13123 HAVE_GCOVR_TRUE='#'
13124 HAVE_GCOVR_FALSE=
13125fi
1310213126
1310313127
1310413128
@@ -14630,6 +14654,18 @@
14630 as_fn_error $? "conditional \"BUILD_CCPANEL\" was never defined.14654 as_fn_error $? "conditional \"BUILD_CCPANEL\" was never defined.
14631Usually this means the macro was only invoked conditionally." "$LINENO" 514655Usually this means the macro was only invoked conditionally." "$LINENO" 5
14632fi14656fi
14657if test -z "${HAVE_GCOV_TRUE}" && test -z "${HAVE_GCOV_FALSE}"; then
14658 as_fn_error $? "conditional \"HAVE_GCOV\" was never defined.
14659Usually this means the macro was only invoked conditionally." "$LINENO" 5
14660fi
14661if test -z "${HAVE_LCOV_TRUE}" && test -z "${HAVE_LCOV_FALSE}"; then
14662 as_fn_error $? "conditional \"HAVE_LCOV\" was never defined.
14663Usually this means the macro was only invoked conditionally." "$LINENO" 5
14664fi
14665if test -z "${HAVE_GCOVR_TRUE}" && test -z "${HAVE_GCOVR_FALSE}"; then
14666 as_fn_error $? "conditional \"HAVE_GCOVR\" was never defined.
14667Usually this means the macro was only invoked conditionally." "$LINENO" 5
14668fi
1463314669
14634 ac_config_commands="$ac_config_commands po/stamp-it"14670 ac_config_commands="$ac_config_commands po/stamp-it"
1463514671
@@ -15043,7 +15079,7 @@
15043# report actual input values of CONFIG_FILES etc. instead of their15079# report actual input values of CONFIG_FILES etc. instead of their
15044# values after options handling.15080# values after options handling.
15045ac_log="15081ac_log="
15046This file was extended by indicator-datetime $as_me 0.3.93, which was15082This file was extended by indicator-datetime $as_me 0.3.94, which was
15047generated by GNU Autoconf 2.68. Invocation command line was15083generated by GNU Autoconf 2.68. Invocation command line was
1504815084
15049 CONFIG_FILES = $CONFIG_FILES15085 CONFIG_FILES = $CONFIG_FILES
@@ -15110,7 +15146,7 @@
15110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=115146cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15111ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"15147ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15112ac_cs_version="\\15148ac_cs_version="\\
15113indicator-datetime config.status 0.3.9315149indicator-datetime config.status 0.3.94
15114configured by $0, generated by GNU Autoconf 2.68,15150configured by $0, generated by GNU Autoconf 2.68,
15115 with options \\"\$ac_cs_config\\"15151 with options \\"\$ac_cs_config\\"
1511615152
1511715153
=== modified file 'configure.ac'
--- configure.ac 2012-03-28 23:09:07 +0000
+++ configure.ac 2012-04-04 22:01:22 +0000
@@ -1,5 +1,5 @@
1AC_INIT([indicator-datetime],1AC_INIT([indicator-datetime],
2 [0.3.93],2 [0.3.94],
3 [http://bugs.launchpad.net/indicator-datetime],3 [http://bugs.launchpad.net/indicator-datetime],
4 [indicator-datetime],4 [indicator-datetime],
5 [http://launchpad.net/indicator-datetime])5 [http://launchpad.net/indicator-datetime])
@@ -145,8 +145,10 @@
145145
146m4_include([m4/gcov.m4])146m4_include([m4/gcov.m4])
147AC_TDD_GCOV147AC_TDD_GCOV
148AM_CONDITIONAL([HAVE_GCOV], [test "x$ac_cv_check_gcov" = xyes])
149AM_CONDITIONAL([HAVE_LCOV], [test "x$ac_cv_check_lcov" = xyes])
150AM_CONDITIONAL([HAVE_GCOVR], [test "x$ac_cv_check_gcovr" = xyes])
148AC_SUBST(COVERAGE_CFLAGS)151AC_SUBST(COVERAGE_CFLAGS)
149AC_SUBST(COVERAGE_CXXFLAGS)
150AC_SUBST(COVERAGE_LDFLAGS)152AC_SUBST(COVERAGE_LDFLAGS)
151153
152###########################154###########################
153155
=== modified file 'data/Makefile.in'
--- data/Makefile.in 2012-02-17 22:18:45 +0000
+++ data/Makefile.in 2012-04-04 22:01:22 +0000
@@ -109,7 +109,6 @@
109CCPANELDIR = @CCPANELDIR@109CCPANELDIR = @CCPANELDIR@
110CFLAGS = @CFLAGS@110CFLAGS = @CFLAGS@
111COVERAGE_CFLAGS = @COVERAGE_CFLAGS@111COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
112COVERAGE_CXXFLAGS = @COVERAGE_CXXFLAGS@
113COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@112COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
114CPP = @CPP@113CPP = @CPP@
115CPPFLAGS = @CPPFLAGS@114CPPFLAGS = @CPPFLAGS@
116115
=== modified file 'debian/changelog'
--- debian/changelog 2012-03-29 15:44:39 +0000
+++ debian/changelog 2012-04-04 22:01:22 +0000
@@ -1,3 +1,13 @@
1indicator-datetime (0.3.94-0ubuntu1~ppa1) precise; urgency=low
2
3 * New upstream release.
4 * Fix location timezone sorting issue.
5 * Clicking the systems settings window shouldn't close the
6 Locations dialog. (LP: #947315)
7 * Add gcov targets to autotools build for code-coverage reporting.
8
9 -- Charles Kerr <charles.kerr@canonical.com> Wed, 04 Apr 2012 16:53:20 -0500
10
1indicator-datetime (0.3.93-0ubuntu1) precise; urgency=low11indicator-datetime (0.3.93-0ubuntu1) precise; urgency=low
212
3 * New upstream release.13 * New upstream release.
414
=== modified file 'm4/gcov.m4'
--- m4/gcov.m4 2011-12-07 00:43:35 +0000
+++ m4/gcov.m4 2012-04-04 22:01:22 +0000
@@ -5,11 +5,10 @@
5# * gcovr5# * gcovr
6# 6#
7# Sets ac_cv_check_gcov to yes if tooling is present7# Sets ac_cv_check_gcov to yes if tooling is present
8# and reports the executables to the variables LCOV, GCOVR and GENHTML. 8# and reports the executables to the variables LCOV, GCOVR and GENHTML.
9AC_DEFUN([AC_TDD_GCOV],9AC_DEFUN([AC_TDD_GCOV],
10[AC_CACHE_CHECK([whether code coverage tools are available], ac_cv_check_gcov,
11[10[
12AC_ARG_ENABLE(gcov,11 AC_ARG_ENABLE(gcov,
13 AS_HELP_STRING([--enable-gcov],12 AS_HELP_STRING([--enable-gcov],
14 [enable coverage testing with gcov]),13 [enable coverage testing with gcov]),
15 [use_gcov=$enableval], [use_gcov=no])14 [use_gcov=$enableval], [use_gcov=no])
@@ -34,7 +33,6 @@
34 lcov_version_list="1.6 1.7 1.8 1.9"33 lcov_version_list="1.6 1.7 1.8 1.9"
35 AC_CHECK_PROG(LCOV, lcov, lcov)34 AC_CHECK_PROG(LCOV, lcov, lcov)
36 AC_CHECK_PROG(GENHTML, genhtml, genhtml)35 AC_CHECK_PROG(GENHTML, genhtml, genhtml)
37 AC_CHECK_PROG(GCOVR, gcovr, gcovr)
3836
39 if test "$LCOV"; then37 if test "$LCOV"; then
40 AC_CACHE_CHECK([for lcov version], glib_cv_lcov_version, [38 AC_CACHE_CHECK([for lcov version], glib_cv_lcov_version, [
@@ -63,10 +61,8 @@
63 AC_MSG_ERROR([Could not find genhtml from the lcov package])61 AC_MSG_ERROR([Could not find genhtml from the lcov package])
64 fi62 fi
6563
66 if test -z "$GCOVR"; then64 ac_cv_check_gcov=yes
67 AC_MSG_ERROR([Could not find gcovr; easy_install (or pip) gcovr])65 ac_cv_check_lcov=yes
68 fi
69
7066
71 # Remove all optimization flags from CFLAGS67 # Remove all optimization flags from CFLAGS
72 changequote({,})68 changequote({,})
@@ -78,6 +74,13 @@
78 COVERAGE_CXXFLAGS="-O0 -fprofile-arcs -ftest-coverage" 74 COVERAGE_CXXFLAGS="-O0 -fprofile-arcs -ftest-coverage"
79 COVERAGE_LDFLAGS="-lgcov"75 COVERAGE_LDFLAGS="-lgcov"
8076
77 # Check availability of gcovr
78 AC_CHECK_PROG(GCOVR, gcovr, gcovr)
79 if test -z "$GCOVR"; then
80 ac_cv_check_gcovr=no
81 else
82 ac_cv_check_gcovr=yes
83 fi
84
81fi85fi
82])]) # AC_TDD_GCOV86]) # AC_TDD_GCOV
83
8487
=== modified file 'src/Makefile.in'
--- src/Makefile.in 2012-02-17 22:18:45 +0000
+++ src/Makefile.in 2012-04-04 22:01:22 +0000
@@ -172,7 +172,6 @@
172CCPANELDIR = @CCPANELDIR@172CCPANELDIR = @CCPANELDIR@
173CFLAGS = @CFLAGS@173CFLAGS = @CFLAGS@
174COVERAGE_CFLAGS = @COVERAGE_CFLAGS@174COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
175COVERAGE_CXXFLAGS = @COVERAGE_CXXFLAGS@
176COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@175COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
177CPP = @CPP@176CPP = @CPP@
178CPPFLAGS = @CPPFLAGS@177CPPFLAGS = @CPPFLAGS@
179178
=== modified file 'src/datetime-prefs.c'
--- src/datetime-prefs.c 2012-03-28 06:14:07 +0000
+++ src/datetime-prefs.c 2012-04-04 22:01:22 +0000
@@ -577,21 +577,14 @@
577}577}
578578
579static void579static void
580hide_locations (IndicatorDatetimePanel * self)
581{
582 if (self->priv->loc_dlg != NULL)
583 gtk_widget_destroy (self->priv->loc_dlg);
584}
585
586static void
587show_locations (IndicatorDatetimePanel * self)580show_locations (IndicatorDatetimePanel * self)
588{581{
589 if (self->priv->loc_dlg == NULL) {582 if (self->priv->loc_dlg == NULL) {
590 self->priv->loc_dlg = datetime_setup_locations_dialog (self->priv->tzmap);583 self->priv->loc_dlg = datetime_setup_locations_dialog (self->priv->tzmap);
591 GtkWidget * dlg = gtk_widget_get_toplevel (GTK_WIDGET (self));584 GtkWidget * dlg = gtk_widget_get_toplevel (GTK_WIDGET (self));
585 gtk_window_set_type_hint (GTK_WINDOW(self->priv->loc_dlg), GDK_WINDOW_TYPE_HINT_DIALOG);
592 gtk_window_set_transient_for (GTK_WINDOW (self->priv->loc_dlg), GTK_WINDOW (dlg));586 gtk_window_set_transient_for (GTK_WINDOW (self->priv->loc_dlg), GTK_WINDOW (dlg));
593 g_signal_connect (self->priv->loc_dlg, "destroy", G_CALLBACK (gtk_widget_destroyed), &self->priv->loc_dlg);587 g_signal_connect (self->priv->loc_dlg, "destroy", G_CALLBACK (gtk_widget_destroyed), &self->priv->loc_dlg);
594 g_signal_connect_swapped (dlg, "focus-in-event", G_CALLBACK (hide_locations), self);
595 gtk_widget_show_all (self->priv->loc_dlg);588 gtk_widget_show_all (self->priv->loc_dlg);
596 }589 }
597 else {590 else {
598591
=== modified file 'src/datetime-service.c'
--- src/datetime-service.c 2012-03-28 23:09:07 +0000
+++ src/datetime-service.c 2012-04-04 22:01:22 +0000
@@ -108,7 +108,7 @@
108};108};
109109
110/**110/**
111 * A temp struct used by update_location_menu_items() for pruning duplicates.111 * A temp struct used by update_location_menu_items() for pruning duplicates and sorting.
112 */112 */
113struct TimeLocation113struct TimeLocation
114{114{
@@ -124,14 +124,16 @@
124 g_free (loc);124 g_free (loc);
125}125}
126static struct TimeLocation*126static struct TimeLocation*
127time_location_new (const char * zone, const char * name)127time_location_new (const char * zone, const char * name, time_t now)
128{128{
129 struct TimeLocation * loc = g_new (struct TimeLocation, 1);129 struct TimeLocation * loc = g_new (struct TimeLocation, 1);
130 GTimeZone * tz = g_time_zone_new (zone);130 GTimeZone * tz = g_time_zone_new (zone);
131 loc->offset = g_time_zone_get_offset (tz, 0);131 gint interval = g_time_zone_find_interval (tz, G_TIME_TYPE_UNIVERSAL, now);
132 loc->offset = g_time_zone_get_offset (tz, interval);
132 loc->zone = g_strdup (zone);133 loc->zone = g_strdup (zone);
133 loc->name = g_strdup (name);134 loc->name = g_strdup (name);
134 g_time_zone_unref (tz);135 g_time_zone_unref (tz);
136 g_debug ("%s zone '%s' name '%s' offset is %d", G_STRLOC, zone, name, (int)loc->offset);
135 return loc;137 return loc;
136}138}
137static int139static int
@@ -146,9 +148,9 @@
146 return ret;148 return ret;
147}149}
148static GSList*150static GSList*
149locations_add (GSList * locations, const char * zone, const char * name)151locations_add (GSList * locations, const char * zone, const char * name, time_t now)
150{152{
151 struct TimeLocation * loc = time_location_new (zone, name);153 struct TimeLocation * loc = time_location_new (zone, name, now);
152154
153 if (g_slist_find_custom (locations, loc, (GCompareFunc)time_location_compare) == NULL) {155 if (g_slist_find_custom (locations, loc, (GCompareFunc)time_location_compare) == NULL) {
154 g_debug ("%s Adding zone '%s', name '%s'", G_STRLOC, zone, name);156 g_debug ("%s Adding zone '%s', name '%s'", G_STRLOC, zone, name);
@@ -182,18 +184,19 @@
182 ***/184 ***/
183185
184 GSList * locations = NULL;186 GSList * locations = NULL;
187 const time_t now = time(NULL);
185188
186 /* maybe add geo_timezone */189 /* maybe add geo_timezone */
187 if (geo_timezone != NULL) {190 if (geo_timezone != NULL) {
188 gchar * name = get_current_zone_name (geo_timezone);191 gchar * name = get_current_zone_name (geo_timezone);
189 locations = locations_add (locations, geo_timezone, name);192 locations = locations_add (locations, geo_timezone, name, now);
190 g_free (name);193 g_free (name);
191 }194 }
192195
193 /* maybe add current_timezone */196 /* maybe add current_timezone */
194 if (current_timezone != NULL) {197 if (current_timezone != NULL) {
195 gchar * name = get_current_zone_name (current_timezone);198 gchar * name = get_current_zone_name (current_timezone);
196 locations = locations_add (locations, current_timezone, name);199 locations = locations_add (locations, current_timezone, name, now);
197 g_free (name);200 g_free (name);
198 }201 }
199202
@@ -207,7 +210,7 @@
207 gchar * zone;210 gchar * zone;
208 gchar * name;211 gchar * name;
209 split_settings_location (user_locations[i], &zone, &name);212 split_settings_location (user_locations[i], &zone, &name);
210 locations = locations_add (locations, zone, name);213 locations = locations_add (locations, zone, name, now);
211 g_free (name);214 g_free (name);
212 g_free (zone);215 g_free (zone);
213 }216 }
214217
=== modified file 'tests/Makefile.in'
--- tests/Makefile.in 2012-02-17 22:18:45 +0000
+++ tests/Makefile.in 2012-04-04 22:01:22 +0000
@@ -72,7 +72,6 @@
72CCPANELDIR = @CCPANELDIR@72CCPANELDIR = @CCPANELDIR@
73CFLAGS = @CFLAGS@73CFLAGS = @CFLAGS@
74COVERAGE_CFLAGS = @COVERAGE_CFLAGS@74COVERAGE_CFLAGS = @COVERAGE_CFLAGS@
75COVERAGE_CXXFLAGS = @COVERAGE_CXXFLAGS@
76COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@75COVERAGE_LDFLAGS = @COVERAGE_LDFLAGS@
77CPP = @CPP@76CPP = @CPP@
78CPPFLAGS = @CPPFLAGS@77CPPFLAGS = @CPPFLAGS@

Subscribers

People subscribed via source and target branches