Dovecot 2.3.13 source rpm build fails on Centos 8

steve at keptprivate.com steve at keptprivate.com
Fri Jan 8 04:34:49 EET 2021


I tried to post this in a more nuanced way, but the fact is the latest source RPM does not build on the latest Centos 8.> + sed -i 's|/etc/ssl|/etc/pki/dovecot|' doc/mkcert.sh doc/example-config/conf.d/10-ssl.conf
> + '[' -e buildinfo.commit ']'
> ++ head -1 buildinfo.commit
> + COMMIT=89f716dc2ec7362864a368d32533184b55fb7831
> ++ /bin/sh /home/build/rpmbuild/SOURCES/lsb_release -is
>
 /bin/sh: /home/build/rpmbuild/SOURCES/lsb_release: No such file or directory
> + ID=
> error: Bad exit status from /var/tmp/rpm-tmp.WFaLYQ (%build)
> 
> 
> RPM build errors:
>     Macro expanded in comment on line 455: %{_libdir}/dovecot/settings
> 
>     Bad exit status from /var/tmp/rpm-tmp.WFaLYQ (%build)
> 
> I can get past this with an edit to the dovecot.spec file (removing sourcedir):
> 
> if [ -e "buildinfo.commit" ]; then
>    COMMIT=`head -1 buildinfo.commit`
>    ID=`/bin/sh %̶{̶_̶s̶o̶u̶r̶c̶e̶d̶i̶r̶}̶/̶lsb_release -is`
>    RELEASE=`/bin/sh %̶{̶_̶s̶o̶u̶r̶c̶e̶d̶i̶r̶}̶/̶lsb_release -rs`
>   
 CODENAME=`/bin/sh %̶{̶_̶s̶o̶u̶r̶c̶e̶d̶i̶r̶}̶/̶lsb_release -cs`
>    ARCH=`arch`
> fiCan someone who knows the source rpm build config. please respond?The committed spec file contains errors.ThanksSent from my T-Mobile 4G LTE device
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20210107/b8d7323e/attachment-0001.html>


More information about the dovecot mailing list