diff --git a/ModemManager.spec b/ModemManager.spec index 48a2306..1a410c8 100644 --- a/ModemManager.spec +++ b/ModemManager.spec @@ -28,6 +28,8 @@ BuildRequires: automake autoconf intltool libtool # for xsltproc BuildRequires: libxslt +Patch0: buildsys-hates-openpty.patch + # HACK patch to workaround FTBFS on sparc, type mismatch where # suseconds_t is int -- Rex Patch1: ModemManager-0.4-hack_sparc_werror.patch @@ -38,10 +40,12 @@ modems, including mobile broadband (3G) devices. %prep %setup -q +%patch0 -p1 -b .pty %patch1 -p1 -b .hack_sparc_werror.patch %build +autoreconf -i %configure \ --enable-more-warnings=yes \ --with-udev-base-dir=/lib/udev \ diff --git a/buildsys-hates-openpty.patch b/buildsys-hates-openpty.patch new file mode 100644 index 0000000..39a4292 --- /dev/null +++ b/buildsys-hates-openpty.patch @@ -0,0 +1,12 @@ +diff -up ModemManager-0.4.998/src/tests/Makefile.am.foo ModemManager-0.4.998/src/tests/Makefile.am +--- ModemManager-0.4.998/src/tests/Makefile.am.foo 2011-07-06 17:59:53.711343366 -0500 ++++ ModemManager-0.4.998/src/tests/Makefile.am 2011-07-06 18:00:08.971152593 -0500 +@@ -45,7 +45,6 @@ if WITH_TESTS + check-local: test-modem-helpers + $(abs_builddir)/test-modem-helpers + $(abs_builddir)/test-charsets +- $(abs_builddir)/test-qcdm-serial-port + + endif + +