hack around FTBFS on sparc

This commit is contained in:
Rex Dieter 2011-02-25 08:18:42 -06:00
parent 3e38970a63
commit 9fdda5cf94
2 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up ModemManager-0.4/src/mm-log.c.format ModemManager-0.4/src/mm-log.c
--- ModemManager-0.4/src/mm-log.c.format 2011-01-24 14:31:25.000000000 -0600
+++ ModemManager-0.4/src/mm-log.c 2011-02-25 08:03:00.315754971 -0600
@@ -88,7 +88,7 @@ _mm_log (const char *loc,
usecs += 1000000;
}
- snprintf (&tsbuf[0], sizeof (tsbuf), " [%06ld.%06ld]", secs, usecs);
+ snprintf (&tsbuf[0], sizeof (tsbuf), " [%06ld.%06ld]", secs, (long) usecs);
}
if ((log_level & LOGL_DEBUG) && (level == LOGL_DEBUG))

View File

@ -4,7 +4,7 @@
Summary: Mobile broadband modem management service
Name: ModemManager
Version: 0.4
Release: 7%{snapshot}%{?dist}
Release: 7%{snapshot}%{?dist}.1
#
# Source from git://anongit.freedesktop.org/ModemManager/ModemManager
# tarball built with:
@ -29,6 +29,10 @@ BuildRequires: automake autoconf intltool libtool
# for xsltproc
BuildRequires: libxslt
# HACK patch to workaround FTBFS on sparc, type mismatch where
# suseconds_t is int -- Rex
Patch1: ModemManager-0.4-hack_sparc_werror.patch
%description
The ModemManager service provides a consistent API to operate many different
modems, including mobile broadband (3G) devices.
@ -36,6 +40,10 @@ modems, including mobile broadband (3G) devices.
%prep
%setup -q
%ifarch %{sparc}
%patch1 -p1 -b .hack_sparc_werror.patch
%endif
%build
%configure \
@ -89,6 +97,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || :
%{_datadir}/dbus-1/interfaces/*.xml
%changelog
* Fri Feb 25 2011 Rex Dieter <rdieter@fedoraproejct.org> 0.4-7.git20110201.1
- hack around FTBFS on sparc
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-7.git20110201
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild