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(a)octopus.email-scan.com> -
- Initial build.
Show replies by date