diff options
author | Kai Kang <kai.kang@windriver.com> | 2016-07-19 15:39:20 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-26 08:56:27 +0100 |
commit | b6aa976756e24994a2c60086e5b8c9455c16bbb1 (patch) | |
tree | 01b50682f62e1d35049975ddc89f792953e6361d /meta/recipes-extended/quota/quota_4.03.bb | |
parent | b7a2688ac86056c1128876beb0d70be68849371b (diff) | |
download | poky-b6aa976756e24994a2c60086e5b8c9455c16bbb1.tar.gz |
quota: make compile pass when disable rpc
When 'rpc' is not in PACKAGECONFIG, option '--disable-rpc' is passed to
configure and then compile fails. Backport patches to make quota build
successfully.
Update fcntl.patch that part of the patches are added by
0002-Allow-building-on-systems-that-do-not-have-rpc-heade.patch.
(From OE-Core rev: aff36f4c4d241707744fe13b6310fb894610a0f3)
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/quota/quota_4.03.bb')
-rw-r--r-- | meta/recipes-extended/quota/quota_4.03.bb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-extended/quota/quota_4.03.bb b/meta/recipes-extended/quota/quota_4.03.bb index 4a980464b1..22aab4147b 100644 --- a/meta/recipes-extended/quota/quota_4.03.bb +++ b/meta/recipes-extended/quota/quota_4.03.bb | |||
@@ -12,6 +12,10 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/project/linuxquota/quota-tools/${PV}/quota-${PV | |||
12 | file://0001-Do-not-accidentaly-override-commandline-passed-CFLAG.patch \ | 12 | file://0001-Do-not-accidentaly-override-commandline-passed-CFLAG.patch \ |
13 | file://fcntl.patch \ | 13 | file://fcntl.patch \ |
14 | file://remove_non_posix_types.patch \ | 14 | file://remove_non_posix_types.patch \ |
15 | file://0001-Use-NGROUPS_MAX-instead-of-NGROUPS.patch \ | ||
16 | file://0002-Allow-building-on-systems-that-do-not-have-rpc-heade.patch \ | ||
17 | file://0003-Don-t-build-rpc.rquotad-when-disable-rpc-was-request.patch \ | ||
18 | file://0004-Fix-warnings-due-to-missing-stdlib.h.patch \ | ||
15 | " | 19 | " |
16 | SRC_URI_append_libc-musl = " file://replace_getrpcbynumber_r.patch" | 20 | SRC_URI_append_libc-musl = " file://replace_getrpcbynumber_r.patch" |
17 | 21 | ||
@@ -25,8 +29,8 @@ DEPENDS = "gettext-native e2fsprogs libnl dbus" | |||
25 | 29 | ||
26 | inherit autotools-brokensep gettext pkgconfig | 30 | inherit autotools-brokensep gettext pkgconfig |
27 | 31 | ||
28 | CFLAGS += "-I${STAGING_INCDIR}/tirpc" | 32 | CFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'rpc', '-I${STAGING_INCDIR}/tirpc', '', d)}" |
29 | LDFLAGS += "-ltirpc" | 33 | LDFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'rpc', '-ltirpc', '', d)}" |
30 | ASNEEDED = "" | 34 | ASNEEDED = "" |
31 | 35 | ||
32 | PACKAGECONFIG ??= "tcp-wrappers rpc bsd" | 36 | PACKAGECONFIG ??= "tcp-wrappers rpc bsd" |