Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 837776 - sys-apps/man-db-2.10.2-r1 fails tests on MUSL
Summary: sys-apps/man-db-2.10.2-r1 fails tests on MUSL
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-11 06:59 UTC by Agostino Sarubbo
Modified: 2023-08-27 13:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,422.70 KB, text/plain)
2022-04-11 06:59 UTC, Agostino Sarubbo
Details
1-test-suite.log (1-test-suite.log,14.77 KB, text/plain)
2022-04-11 06:59 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
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