* [gentoo-commits] gentoo-x86 commit in sys-apps/devicekit-power/files: devicekit-power-007-maintainer-cflags.patch devicekit-power-009-build-gcc-4.1.2.patch
@ 2009-08-08 22:29 Gilles Dartiguelongue (eva)
0 siblings, 0 replies; 2+ messages in thread
From: Gilles Dartiguelongue (eva) @ 2009-08-08 22:29 UTC (permalink / raw
To: gentoo-commits
eva 09/08/08 22:29:30
Added: devicekit-power-007-maintainer-cflags.patch
devicekit-power-009-build-gcc-4.1.2.patch
Log:
Initial ebuild presumably from nirbheek. Dependency of gnome-power-manager-2.26.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Revision Changes Path
1.1 sys-apps/devicekit-power/files/devicekit-power-007-maintainer-cflags.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/devicekit-power/files/devicekit-power-007-maintainer-cflags.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/devicekit-power/files/devicekit-power-007-maintainer-cflags.patch?rev=1.1&content-type=text/plain
Index: devicekit-power-007-maintainer-cflags.patch
===================================================================
configure.ac | 24 +++++++++++++++++++-----
1 files changed, 19 insertions(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index b8d43d5..d114bd7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,16 +56,30 @@ dnl ---------------------------------------------------------------------------
dnl - Extra verbose warning switches, disable if needed
dnl ---------------------------------------------------------------------------
if test "$GCC" = "yes"; then
- CPPFLAGS="$CPPFLAGS -Werror -Wcast-align -Wno-uninitialized"
- CPPFLAGS="$CPPFLAGS -Wall -Wformat-security"
+ CPPFLAGS="$CPPFLAGS -Wall"
# CPPFLAGS="$CPPFLAGS -Wall"
fi
-if test "x$GCC" = "xyes"; then
+if test "x${USE_MAINTAINER_MODE}" = "xyes" -a "x$GCC" = "xyes"; then
changequote(,)dnl
case " $CFLAGS " in
- *[\ \ ]-Wall[\ \ ]*) ;;
- *) CFLAGS="$CFLAGS -Wall" ;;
+ *[\ \ ]-Werror[\ \ ]*) ;;
+ *) CFLAGS="$CFLAGS -Werror" ;;
+ esac
+
+ case " $CFLAGS " in
+ *[\ \ ]-Wcast-align[\ \ ]*) ;;
+ *) CFLAGS="$CFLAGS -Wcast-align" ;;
+ esac
+
+ case " $CFLAGS " in
+ *[\ \ ]-Wno-uninitialized[\ \ ]*) ;;
+ *) CFLAGS="$CFLAGS -Wno-uninitialized" ;;
+ esac
+
+ case " $CFLAGS " in
+ *[\ \ ]-Wcast-align[\ \ ]*) ;;
+ *) CFLAGS="$CFLAGS -Wformat-security" ;;
esac
case " $CFLAGS " in
1.1 sys-apps/devicekit-power/files/devicekit-power-009-build-gcc-4.1.2.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/devicekit-power/files/devicekit-power-009-build-gcc-4.1.2.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/devicekit-power/files/devicekit-power-009-build-gcc-4.1.2.patch?rev=1.1&content-type=text/plain
Index: devicekit-power-009-build-gcc-4.1.2.patch
===================================================================
Fix build with older gcc, bug #266987
--
--- src/dkp-device-supply.c
+++ src/dkp-device-supply.c
@@ -262,9 +262,9 @@
gboolean is_present;
gdouble energy;
gdouble energy_full;
- gdouble energy_full_design;
+ gdouble energy_full_design = 0.0f;
gdouble energy_rate;
- gdouble capacity;
+ gdouble capacity = 0.0f;
gdouble percentage = 0.0f;
gdouble voltage;
guint64 time_to_empty;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in sys-apps/devicekit-power/files: devicekit-power-007-maintainer-cflags.patch devicekit-power-009-build-gcc-4.1.2.patch
@ 2010-12-12 17:07 Samuli Suominen (ssuominen)
0 siblings, 0 replies; 2+ messages in thread
From: Samuli Suominen (ssuominen) @ 2010-12-12 17:07 UTC (permalink / raw
To: gentoo-commits
ssuominen 10/12/12 17:07:50
Removed: devicekit-power-007-maintainer-cflags.patch
devicekit-power-009-build-gcc-4.1.2.patch
Log:
punt devicekit-power
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-12 17:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-08 22:29 [gentoo-commits] gentoo-x86 commit in sys-apps/devicekit-power/files: devicekit-power-007-maintainer-cflags.patch devicekit-power-009-build-gcc-4.1.2.patch Gilles Dartiguelongue (eva)
-- strict thread matches above, loose matches on Subject: below --
2010-12-12 17:07 Samuli Suominen (ssuominen)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox