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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 78C4013835A for ; Sun, 22 Nov 2020 10:38:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6972BE077C; Sun, 22 Nov 2020 10:38:46 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5337BE077C for ; Sun, 22 Nov 2020 10:38:46 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0011A340E63 for ; Sun, 22 Nov 2020 10:38:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 40FC4451 for ; Sun, 22 Nov 2020 10:38:43 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1606041516.6dab4bf338cb68ba68726400eb72252bfdffcfe3.heroxbd@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/features/prefix/standalone/kernel-2.6.16+/ X-VCS-Repository: repo/gentoo X-VCS-Files: profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc X-VCS-Directories: profiles/features/prefix/standalone/kernel-2.6.16+/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: 6dab4bf338cb68ba68726400eb72252bfdffcfe3 X-VCS-Branch: master Date: Sun, 22 Nov 2020 10:38:43 +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: 6efa589e-9b35-4ae9-8ffe-2dbbde8cc44b X-Archives-Hash: 319bdf432d5f7f83065449d77234205e commit: 6dab4bf338cb68ba68726400eb72252bfdffcfe3 Author: Benda Xu gentoo org> AuthorDate: Sun Nov 22 10:35:18 2020 +0000 Commit: Benda XU gentoo org> CommitDate: Sun Nov 22 10:38:36 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dab4bf3 profiles/f/p/s/kernel-2.6.16+/p.bashrc: libmount compatibility. Replace CLOEXEC related functions that are not introduced until linux-2.6.27 with old ones. The result is not thread safe, but compiles. Signed-off-by: Benda Xu gentoo.org> profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc b/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc index dad9dcbc585..ed5226a858d 100644 --- a/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc +++ b/profiles/features/prefix/standalone/kernel-2.6.16+/profile.bashrc @@ -14,6 +14,12 @@ elif [[ ${CATEGORY}/${PN} == dev-qt/qtcore && ${EBUILD_PHASE} == configure ]]; t elif [[ ${CATEGORY}/${PN} == dev-lang/ocaml && ${EBUILD_PHASE} == configure ]]; then einfo "Removing dup3 and pipe2 definitions..." sed -e '/hasgot dup3/,/^fi/d;/hasgot pipe2/,/^fi/d' -i "${S}"/configure || die +elif [[ ${CATEGORY}/${PN} == sys-apps/util-linux && ${EBUILD_PHASE} == configure ]]; then + einfo "Removing CLOEXEC related functions..." + sed -r -e 's/inotify_init1\(.*\)/inotify_init\(\)/' \ + -e '/open\(/s/\| *O_CLOEXEC//' \ + -e 's/epoll_create1\(EPOLL_CLOEXEC/epoll_create\(1/' \ + -i "${S}"/libmount/src/monitor.c fi # Local Variables: