Bad locale environment in mock install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For some reason, a "mock install" ends up running %post scripts with LC_ALL=en_US.UTF8, for which I need glibc-all-langpacks.

This does not happen with a manual install from a mock shell.

The tiny spec file below reproduces the problem.

If I use "mock -n install" (I have a few other things in the chroot that I need), the log file shows that the locale is en_US.UTF8.

If I run a mock shell, and manully "rpm -i" inside the shell, the locale is the expected C.UTF-8

Anyone knows why I'm getting a bad locale, with mock install?

===========================================================================

Summary: Locale in mock
Name: mocklocale
Version: 1
Release: 1
License: 1
Group: System Environment/Base

%description
test
%prep

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)

%post
locale >/var/tmp/locale.log

%changelog
* Mon May  6 2019 Sam Varshavchik <mrsam@xxxxxxxxxxxxxxxxxxxxxx> -
- Initial build.

Attachment: pgpOoYw1s44sC.pgp
Description: PGP signature

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux