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

Bug 837776

Summary: sys-apps/man-db-2.10.2-r1 fails tests on MUSL
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: normal CC: carana2099
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
1-test-suite.log

Description Agostino Sarubbo gentoo-dev 2022-04-11 06:59:51 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-apps/man-db-2.10.2-r1 fails tests on MUSL.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-04-11 06:59:54 UTC
Created attachment 769976 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-04-11 06:59:55 UTC
Created attachment 769979 [details]
1-test-suite.log

1-test-suite.log
Comment 3 Agostino Sarubbo gentoo-dev 2022-04-11 06:59:56 UTC
Error(s) that match a know pattern:


FAIL: man-recode-in-place
FAIL: man-recode-suffix
FAIL: manconv-coding-tags
FAIL: manconv-guess-from-encoding
FAIL: manconv-incomplete-char-at-eof
FAIL: manconv-odd-combinations
Comment 4 Carlos 2023-08-26 19:06:05 UTC
The following line on the test logs

    manconv: iconv_open ("UTF-8//IGNORE", "EUC-JP"): Invalid argument

is related to man-db using the glibc-specific suffix //IGNORE in many iconv operations.

By adding an Alpine patch[1], I've got most of the tests mentioned here passing (all except manconv-odd-combinations, which seems to hang forever). In addition, it makes man-db on musl able to handle pages that explicitly specify an encoding, like app-doc/eclass-man-pages.

[1] https://git.alpinelinux.org/aports/tree/community/man-db/ignore.patch