From patchwork Tue Jan 14 12:34:41 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: christian.braunersorensen@prevas.dk X-Patchwork-Id: 310721 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [IPv6:2001:878:346::102]) by ozlabs.org (Postfix) with ESMTP id E2FEB2C00B1 for ; Tue, 14 Jan 2014 23:37:25 +1100 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id E72B94534D for ; Tue, 14 Jan 2014 13:37:23 +0100 (CET) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail02.prevas.se (mail02.prevas.se [62.95.78.10]) by hugin.dotsrc.org (Postfix) with ESMTPS id 4AB8B44824 for ; Tue, 14 Jan 2014 13:35:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=prevas.dk; i=@prevas.dk; l=4047; q=dns/txt; s=ironport2; t=1389702909; x=1421238909; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=w5n6bmbEtnOvDPjeddOpRY6szTtXdGe/rmyTkBYfQfI=; b=QgubNaY9m6NnyVy9SRexjDO8/O46+gLFhblOmVHr9sWTzdpc0lQQWws/ zP1DdsD48g8ZH1E54iNSBsfGEsVY+knscwPsO33XgCOJ5m5kH4tEm8CzK CO1r4TCWgpTTxvqBtSgKjlYq8WPQ4kNFb33wopu9MhVfbFzFRMoytKXU8 o=; X-IronPort-AV: E=Sophos;i="4.95,658,1384297200"; d="scan'208";a="196406" Received: from vmprevas3.prevas.se (HELO smtp.prevas.se) ([172.16.8.103]) by ironport2.prevas.se with ESMTP/TLS/AES128-SHA; 14 Jan 2014 13:35:05 +0100 Received: from localhost (172.16.10.102) by smtp.prevas.se (172.16.8.105) with Microsoft SMTP Server id 14.2.347.0; Tue, 14 Jan 2014 13:35:04 +0100 Received: by localhost (Postfix, from userid 30007) id 2062A681587; Tue, 14 Jan 2014 12:35:04 +0000 (UTC) From: To: Subject: [PATCH 114/131] pth: Add new recipe (version 2.0.7) needed for upgraded gnupg Date: Tue, 14 Jan 2014 12:34:41 +0000 Message-ID: <45f0cb05be78100ed44b26b42e44f62a680e5e5f.1389702652.git.christian.braunersorensen@prevas.dk> X-Mailer: git-send-email 1.8.4 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Christian Sørensen Signed-off-by: Christian Sørensen --- recipes/pth/files/fix_for_3x_kernels.patch | 22 ++++++++++++++++++++ recipes/pth/files/pth-add-pkgconfig-support.patch | 22 ++++++++++++++++++++ recipes/pth/pth.inc | 25 +++++++++++++++++++++++ recipes/pth/pth_2.0.7.oe | 9 ++++++++ recipes/pth/pth_2.0.7.oe.sig | 1 + 5 files changed, 79 insertions(+) create mode 100644 recipes/pth/files/fix_for_3x_kernels.patch create mode 100644 recipes/pth/files/pth-add-pkgconfig-support.patch create mode 100644 recipes/pth/pth.inc create mode 100644 recipes/pth/pth_2.0.7.oe create mode 100644 recipes/pth/pth_2.0.7.oe.sig diff --git a/recipes/pth/files/fix_for_3x_kernels.patch b/recipes/pth/files/fix_for_3x_kernels.patch new file mode 100644 index 0000000..cc5cde5 --- /dev/null +++ b/recipes/pth/files/fix_for_3x_kernels.patch @@ -0,0 +1,22 @@ +--- pth-2.0.7/aclocal.m4 2006-06-08 19:54:01.000000000 +0200 ++++ pth-2.0.7/aclocal.m4 2012-05-30 18:44:42.000000000 +0200 +@@ -1074,7 +1074,7 @@ case $PLATFORM in + braindead=no + case "x`uname -r`" in + changequote(, )dnl +- x2.[23456789]* ) ;; ++ x2.[23456789]* | x3.[0-9]* ) ;; + changequote([, ]) + * ) braindead=yes ;; + esac +--- pth-2.0.7/configure 2006-06-08 20:14:48.000000000 +0200 ++++ pth-2.0.7/configure 2012-05-30 18:45:03.000000000 +0200 +@@ -22512,7 +22512,7 @@ case $PLATFORM in + *-*-linux* ) + braindead=no + case "x`uname -r`" in +- x2.[23456789]* ) ;; ++ x2.[23456789]* | x3.[0-9]* ) ;; + + * ) braindead=yes ;; + esac diff --git a/recipes/pth/files/pth-add-pkgconfig-support.patch b/recipes/pth/files/pth-add-pkgconfig-support.patch new file mode 100644 index 0000000..82889b3 --- /dev/null +++ b/recipes/pth/files/pth-add-pkgconfig-support.patch @@ -0,0 +1,22 @@ +--- /dev/null ++++ b/pth.pc +@@ -0,0 +1,16 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++bindir=@bindir@ ++mandir=@mandir@ ++datadir=@datadir@ ++acdir=@datadir@/aclocal ++ ++Name: pth ++Description: GNU Portable Threads ++Requires: ++Version: @PTH_VERSION@ ++Libs: -L${libdir} -lpth ++Libs.private: ++Cflags: -I${includedir} +-- +1.7.5.4 + diff --git a/recipes/pth/pth.inc b/recipes/pth/pth.inc new file mode 100644 index 0000000..6b8e376 --- /dev/null +++ b/recipes/pth/pth.inc @@ -0,0 +1,25 @@ +SUMMARY = "GNU Portable Threads library" +HOMEPAGE = "http://www.gnu.org/software/pth/" +LICENSE = "GPLv2+" + +inherit autotools pkgconfig library auto-package-utils binconfig + +require conf/fetch/gnu.conf +SRC_URI = "${GNU_MIRROR}/pth/pth-${PV}.tar.gz" +SRC_URI += "file://fix_for_3x_kernels.patch" +SRC_URI += "file://pth-add-pkgconfig-support.patch" + +PARALLEL_MAKE = "" + +# pth.pc is added locally and thus installed here +do_install[postfuncs] += "do_install_pc" +do_install_pc() { + install -d ${D}/${libdir}/pkgconfig + install -m 0644 ${S}/pth.pc ${D}/${libdir}/pkgconfig/ +} + +AUTO_PACKAGE_UTILS += "pth-config" + +DEPENDS_${PN} += "libc" +RDEPENDS_${PN} += "libc" + diff --git a/recipes/pth/pth_2.0.7.oe b/recipes/pth/pth_2.0.7.oe new file mode 100644 index 0000000..a54a7b5 --- /dev/null +++ b/recipes/pth/pth_2.0.7.oe @@ -0,0 +1,9 @@ +require pth.inc + +LIBRARY_VERSION = "20" + +do_install[postfuncs] += "do_install_fix_path_error" +do_install_fix_path_error() { + sed -i -e 's#\(.*output=\"\$output\)\( -I\$pth_includedir\"\)#\1\"#' \ + ${D}${bindir}/pth-config +} diff --git a/recipes/pth/pth_2.0.7.oe.sig b/recipes/pth/pth_2.0.7.oe.sig new file mode 100644 index 0000000..12e5a76 --- /dev/null +++ b/recipes/pth/pth_2.0.7.oe.sig @@ -0,0 +1 @@ +9a71915c89ff2414de69fe104ae1016d513afeee pth-2.0.7.tar.gz