From patchwork Thu Jul 19 17:20:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hollis Blanchard X-Patchwork-Id: 947088 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mentor.com Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41XFY50Ngvz9s55 for ; Sat, 21 Jul 2018 01:43:52 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 162C92A37B; Fri, 20 Jul 2018 15:43:48 +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 R-QiweLWwQH5; Fri, 20 Jul 2018 15:43:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 308522942D; Fri, 20 Jul 2018 15:43:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E0C0B1C3EBC for ; Fri, 20 Jul 2018 15:43:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DA5A188793 for ; Fri, 20 Jul 2018 15:43:44 +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 cgkxwRfctYSW for ; Fri, 20 Jul 2018 15:43:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by whitealder.osuosl.org (Postfix) with ESMTPS id 2C381886A5 for ; Fri, 20 Jul 2018 15:43:44 +0000 (UTC) Received: from svr-orw-mbx-01.mgc.mentorg.com ([147.34.90.201]) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1fgXZH-0004Qp-5Z from Hollis_Blanchard@mentor.com ; Fri, 20 Jul 2018 08:43:43 -0700 Received: from svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) by svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Fri, 20 Jul 2018 08:43:41 -0700 Received: from wv-mailhost.wv.mentorg.com (147.34.91.1) by svr-orw-mbx-01.mgc.mentorg.com (147.34.90.201) with Microsoft SMTP Server id 15.0.1320.4 via Frontend Transport; Fri, 20 Jul 2018 08:43:41 -0700 Received: from concession.localdomain (unknown [172.30.13.134]) by wv-mailhost.wv.mentorg.com (Postfix) with SMTP id EA2F71A00DC; Fri, 20 Jul 2018 08:43:40 -0700 (PDT) Received: by concession.localdomain (Postfix, from userid 50728) id 8C37B619438F; Fri, 20 Jul 2018 08:43:39 -0700 (PDT) MIME-Version: 1.0 X-Mercurial-Node: 05bbe42a7a77f46daa8a109ec7ef3e14f5c7b59c X-Mercurial-Series-Index: 1 X-Mercurial-Series-Total: 3 Message-ID: <05bbe42a7a77f46daa8a.1532020842@cveaol6qa08.wv.mentorg.com> X-Mercurial-Series-Id: <05bbe42a7a77f46daa8a.1532020842@cveaol6qa08.wv.mentorg.com> User-Agent: Mercurial-patchbomb/4.4.1 Date: Thu, 19 Jul 2018 10:20:42 -0700 From: Hollis Blanchard To: Status: O Subject: [Buildroot] [PATCH 1 of 3] host-acl: build fix on RHEL6 hosts (GCC 4.4.7) X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hollis Blanchard Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" This didn't introduce any build warnings, FWIW. Signed-off-by: Hollis Blanchard diff --git a/package/acl/0001-pragma-gcc-diagnostic-in-fn.patch b/package/acl/0001-pragma-gcc-diagnostic-in-fn.patch new file mode 100644 --- /dev/null +++ b/package/acl/0001-pragma-gcc-diagnostic-in-fn.patch @@ -0,0 +1,21 @@ +build with old GCC versions + +GCC 4.4.7, as found in RHEL6, reports: + libacl/acl_from_text.c:307: error: #pragma GCC diagnostic not allowed inside functions + +Signed-off-by: Hollis Blanchard + +--- host-acl-2.2.53/libacl/acl_from_text.c.orig 2018-07-19 09:15:40.425940094 -0700 ++++ host-acl-2.2.53/libacl/acl_from_text.c 2018-07-19 09:15:50.777940093 -0700 +@@ -304,11 +304,8 @@ + create_entry: + if (acl_create_entry(acl_p, &entry_d) != 0) + return -1; +-#pragma GCC diagnostic push +-#pragma GCC diagnostic ignored "-Waddress" + if (acl_copy_entry(entry_d, int2ext(&entry_obj)) != 0) + return -1; +-#pragma GCC diagnostic pop + return 0; + + fail: From patchwork Thu Jul 19 17:20:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hollis Blanchard X-Patchwork-Id: 947090 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) 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=none (p=none dis=none) header.from=mentor.com Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41XFYB24tCz9s55 for ; Sat, 21 Jul 2018 01:43:57 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 3E87C87E5A; Fri, 20 Jul 2018 15:43:56 +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 EfXRmDZQ_ord; Fri, 20 Jul 2018 15:43:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8AD0287DCE; Fri, 20 Jul 2018 15:43:54 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id CCC891C3EBC for ; Fri, 20 Jul 2018 15:43:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EE318886A6 for ; Fri, 20 Jul 2018 15:43:44 +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 F9Psm7w63ZGI for ; Fri, 20 Jul 2018 15:43:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by whitealder.osuosl.org (Postfix) with ESMTPS id 3CD038871B for ; Fri, 20 Jul 2018 15:43:44 +0000 (UTC) Received: from svr-orw-mbx-04.mgc.mentorg.com ([147.34.90.204]) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1fgXZH-0004Qu-E9 from Hollis_Blanchard@mentor.com ; Fri, 20 Jul 2018 08:43:43 -0700 Received: from svr-orw-mbx-08.mgc.mentorg.com (147.34.90.208) by SVR-ORW-MBX-04.mgc.mentorg.com (147.34.90.204) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Fri, 20 Jul 2018 08:43:41 -0700 Received: from wv-mailhost.wv.mentorg.com (147.34.91.1) by svr-orw-mbx-08.mgc.mentorg.com (147.34.90.208) with Microsoft SMTP Server id 15.0.1320.4 via Frontend Transport; Fri, 20 Jul 2018 08:43:41 -0700 Received: from concession.localdomain (unknown [172.30.13.134]) by wv-mailhost.wv.mentorg.com (Postfix) with SMTP id EA3451A0167; Fri, 20 Jul 2018 08:43:40 -0700 (PDT) Received: by concession.localdomain (Postfix, from userid 50728) id 922E26194390; Fri, 20 Jul 2018 08:43:39 -0700 (PDT) MIME-Version: 1.0 X-Mercurial-Node: bc5f01fff2efadabe55734712a5b7ae612b35026 X-Mercurial-Series-Index: 2 X-Mercurial-Series-Total: 3 Message-ID: X-Mercurial-Series-Id: <05bbe42a7a77f46daa8a.1532020842@cveaol6qa08.wv.mentorg.com> In-Reply-To: <05bbe42a7a77f46daa8a.1532020842@cveaol6qa08.wv.mentorg.com> References: <05bbe42a7a77f46daa8a.1532020842@cveaol6qa08.wv.mentorg.com> User-Agent: Mercurial-patchbomb/4.4.1 Date: Thu, 19 Jul 2018 10:20:43 -0700 From: Hollis Blanchard To: Status: O Subject: [Buildroot] [PATCH 2 of 3] host-attr: build fix for RHEL6 hosts (GCC 4.4.7) X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hollis Blanchard Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Hollis Blanchard diff --git a/package/attr/0001-deprecated-attribute-message.patch b/package/attr/0001-deprecated-attribute-message.patch new file mode 100644 --- /dev/null +++ b/package/attr/0001-deprecated-attribute-message.patch @@ -0,0 +1,76 @@ +build with older GCCs + +GCC versions up through 4.4.7 (which is used in RHEL 6) do not accept any +argument for the deprecated attribute. GCC 4.5 and later say the "msg" +argument is optional. We don't need the messages during Buildroot builds +anyways. + +Signed-off-by: Hollis Blanchard + +--- host-attr-2.4.48/include/attributes.h.orig 2018-07-19 08:49:19.506854736 -0700 ++++ host-attr-2.4.48/include/attributes.h 2018-07-19 08:49:22.132854736 -0700 +@@ -127,10 +127,10 @@ + */ + EXPORT int attr_get (const char *__path, const char *__attrname, + char *__attrvalue, int *__valuelength, int __flags) +- __attribute__ ((deprecated ("Use getxattr or lgetxattr instead"))); ++ __attribute__ ((deprecated)); + EXPORT int attr_getf (int __fd, const char *__attrname, char *__attrvalue, + int *__valuelength, int __flags) +- __attribute__ ((deprecated ("Use fgetxattr instead"))); ++ __attribute__ ((deprecated)); + + /* + * Set the value of an attribute, creating the attribute if necessary. +@@ -139,11 +139,11 @@ + EXPORT int attr_set (const char *__path, const char *__attrname, + const char *__attrvalue, const int __valuelength, + int __flags) +- __attribute__ ((deprecated ("Use setxattr or lsetxattr instead"))); ++ __attribute__ ((deprecated)); + EXPORT int attr_setf (int __fd, const char *__attrname, + const char *__attrvalue, const int __valuelength, + int __flags) +- __attribute__ ((deprecated ("Use fsetxattr instead"))); ++ __attribute__ ((deprecated)); + + /* + * Remove an attribute. +@@ -151,9 +151,9 @@ + */ + EXPORT int attr_remove (const char *__path, const char *__attrname, + int __flags) +- __attribute__ ((deprecated ("Use removexattr or lremovexattr instead"))); ++ __attribute__ ((deprecated)); + EXPORT int attr_removef (int __fd, const char *__attrname, int __flags) +- __attribute__ ((deprecated ("Use fremovexattr instead"))); ++ __attribute__ ((deprecated)); + + /* + * List the names and sizes of the values of all the attributes of an object. +@@ -164,10 +164,10 @@ + */ + EXPORT int attr_list(const char *__path, char *__buffer, const int __buffersize, + int __flags, attrlist_cursor_t *__cursor) +- __attribute__ ((deprecated ("Use listxattr or llistxattr instead"))); ++ __attribute__ ((deprecated)); + EXPORT int attr_listf(int __fd, char *__buffer, const int __buffersize, + int __flags, attrlist_cursor_t *__cursor) +- __attribute__ ((deprecated ("Use flistxattr instead"))); ++ __attribute__ ((deprecated)); + + /* + * Operate on multiple attributes of the same object simultaneously. +@@ -188,10 +188,10 @@ + */ + EXPORT int attr_multi (const char *__path, attr_multiop_t *__oplist, + int __count, int __flags) +- __attribute__ ((deprecated ("Use getxattr, setxattr, listxattr, removexattr instead"))); ++ __attribute__ ((deprecated)); + EXPORT int attr_multif (int __fd, attr_multiop_t *__oplist, + int __count, int __flags) +- __attribute__ ((deprecated ("Use getxattr, setxattr, listxattr, removexattr instead"))); ++ __attribute__ ((deprecated)); + + #ifdef __cplusplus + } From patchwork Thu Jul 19 17:20:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hollis Blanchard X-Patchwork-Id: 947086 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mentor.com Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41XFY12DBfz9s55 for ; Sat, 21 Jul 2018 01:43:49 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 5425C88D83; Fri, 20 Jul 2018 15:43:47 +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 9AL1imGnSsuK; Fri, 20 Jul 2018 15:43:46 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id CFAE288D73; Fri, 20 Jul 2018 15:43:46 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id F14331CF2EC for ; Fri, 20 Jul 2018 15:43:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DE1F8886A5 for ; Fri, 20 Jul 2018 15:43:44 +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 vskpFmvM+PkQ for ; Fri, 20 Jul 2018 15:43:44 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by whitealder.osuosl.org (Postfix) with ESMTPS id 3AC39886A6 for ; Fri, 20 Jul 2018 15:43:44 +0000 (UTC) Received: from svr-orw-mbx-03.mgc.mentorg.com ([147.34.90.203]) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1fgXZH-0004Qt-Dq from Hollis_Blanchard@mentor.com ; Fri, 20 Jul 2018 08:43:43 -0700 Received: from SVR-ORW-MBX-09.mgc.mentorg.com (147.34.90.209) by svr-orw-mbx-03.mgc.mentorg.com (147.34.90.203) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Fri, 20 Jul 2018 08:43:41 -0700 Received: from wv-mailhost.wv.mentorg.com (147.34.91.1) by SVR-ORW-MBX-09.mgc.mentorg.com (147.34.90.209) with Microsoft SMTP Server id 15.0.1320.4 via Frontend Transport; Fri, 20 Jul 2018 08:43:41 -0700 Received: from concession.localdomain (unknown [172.30.13.134]) by wv-mailhost.wv.mentorg.com (Postfix) with SMTP id EAAA71A0400; Fri, 20 Jul 2018 08:43:40 -0700 (PDT) Received: by concession.localdomain (Postfix, from userid 50728) id 9C034619442E; Fri, 20 Jul 2018 08:43:39 -0700 (PDT) MIME-Version: 1.0 X-Mercurial-Node: 020682614ab3ed64145d7e64b3de4e479ff8d997 X-Mercurial-Series-Index: 3 X-Mercurial-Series-Total: 3 Message-ID: <020682614ab3ed64145d.1532020844@cveaol6qa08.wv.mentorg.com> X-Mercurial-Series-Id: <05bbe42a7a77f46daa8a.1532020842@cveaol6qa08.wv.mentorg.com> In-Reply-To: <05bbe42a7a77f46daa8a.1532020842@cveaol6qa08.wv.mentorg.com> References: <05bbe42a7a77f46daa8a.1532020842@cveaol6qa08.wv.mentorg.com> User-Agent: Mercurial-patchbomb/4.4.1 Date: Thu, 19 Jul 2018 10:20:44 -0700 From: Hollis Blanchard To: Status: O Subject: [Buildroot] [PATCH 3 of 3] libglib2: build fix for RHEL6 hosts (GCC 4.4.7) X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hollis Blanchard , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Signed-off-by: Hollis Blanchard diff --git a/package/libglib2/0004-define-F_SETPIPE_SZ.patch b/package/libglib2/0004-define-F_SETPIPE_SZ.patch new file mode 100644 --- /dev/null +++ b/package/libglib2/0004-define-F_SETPIPE_SZ.patch @@ -0,0 +1,17 @@ +On RHEL6 hosts, fcntl.h doesn't define F_SETPIPE_SZ or F_GETPIPE_SZ. + +Signed-off-by: Hollis Blanchard + +--- libglib2-2.56.1/gio/gfile.c.orig 2018-07-12 11:31:13.862255422 -0700 ++++ libglib2-2.56.1/gio/gfile.c 2018-07-12 12:06:49.984118708 -0700 +@@ -34,6 +34,10 @@ + #include + #include + #include ++#ifndef F_SETPIPE_SZ ++#define F_SETPIPE_SZ 1031 ++#define F_GETPIPE_SZ 1032 ++#endif + #include + #endif +