From patchwork Fri Sep 6 21:25:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 173306 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp1266129ilq; Fri, 6 Sep 2019 14:25:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ3daRDjgDU/wQkI30RgffxfDYyzwSDO/O8uWLRcF9Gw2+BCt+O6S/sdrHCHGXPetdy7uN X-Received: by 2002:a17:902:461:: with SMTP id 88mr10878697ple.296.1567805128817; Fri, 06 Sep 2019 14:25:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567805128; cv=none; d=google.com; s=arc-20160816; b=D7hHGdEY12F0UzulfZWob4KOBFyjEKjUJjJlhXDLlEr6B9s5NQpl+7qBSa9B2usqCa mb3TuHYqzotC0B319VOUFUvTera11qbPHAzMkjVa0Uk2hpgFSaxfdCOdhN4sGP55iqi8 U10B+HADRmc52Nz09X1etD6P23CnbcjeMXHnv48TGH8LPjTx2KEuHNxatfmB8QFc7cOV 1dIT794wrLwm8aNNJqDGDJDAINvHBlMazds3AfZ4yfmb76ejDhELo7fJfDJ+TIPksBCU hKUGjbfSNGs7buAUWge5Dq/t/ZLFSUsY/mWOnxkqsWt8UgouiTScY699VawXn8NkI0UR U08g== 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=kIAlOo7UIGD8oR4EEY8My5YzLdVB/YkwOTzBjhmt67k=; b=dm+daRFKP7KRM/EOeS6r7CDlsqchltPJJonFoJ6ae5YjmWD8g5lG1LBA7p6iYbI0e2 oaWPB3z4zfNBZQQ+9JQjvkK3LHGDIVhjvhe1kYbJc5Ln9+4JitTbqGm2JGjF3VrKwN3P Knw8qpB6prkCnOwV+nsTdnKxCXMiKy9hGUuf0ayyrHEXsnZAua9bW9KN2M4465ZAkGQm /DFLMbucc65bfdIpwNyev3SVbKDb5nu3wLpdO0aKFSnm127RciSI6W53EI7Cn/m/Ri72 OJZv9iT0Dl89JNAf1qgxxx/9fkRtLpmmd0Sc5SaDdeAhD6AsNCbsyr25/fhyPR6CXIjE 02Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Vge8WwMm; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-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 a19si5514054pgv.180.2019.09.06.14.25.28; Fri, 06 Sep 2019 14:25:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-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=Vge8WwMm; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 415997F43F; Fri, 6 Sep 2019 21:25:23 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) by mail.openembedded.org (Postfix) with ESMTP id 9A3D87ECC2 for ; Fri, 6 Sep 2019 21:25:21 +0000 (UTC) Received: by mail-pf1-f170.google.com with SMTP id x127so5418831pfb.7 for ; Fri, 06 Sep 2019 14:25:22 -0700 (PDT) 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=w4X7/GvPbTQKdUASR/t+QevFD08qC8B2pyEeSeu1XBI=; b=Vge8WwMm3K2qdjNNyaYKH3uWSCs0b8ubZomhsgMrQYvIXWuaOsfqPDSRexFwi9REQc 1EXJ/HrF0778SJuMOIcQyydV9wUFSPNoMCXI6emaq17h/v9G8WMsCbhp3tyBB+JR7vGN +l0pZvFaoDn+nlzJ7A59H2rUJHpQVS5BMMdxhNeeUnxhllB7JZKeJxHFcVEkFBpkms70 MK5YzT2LFgC9drFYlJzVtFdSko66sDiOzh8dFdA2X0mjvqrC/IzLBQf1w9VDq3x5HRjp sNYrXKZozcZorY2bMFn2jNAt4P0mnX549QpLXVd28G7Oo+yDb0ieOfkHZJwaqAHw+927 JDqA== 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=w4X7/GvPbTQKdUASR/t+QevFD08qC8B2pyEeSeu1XBI=; b=rATocHmK298F1TB2Q/S5py/5cof5YUIZLKNq4Z2QIw4TjAbMBeZBKvS5X/fWDV+gK2 ryPtHC11kFQYuAUPUhGS+0DOGx3uwgd0WXaoDT7Uk1lUDXxtksYOqwNV7I4pc/ExbRGS /P2mhdir+VY/Y+fYoAzOEZuktnL5yinuNKH9Abc2OtDE9Abq/U6A8KS7dzkQSrjL9xHl kvIEexhBUaBd4hK4V4P8HGfzunyZXMdnl5aDZuSw2gbjHCfmloTCHH8JzChuUn6Qc66r V7kakZ7oKPD0ByKzahpjJIfhTl61+IS6ru8gsFr6qhVxYRvi4PicVhSX5tHNawi0CSky wilQ== X-Gm-Message-State: APjAAAVXhNnsG17x8ALV3xi4sbH9YVppPtVwiwEGhaCU8/ojkG5PZ8yp lAjPTiGBN+ZAmmTq4bFLraHoPleNXsw= X-Received: by 2002:a17:90b:948:: with SMTP id dw8mr12000087pjb.48.1567805121417; Fri, 06 Sep 2019 14:25:21 -0700 (PDT) Received: from apollo.hsd1.ca.comcast.net (c-73-71-176-3.hsd1.ca.comcast.net. [73.71.176.3]) by smtp.gmail.com with ESMTPSA id c127sm9973660pfb.5.2019.09.06.14.25.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2019 14:25:20 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Fri, 6 Sep 2019 14:25:13 -0700 Message-Id: <20190906212513.16415-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH] ltrace: Fix build on mips X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Newer kernel UAPI headers for mips have moved these needed defines around Signed-off-by: Khem Raj --- .../ltrace/ltrace/include_unistd_nr.patch | 30 +++++++++++++++++++ meta-oe/recipes-devtools/ltrace/ltrace_git.bb | 1 + 2 files changed, 31 insertions(+) create mode 100644 meta-oe/recipes-devtools/ltrace/ltrace/include_unistd_nr.patch -- 2.23.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-devtools/ltrace/ltrace/include_unistd_nr.patch b/meta-oe/recipes-devtools/ltrace/ltrace/include_unistd_nr.patch new file mode 100644 index 0000000000..e4490bbb9e --- /dev/null +++ b/meta-oe/recipes-devtools/ltrace/ltrace/include_unistd_nr.patch @@ -0,0 +1,30 @@ +kernel headers have restructured mips syscall generation in kernel +in recent versions, however, ltrace still has logic to define the +syscall numbers based on old logic, this patch includes the legacy +UAPI headers to get these defines + +Fixes errors e.g. +../../../../git/sysdeps/linux-gnu/mips/trace.c:138:29: error: '__NR_O32_Linux' undeclared (first use in this function) + const int syscallbase[] = {__NR_O32_Linux, __NR_N32_Linux, + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- a/sysdeps/linux-gnu/mips/trace.c ++++ b/sysdeps/linux-gnu/mips/trace.c +@@ -34,6 +34,16 @@ + #include + #include + ++#ifndef __NR_O32_Linux ++#include ++#endif ++#ifndef __NR_N32_Linux ++#include ++#endif ++#ifndef __NR_N64_Linux ++#include ++#endif ++ + #include "backend.h" + #include "common.h" + #include "debug.h" diff --git a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb index 3dc269c80e..ead637cb7e 100644 --- a/meta-oe/recipes-devtools/ltrace/ltrace_git.bb +++ b/meta-oe/recipes-devtools/ltrace/ltrace_git.bb @@ -27,6 +27,7 @@ SRC_URI = "git://github.com/sparkleholic/ltrace.git;branch=master;protocol=http file://0001-mips-plt.c-Delete-include-error.h.patch \ file://0001-move-fprintf-into-same-block-where-modname-and-symna.patch \ file://0001-hook-Do-not-append-int-to-std-string.patch \ + file://include_unistd_nr.patch \ " S = "${WORKDIR}/git"