diff options
| author | Maxin B. John <maxin.john@intel.com> | 2016-09-27 15:25:35 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-27 22:18:51 +0100 |
| commit | de056577cef465d92b4f9be0bc67694228d4d5ca (patch) | |
| tree | 0e47532bfe8a44e6a6079e62b5f1b8a0051de69c /meta | |
| parent | 2ea93e2b1db4a825543e37e68121d63a71c7d6b3 (diff) | |
| download | poky-de056577cef465d92b4f9be0bc67694228d4d5ca.tar.gz | |
libarchive: respect disable-acl configuration option
Update configure.ac to properly handle --disable-acl option
[YOCTO #9668]
(From OE-Core rev: 84fe3f29f2bdaf98c9beefdfede143084fba093b)
(From OE-Core rev: 687d3b8d54aa3190bbbbc94ae2f91303fccf7c8d)
Signed-off-by: Maxin B. John <maxin.john@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-extended/libarchive/libarchive/0001-configure.ac-check-acl-libacl.h-and-sys-acl.h-based-.patch | 66 | ||||
| -rw-r--r-- | meta/recipes-extended/libarchive/libarchive_3.1.2.bb | 1 |
2 files changed, 67 insertions, 0 deletions
diff --git a/meta/recipes-extended/libarchive/libarchive/0001-configure.ac-check-acl-libacl.h-and-sys-acl.h-based-.patch b/meta/recipes-extended/libarchive/libarchive/0001-configure.ac-check-acl-libacl.h-and-sys-acl.h-based-.patch new file mode 100644 index 0000000000..4b41d62a99 --- /dev/null +++ b/meta/recipes-extended/libarchive/libarchive/0001-configure.ac-check-acl-libacl.h-and-sys-acl.h-based-.patch | |||
| @@ -0,0 +1,66 @@ | |||
| 1 | From b30c530aaf5068a652a479f3e46c74eb1716861a Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "Maxin B. John" <maxin.john@intel.com> | ||
| 3 | Date: Thu, 2 Jun 2016 16:08:02 +0300 | ||
| 4 | Subject: [PATCH] configure.ac: check acl/libacl.h and sys/acl.h based on | ||
| 5 | requirement | ||
| 6 | |||
| 7 | acl/libacl.h and sys/acl.h check should not happen when we explicitly | ||
| 8 | disable it with --disable-acl. | ||
| 9 | |||
| 10 | Similarly, update attr/xattr.h for --disable-xattr option. | ||
| 11 | |||
| 12 | Update the help texts to reflect what it really does. | ||
| 13 | |||
| 14 | Upstream-Status: Accepted | ||
| 15 | |||
| 16 | Signed-off-by: Maxin B. John <maxin.john@intel.com> | ||
| 17 | --- | ||
| 18 | configure.ac | 9 +++++---- | ||
| 19 | 1 file changed, 5 insertions(+), 4 deletions(-) | ||
| 20 | |||
| 21 | diff --git a/configure.ac b/configure.ac | ||
| 22 | index cb6943f..0638182 100644 | ||
| 23 | --- a/configure.ac | ||
| 24 | +++ b/configure.ac | ||
| 25 | @@ -252,7 +252,7 @@ esac | ||
| 26 | # Checks for header files. | ||
| 27 | AC_HEADER_DIRENT | ||
| 28 | AC_HEADER_SYS_WAIT | ||
| 29 | -AC_CHECK_HEADERS([acl/libacl.h attr/xattr.h copyfile.h ctype.h]) | ||
| 30 | +AC_CHECK_HEADERS([copyfile.h ctype.h]) | ||
| 31 | AC_CHECK_HEADERS([errno.h ext2fs/ext2_fs.h fcntl.h grp.h]) | ||
| 32 | |||
| 33 | AC_CACHE_CHECK([whether EXT2_IOC_GETFLAGS is usable], | ||
| 34 | @@ -272,7 +272,7 @@ AC_CHECK_HEADERS([linux/fiemap.h linux/fs.h linux/magic.h linux/types.h]) | ||
| 35 | AC_CHECK_HEADERS([locale.h paths.h poll.h pthread.h pwd.h]) | ||
| 36 | AC_CHECK_HEADERS([readpassphrase.h signal.h spawn.h]) | ||
| 37 | AC_CHECK_HEADERS([stdarg.h stdint.h stdlib.h string.h]) | ||
| 38 | -AC_CHECK_HEADERS([sys/acl.h sys/cdefs.h sys/extattr.h]) | ||
| 39 | +AC_CHECK_HEADERS([sys/cdefs.h sys/extattr.h]) | ||
| 40 | AC_CHECK_HEADERS([sys/ioctl.h sys/mkdev.h sys/mount.h]) | ||
| 41 | AC_CHECK_HEADERS([sys/param.h sys/poll.h sys/select.h sys/statfs.h sys/statvfs.h]) | ||
| 42 | AC_CHECK_HEADERS([sys/time.h sys/utime.h sys/utsname.h sys/vfs.h]) | ||
| 43 | @@ -644,7 +644,7 @@ AC_CHECK_MEMBER(struct dirent.d_namlen,,, | ||
| 44 | # Check for Extended Attributes support | ||
| 45 | AC_ARG_ENABLE([xattr], | ||
| 46 | AS_HELP_STRING([--disable-xattr], | ||
| 47 | - [Enable Extended Attributes support (default: check)])) | ||
| 48 | + [Disable Extended Attributes support (default: check)])) | ||
| 49 | |||
| 50 | if test "x$enable_xattr" != "xno"; then | ||
| 51 | AC_CHECK_HEADERS([attr/xattr.h]) | ||
| 52 | @@ -670,9 +670,10 @@ fi | ||
| 53 | # | ||
| 54 | AC_ARG_ENABLE([acl], | ||
| 55 | AS_HELP_STRING([--disable-acl], | ||
| 56 | - [Enable ACL support (default: check)])) | ||
| 57 | + [Disable ACL support (default: check)])) | ||
| 58 | |||
| 59 | if test "x$enable_acl" != "xno"; then | ||
| 60 | + AC_CHECK_HEADERS([acl/libacl.h]) | ||
| 61 | AC_CHECK_HEADERS([sys/acl.h]) | ||
| 62 | AC_CHECK_LIB([acl],[acl_get_file]) | ||
| 63 | AC_CHECK_FUNCS([acl_create_entry acl_init acl_set_fd acl_set_fd_np acl_set_file]) | ||
| 64 | -- | ||
| 65 | 2.4.0 | ||
| 66 | |||
diff --git a/meta/recipes-extended/libarchive/libarchive_3.1.2.bb b/meta/recipes-extended/libarchive/libarchive_3.1.2.bb index ed677ac318..e388226f7c 100644 --- a/meta/recipes-extended/libarchive/libarchive_3.1.2.bb +++ b/meta/recipes-extended/libarchive/libarchive_3.1.2.bb | |||
| @@ -36,6 +36,7 @@ SRC_URI = "http://libarchive.org/downloads/libarchive-${PV}.tar.gz \ | |||
| 36 | file://libarchive-CVE-2015-2304.patch \ | 36 | file://libarchive-CVE-2015-2304.patch \ |
| 37 | file://mkdir.patch \ | 37 | file://mkdir.patch \ |
| 38 | file://0001-Set-xattrs-after-setting-times.patch \ | 38 | file://0001-Set-xattrs-after-setting-times.patch \ |
| 39 | file://0001-configure.ac-check-acl-libacl.h-and-sys-acl.h-based-.patch \ | ||
| 39 | " | 40 | " |
| 40 | 41 | ||
| 41 | SRC_URI[md5sum] = "efad5a503f66329bb9d2f4308b5de98a" | 42 | SRC_URI[md5sum] = "efad5a503f66329bb9d2f4308b5de98a" |
