Package: m4
Version: 1.4.14-2
Severity: important
Tags: patch
User: [email protected]
Usertags: origin-ubuntu maverick
Hi
m4 FTBFSes with newer glibcs (not sure whether it does with current
Debian eglibc) such as the one in Ubuntu (2.12). This is due to a
missing #include of sys/stat.h before usage of S_ISDIR() in src/path.c.
This is fixed in the upstream branch-1.4 branch, I've cherrypicked the
fix from 1359a849055a66eddffe7753485e0f29fb85ef31 and stripped the
ChangeLog and THANKS changes (since these easily cause conflicts).
Thanks for considering,
--
Loïc Minier
>From 1359a849055a66eddffe7753485e0f29fb85ef31 Mon Sep 17 00:00:00 2001
From: Eric Blake <[email protected]>
Date: Fri, 4 Jun 2010 06:07:38 -0600
Subject: [PATCH 1/3] Fix build on newer glibc.
POSIX allows, but does not require, that <fcntl.h> implicitly
includes <sys/stat.h>. Until recent glibc, most systems did
this implicit inclusion, and m4 was mistakenly relying on it.
* src/m4.h (includes): Add <sys/stat.h>.
Reported by Todd Rinaldo.
Signed-off-by: Eric Blake <[email protected]>
---
src/m4.h | 1 +
3 files changed, 10 insertions(+), 0 deletions(-)
--- a/src/m4.h
+++ b/src/m4.h
@@ -32,6 +32,7 @@
#include <stdbool.h>
#include <stdint.h>
#include <string.h>
+#include <sys/stat.h>
#include <sys/types.h>
#include "binary-io.h"