]> git.pld-linux.org Git - packages/openhpi.git/commitdiff
- drop -Werror on alpha and sparc; rel 3 auto/ac/openhpi-2_10_1-3 auto/th/openhpi-2_10_1-3
authorElan Ruusamäe <glen@pld-linux.org>
Sun, 16 Dec 2007 13:54:15 +0000 (13:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    openhpi.spec -> 1.35

openhpi.spec

index 1c7b79f425da53dbe4ae7f76a45fb30b7bb7e314..c14621051772cb09c22fe0063034609d8635708d 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Service Availability Forum's Hardware Platform Interface (HPI) implemen
 Summary(pl.UTF-8):     Implementacja HPI (Hardware Platform Interface) Service Availability Forum
 Name:          openhpi
 Version:       2.10.1
-Release:       2
+Release:       3
 License:       BSD
 Group:         Libraries
 Source0:       http://dl.sourceforge.net/openhpi/%{name}-%{version}.tar.gz
@@ -169,10 +169,25 @@ Wtyczka sysfs dla OpenHPI.
 %patch6 -p1
 
 # speed up build, lower disk space usage
-for f in `find . -name Makefile.am | xargs grep -l 'AM_CFLAGS.* -g '`; do
-       %{__perl} -pi -e 's/^(AM_CFLAGS.* )-g /$1 /' $f
+for f in $(find -name Makefile.am | xargs grep -l 'AM_CFLAGS.* -g '); do
+       %{__sed} -i -e 's/^\(AM_CFLAGS.* \)-g /\1 /' $f
 done
 
+%ifarch alpha sparc
+# event.c: In function `process_hpi_event':
+# event.c:236: warning: cast increases required alignment of target type
+# event.c: In function `oh_process_events':
+# event.c:410: warning: cast increases required alignment of target type
+# make[1]: *** [event.lo] Error 1
+# for this code:
+# sid = g_array_index(sessions, SaHpiSessionIdT, i);
+# where:
+# typedef SaHpiUint32T SaHpiSessionIdT;
+# and:
+# #define g_array_index(a,t,i)      (((t*) (a)->data) [(i)])
+%{__sed} -i -e 's/-Werror//' configure.ac
+%endif
+
 %build
 %{__libtoolize}
 %{__aclocal}
This page took 0.032635 seconds and 4 git commands to generate.