| Submitter | Zhenhua Luo |
|---|---|
| Date | Dec. 16, 2011, 2:39 a.m. |
| Message ID | <1324003173-13994-6-git-send-email-b19537@freescale.com> |
| Download | mbox | patch |
| Permalink | /patch/17077/ |
| State | Superseded |
| Headers | show |
Comments
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Op 16-12-11 03:39, b19537@freescale.com schreef: > From: Zhenhua Luo <b19537@freescale.com> > > Precision Time Protocol (PTP) as defined by the IEEE 1588 standard. > > Signed-off-by: Zhenhua Luo <b19537@freescale.com> --- > diff --git a/meta-oe/recipes-connectivity/ptpd/ptpd_1.0.0.bb > b/meta-oe/recipes-connectivity/ptpd/ptpd_1.0.0.bb new file mode 100644 > index 0000000..a9c0351 --- /dev/null +++ > b/meta-oe/recipes-connectivity/ptpd/ptpd_1.0.0.bb @@ -0,0 +1,21 @@ > +DESCRIPTION = "Precision Time Protocol (PTP) as defined by the IEEE 1588 > standard" +HOMEPAGE = "http://sourceforge.net/projects/ptpd" +LICENSE = > "BSD" +SECTION = "network" +PR = "r1" remove that > + +LIC_FILES_CHKSUM = > "file://../COPYRIGHT;md5=888bd1b2c9c013b93394b8bfb453c417" move that next to LICENSE > + +SRC_URI = > "http://downloads.sourceforge.net/project/ptpd/ptpd/${PV}/ptpd-${PV}.tar.gz > \ + file://add-limit-h.patch;striplevel=2" + +S = > "${WORKDIR}/ptpd-${PV}/src" + +do_install() { + install -d > ${D}${bindir} ${D}${mandir}/man8 + install -m 4555 ptpd > ${D}${bindir} + install -m 644 ptpd.8 ${D}${mandir}/man8 +} + > +SRC_URI[md5sum] = "b112b2bedc7f6e6e11a838608b9e0357" +SRC_URI[sha256sum] > = "8ac1fdcad1e246b0395097dd9af29966c6823533d7e6989aae91506048fb51bc" move those next to SRC_URI -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAk7q+LwACgkQMkyGM64RGpF1BQCeKzk8hQ6wwmP8059rerGkKD78 fJUAoIQZTtlHXlTkDlZ7c9XEROAvEwt5 =KpUq -----END PGP SIGNATURE-----
On (16/12/11 10:39), b19537@freescale.com wrote: > From: Zhenhua Luo <b19537@freescale.com> > > Precision Time Protocol (PTP) as defined by the IEEE 1588 standard. > > Signed-off-by: Zhenhua Luo <b19537@freescale.com> > --- > .../ptpd/ptpd-1.0.0/add-limit-h.patch | 26 ++++++++++++++++++++ > meta-oe/recipes-connectivity/ptpd/ptpd_1.0.0.bb | 21 ++++++++++++++++ > 2 files changed, 47 insertions(+), 0 deletions(-) > create mode 100644 meta-oe/recipes-connectivity/ptpd/ptpd-1.0.0/add-limit-h.patch > create mode 100644 meta-oe/recipes-connectivity/ptpd/ptpd_1.0.0.bb > > diff --git a/meta-oe/recipes-connectivity/ptpd/ptpd-1.0.0/add-limit-h.patch b/meta-oe/recipes-connectivity/ptpd/ptpd-1.0.0/add-limit-h.patch > new file mode 100644 > index 0000000..8ed3f2f > --- /dev/null > +++ b/meta-oe/recipes-connectivity/ptpd/ptpd-1.0.0/add-limit-h.patch > @@ -0,0 +1,26 @@ > +ptpd: fix ftbfs by including limits.h so MAX_INT defined ^^^^^^^ should be INT_MAX
Patch
diff --git a/meta-oe/recipes-connectivity/ptpd/ptpd-1.0.0/add-limit-h.patch b/meta-oe/recipes-connectivity/ptpd/ptpd-1.0.0/add-limit-h.patch new file mode 100644 index 0000000..8ed3f2f --- /dev/null +++ b/meta-oe/recipes-connectivity/ptpd/ptpd-1.0.0/add-limit-h.patch @@ -0,0 +1,26 @@ +ptpd: fix ftbfs by including limits.h so MAX_INT defined + +The current recipe for ptpd fails to build with: + +| arith.c: In function 'fromInternalTime': +| arith.c:46: error: 'INT_MAX' undeclared (first use in this function) +| arith.c:46: error: (Each undeclared identifier is reported only once +| arith.c:46: error: for each function it appears in.) +| arith.c: In function 'toInternalTime': +| arith.c:64: error: 'INT_MAX' undeclared (first use in this function) +| make: *** [arith.o] Error 1 +| make: *** Waiting for unfinished jobs.... +| FATAL: oe_runmake failed + +diff --git a/src/arith.c b/src/arith.c +--- a/src/arith.c ++++ b/src/arith.c +@@ -1,6 +1,7 @@ + /* arith.c */ + + #include "ptpd.h" ++#include <limits.h> + + /* from annex C of the spec */ + UInteger32 crc_algorithm(Octet *buf, Integer16 length) + diff --git a/meta-oe/recipes-connectivity/ptpd/ptpd_1.0.0.bb b/meta-oe/recipes-connectivity/ptpd/ptpd_1.0.0.bb new file mode 100644 index 0000000..a9c0351 --- /dev/null +++ b/meta-oe/recipes-connectivity/ptpd/ptpd_1.0.0.bb @@ -0,0 +1,21 @@ +DESCRIPTION = "Precision Time Protocol (PTP) as defined by the IEEE 1588 standard" +HOMEPAGE = "http://sourceforge.net/projects/ptpd" +LICENSE = "BSD" +SECTION = "network" +PR = "r1" + +LIC_FILES_CHKSUM = "file://../COPYRIGHT;md5=888bd1b2c9c013b93394b8bfb453c417" + +SRC_URI = "http://downloads.sourceforge.net/project/ptpd/ptpd/${PV}/ptpd-${PV}.tar.gz \ + file://add-limit-h.patch;striplevel=2" + +S = "${WORKDIR}/ptpd-${PV}/src" + +do_install() { + install -d ${D}${bindir} ${D}${mandir}/man8 + install -m 4555 ptpd ${D}${bindir} + install -m 644 ptpd.8 ${D}${mandir}/man8 +} + +SRC_URI[md5sum] = "b112b2bedc7f6e6e11a838608b9e0357" +SRC_URI[sha256sum] = "8ac1fdcad1e246b0395097dd9af29966c6823533d7e6989aae91506048fb51bc"