From patchwork Sat Jan 5 06:47:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 154817 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1392446ljp; Fri, 4 Jan 2019 22:47:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN5eo6s/b7Db2rUp7GODs+olJRTXffaKIII4zNl3a9U8ntyAPdsEUDaDTIMKA/iODLPJQrxk X-Received: by 2002:a17:902:12f:: with SMTP id 44mr54195956plb.74.1546670848655; Fri, 04 Jan 2019 22:47:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546670848; cv=none; d=google.com; s=arc-20160816; b=cAJlQ3P+AqJPbmUpEEfZU82/S5do0gNM+k6LxmtkgtbbmZAxSNHiGnbJZnvPkFgDqh JZAie0nf7d4eAyjIbii/jEiM9r4SMEhF16Qs4aiWZEtXVNd+ebnxEVj/sk5qpKG5gvbx W1OYfJmbstyto20Rd3qA5oMEhZG777W9M5yU/CdZCSTDQaFXSJpFmomjS7Coqg3kHSmf 6+VN6OhGTp5oUSfDCidGVf5ydqWPMO2vfvJFOZ+u48gLmRuciONw58bWGMz88mo2L9zm nn97/ZCxSx/w8M+GBttEQRE60ZFeawXPnWZQ/n5aQMJ18dSgtnfQYJhhjaL1aMmxyJOQ CTVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=iCv02dX6oWgNeA2t7LbZztNE9Bj/zI9+z2iuetKxPPA=; b=C6nUf9c6/womTuFyzPvXwmXr8scOtzPbsL0Yf4stHPMwXreUsCyqianS2vvvrOjn/U 3Q1MSYwkhjTji885GzlFJFWOgSXXnpc+YgHvcgn0kZvVu+/g3oGuEz0sBW/5Y8/Z+tfb Buj9wAn0bNTlkhagouKK0Nv0+vAQtoaKmj85KOxkeVCPiKhSu5SmMDHZxbJ7RnnUKzGe 375dHn7B7c3TegkBIpOmM4QK8u6HF6QDtv6AVCJ7orhpWaaTYWf2hM53iFQnd++sqwCY tDzm71Th8u0OjNVc7Lr/4nYSyTaARBnf51gqp80iOQ5GQxYi4A3MxYVC5z61F/cSnHh7 c1EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=OvE13yDq; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id t61si9988052plb.339.2019.01.04.22.47.27; Fri, 04 Jan 2019 22:47:28 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=OvE13yDq; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from 165.28.230.35.bc.googleusercontent.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 47D737BFDE; Sat, 5 Jan 2019 06:47:22 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f195.google.com (mail-pg1-f195.google.com [209.85.215.195]) by mail.openembedded.org (Postfix) with ESMTP id 1DBA76C3B6 for ; Sat, 5 Jan 2019 06:47:19 +0000 (UTC) Received: by mail-pg1-f195.google.com with SMTP id s198so18407866pgs.2 for ; Fri, 04 Jan 2019 22:47:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=763j6Z1fwtemDngnG7YqIsBUihXVcJUyfX6JmVPWfW4=; b=OvE13yDqeGDTDMcYAV7rmYNgoJRh6Y/9qslGk1MwJucTRfZhn0tfboNMOa7AHdC5Kg EetpZbolS0stP0LRrxrKAvS04TMUV6HoCmFZs1XJqxsuMjzvkc8I+/0T97/lRoHlBZXa dOzBYbXNACUVORz3ZI6YiyWRLwn2v2cGVHhQfR5n+8i6pchPTiOqvLQsi210jBTkHCTb JaWH6ODHTOBHb6PZol/MZVym5WkIw0wyg1x+IRKy7gd8UGvaTZZc9CGcqG4+RmZz+P5f 7C+xUPiG/goeQaJN3bZ9fTbfbS0dmtEMCxTnMrx3a+Df95ZP0rTuqnthFYt/S9C8Plvw 5lMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=763j6Z1fwtemDngnG7YqIsBUihXVcJUyfX6JmVPWfW4=; b=J1ceEXqZqS7TGAKe2eHyhpS/C3c6k+5tcB8V308qPkOXaYTu/FZUFUm2T7V5R+Bgud G0nmo+c2zh0k17bANKAABi4FQGJovJseCzX6v376QAOYP7CSRfnQWPGcMtYU3XtZtizp mAuiFdi9/TjYFcM9AXwUh/rLOta2h9QkIReJteu1wVHJ1DbIiEyAEnUyLkG0UBvXOu6S FGKRAziaUzN4u8PLQAmLQBPCRj9c6Ilu6iQo5RrHg1PPFBvYF7V780zwrbvWBAVWA3Rx 0M39LBhlRgOnF8phia9AUnUAoDTVEGBq30LQbEa96e5fzee7eCeMIskfzP6EXE/vly5f wQYQ== X-Gm-Message-State: AJcUukcTJwA9VFly4U9VDvnDvJVCZ0zsKSBeav/5QbgCjTsneIcRSl3u VmHgcoQ9kG4DrZAzIM98HzETWDOTs/I= X-Received: by 2002:a63:c051:: with SMTP id z17mr3980128pgi.20.1546670840491; Fri, 04 Jan 2019 22:47:20 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:877f:9499::6ee7]) by smtp.gmail.com with ESMTPSA id u186sm90856500pfu.51.2019.01.04.22.47.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jan 2019 22:47:19 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Date: Fri, 4 Jan 2019 22:47:10 -0800 Message-Id: <20190105064710.22911-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH] util-linux: Fix build with glibc 2.29 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- ...check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch | 16 ++++++++++++++++ .../recipes-core/util-linux/util-linux_2.32.1.bb | 1 + 2 files changed, 17 insertions(+) create mode 100644 meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch b/meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch new file mode 100644 index 0000000000..c92c276ac1 --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux/check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch @@ -0,0 +1,16 @@ +Checking for exitence of the define is not enough since +it will be defined with 0 or 1 value + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- a/sys-utils/ldattach.c ++++ b/sys-utils/ldattach.c +@@ -242,7 +242,7 @@ static int my_cfsetspeed(struct termios + * -- we have to bypass glibc and set the speed manually (because glibc + * checks for speed and supports Bxxx bit rates only)... + */ +-#ifdef _HAVE_STRUCT_TERMIOS_C_ISPEED ++#if _HAVE_STRUCT_TERMIOS_C_ISPEED + # define BOTHER 0010000 /* non standard rate */ + dbg("using non-standard speeds"); + ts->c_ospeed = ts->c_ispeed = speed; diff --git a/meta/recipes-core/util-linux/util-linux_2.32.1.bb b/meta/recipes-core/util-linux/util-linux_2.32.1.bb index a616d85bb2..c909836cbb 100644 --- a/meta/recipes-core/util-linux/util-linux_2.32.1.bb +++ b/meta/recipes-core/util-linux/util-linux_2.32.1.bb @@ -14,6 +14,7 @@ SRC_URI += "file://configure-sbindir.patch \ file://run-ptest \ file://display_testname_for_subtest.patch \ file://avoid_parallel_tests.patch \ + file://check-for-_HAVE_STRUCT_TERMIOS_C_OSPEED.patch \ " SRC_URI[md5sum] = "9e5b1b8c1dc99455bdb6b462cf9436d9" SRC_URI[sha256sum] = "86e6707a379c7ff5489c218cfaf1e3464b0b95acf7817db0bc5f179e356a67b2"