From patchwork Sun Oct 18 13:46:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1383836 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.137; helo=fraxinus.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=ohLnPgtk; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CDh5c3h5fz9sPB for ; Mon, 19 Oct 2020 00:47:15 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4665086D9D; Sun, 18 Oct 2020 13:47:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kencLFqnL_SF; Sun, 18 Oct 2020 13:47:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A60E786F32; Sun, 18 Oct 2020 13:47:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 7641B1BF38E for ; Sun, 18 Oct 2020 13:46:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 701328753A for ; Sun, 18 Oct 2020 13:46:55 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tS7AXGhsr9EE for ; Sun, 18 Oct 2020 13:46:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by hemlock.osuosl.org (Postfix) with ESMTPS id 6D13587537 for ; Sun, 18 Oct 2020 13:46:54 +0000 (UTC) Received: by mail-wr1-f50.google.com with SMTP id x7so8506420wrl.3 for ; Sun, 18 Oct 2020 06:46:54 -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=UWsBDBNrbLJGj7RIot09xF4g9acVoJGNXxTn+d+ygf0=; b=ohLnPgtkZrK+ojfvtSr8MleTP1Ox1zY2TUQr9L25YV+bJYK7TL/xOgjk5unFPJZrjQ rfb6zNDsexaIbnc0/bldB0qU1FWo8L061XZMCqj2hV/X5v32EsFIxwor713kmGj1WqP1 Y1yYP7OhceqxAiW1iYkvgGaIZSt6bCLXZ68m0nPieoqiduBUtP3Ws1ct46MJAIyFAfS3 60prFdCOecYlNX7yFNdYEIkG3oB8ikU1AlkgiSxhyCSAEq1c7N8ibjVwienGC/SHgy2v 2FXCVMIvlbZmycAQC93FVghxhrg4bcRuNwpWc/2ug1gbQnHfmxzBQanmtz/ZiAlAcvcp ftJw== 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=UWsBDBNrbLJGj7RIot09xF4g9acVoJGNXxTn+d+ygf0=; b=RIEeipEuJpPnER8tQp4/jFViLuee2dwHfPJOpqfUEQ4gAFgMikl0FaLlg83US1/G9+ DLBVhsN8ldDj7RDBe33Kv5lPBupzTIVDKD96ZWkVB5vxef2/VrcFqKtjKPKMiKXM9e6P mSSCo2fMRYyIGj+l1iGH0p2tgvAk2wTtUhpgaEvSYs8TOewPfQXIOYOUXQUPC7nWbiNn mov777ilcl1noThWOmhFuo1bDJWYXScd6STnU0BWrKZJlN3WiUEZrg4YA+ZGC9D0G3K9 nEXA4GVSPLzCMraXGQlQqVMFLNniRjFMMJbEF+cUb1rFxt93OK74t36yHuCrjbUf+eHj j5pA== X-Gm-Message-State: AOAM531eSveP+V/A8np1tj0GD6UZcL7sOSTsQRiHj8Bb5z4tIT9aa5Nw nN1hibWbaV1yBtgSdFAQrF78hLVJgriAKg== X-Google-Smtp-Source: ABdhPJx/bvTeXsDMDDxLhrZZDSfLejqmbDOagr4Iod5+493iDTocwuQR0JW+spuhPKh+B99w0a6NVQ== X-Received: by 2002:a5d:5086:: with SMTP id a6mr14870665wrt.283.1603028812691; Sun, 18 Oct 2020 06:46:52 -0700 (PDT) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id x64sm12101675wmg.33.2020.10.18.06.46.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Oct 2020 06:46:51 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sun, 18 Oct 2020 15:46:47 +0200 Message-Id: <20201018134647.960413-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/libapparmor: fix build with musl 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: Angelo Compagnucci , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fix build of apparmor 3.0.0 with musl Fixes: - http://autobuild.buildroot.org/results/ccbee89030308cf1e4bfce89635d40676c7c63a0 Signed-off-by: Fabrice Fontaine --- ...-aa_status-Fix-build-issue-with-musl.patch | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/libapparmor/3.0.0/0003-aa_status-Fix-build-issue-with-musl.patch diff --git a/package/libapparmor/3.0.0/0003-aa_status-Fix-build-issue-with-musl.patch b/package/libapparmor/3.0.0/0003-aa_status-Fix-build-issue-with-musl.patch new file mode 100644 index 0000000000..83981bfecc --- /dev/null +++ b/package/libapparmor/3.0.0/0003-aa_status-Fix-build-issue-with-musl.patch @@ -0,0 +1,33 @@ +From a2a0d14b9c5046b76124c828a53b0e9cbc1bc5c8 Mon Sep 17 00:00:00 2001 +From: Armin Kuster +Date: Wed, 7 Oct 2020 08:27:11 -0700 +Subject: [PATCH] aa_status: Fix build issue with musl + +add limits.h + +aa_status.c:269:22: error: 'PATH_MAX' undeclared (first use in this function); did you mean 'AF_MAX'? +| 269 | real_exe = calloc(PATH_MAX + 1, sizeof(char)); + +Signed-off-by: Armin Kuster +[Retrieved from: +https://gitlab.com/apparmor/apparmor/-/commit/a2a0d14b9c5046b76124c828a53b0e9cbc1bc5c8] +Signed-off-by: Fabrice Fontaine +--- + binutils/aa_status.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/binutils/aa_status.c b/binutils/aa_status.c +index 78b034090..41f1954e9 100644 +--- a/binutils/aa_status.c ++++ b/binutils/aa_status.c +@@ -10,6 +10,7 @@ + #include + #include + #include ++#include + #include + #include + #include +-- +GitLab +