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 <mr...@octopus.email-scan.com> -
- Initial build.

Attachment: pgpVIeyaVoyHE.pgp
Description: PGP signature

_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to