From patchwork Mon Jan 29 16:29:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 126183 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp2576658ljd; Mon, 29 Jan 2018 08:29:20 -0800 (PST) X-Google-Smtp-Source: AH8x225MIl2kKFi/zTBFWY/owBMtqz4rhV0qEe6WVTbW8C2+Ag2YAbx0kRbASMPjITXhfedVXqJR X-Received: by 2002:a17:902:42c3:: with SMTP id h61-v6mr22362674pld.269.1517243360723; Mon, 29 Jan 2018 08:29:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517243360; cv=none; d=google.com; s=arc-20160816; b=XGj77S9vjV/EWT2lA+6YW3xzkPLHFBFrJ83rulf9eLKY1OMw8jto529zlcq7Y2tPdn p/ZmO1Z2oiYaS6JCBVaDMGpqOeejNkQ66/+SjYn2ssi23WMWrCnCpFuFhFD1vKvn5PBc YIOQrz67eWOQlxIWnMQJFwepChnDNQnGHCUKlHpPejndXNz/17aVF9+dpTep/Ap2017m X8flrf/qUkx3CuhE9BPDC9aHZdJqTUYYhb94NmzQ5JZYvj3YxfAKjXSmCZEvTJ8bcEy/ fYSu7uVlCm2p1YhmbawayYK0bDuN+z12N+IXO32ecHJHbp7v74k0x9dnammPape0eDr+ dcZg== 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:dkim-signature :delivered-to:arc-authentication-results; bh=ElQpkiqKswcd3in1UUugKY/hPozZqoTeXUZHndGQyf0=; b=j+x/5YRssGYTjXG75pWOv3PtUHFRT49HjTlzX+eCBgl4ukkFbjTrOv4eGQoI37e/Db GYfKtr5PRD14OHW9zczOKr/rMj+PClgx9TmfAhf5nGS7REElC8M2LBw+K4aq0nJf2pXl bolYikWeF134MU9XvBi2jtue+b2NTjdFHdnDig4d5ifP827SFrWW/OyBtkhOYu5Ri8qN aLRoRZCnD7+lnwY4xUi7MKnsrQDr83O17xbDOMVyIZ1SU5/HqCSwPHsygtSJRY8g+V07 FpnHg4PBfyToVp+WYmUByA1lmUiJ4OKWpQmQbkvwCvgL0saGyx0pxJRCp6MI2NuELXhs optQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=dxhVtlw9; 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 b5si12287090pff.92.2018.01.29.08.29.20; Mon, 29 Jan 2018 08:29:20 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=dxhVtlw9; 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 468827881C; Mon, 29 Jan 2018 16:29:16 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by mail.openembedded.org (Postfix) with ESMTP id B9831787DE for ; Mon, 29 Jan 2018 16:29:14 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id a43so323205wrc.4 for ; Mon, 29 Jan 2018 08:29:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=m2iRW6Tjdndsl/GIY8CkcTFafvTz+kOzqcYuu2dG5kU=; b=dxhVtlw9yxkek4ZjWgu4jZEzG+F9pL22CcVd/kLer8CmaHprW9gQZge59i5ANFKNMl 00qrxTkooojl8loydX5PfJYW1HVJLcAJpOvulBwpyr4FkBvm4WufG+6A940zR0qHkKpe 9Aobm1thmV0wNH+X1so8UD5RCg5FZpm8hnelMUkEoIiBm6dlVjSgdrTGQeofpbka62h9 FVtVnYYL/njyPw7YGQ+ZfcZsu2BWAJDR8IONw2K2379ueMkMkmifsJfPDdebztONJKtB Q9jLJxk0p/n5KIddIH7Ep+4Cl+jLVYSqemb3h2dOiMYhoUPj78ZIXZ2CwYwIDknHEtfW +5JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=m2iRW6Tjdndsl/GIY8CkcTFafvTz+kOzqcYuu2dG5kU=; b=junynyYDAnBrLPzt0FDsff9EL/ZCBL99VEtptFtC4s5OPogzMyVcS0wWF5/glP+2yD emvXdeYAQ3rbgo2wsSvdFdJN+A/Ms6cJxsaIDYMBhHh3jKE0O2Xlj8ebdgE3JZ9Z6XIi ENioFRSZ2kE+FUsGlEevbovLYeHQG9OnIsGGPQBk0aRIERz4IUq7SRMUzhKszb5HXbrU vu1rHGMxDa8znYWQqRnoBWU6qkEpZZHLbECYGmFO8TjiuVBWqZeCQLCm7TEjBg01W3Dz 1yQItAsVPJeMsBkOHIZ5JRNYBQ2kcnmPG1HBK0P1DapBXXGKZLVghIBjYUs1xjcDPTyk 4p4A== X-Gm-Message-State: AKwxytfL7aQDTjdnFoWBb6ObEw61UxZUEBx8KJrX1xCUKMPCRhJqs99i P+pfGAhKn8qindijuLTvh3UE7Ydo X-Received: by 10.223.135.18 with SMTP id a18mr19866670wra.122.1517243355199; Mon, 29 Jan 2018 08:29:15 -0800 (PST) Received: from flashheart.burtonini.com (home.burtonini.com. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id l2sm2509120wre.6.2018.01.29.08.29.14 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jan 2018 08:29:14 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Mon, 29 Jan 2018 16:29:12 +0000 Message-Id: <20180129162912.7899-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH] libxshmfence: fix build with glibc 2.27 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 With glibc 2.27 memfd_create() is behind a _GNU_SOURCE guard, so use AC_USE_SYSTEM_EXTENSIONS to define it. Signed-off-by: Ross Burton --- .../xorg-lib/libxshmfence/extensions.patch | 17 +++++++++++++++++ meta/recipes-graphics/xorg-lib/libxshmfence_1.2.bb | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 meta/recipes-graphics/xorg-lib/libxshmfence/extensions.patch -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/recipes-graphics/xorg-lib/libxshmfence/extensions.patch b/meta/recipes-graphics/xorg-lib/libxshmfence/extensions.patch new file mode 100644 index 00000000000..4cc9e05ab53 --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxshmfence/extensions.patch @@ -0,0 +1,17 @@ +With glibc 2.27 memfd_create is behind a _GNU_SOURCE guard, so call +AC_USE_SYSTEM_EXTENSIONS to get that defined. + +Upstream-Status: Submitted +Signed-off-by: Ross Burton + +diff --git a/configure.ac b/configure.ac +index 0c98875..ebf4dee 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -29,4 +29,6 @@ AC_CONFIG_SRCDIR([Makefile.am]) + AC_CONFIG_HEADERS([config.h]) + ++AC_USE_SYSTEM_EXTENSIONS ++ + # Initialize Automake + AM_INIT_AUTOMAKE([foreign dist-bzip2]) diff --git a/meta/recipes-graphics/xorg-lib/libxshmfence_1.2.bb b/meta/recipes-graphics/xorg-lib/libxshmfence_1.2.bb index ae34b1fe46c..1df068d1b0f 100644 --- a/meta/recipes-graphics/xorg-lib/libxshmfence_1.2.bb +++ b/meta/recipes-graphics/xorg-lib/libxshmfence_1.2.bb @@ -13,5 +13,7 @@ DEPENDS += "virtual/libx11" BBCLASSEXTEND = "native nativesdk" +SRC_URI += "file://extensions.patch" + SRC_URI[md5sum] = "66662e76899112c0f99e22f2fc775a7e" SRC_URI[sha256sum] = "d21b2d1fd78c1efbe1f2c16dae1cb23f8fd231dcf891465b8debe636a9054b0c"