diff --git a/glibc210.patch b/glibc210.patch new file mode 100644 index 0000000..89ec267 --- /dev/null +++ b/glibc210.patch @@ -0,0 +1,11 @@ +Index: ptpd-1.0.0/src/arith.c +=================================================================== +--- ptpd-1.0.0.orig/src/arith.c ++++ ptpd-1.0.0/src/arith.c +@@ -1,5 +1,6 @@ + /* arith.c */ + ++#include + #include "ptpd.h" + + /* from annex C of the spec */ diff --git a/ptpd.changes b/ptpd.changes index 6f76c3f..6861940 100644 --- a/ptpd.changes +++ b/ptpd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jun 12 14:07:27 CEST 2009 - coolo@novell.com + +- fix build with glibc 2.10 + ------------------------------------------------------------------- Tue Nov 11 23:08:23 CET 2008 - dbahi@suse.de diff --git a/ptpd.spec b/ptpd.spec index 3eb232c..36a2bae 100644 --- a/ptpd.spec +++ b/ptpd.spec @@ -1,7 +1,7 @@ # # spec file for package ptpd (Version 1.0.0) # -# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,12 +21,13 @@ Name: ptpd Summary: Implements the Precision Time protocol as defined by IEEE 1588 standard Version: 1.0.0 -Release: 1 +Release: 2 License: BSD 3-Clause Group: System/Daemons Source0: %{name}-%{version}.tar.bz2 Source1: conf.ptpd.init Source2: conf.sysconfig.ptpd +Patch0: glibc210.patch Patch1: append_to_cflags.patch Url: http://ptpd.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -58,6 +59,7 @@ Authors: %prep %setup -q +%patch0 -p1 %patch1 %build @@ -105,7 +107,9 @@ rm -rf ${RPM_BUILD_ROOT} %{insserv_cleanup} %changelog -* Tue Nov 11 2008 dbahi@suse.de +* Fri Jun 12 2009 coolo@novell.com +- fix build with glibc 2.10 +* Wed Nov 12 2008 dbahi@suse.de - modified to use 1.0.0 release instead of rc * Wed Nov 07 2007 dbahi@suse.de - cleaned up init script and install process