From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3CA4B158094 for ; Tue, 23 Aug 2022 23:09:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3EAD7E07D8; Tue, 23 Aug 2022 23:09:35 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 152CAE07DB for ; Tue, 23 Aug 2022 23:09:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 561BE340F65 for ; Tue, 23 Aug 2022 23:09:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 11434584 for ; Tue, 23 Aug 2022 23:09:32 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1661295640.de903fb0a0494026c3e787d1c0d922f77b0179f2.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/samba/files/, net-fs/samba/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-fs/samba/files/samba-4.16.4-glibc-2.36.patch net-fs/samba/samba-4.16.4.ebuild X-VCS-Directories: net-fs/samba/files/ net-fs/samba/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: de903fb0a0494026c3e787d1c0d922f77b0179f2 X-VCS-Branch: master Date: Tue, 23 Aug 2022 23:09:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d5432206-03d4-42bd-9d25-505227495120 X-Archives-Hash: c4db244aa1728f1f2d22db329c06fde4 commit: de903fb0a0494026c3e787d1c0d922f77b0179f2 Author: Sam James gentoo org> AuthorDate: Tue Aug 23 23:00:40 2022 +0000 Commit: Sam James gentoo org> CommitDate: Tue Aug 23 23:00:40 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de903fb0 net-fs/samba: fix build w/ glibc 2.36 Closes: https://bugs.gentoo.org/863830 Signed-off-by: Sam James gentoo.org> net-fs/samba/files/samba-4.16.4-glibc-2.36.patch | 51 ++++++++++++++++++++++++ net-fs/samba/samba-4.16.4.ebuild | 1 + 2 files changed, 52 insertions(+) diff --git a/net-fs/samba/files/samba-4.16.4-glibc-2.36.patch b/net-fs/samba/files/samba-4.16.4-glibc-2.36.patch new file mode 100644 index 000000000000..7d3d231f50c9 --- /dev/null +++ b/net-fs/samba/files/samba-4.16.4-glibc-2.36.patch @@ -0,0 +1,51 @@ +https://gitlab.com/samba-team/samba/-/commit/df7d6f0c48612feea428643006d32c2292c662e2 +https://bugs.gentoo.org/863830 + +From: Andreas Schneider +Date: Tue, 2 Aug 2022 07:55:46 +0200 +Subject: [PATCH] lib:replace: Only include on non-Linux systems + +Details at: +https://sourceware.org/glibc/wiki/Release/2.36#Usage_of_.3Clinux.2Fmount.h.3E_and_.3Csys.2Fmount.h.3E + +BUG: https://bugzilla.samba.org/show_bug.cgi?id=15132 + +Signed-off-by: Andreas Schneider +Reviewed-by: Ralph Boehme +(cherry picked from commit 766151bf5b7ef95ae4c8c98b8994e5c21c5bbec0) + +Autobuild-User(v4-16-test): Jule Anger +Autobuild-Date(v4-16-test): Tue Aug 23 08:53:41 UTC 2022 on sn-devel-184 +--- a/lib/replace/system/filesys.h ++++ b/lib/replace/system/filesys.h +@@ -36,7 +36,8 @@ + #include + #endif + +-#ifdef HAVE_SYS_MOUNT_H ++/* This include is required on UNIX (*BSD, AIX, ...) for statfs() */ ++#if !defined(LINUX) && defined(HAVE_SYS_MOUNT_H) + #include + #endif + +@@ -44,6 +45,7 @@ + #include + #endif + ++/* This include is required on Linux for statfs() */ + #ifdef HAVE_SYS_VFS_H + #include + #endif +--- a/lib/replace/wscript ++++ b/lib/replace/wscript +@@ -31,6 +31,9 @@ def configure(conf): + + conf.env.standalone_replace = conf.IN_LAUNCH_DIR() + ++ if sys.platform.rfind('linux') > -1: ++ conf.DEFINE('LINUX', '1') ++ + conf.DEFINE('BOOL_DEFINED', 1) + conf.DEFINE('HAVE_LIBREPLACE', 1) + conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1) +GitLab diff --git a/net-fs/samba/samba-4.16.4.ebuild b/net-fs/samba/samba-4.16.4.ebuild index 0285da3c90ea..dfcb1a1d920c 100644 --- a/net-fs/samba/samba-4.16.4.ebuild +++ b/net-fs/samba/samba-4.16.4.ebuild @@ -144,6 +144,7 @@ PATCHES=( "${FILESDIR}/${PN}-4.16.1-netdb-defines.patch" "${FILESDIR}/${PN}-4.16.2-fix-musl-without-innetgr.patch" "${FILESDIR}/ldb-2.5.2-skip-wav-tevent-check.patch" + "${FILESDIR}/${P}-glibc-2.36.patch" ) #CONFDIR="${FILESDIR}/$(get_version_component_range 1-2)"