Bug 1314633

Summary: man-db rpm script failed when installed with glibc-minimal-langpack
Product: [Fedora] Fedora Reporter: Yu Watanabe <watanabe.yu>
Component: man-dbAssignee: Nikola Forró <nforro>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: cjwatson, jchaloup, nforro, watanabe.yu
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: man-db-2.7.5-3.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-26 18:07:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
install log of man-db with glibc-minimal-langpack none

Description Yu Watanabe 2016-03-04 06:13:08 UTC
Description of problem:

When install man-db with glibc-minimal-langpack, the rpm script (I guess it is %transfiletriggerin script) after the installation fail.

The installation command I use is below.

dnf --disablerepo=* --enablerepo=rawhide \
    --installroot=/nfsroot/hoge -y install man-db glibc-minimal-langpack

The above command outputs the following error message (The full output is attached).
%%%%%%%%%%%%%%%%%%%%%%
(...)
  Installing  : man-db-2.7.5-2.fc24.x86_64                                50/50 
/usr/sbin/convert-to-edition: line 163: grub2-mkconfig: command not found
This system has been converted to non-edition
/usr/bin/mandb: can't set the locale; make sure $LC_* and $LANG are correct
  Verifying   : man-db-2.7.5-2.fc24.x86_64                                 1/50 
(...)
%%%%%%%%%%%%%%%%%%%%%%

Note that the first error message is comes from fedora-release package's bug.
If I install man-db with glibc-all-langpacks, the above error message is not shown.

Version-Release number of selected component (if applicable):

man-db-2.7.5-2.fc24.x86_64

How reproducible:

always

Steps to Reproduce:
1. install packages by using the above command.
2.
3.

Actual results:

Install finishes without error message.

Expected results:

Installation process shows the above error message.

Additional info:

Comment 1 Yu Watanabe 2016-03-04 06:53:46 UTC
Created attachment 1133045 [details]
install log of man-db with glibc-minimal-langpack

Comment 2 Nikola Forró 2016-03-11 15:34:28 UTC
Hello Yu,

the message is actually just warning, not error. It doesn't affect anything and the %transfiletriggerin scriptlet finishes successfully.
It is caused by the fact that LANG environment variable is set to a locale other than C or POSIX, while only these two locales are present with glibc-minimal-langpack installed.
The warning can be suppressed either by explicitly setting LANG environment variable to C or POSIX, or by setting MAN_NO_LOCALE_WARNING variable.

Comment 4 Yu Watanabe 2016-03-15 00:09:32 UTC
Thanks. I confirm that the message is suppressed by setting LANG=C or MAN_NO_LOCALE_WARNING=1.
I hope that the fix is also applied to F24.

Comment 5 Nikola Forró 2016-03-15 10:05:30 UTC
(In reply to Yu Watanabe from comment #4)
> I hope that the fix is also applied to F24.
It is not, because the bug was reported against rawhide.
I'm reopening this for F24.

Comment 7 Fedora Update System 2016-03-15 12:51:05 UTC
man-db-2.7.5-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-bc305c4b1e

Comment 8 Fedora Update System 2016-03-15 21:30:22 UTC
man-db-2.7.5-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-bc305c4b1e

Comment 9 Fedora Update System 2016-03-26 18:07:11 UTC
man-db-2.7.5-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.