diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2014-01-02 03:37:34 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-06 11:13:57 +0000 |
commit | fc8931b34b7bf9b0c9207d94cc21d5409e630f78 (patch) | |
tree | 0963ac8dc2c88c542b143ffd0bc83a54666ac0d1 /meta/recipes-extended/logrotate | |
parent | 907c8ce6250752fe06476e037b99a6ac88b8500d (diff) | |
download | poky-fc8931b34b7bf9b0c9207d94cc21d5409e630f78.tar.gz |
logrotate: two minor fixes
* Change EXTRA_OEMAKE = "CC='${CC}'" to "", the root cause is the "-e"
from EXTRA_OEMAKE makes the CFLAGS from the env overrides the one
defined in logrotate/Makefile which causes build failures, so we need to
set EXTRA_OEMAKE to "", set it to CC='${CC}' would confuse the user
since CC='${CC}' has been defined in the env.
* Merge do_install() and do_install_append()
(From OE-Core rev: 692cafa46b37fb15a4397114a8380b35ecc09d7f)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/logrotate')
-rw-r--r-- | meta/recipes-extended/logrotate/logrotate_3.8.7.bb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/recipes-extended/logrotate/logrotate_3.8.7.bb b/meta/recipes-extended/logrotate/logrotate_3.8.7.bb index 055bfd565d..b386b85bf6 100644 --- a/meta/recipes-extended/logrotate/logrotate_3.8.7.bb +++ b/meta/recipes-extended/logrotate/logrotate_3.8.7.bb | |||
@@ -16,13 +16,10 @@ SRC_URI = "https://fedorahosted.org/releases/l/o/logrotate/logrotate-${PV}.tar.g | |||
16 | SRC_URI[md5sum] = "99e08503ef24c3e2e3ff74cc5f3be213" | 16 | SRC_URI[md5sum] = "99e08503ef24c3e2e3ff74cc5f3be213" |
17 | SRC_URI[sha256sum] = "f6ba691f40e30e640efa2752c1f9499a3f9738257660994de70a45fe00d12b64" | 17 | SRC_URI[sha256sum] = "f6ba691f40e30e640efa2752c1f9499a3f9738257660994de70a45fe00d12b64" |
18 | 18 | ||
19 | EXTRA_OEMAKE = "CC='${CC}'" | 19 | EXTRA_OEMAKE = "" |
20 | 20 | ||
21 | do_install(){ | 21 | do_install(){ |
22 | oe_runmake install DESTDIR=${D} PREFIX=${D} MANDIR=${mandir} | 22 | oe_runmake install DESTDIR=${D} PREFIX=${D} MANDIR=${mandir} |
23 | } | ||
24 | |||
25 | do_install_append(){ | ||
26 | mkdir -p ${D}${sysconfdir}/logrotate.d | 23 | mkdir -p ${D}${sysconfdir}/logrotate.d |
27 | mkdir -p ${D}${sysconfdir}/cron.daily | 24 | mkdir -p ${D}${sysconfdir}/cron.daily |
28 | mkdir -p ${D}${localstatedir}/lib | 25 | mkdir -p ${D}${localstatedir}/lib |