webmin: include webmin-module-acl
PATCH 1/2 webmin: include webmin-module-acl
Webmin's logging module depends on webmin-module-acl.
--- recipes-extended/images/baryon-image.bb | 1 + recipes-extended/webmin/webmin_1.570.bb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
recipes-extended/images/baryon-image.bb +1 -0
@@ -22,6 +22,7 @@ IMAGE_INSTALL += "samba procps mdadm e2fsprogs-mke2fs util-linux \ webmin-module-webmincron \ webmin-module-mediatomb \ webmin-notice \ + webmin-module-acl \ mediatomb \ proftpd"
recipes-extended/webmin/webmin_1.570.bb +1 -1
@@ -9,7 +9,7 @@ RDEPENDS_${PN} += "perl-module-warnings perl-module-warnings-register perl-modul RDEPENDS_${PN} += "perl-module-fcntl perl-module-tie-hash perl-module-vars perl-module-time-local perl-module-config perl-module-constant" RDEPENDS_${PN} += "perl-module-file perl-module-file-glob perl-module-file-copy perl-module-sdbm perl-module-sdbm-file perl-module-timelocal perl-module-feature" -PR = "r10" +PR = "r11" SRC_URI = "${SOURCEFORGE_MIRROR}/webadmin/webmin-${PV}.tar.gz \ file://setup.sh \
Signature · 1 line
1.7.9.5
PATCH 2/2 webmin: remove nfsd check from exports-lib.pl
YOCTO #1719: Webmin expects the userspace version of nsfd and attempts to find its pid when applying a new set of nfs exports. This check fails because baryon is configured to install the kernelspace version. In result the command that is assigned to apply_cmd will never be executed, and the contents of /exports are not successfully exported.
--- recipes-extended/webmin/files/exports-lib.pl.patch | 32 ++++++++++++++++++++ recipes-extended/webmin/webmin_1.570.bb | 3 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 recipes-extended/webmin/files/exports-lib.pl.patch
recipes-extended/webmin/files/exports-lib.pl.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 7eba4c98c6953fa6ea76c1620d19524bcfa3a576 Mon Sep 17 00:00:00 2001 +From: Kevin Strasser <[email protected]> +Date: Wed, 1 Aug 2012 11:51:26 -0700 +Subject: [PATCH] nfs export: remove nfsd check + +nfsd runs as a kernel process and does not have a pid. This means +that the command assigned to apply_cmd will never be executed when +the user tries to apply changes to nfs exports. + +Upstream-Status: Not appropriate [config] + +Signed-off-by: Kevin Strasser <[email protected]> +--- + exports/exports-lib.pl | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/exports/exports-lib.pl b/exports/exports-lib.pl +index 22891c0..1c67494 100755 +--- a/exports/exports-lib.pl ++++ b/exports/exports-lib.pl +@@ -273,7 +273,7 @@ return !&has_command("rpc.nfsd") && !&has_command("nfsd") && + sub restart_mountd + { + # Try exportfs -r first +-if ($config{'apply_cmd'} && &find_byname("nfsd") && &find_byname("mountd")) { ++if ($config{'apply_cmd'} && &find_byname("mountd")) { + local $out = &backquote_logged("$config{'apply_cmd'} 2>&1 </dev/null"); + if (!$? && $out !~ /invalid|error|failed/i) { + # Looks like it worked! +-- +1.7.9.5 +
recipes-extended/webmin/webmin_1.570.bb +2 -1
@@ -9,7 +9,7 @@ RDEPENDS_${PN} += "perl-module-warnings perl-module-warnings-register perl-modul RDEPENDS_${PN} += "perl-module-fcntl perl-module-tie-hash perl-module-vars perl-module-time-local perl-module-config perl-module-constant" RDEPENDS_${PN} += "perl-module-file perl-module-file-glob perl-module-file-copy perl-module-sdbm perl-module-sdbm-file perl-module-timelocal perl-module-feature" -PR = "r11" +PR = "r12" SRC_URI = "${SOURCEFORGE_MIRROR}/webadmin/webmin-${PV}.tar.gz \ file://setup.sh \
@@ -19,6 +19,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/webadmin/webmin-${PV}.tar.gz \ file://remove-startup-option.patch \ file://disable-version-check.patch \ file://nfs-export.patch \ + file://exports-lib.pl.patch \ file://mount-excludefs.patch \ file://samba-config-fix.patch \ file://proftpd-config-fix.patch \
Signature · 1 line
1.7.9.5
Re: [meta-baryon][PATCH 2/2] webmin: remove nfsd check from exports-lib.pl
Hi Kevin,
Thanks for tracking this one down! A couple of minor stylistic issues though:
Quoted 6 lines · On Wednesday 01 August 2012 14:25:02 Kevin Strasser wrote:
YOCTO #1719: Webmin expects the userspace version of nsfd and attempts to find its pid when applying a new set of nfs exports. This check fails because baryon is configured to install the kernelspace version. In result the command that is assigned to
apply_cmdwill never be executed, and the contents of /exports are not successfully exported.
The bug reference needs to be in square brackets i.e. [YOCTO #1719], and typically (at least the way I use it) appears after the main body of the commit message.
Quoted 14 lines
Signed-off-by Kevin Strasser <[email protected]>--- recipes-extended/webmin/files/exports-lib.pl.patch | 32 ++++++++++++++++++++ recipes-extended/webmin/webmin_1.570.bb | 3 +- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 recipes-extended/webmin/files/exports-lib.pl.patch(quoted diff) +0
-0
b/recipes-extended/webmin/files/exports-lib.pl.patchnew file mode 100644 index 0000000..cdee355
recipes-extended/webmin/files/exports-lib.pl.patch line 10
Quoted 10 lines
recipes-extended/webmin/files/exports-lib.pl.patch new file +10
-0@@ -0,0 +1,32 @@ +From 7eba4c98c6953fa6ea76c1620d19524bcfa3a576 Mon Sep 17 00:00:00 2001 +From: Kevin Strasser <[email protected]> +Date: Wed, 1 Aug 2012 11:51:26 -0700 +Subject: [PATCH] nfs export: remove nfsd check + +nfsd runs as a kernel process and does not have a pid. This means +that the command assigned to apply_cmd will never be executed when +the user tries to apply changes to nfs exports. + +Upstream-Status: Not appropriate [config]
Technically this should be "Inappropriate [config]".
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre
Quoted 32 lines · On Wednesday 01 August 2012 14:25:01 Kevin Strasser wrote:
Webmin's logging module depends on webmin-module-acl.
Signed-off-by Kevin Strasser <[email protected]>--- recipes-extended/images/baryon-image.bb | 1 + recipes-extended/webmin/webmin_1.570.bb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)(quoted diff) +0
-0b/recipes-extended/images/baryon-image.bb index dc6b197..56b160c 100644
recipes-extended/images/baryon-image.bb +1
-0@@ -22,6 +22,7 @@ IMAGE_INSTALL += "samba procps mdadm e2fsprogs-mke2fs util-linux \ webmin-module-webmincron \ webmin-module-mediatomb \ webmin-notice \ + webmin-module-acl \ mediatomb \ proftpd"(quoted diff) +0
-0b/recipes-extended/webmin/webmin_1.570.bb index c30b050..b6c4965 100644
recipes-extended/webmin/webmin_1.570.bb +0
-0@@ -9,7 +9,7 @@ RDEPENDS_${PN} += "perl-module-warningsperl-module-warnings-register perl-modul RDEPENDS_${PN} += "perl-module-fcntl perl-module-tie-hash perl-module-vars perl-module-time-local perl-module-config perl-module-constant" RDEPENDS_${PN} += "perl-module-file perl-module-file-glob perl-module-file-copy perl-module-sdbm perl-module-sdbm-file perl-module-timelocal perl-module-feature"
recipes-extended/webmin/webmin_1.570.bb RDEPENDS_${PN} += "perl-module-warnings perl-module-warnings-register perl-modul · line 15
Quoted 5 lines
recipes-extended/webmin/webmin_1.570.bb +1
-1-PR = "r10" +PR = "r11" SRC_URI = "${SOURCEFORGE_MIRROR}/webadmin/webmin-${PV}.tar.gz \ file://setup.sh \
I've merged this patch (with a slight tweak to the commit message - it's the Logging configuration page within the main webmin module). Thanks!
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre