Building rpms in mock
Zenon Panoussis <[email protected]>
| Newsgroups | gmane.mail.imap.courier.general |
|---|---|
| Message-ID | <[email protected]> |
Everybody has ps on a normal machine, but it's not part
of the mock standard build root. So there this happens:
$ mock -r alma+epel-8-x86_64 courier-authlib-0.72.0-1.el9.src.rpm
...
configure: error: Cannot find pathname to ps
configure: error: ./configure failed for libs/random128
error: Bad exit status from /var/tmp/rpm-tmp.bt52w2 (%build)
Bad exit status from /var/tmp/rpm-tmp.bt52w2 (%build)
RPM build errors:
Finish: rpmbuild courier-authlib-0.72.0-1.el9.src.rpm
Solution:
BuildRequires: procps-ng
***
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.
Cheers,
Z
--
Слава Україні!
Путин хуйло!
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users