[olpc-powerd] add patch to fix compile
Peter Robinson
pbrobinson at fedoraproject.org
Tue Nov 29 19:44:01 UTC 2011
commit c9b050a05716bd7b3cd251f80c6a826eed08f11d
Author: Peter Robinson <pbrobinson at gmail.com>
Date: Tue Nov 29 19:43:50 2011 +0000
add patch to fix compile
olpc-powerd-Makefile.patch | 11 +++++++++++
olpc-powerd.spec | 2 ++
2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/olpc-powerd-Makefile.patch b/olpc-powerd-Makefile.patch
new file mode 100644
index 0000000..c26fe8b
--- /dev/null
+++ b/olpc-powerd-Makefile.patch
@@ -0,0 +1,11 @@
+--- olpc-powerd-40/Makefile.orig 2011-11-29 19:42:00.022777696 +0000
++++ olpc-powerd-40/Makefile 2011-11-29 19:42:07.550967416 +0000
+@@ -5,7 +5,7 @@
+ PACKAGEDBUS=olpc-powerd-dbus
+ VERSION=40
+
+-CC=arm-linux-gnueabi-gcc
++#CC=arm-linux-gnueabi-gcc
+
+ # don't edit .spec -- edit .spec.tmpl
+ SPEC=$(PACKAGE).spec
diff --git a/olpc-powerd.spec b/olpc-powerd.spec
index cfccb9e..d0aa70b 100644
--- a/olpc-powerd.spec
+++ b/olpc-powerd.spec
@@ -13,6 +13,7 @@ URL: http://dev.laptop.org/git/users/pgf/powerd/tree/powerd
Source0: %{name}-%{version}-%{tag}.tar.gz
Source1: powerd.service
Source2: olpc-switchd.service
+Patch0: olpc-powerd-Makefile.patch
BuildRequires: kernel-headers, NetworkManager-glib-devel
Requires: olpc-kbdshim, ethtool, systemd-units, evtest
@@ -42,6 +43,7 @@ over the D-Bus system bus.
%prep
%setup -q
+%patch0 -p -b1 .make
%build
export OPT_FLAGS="$RPM_OPT_FLAGS"
More information about the scm-commits
mailing list