* [PATCH] sudo: provide sudo paths through EXTRA_OECONF
@ 2017-12-06 10:28 Nikolay Merinov
2017-12-06 17:16 ` Alexander Kanavin
0 siblings, 1 reply; 3+ messages in thread
From: Nikolay Merinov @ 2017-12-06 10:28 UTC (permalink / raw)
To: openembedded-core
Configure script for a sudo utility trying to figure out "vardir",
"iologdir", "rundir" and "logpath" from directory structure on build
machine. If none of a standart paths present on a build machine then
variables will be set to empty string and sudo build will fail with
"Installed but not shipped" error.
Signed-off-by: Nikolay Merinov <n.merinov@inango-systems.com>
---
meta/recipes-extended/sudo/sudo_1.8.21p2.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-extended/sudo/sudo_1.8.21p2.bb b/meta/recipes-extended/sudo/sudo_1.8.21p2.bb
index acd0025abc..7a50f1e522 100644
--- a/meta/recipes-extended/sudo/sudo_1.8.21p2.bb
+++ b/meta/recipes-extended/sudo/sudo_1.8.21p2.bb
@@ -17,6 +17,10 @@ EXTRA_OECONF += " \
ac_cv_type_rsize_t=no \
${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-tmpfiles.d=${libdir}/tmpfiles.d', '--disable-tmpfiles.d', d)} \
+ --with-vardir=/var/lib/sudo \
+ --with-iologdir=/var/log/sudo-io \
+ --with-rundir=/var/run/sudo \
+ --with-logpath=/var/log/sudo.log \
"
do_install_append () {
--
2.14.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] sudo: provide sudo paths through EXTRA_OECONF
2017-12-06 10:28 [PATCH] sudo: provide sudo paths through EXTRA_OECONF Nikolay Merinov
@ 2017-12-06 17:16 ` Alexander Kanavin
2017-12-20 9:00 ` [PATCH v2] " Nikolay Merinov
0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kanavin @ 2017-12-06 17:16 UTC (permalink / raw)
To: Nikolay Merinov, openembedded-core
On 12/06/2017 12:28 PM, Nikolay Merinov wrote:
]> + --with-vardir=/var/lib/sudo \
> + --with-iologdir=/var/log/sudo-io \
> + --with-rundir=/var/run/sudo \
> + --with-logpath=/var/log/sudo.log \
Don't hardcode /var here, use ${localstatedir}.
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2] sudo: provide sudo paths through EXTRA_OECONF
2017-12-06 17:16 ` Alexander Kanavin
@ 2017-12-20 9:00 ` Nikolay Merinov
0 siblings, 0 replies; 3+ messages in thread
From: Nikolay Merinov @ 2017-12-20 9:00 UTC (permalink / raw)
To: openembedded-core
Configure script for a sudo utility trying to figure out "vardir",
"iologdir", "rundir" and "logpath" from directory structure on build
machine. If none of a standart paths present on a build machine then
variables will be set to empty string and sudo build will fail with
"Installed but not shipped" error.
Signed-off-by: Nikolay Merinov <n.merinov@inango-systems.com>
---
meta/recipes-extended/sudo/sudo_1.8.21p2.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-extended/sudo/sudo_1.8.21p2.bb b/meta/recipes-extended/sudo/sudo_1.8.21p2.bb
index acd0025abc..cb1646359e 100644
--- a/meta/recipes-extended/sudo/sudo_1.8.21p2.bb
+++ b/meta/recipes-extended/sudo/sudo_1.8.21p2.bb
@@ -17,6 +17,10 @@ EXTRA_OECONF += " \
ac_cv_type_rsize_t=no \
${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--with-pam', '--without-pam', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '--enable-tmpfiles.d=${libdir}/tmpfiles.d', '--disable-tmpfiles.d', d)} \
+ --with-vardir=${localstatedir}/lib/sudo \
+ --with-iologdir=${localstatedir}/log/sudo-io \
+ --with-rundir=${localstatedir}/run/sudo \
+ --with-logpath=${localstatedir}/log/sudo.log \
"
do_install_append () {
--
2.14.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-20 9:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-06 10:28 [PATCH] sudo: provide sudo paths through EXTRA_OECONF Nikolay Merinov
2017-12-06 17:16 ` Alexander Kanavin
2017-12-20 9:00 ` [PATCH v2] " Nikolay Merinov
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.