On 2016-08-11 01:25, Aurelien Jarno wrote:
> Package: xautolock
> Version: 1:2.2-5
> Severity: important
> Tags: patch upstream
> 
> Dear Maintainer,
> 
> glibc 2.24 has removed the deprecated BSD union wait type if favor of
> the POSIX.1 interface using W* macros from <sys/wait.h> (such as
> WEXITSTATUS) [1].
> 
> glibc 2.24 is already available in experimental and will plan to upload
> it to sid in the next days/weeks. This will cause xautolock to fail to
> build from source. You will find attached a patch to fix the issue. It
> unconditionally uses the "new" interface as the GNU libc supports it
> since at least 1995, probably even earlier.
>  
> Please also note that this will not break the existing binaries, just
> building the package from source.
> 
> Thanks,
> Aurelien
> 
> [1] https://sourceware.org/ml/libc-alpha/2016-02/msg00342.html
> 
> -- System Information:
> Debian Release: stretch/sid
>   APT prefers testing
>   APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
> Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)

> --- xautolock-2.2.orig/src/engine.c
> +++ xautolock-2.2/src/engine.c
> @@ -240,7 +240,7 @@ evaluateTriggers (Display* d)
>  #else /* VMS */
>    if (lockerPid)
>    {
> -#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4)
> +#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4) && !defined 
> (__GLIBC__)
>      union wait  status;      /* childs process status */
>  #else /* !UTEKV && !SYSV && !SVR4 */
>      int         status = 0;  /* childs process status */
> @@ -251,7 +251,7 @@ evaluateTriggers (Display* d)
>        (void) kill (lockerPid, SIGTERM);
>      }
>  
> -#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4)
> +#if !defined (UTEKV) && !defined (SYSV) && !defined (SVR4) && !defined 
> (__GLIBC__)
>      if (wait3 (&status, WNOHANG, 0))
>  #else /* !UTEKV && !SYSV && !SVR4 */
>      if (waitpid (-1, &status, WNOHANG)) 


-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
[email protected]                 http://www.aurel32.net

Reply via email to