All of lore.kernel.org
 help / color / mirror / Atom feed
From: <b19537@freescale.com>
To: <openembedded-devel@lists.openembedded.org>
Subject: [PATCH meta-oe 6/9] ptpd: add
Date: Fri, 16 Dec 2011 10:39:30 +0800	[thread overview]
Message-ID: <1324003173-13994-6-git-send-email-b19537@freescale.com> (raw)
In-Reply-To: <1324003173-13994-1-git-send-email-b19537@freescale.com>

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
+
+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"
-- 
1.7.0.4





  parent reply	other threads:[~2011-12-16  2:59 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-16  2:39 [PATCH meta-oe 1/9] bridge-utils: add b19537
2011-12-16  2:39 ` [PATCH meta-oe 2/9] ietutils: add b19537
2011-12-16  7:48   ` Koen Kooi
2011-12-16  2:39 ` [PATCH meta-oe 3/9] ipsec-tools: add b19537
2011-12-16  7:49   ` Koen Kooi
2011-12-16  2:39 ` [PATCH meta-oe 4/9] libnfnetlink: add b19537
2011-12-16  7:50   ` Koen Kooi
2011-12-16  2:39 ` [PATCH meta-oe 5/9] nerperf: add b19537
2011-12-16  7:51   ` Koen Kooi
2011-12-16  9:19     ` Luo Zhenhua-B19537
2011-12-16  9:22       ` Koen Kooi
2011-12-16 21:54         ` Khem Raj
2011-12-19  9:52           ` Luo Zhenhua-B19537
2011-12-19 19:20             ` Khem Raj
2011-12-19 22:31           ` Flanagan, Elizabeth
2011-12-20  2:31             ` Luo Zhenhua-B19537
2011-12-21  6:26             ` Luo Zhenhua-B19537
2011-12-21 17:37               ` Flanagan, Elizabeth
2011-12-22  2:44                 ` Luo Zhenhua-B19537
2011-12-29 18:19                   ` Flanagan, Elizabeth
2011-12-16  2:39 ` b19537 [this message]
2011-12-16  7:52   ` [PATCH meta-oe 6/9] ptpd: add Koen Kooi
2011-12-16 21:57   ` Khem Raj
2011-12-16  2:39 ` [PATCH meta-oe 7/9] strongswan: add b19537
2011-12-16  7:53   ` Koen Kooi
2011-12-16  2:39 ` [PATCH meta-oe 8/9] rng-tools: add b19537
2011-12-16  7:53   ` Koen Kooi
2011-12-16  2:39 ` [PATCH meta-oe 9/9] xfsprogs: add b19537
2011-12-16  7:54   ` Koen Kooi
2011-12-16  7:45 ` [PATCH meta-oe 1/9] bridge-utils: add Koen Kooi
2011-12-16  8:48   ` Luo Zhenhua-B19537

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1324003173-13994-6-git-send-email-b19537@freescale.com \
    --to=b19537@freescale.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.