Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 630128

Summary: sys-libs/libhugetlbfs-2.20 fails tests: hugeadm:ERROR: Unable to create dir /var/lib/hugetlbfs, error: Permission denied
Product: Gentoo Linux Reporter: Kent Fredric (IRC: kent\n) (RETIRED) <kentnl>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED OBSOLETE    
Severity: normal CC: treecleaner
Priority: Normal Keywords: PMASKED, TESTFAILURE
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-09-07 01:00:17 UTC
Created attachment 492920 [details]
build.log

Running with FEATURES="-userpriv" as instructed, tests fail:

make[1]: Leaving directory '/var/tmp/portage/sys-libs/libhugetlbfs-2.20/work/libhugetlbfs-2.20/tests'
 * Planning allocation
mkdir: cannot create directory ‘/var/lib/hugetlbfs’: Permission denied
 * Checking HugeTLB mountpoints
hugeadm:ERROR: Unable to create dir /var/lib/hugetlbfs, error: Permission denied
 * ERROR: sys-libs/libhugetlbfs-2.20::gentoo failed (test phase):
 *   Failed to set up hugetlb mountpoints.
 *
 * Call stack:
 *     ebuild.sh, line 115:  Called src_test
 *   environment, line 3232:  Called die
 * The specific snippet of code:
 *       ${hugeadm} --create-mounts || die "Failed to set up hugetlb mountpoints.";


Manually creating that dir doesn't help either:

make[1]: Leaving directory '/var/tmp/portage/sys-libs/libhugetlbfs-2.20/work/libhugetlbfs-2.20/tests'
 * Planning allocation
mkdir: cannot create directory ‘/var/lib/hugetlbfs/pagesize-2097152’: Permission denied
 * Checking HugeTLB mountpoints
hugeadm:ERROR: Unable to create dir /var/lib/hugetlbfs/pagesize-2MB, error: Permission denied
Comment 1 Larry the Git Cow gentoo-dev 2021-10-25 13:28:17 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9215f11d48a5f54263e700e10d91613b5735e1b9

commit 9215f11d48a5f54263e700e10d91613b5735e1b9
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-10-25 13:24:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-25 13:27:50 +0000

    profiles: last-rite sys-libs/libhugetlbfs
    
    Bug: https://bugs.gentoo.org/630128
    Bug: https://bugs.gentoo.org/715640
    Bug: https://bugs.gentoo.org/806079
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)