This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=631b7591c79395465ad6cb6b959b1dcc3b21971b commit 631b7591c79395465ad6cb6b959b1dcc3b21971b Author: Guillem Jover <guil...@debian.org> AuthorDate: Sun Nov 15 03:26:50 2020 +0100 build: Do not try to use <sys/sysctl.h> on GNU/Linux The glibc project has deprecated this header for some time and made it emit warnings, and removed it in 2.32. The Linux kernel has removed the functionality behind the syscall in 5.5. Warned-by: cpp --- configure.ac | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5ca23b4cc..10d2ad278 100644 --- a/configure.ac +++ b/configure.ac @@ -111,13 +111,24 @@ AC_CHECK_HEADERS([\ kvm.h \ sys/sysmacros.h \ sys/param.h \ - sys/sysctl.h \ sys/syscall.h \ sys/user.h \ sys/procfs.h \ sys/pstat.h \ linux/fiemap.h \ ]) +AS_CASE([$host_os], + [linux-gnu*], [ + # The glibc project has deprecated the <sys/sysctl.h> header and emits + # warnings on its usage, and removed it in 2.32. The Linux kernel removed + # support for it in 5.5. + ], [ + # On other systems, we need to check whether to use it. + AC_CHECK_HEADERS([\ + sys/sysctl.h \ + ]) + ] +) AC_CHECK_HEADERS([sys/proc.h], [], [], [ #ifdef HAVE_SYS_PARAM_H #include <sys/param.h> -- Dpkg.Org's dpkg