From patchwork Thu Mar 15 13:40:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Purdie X-Patchwork-Id: 131781 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp1136142ljb; Thu, 15 Mar 2018 06:40:56 -0700 (PDT) X-Google-Smtp-Source: AG47ELu5PbvRrufTwlnn7165b83Wq6J8HQ2UtGExFWrOErTJzl0VhzKxfLZx9ZKhHyir8+tLEI8Q X-Received: by 2002:a17:902:d20a:: with SMTP id t10-v6mr8158994ply.123.1521121256690; Thu, 15 Mar 2018 06:40:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521121256; cv=none; d=google.com; s=arc-20160816; b=d9um0bgnadpGwTWfqY8si5VU4Cv+0uGlsGmC+6wS/KHmyzOo4YArqaIJlA/rviP9Dr arjwX+2XA3QsK7cOaeWgSWHGTlyvgJ0dPzvLFw5mCE6limFKiEXeKvlbeYtGPuV+Sbq9 PyUZUkINA3Kkl8NFaZaYQlPMbUYVHyUnAFEKu9B5lOJrVbF6zIpi8NXtGwxpW4/bAZ3u mUNKpqsyXp0A417fVSNAKjk+AZ3k14XEl58LH+DsdRwQu26F5lbN59vksp+uBrzMeNZp VRkZC5YNg/qkhZ1P6Q89Av0eIk/O70SFpqgza95xuncAw94SEs4BB1d1CUEgkunJm7VX iqgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:delivered-to :arc-authentication-results; bh=K/A+jtWNFSw2lCxDPSNnxMsCxZetEHpvrKNV4zj71HQ=; b=yCthk1qLYuEGqaSXqAL0LxNjG12bYy93Ze4rjJ8CwCA7957svrhQWKouGh2WasCQTL bKYy/D8vyozNN5tE2p3xjepD+oFnPbATAQyVnOlqZX/GhyLB5R+HMqCEZAOEa85tVdZn 0AlBL66wpjpt+0WKGQ2lBvHNDmMkLAfJ5A9v9UVC6owKsOF7TnnwjO+XFNduzGZkmhw/ +Z/R3fvK+u2fvc1RpnkhpnBfW1r+SxAICqXa1HIElXDwIGTN1AZC5Bh6FM13DMk5F/UT hcnSwBGPQiwtpZRVpUGZhK156XNpbi+3+/5mogjeYRhZvfhxE9BOJPXimbb8tSuJQQYH TVMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id z7si3807871pfg.278.2018.03.15.06.40.56; Thu, 15 Mar 2018 06:40:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 2D120788E1; Thu, 15 Mar 2018 13:40:38 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 9047A788BC for ; Thu, 15 Mar 2018 13:40:22 +0000 (UTC) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.15.2/8.15.2/Debian-3) with ESMTPSA id w2FDeHZf015914 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 15 Mar 2018 13:40:21 GMT Received: from richard by hex with local (Exim 4.86_2) (envelope-from ) id 1ewT7B-0002OJ-Ev; Thu, 15 Mar 2018 06:40:17 -0700 From: Richard Purdie To: openembedded-core@lists.openembedded.org Date: Thu, 15 Mar 2018 06:40:10 -0700 Message-Id: <1521121214-9149-1-git-send-email-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: clamav-milter 0.99.3 at dan X-Virus-Status: Clean Subject: [OE-core] [rocko][PATCH 1/5] unfs3: Fix build with musl X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Khem Raj Should also fix build on new build hosts where with glibc 2.27 rpc support is dropped in favor of libtirpc Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/conf/distro/include/world-broken.inc | 4 --- .../0001-daemon.c-Libtirpc-porting-fixes.patch | 37 ++++++++++++++++++++++ meta/recipes-devtools/unfs3/unfs3_0.9.22.r497.bb | 10 ++++-- 3 files changed, 44 insertions(+), 7 deletions(-) create mode 100644 meta/recipes-devtools/unfs3/unfs3/0001-daemon.c-Libtirpc-porting-fixes.patch -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/conf/distro/include/world-broken.inc b/meta/conf/distro/include/world-broken.inc index 49e9516..42cacfd 100644 --- a/meta/conf/distro/include/world-broken.inc +++ b/meta/conf/distro/include/world-broken.inc @@ -5,10 +5,6 @@ # rt-tests needs PI mutex support in libc EXCLUDE_FROM_WORLD_pn-rt-tests_libc-musl = "1" -# error: no member named 'sin_port' in 'struct sockaddr_in6' -# this is due to libtirpc using ipv6 but portmap rpc expecting ipv4 -EXCLUDE_FROM_WORLD_pn-unfs3_libc-musl = "1" - # error: use of undeclared identifier '_STAT_VER' EXCLUDE_FROM_WORLD_pn-pseudo_libc-musl = "1" diff --git a/meta/recipes-devtools/unfs3/unfs3/0001-daemon.c-Libtirpc-porting-fixes.patch b/meta/recipes-devtools/unfs3/unfs3/0001-daemon.c-Libtirpc-porting-fixes.patch new file mode 100644 index 0000000..6eee674 --- /dev/null +++ b/meta/recipes-devtools/unfs3/unfs3/0001-daemon.c-Libtirpc-porting-fixes.patch @@ -0,0 +1,37 @@ +From c7a2a65d6c2a433312540c207860740d6e4e7629 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 11 Mar 2018 17:32:54 -0700 +Subject: [PATCH] daemon.c: Libtirpc porting fixes + +Signed-off-by: Khem Raj +--- +Upstream-Status: Pending + + daemon.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/daemon.c b/daemon.c +index 22f30f6..028a181 100644 +--- a/daemon.c ++++ b/daemon.c +@@ -117,7 +117,7 @@ void logmsg(int prio, const char *fmt, ...) + */ + struct in_addr get_remote(struct svc_req *rqstp) + { +- return (svc_getcaller(rqstp->rq_xprt))->sin_addr; ++ return ((struct sockaddr_in*)svc_getcaller(rqstp->rq_xprt))->sin_addr; + } + + /* +@@ -125,7 +125,7 @@ struct in_addr get_remote(struct svc_req *rqstp) + */ + short get_port(struct svc_req *rqstp) + { +- return (svc_getcaller(rqstp->rq_xprt))->sin_port; ++ return ((struct sockaddr_in*)svc_getcaller(rqstp->rq_xprt))->sin_port; + } + + /* +-- +2.16.2 + diff --git a/meta/recipes-devtools/unfs3/unfs3_0.9.22.r497.bb b/meta/recipes-devtools/unfs3/unfs3_0.9.22.r497.bb index cebc866..46ac369 100644 --- a/meta/recipes-devtools/unfs3/unfs3_0.9.22.r497.bb +++ b/meta/recipes-devtools/unfs3/unfs3_0.9.22.r497.bb @@ -9,9 +9,11 @@ RECIPE_UPSTREAM_DATE = "Oct 08, 2015" CHECK_DATE = "Dec 10, 2015" DEPENDS = "flex-native bison-native flex" -DEPENDS_append_libc-musl = " libtirpc" +DEPENDS += "libtirpc" DEPENDS_append_class-nativesdk = " flex-nativesdk" +ASNEEDED = "" + MOD_PV = "497" S = "${WORKDIR}/trunk" # Only subversion url left in OE-Core, use a mirror tarball instead since @@ -26,7 +28,8 @@ SRC_URI = "http://downloads.yoctoproject.org/mirror/sources/unfs3-0.9.22.r497.ta file://rename_fh_cache.patch \ file://relative_max_socket_path_len.patch \ file://tcp_no_delay.patch \ - " + file://0001-daemon.c-Libtirpc-porting-fixes.patch \ + " SRC_URI[md5sum] = "2e43e471c77ade0331901c40b8f8e9a3" SRC_URI[sha256sum] = "21009468a9ba07b72ea93780d025a63ab4e55bf8fc3127803c296f0900fe1bac" @@ -34,7 +37,8 @@ BBCLASSEXTEND = "native nativesdk" inherit autotools EXTRA_OECONF_append_class-native = " --sbindir=${bindir}" -CFLAGS_append_libc-musl = " -I${STAGING_INCDIR}/tirpc" +CFLAGS += " -I${STAGING_INCDIR}/tirpc" +LDFLAGS += " -ltirpc" # Turn off these header detects else the inode search # will walk entire file systems and this is a real problem From patchwork Thu Mar 15 13:40:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Purdie X-Patchwork-Id: 131780 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp1135616ljb; Thu, 15 Mar 2018 06:40:28 -0700 (PDT) X-Google-Smtp-Source: AG47ELsKPgYqjyo+B02z4sLt5ZwH6l3rn/tUuETvWz1WDxn2QC4yz7NDfJTPfmPkGxXvm7LVvjzp X-Received: by 10.99.109.142 with SMTP id i136mr5641021pgc.306.1521121228247; Thu, 15 Mar 2018 06:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521121228; cv=none; d=google.com; s=arc-20160816; b=uHWAPCfWjIvv8temOVWr7A4uwU5NZVUry85aLwOJCgMF0Af/smxHZbLGY8aLdErzBg dYOYQJ6NbgrwQBVQ+6CbqzZjceH21Q4IDYGDUDpIsqLyKXFMboG+TGmPRCjmS1P+ag+e RXbeclf6fYsEwm+X4UDDeG8YJmvXy1oJ8/TrPFS0IsZG++1X5NkWEzOpeRSLI6kWIF6p AbFe9U6Iev6MsPWiA8nzgyR1t0ZTedUqfwzNV7HjCVuPyw3BBX9QG8k8+ZZpIaAwOre8 CSN+3WkVt5u6YS5jCZgFNCQoWZsh7r5QDhsBfFUGfmT0+1wt5gl5CNp+xW873bXstQyQ Nb9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:delivered-to:arc-authentication-results; bh=0/1eu91+DfgP5UOLW5w2rk5JmvFc2XvXpKHykTkVfVQ=; b=YMhb3i1YI6hrbG5UFEhgOfnZAHik391XRI3+6q5NDRisv3m0EdsLJedYlh0r5BpAt9 /yMy/WlvL6p5XUcE5EDH76PeRkKUR9F18eG0qSbX4VXQW0FA2z2otAxQW2dnbAqTQ4yY tkUEZvmNDnQgZkNDFy/sZoWamEbFHmq6B6OCx1rQb496Be8+0Uplh9Z/7eF5jB60AfGN Vf0Tuh0xSNzEFx/t/kKzfJAR1QWtJy3GH/ZhyMaYCsmMxEJp+VOiZm/I9EsPbvgFUtKf vYWoxVhv/kAipo5KcjZ4ppvZpdl1jlnoOqjaRmwL5K7zCPEvYPgbO5yRaT0IldHUiZyd K3+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id f9si2852934pgn.241.2018.03.15.06.40.27; Thu, 15 Mar 2018 06:40:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id BCD00788CA; Thu, 15 Mar 2018 13:40:23 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 8BE2A787C2 for ; Thu, 15 Mar 2018 13:40:22 +0000 (UTC) Received: from hex ([192.168.3.34]) (authenticated bits=0) by dan.rpsys.net (8.15.2/8.15.2/Debian-3) with ESMTPSA id w2FDeHnl015915 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 15 Mar 2018 13:40:21 GMT Received: from richard by hex with local (Exim 4.86_2) (envelope-from ) id 1ewT7B-0002OM-Fa; Thu, 15 Mar 2018 06:40:17 -0700 From: Richard Purdie To: openembedded-core@lists.openembedded.org Date: Thu, 15 Mar 2018 06:40:11 -0700 Message-Id: <1521121214-9149-2-git-send-email-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521121214-9149-1-git-send-email-richard.purdie@linuxfoundation.org> References: <1521121214-9149-1-git-send-email-richard.purdie@linuxfoundation.org> X-Virus-Scanned: clamav-milter 0.99.3 at dan X-Virus-Status: Clean Subject: [OE-core] [rocko][PATCH 2/5] libtirpc: Extend to native and nativesdk recipes X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Khem Raj Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/recipes-extended/libtirpc/libtirpc_1.0.2.bb | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-extended/libtirpc/libtirpc_1.0.2.bb b/meta/recipes-extended/libtirpc/libtirpc_1.0.2.bb index 1a73de9..9921260 100644 --- a/meta/recipes-extended/libtirpc/libtirpc_1.0.2.bb +++ b/meta/recipes-extended/libtirpc/libtirpc_1.0.2.bb @@ -29,3 +29,5 @@ EXTRA_OECONF = "--disable-gssapi" do_install_append() { chown root:root ${D}${sysconfdir}/netconfig } + +BBCLASSEXTEND = "native nativesdk"