Summary: | sys-cluster/util-vserver-0.30.216_pre3120 : installs into paths that should be created at runtime | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Patrice Clement <monsieurp> |
Status: | RESOLVED FIXED | ||
Severity: | QA | CC: | ccx, jstein, sandino, trs |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Remove runtime install paths
Ebuild with runtime paths patch |
Description
Toralf Förster
2017-09-30 21:48:47 UTC
These directories are created by the util-vserver init script so they might be safely deleted in src_install() var/run/vshelper var/run/vservers.rev var/run/vservers Directory /var/cache/vservers might also be created by the util-vserver init script in function create_dirs() About pivot_root I think it's desired functionality but we should better ask upstream. Created attachment 565846 [details, diff]
Remove runtime install paths
This patch removes runtime paths in src_install().
Runtime paths are created by util-vserver init script.
Created attachment 565848 [details] Ebuild with runtime paths patch this ebuild applies the attached runtime paths patch and other patch from bug 650578. You can get the other patch (dietlibc) from attachment 565832 [details] Ebuild for 0.30.216_pre3131 in attachment 565852 [details] with dietlibc patch in attachment 565834 [details, diff] The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a838aa7a0762719f9aae0aa46568ac802dc90f9 commit 3a838aa7a0762719f9aae0aa46568ac802dc90f9 Author: Patrice Clement <monsieurp@gentoo.org> AuthorDate: 2019-02-19 22:48:11 +0000 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: 2019-02-19 22:48:11 +0000 sys-cluster/util-vserver: create needed runtime directories. Closes: https://bugs.gentoo.org/632586 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 .../util-vserver/util-vserver-0.30.216_pre3120-r1.ebuild | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) Last commit missing this patch. Need to add $_MKDIR -p "$__PKGCACHEDIR" to function create_dirs() diff -puriN util-vserver-0.30.216-pre3131.orig/scripts/vserver-init.functions util-vserver-0.30.216-pre3131/scripts/vserver-init.functions --- util-vserver-0.30.216-pre3131.orig/scripts/vserver-init.functions 2018-01-14 06:26:26.000000000 -0600 +++ util-vserver-0.30.216-pre3131/scripts/vserver-init.functions 2019-02-19 04:21:14.000000000 -0600 @@ -80,7 +80,7 @@ function kill_contexts() function create_dirs() { - $_MKDIR -p "$__RUNDIR" && $_MKDIR -p "$__VSHELPERSTATEDIR" && $_MKDIR -p `$_READLINK "$__PKGSTATEREVDIR"` + $_MKDIR -p "$__RUNDIR" && $_MKDIR -p "$__VSHELPERSTATEDIR" && $_MKDIR -p "$__PKGCACHEDIR" && $_MKDIR -p `$_READLINK "$__PKGSTATEREVDIR"` } function mount_cgroup() The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee09b60d21a7950cc42135247d2840a3287f6c10 commit ee09b60d21a7950cc42135247d2840a3287f6c10 Author: Patrice Clement <monsieurp@gentoo.org> AuthorDate: 2019-02-20 07:57:12 +0000 Commit: Patrice Clement <monsieurp@gentoo.org> CommitDate: 2019-02-20 07:57:24 +0000 sys-cluster/util-vserver: add missing patch. Bug: https://bugs.gentoo.org/632586 Signed-off-by: Patrice Clement <monsieurp@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 ...util-vserver-0.30.216_pre3120-vserver-init-functions.patch | 11 +++++++++++ .../util-vserver/util-vserver-0.30.216_pre3120-r1.ebuild | 4 ++++ 2 files changed, 15 insertions(+) |