From b51bb68cdae23eea9eea89ea23fe30de35710133 Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Sat, 30 May 2020 00:03:55 +0000 Subject: Run sed and findutils tests as an unprivileged user. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11869 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 11 +++++++++++ chapter06/findutils.xml | 6 ++---- chapter06/sed.xml | 19 ++++--------------- general.ent | 6 +++--- 4 files changed, 20 insertions(+), 22 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 5e6eae470..e06d8d271 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -42,6 +42,17 @@ or as appropriate for the entry or if needed the entire day's listitem. --> + + 2020-05-29 + + + [bdubbs] - Run sed and findutils tests as an + unprivileged user. Fixes + #4661. + + + + 2020-05-28 diff --git a/chapter06/findutils.xml b/chapter06/findutils.xml index 15b6d70fb..37393f0de 100644 --- a/chapter06/findutils.xml +++ b/chapter06/findutils.xml @@ -67,10 +67,8 @@ To test the results, issue: -make check - - Two tests are known to fail in the chroot environment: - sv-bug-54171.old-O3 and sv-bug-54171.new-O3. +chown -Rv tester . +su tester -c "PATH=$PATH make check" Install the package: diff --git a/chapter06/sed.xml b/chapter06/sed.xml index aa6ac177c..9dee31ed2 100644 --- a/chapter06/sed.xml +++ b/chapter06/sed.xml @@ -40,26 +40,14 @@ Installation of Sed - First fix an issue in the LFS environment and remove a failing test: + First fix an issue in the LFS environment: -sed -i 's/usr/tools/' build-aux/help2man -sed -i 's/testsuite.panic-tests.sh//' Makefile.in +sed -i 's/usr/tools/' build-aux/help2man Prepare Sed for compilation: ./configure --prefix=/usr --bindir=/bin - Compile the package and generate the HTML documentation: make @@ -67,7 +55,8 @@ make html To test the results, issue: -make check +chown -Rv tester . +su -c "PATH=$PATH make check" Install the package and its documentation: diff --git a/general.ent b/general.ent index f0139d911..77e61b49c 100644 --- a/general.ent +++ b/general.ent @@ -1,13 +1,13 @@ - + - + - + -- cgit v1.2.3-54-g00ecf