From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id B63C6384603E; Thu, 2 Jun 2022 19:00:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B63C6384603E Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc] linux: Set tst-pidfd-consts unsupported for kernels headers older than 5.10 X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/master X-Git-Oldrev: bb8887379f59a3efde90569acd47e63e0f6a3863 X-Git-Newrev: 7d3e91ba194cc4b5fe1c9017f3bd77533c123b97 Message-Id: <20220602190031.B63C6384603E@sourceware.org> Date: Thu, 2 Jun 2022 19:00:31 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2022 19:00:31 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7d3e91ba194cc4b5fe1c9017f3bd77533c123b97 commit 7d3e91ba194cc4b5fe1c9017f3bd77533c123b97 Author: Adhemerval Zanella Date: Thu Jun 2 08:50:58 2022 -0300 linux: Set tst-pidfd-consts unsupported for kernels headers older than 5.10 Instead of fail trying to build the compare source file. Reviewed-by: Carlos O'Donell Tested-by: Matheus Castanho Reviewed-by: Matheus Castanho Diff: --- sysdeps/unix/sysv/linux/tst-pidfd-consts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/unix/sysv/linux/tst-pidfd-consts.py b/sysdeps/unix/sysv/linux/tst-pidfd-consts.py index 75df0ebed5..90cbb9be64 100644 --- a/sysdeps/unix/sysv/linux/tst-pidfd-consts.py +++ b/sysdeps/unix/sysv/linux/tst-pidfd-consts.py @@ -34,6 +34,9 @@ def main(): args = parser.parse_args() linux_version_headers = glibcsyscalls.linux_kernel_version(args.cc) + # Linux started to provide pidfd.h with 5.10. + if linux_version_headers < (5, 10): + sys.exit (77) linux_version_glibc = (5, 18) sys.exit(glibcextract.compare_macro_consts( '#include \n',