Re: Building rpms in mock

Sam Varshavchik <[email protected]>
Newsgroups gmane.mail.imap.courier.general
Message-ID <[email protected]>
Zenon Panoussis writes:

> And then I also got a problem with courier:
>
> $ mock -r alma+epel-9-x86_64 --no-clean --define 'notice_option --with- 
> notice=unicode' courier-1.3.5-1.el9.src.rpm
> ...
> Making check in libs/rfc2045
> make[1]: Entering directory  
> '/builddir/build/BUILD/courier-1.3.5/libs/rfc2045'
> /usr/bin/make  check-am
> make[2]: Entering directory  
> '/builddir/build/BUILD/courier-1.3.5/libs/rfc2045'
> /bin/sh ./testsuite | cmp -s - ./testsuite.txt.idn
> ./testsuite: line 2: warning: setlocale: LC_ALL: cannot change locale  
> (en_US.UTF-8)
> make[2]: *** [Makefile:1091: check-am] Error 1
> make[2]: Leaving directory '/builddir/build/BUILD/courier-1.3.5/libs/rfc2045'
> make[1]: *** [Makefile:881: check] Error 2
> make[1]: Leaving directory '/builddir/build/BUILD/courier-1.3.5/libs/rfc2045'
> make: *** [Makefile:467: check-recursive] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.PdFqMN (%build)
>
>
> Solution:
> BuildRequires:    glibc-all-langpacks
>
> In fact I suspect that this is not a solution, but a workaround
> for some bug that was introduced in EL8 and EL9 about a year
> ago. But whether workaround or solution, it works.

This is not really a bug, Courier always required en_US.UTF-8 locale for  
"make check". They just stripped out all the locales from the default  
buildroot.



_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.