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

Bug 699466

Summary: sys-apps/man-db-2.9.0 : [TEST] FAIL: man-deleted-directory
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sys-apps:man-db-2.9.0:20191106-102440.log
temp.tbz2

Description Toralf Förster gentoo-dev 2019-11-06 17:59:32 UTC
	abs_path: (null)
	res_path: (null)
FAIL: man-deleted-directory
PASS: man-exact-section-matches
PASS: man-executable-page-on-path
PASS: man-invalid-db-entry

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1-libressl_test-20191105-191648

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *


llvm:
9.0.0
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)





repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 06 Nov 2019 07:06:08 +0000

emerge -qpvO sys-apps/man-db
[ebuild     U ] sys-apps/man-db-2.9.0 [2.7.6.1-r2] USE="berkdb gdbm manpager nls seccomp%* zlib (-selinux) -static-libs"
Comment 1 Toralf Förster gentoo-dev 2019-11-06 17:59:35 UTC
Created attachment 595164 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-11-06 17:59:38 UTC
Created attachment 595166 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-11-06 17:59:41 UTC
Created attachment 595168 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-11-06 17:59:44 UTC
Created attachment 595170 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-11-06 17:59:47 UTC
Created attachment 595172 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-11-06 17:59:50 UTC
Created attachment 595174 [details]
sys-apps:man-db-2.9.0:20191106-102440.log
Comment 7 Toralf Förster gentoo-dev 2019-11-06 17:59:52 UTC
Created attachment 595176 [details]
temp.tbz2
Comment 8 Thomas Deutschmann (RETIRED) gentoo-dev 2020-08-29 13:55:11 UTC
We need to skip this text when using sandbox which doesn't allow using a non-existent directory this test is testing:

> shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
> /usr/lib/libsandbox.so(+0xbb70)[0xb7f99b70]
> /usr/lib/libsandbox.so(+0xbc13)[0xb7f99c13]
> /usr/lib/libsandbox.so(+0x4021)[0xb7f92021]
> /usr/lib/libsandbox.so(opendir+0x67)[0xb7f95a37]
> /bin/sh(+0x8b913)[0x56a913]
> /bin/sh(+0x8c568)[0x56b568]
> /bin/sh(+0x55f88)[0x534f88]
> /bin/sh(+0x50cf5)[0x52fcf5]
> /bin/sh(+0x223a9)[0x5013a9]
> /bin/sh(+0x2482c)[0x50382c]
> /proc/986/cmdline: /bin/sh /var/tmp/portage/sys-apps/man-db-2.9.3/work/man-db-2.9.3/libtool --mode=execute -dlopen /var/tmp/portage/sys-apps/man-db-2.9.3/work/man-db-2.9.3/lib/.libs/libman.la -dlopen /var/tmp/portage/sys-apps/man-db-2.9.3/work/man-db-2.9.3/libdb/.libs/libmandb.la man -C /var/tmp/portage/sys-apps/man-db-2.9.3/temp/tmp.cFCNXxaHky/manpath.config test
> 
> ./testlib.sh: line 27:   986 Aborted                 (core dumped) "$abs_top_builddir/libtool" --mode=execute -dlopen "$abs_top_builddir/lib/.libs/libman.la" -dlopen "$abs_top_builddir/libdb/.libs/libmandb.la" "$@"
>   FAIL: run from deleted directory
> FAIL man-deleted-directory (exit status: 1)
>
Comment 9 Larry the Git Cow gentoo-dev 2020-08-29 14:04:40 UTC
The bug has been closed via the following commit(s):

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

commit d830027af9804bfd752cbf95e85bfaccda556fc2
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2020-08-29 14:03:22 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2020-08-29 14:04:35 +0000

    sys-apps/man-db: skip man-deleted-directory test under sandbox
    
    Closes: https://bugs.gentoo.org/699466
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 sys-apps/man-db/files/man-db-2.9.3-sandbox-env-tests.patch | 11 +++++++++++
 sys-apps/man-db/man-db-2.9.3.ebuild                        |  2 ++
 sys-apps/man-db/man-db-9999.ebuild                         |  2 ++
 3 files changed, 15 insertions(+)