diff options
author | Clayton Shotwell <clayton.shotwell@rockwellcollins.com> | 2015-06-02 08:28:20 -0500 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-06-17 23:34:09 +0200 |
commit | 6158928a4e4b7dcdd022731d3ff9304a49bcf357 (patch) | |
tree | 6fe32d9f26ac11beec6361d8b9d83d60316fe49b /package/audit/0005-Fix-header-detection-when-cross-compiling.patch | |
parent | dad81a3abf5ebfc2a7ea0722edb484f4e37af3ba (diff) | |
download | buildroot-6158928a4e4b7dcdd022731d3ff9304a49bcf357.tar.gz buildroot-6158928a4e4b7dcdd022731d3ff9304a49bcf357.zip |
audit: new package
[Thomas:
- remove S01audit, which isn't completely compliant with the
Buildroot style.
- make the package available only on architectures for which the
system call tables are available, and add some comments about this
in the .mk file.]
Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/audit/0005-Fix-header-detection-when-cross-compiling.patch')
-rw-r--r-- | package/audit/0005-Fix-header-detection-when-cross-compiling.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/package/audit/0005-Fix-header-detection-when-cross-compiling.patch b/package/audit/0005-Fix-header-detection-when-cross-compiling.patch new file mode 100644 index 0000000000..6d88885123 --- /dev/null +++ b/package/audit/0005-Fix-header-detection-when-cross-compiling.patch @@ -0,0 +1,46 @@ +From ce268f342b5a921d6608b0c317734b10dc8533b0 Mon Sep 17 00:00:00 2001 +From: Clayton Shotwell <clayton.shotwell@rockwellcollins.com> +Date: Wed, 8 Apr 2015 08:49:26 -0500 +Subject: [PATCH] Fix header detection when cross compiling + +During the build, there is a check to see if MS_DIRSYNC is defined in +mount.h. This check is used in gen_tables.c to see if linux/fs.h needs +to be included. When cross compiling on a system that does not have the +MS_DIRSYNC defined in mount.h, a compile failure is generated. To +prevent this issue, do not check for MS_DIRSYNC in the configure and +simply check to see if MS_DIRSYNC is defined before included linux/fs.h. + +Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com> +--- + configure.ac | 1 - + lib/gen_tables.c | 2 +- + 2 files changed, 1 insertion(+), 2 deletions(-) + +diff --git a/configure.ac b/configure.ac +index c14ec80..e63684b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -63,7 +63,6 @@ AC_C_INLINE + AC_CHECK_SIZEOF([unsigned int]) + AC_CHECK_SIZEOF([unsigned long]) + AM_PROG_CC_C_O +-AC_CHECK_DECLS([MS_DIRSYNC], [], [], [[#include <sys/mount.h>]]) + AC_CHECK_DECLS([AUDIT_FEATURE_VERSION], [], [], [[#include <linux/audit.h>]]) + AC_CHECK_DECLS([AUDIT_VERSION_BACKLOG_WAIT_TIME], [], [], [[#include <linux/audit.h>]]) + AC_CHECK_DECLS([ADDR_NO_RANDOMIZE],,, [#include <sys/personality.h>]) +diff --git a/lib/gen_tables.c b/lib/gen_tables.c +index 8606a39..9f25b50 100644 +--- a/lib/gen_tables.c ++++ b/lib/gen_tables.c +@@ -33,7 +33,7 @@ + #include <sys/stat.h> + #include <sys/personality.h> + #include <sys/mount.h> +-#if !HAVE_DECL_MS_DIRSYNC ++#ifndef MS_DIRSYNC + #include <linux/fs.h> + #endif + #include "gen_tables.h" +-- +1.9.1 + |