From patchwork Wed Sep 9 18:22:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Hilliard X-Patchwork-Id: 1360912 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=mahKPqVV; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bmr370wMgz9sTH for ; Thu, 10 Sep 2020 04:22:27 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 34C648716B; Wed, 9 Sep 2020 18:22:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w8ZT3ryUAzPR; Wed, 9 Sep 2020 18:22:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id DD1F387136; Wed, 9 Sep 2020 18:22:23 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id 5F4501BF3D5 for ; Wed, 9 Sep 2020 18:22:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3C9E92035B for ; Wed, 9 Sep 2020 18:22:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bRsgYKX1EexJ for ; Wed, 9 Sep 2020 18:22:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) by silver.osuosl.org (Postfix) with ESMTPS id CE93D228E7 for ; Wed, 9 Sep 2020 18:22:16 +0000 (UTC) Received: by mail-io1-f45.google.com with SMTP id z25so4186042iol.10 for ; Wed, 09 Sep 2020 11:22:16 -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=hozoGTSzgjVDP051W5s4YNMQ0pjg2a97g218YxHpCyA=; b=mahKPqVVGT7ZofdmyRZioVP9GerP2XcHVDZcJWOyc/xro0BRnFoq7HcGB0nhVgVNsT Yg8yWRhOLVcirxH39ek/JDIMxujC6XonHWGaBoxQGb9LJ7w8NC0ufn4BgFuouHk87SaY Y41h+odB9AaRM3xXnSkmf/CIfUYMHPVovPMK4+fjCYshu0uYIAOM8MNWB6Zn3JuiJH9z ZVQTqr4GEAChSORNP3+8S10muc32L4v70xrlvHRx8cRRO5T2FWIlwpQNof6EhmnkOsJY LsvUT5P6kYkubwQKU2xVTn+3CRCuGQdaxzBnmH96exALwChQaS6ZMSTzDqSqoybIv0SQ 2UWw== 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=hozoGTSzgjVDP051W5s4YNMQ0pjg2a97g218YxHpCyA=; b=fu0M5RilOLn1fyoRRB+GDjL3pO6yx5F2FeeMpoWqoa+7yNOVezlNOrnFpjYWa1GnUr wFe2oPtE3tX/PP1/b/Jksjkx8URd/obaCWY+J9xxWXZIkBD7ZSwVp8xmmGB8Um/vOw2k byp57AP+pTQdV+S3RHEJfoyrKrllDL3bVnqxNa7CHqZE4XFNR4V5Xq+Lb16km7swThau oMaonlQ1uRgEr+98/32uqeYDvnLgYnXUKfOyYK+Jz4hU+dAV1Xj1ibv6MDThVzdH7mFU vuEkhDEFntZCSXqgo/M++qq/RrzRgmyVfwyAYjhljem1VFPuQGgZfrwuBbDU3fBbZQ8u f6GA== X-Gm-Message-State: AOAM530J7/4vj59PqqyEJzGZiPuxjOSPXN+dUuhVjfdriVKwXTlB8TCX oBnYnkRoiyi/A/bPrVm5uhw+4VT83uA= X-Google-Smtp-Source: ABdhPJwLtxHDR78uYupdY/anJ8tYRGid44aRkSIK03YelNLsZUA+xkrniwpbFsBk357sjBHSdlvk0Q== X-Received: by 2002:a6b:194:: with SMTP id 142mr4465803iob.18.1599675735628; Wed, 09 Sep 2020 11:22:15 -0700 (PDT) Received: from james-x399.localdomain (71-218-238-150.hlrn.qwest.net. [71.218.238.150]) by smtp.gmail.com with ESMTPSA id m15sm1557363iow.9.2020.09.09.11.22.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 11:22:14 -0700 (PDT) From: James Hilliard To: buildroot@buildroot.org Date: Wed, 9 Sep 2020 12:22:10 -0600 Message-Id: <20200909182210.2373172-1-james.hilliard1@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/weston: add patch fixing missing fnctl include X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: James Hilliard , "Yann E . MORIN" , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This is needed to fix a build issue with musl libc. Fixes: http://autobuild.buildroot.net/results/931/931dc2bfd431dffc4693b62e0889e43709331d8e/build-end.log Signed-off-by: James Hilliard --- ...ntl.h-for-open-O_RDWR-O_CLOEXEC-and-.patch | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 package/weston/0001-tests-include-fcntl.h-for-open-O_RDWR-O_CLOEXEC-and-.patch diff --git a/package/weston/0001-tests-include-fcntl.h-for-open-O_RDWR-O_CLOEXEC-and-.patch b/package/weston/0001-tests-include-fcntl.h-for-open-O_RDWR-O_CLOEXEC-and-.patch new file mode 100644 index 0000000000..2eb6bd838c --- /dev/null +++ b/package/weston/0001-tests-include-fcntl.h-for-open-O_RDWR-O_CLOEXEC-and-.patch @@ -0,0 +1,48 @@ +From b10c0e843dcb8148bbe869bb15261955b94ac98c Mon Sep 17 00:00:00 2001 +From: Denys Dmytriyenko +Date: Tue, 8 Sep 2020 19:37:42 -0400 +Subject: [PATCH] tests: include fcntl.h for open(), O_RDWR, O_CLOEXEC and + O_CREAT + +musl libc (unlike glibc) requires explicitly incuding fcntl.h to define open(), +O_RDWR, O_CLOEXEC and O_CREAT. Otherwise the build fails with the errors: + +| ../weston-9.0.0/tests/weston-test-fixture-compositor.c: In function 'wait_for_lock': +| ../weston-9.0.0/tests/weston-test-fixture-compositor.c:135:7: warning: implicit declaration of function 'open'; did you mean 'popen'? [-Wimplicit-function-declaration] +| 135 | fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700); +| | ^~~~ +| | popen +| ../weston-9.0.0/tests/weston-test-fixture-compositor.c:135:23: error: 'O_RDWR' undeclared (first use in this function) +| 135 | fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700); +| | ^~~~~~ +| ../weston-9.0.0/tests/weston-test-fixture-compositor.c:135:23: note: each undeclared identifier is reported only once for each function it appears in +| ../weston-9.0.0/tests/weston-test-fixture-compositor.c:135:32: error: 'O_CLOEXEC' undeclared (first use in this function) +| 135 | fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700); +| | ^~~~~~~~~ +| ../weston-9.0.0/tests/weston-test-fixture-compositor.c:135:44: error: 'O_CREAT' undeclared (first use in this function) +| 135 | fd = open(lock_path, O_RDWR | O_CLOEXEC | O_CREAT, 00700); +| | ^~~~~~~ + +Signed-off-by: Denys Dmytriyenko +Signed-off-by: James Hilliard +[james.hilliard1@gmail.com: backport from upstream commit +b10c0e843dcb8148bbe869bb15261955b94ac98c] +--- + tests/weston-test-fixture-compositor.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/weston-test-fixture-compositor.c b/tests/weston-test-fixture-compositor.c +index 1c32959c..c1eb26c4 100644 +--- a/tests/weston-test-fixture-compositor.c ++++ b/tests/weston-test-fixture-compositor.c +@@ -35,6 +35,7 @@ + #include + #include + #include ++#include + + #include "shared/helpers.h" + #include "weston-test-fixture-compositor.h" +-- +2.25.1 +