summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/quota/quota_4.03.bb
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2016-07-19 15:39:20 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-26 08:56:27 +0100
commitb6aa976756e24994a2c60086e5b8c9455c16bbb1 (patch)
tree01b50682f62e1d35049975ddc89f792953e6361d /meta/recipes-extended/quota/quota_4.03.bb
parentb7a2688ac86056c1128876beb0d70be68849371b (diff)
downloadpoky-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.bb8
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 "
16SRC_URI_append_libc-musl = " file://replace_getrpcbynumber_r.patch" 20SRC_URI_append_libc-musl = " file://replace_getrpcbynumber_r.patch"
17 21
@@ -25,8 +29,8 @@ DEPENDS = "gettext-native e2fsprogs libnl dbus"
25 29
26inherit autotools-brokensep gettext pkgconfig 30inherit autotools-brokensep gettext pkgconfig
27 31
28CFLAGS += "-I${STAGING_INCDIR}/tirpc" 32CFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'rpc', '-I${STAGING_INCDIR}/tirpc', '', d)}"
29LDFLAGS += "-ltirpc" 33LDFLAGS += "${@bb.utils.contains('PACKAGECONFIG', 'rpc', '-ltirpc', '', d)}"
30ASNEEDED = "" 34ASNEEDED = ""
31 35
32PACKAGECONFIG ??= "tcp-wrappers rpc bsd" 36PACKAGECONFIG ??= "tcp-wrappers rpc bsd"