[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#787496: libdrm: FTBFS: unconditionally includes deprecated-on-Linux sysctl header



Source: libdrm
Version: 2.4.60-3
Severity: important
Justification: fails to build from source (but built successfully in the past)

Hi,

your last kFreeBSD patch added an unconditional inclusion of
the <sys/sysctl.h> header. Unfortunately, people on Linux don’t
like it and deprecated it to the point it’s a hard failure on
new architectures, such as x32.

I’m currently building libdrm with a local trivial patch to
use autoconf mechanisms to check for it.

@kFreeBSD porters: please *never* add this header unconditionally
any more but *always* use autoconf mechanisms to check whether it
is actually usable first (note it exists but has a hard #error).

Thanks!

-- System Information:
Debian Release: stretch/sid
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable')
Architecture: x32 (x86_64)
Foreign Architectures: i386, amd64

Kernel: Linux 4.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)


Reply to: