<html><head>






</head>
<body>
    <div style="font-size: 10pt;"><div dir="auto"><br></div><div dir="auto">Any ideas about the lsb_release error in the spec file and where that came from? I have a very vanilla centos 8 install I'm trying to bulid on. Any thoughts appreciated because I'm stuck and at something of a loss on what to try next. My first thought is to look at spec file revisions.</div><div dir="auto"><br></div><div dir="auto">Steve</div><div dir="auto"><br></div><div><div dir="auto" style="font-size:9pt;"><i>Sent from my T-Mobile 4G LTE device</i></div></div></div><div style="font-size: 10pt;"><div id="LGEmailHeader" dir="auto"><div dir="auto"><br></div><div dir="auto">------ Original message------</div><div dir="auto"><b>From: </b>Aki Tuomi<aki.tuomi@open-xchange.com></aki.tuomi@open-xchange.com></div><div dir="auto"><b>Date: </b>Thu, Jan 7, 2021 3:10 AM</div><div dir="auto"><b>To: </b><a href="mailto:steve@keptprivate.com">steve@keptprivate.com</a><a
 href="mailto:;dovecot@dovecot.org">;dovecot@dovecot.org</a>;</div><div dir="auto"><b>Cc: </b></div><div dir="auto"><b>Subject:</b>Re: problem building on centos 8 (8.3 kernel)</div><div dir="auto"><br></div></div><pre>> On 07/01/2021 03:57<a href="mailto: steve@keptprivate.com"> steve@keptprivate.com</a> wrote:

>  
> Hi,

> I'm converting from qmailtoaster/vpopmail build.
> When I try to build <a href="http://dovecot-2.3.13-2.sr">dovecot-2.3.13-2.sr</a>c.rpm for centos 8.3 the first thing I run into is this:

> + sed -i 's|/etc/ssl|/etc/pki/dovecot|' doc/<a href="http://mkcert.sh">mkcert.sh</a> doc/example-config/conf.d/<a href="http://10-ssl.co">10-ssl.co</a>nf
> + '[' -e <a href="http://buildinfo.com">buildinfo.com</a>mit ']'
> ++ head -1 <a href="http://buildinfo.com">buildinfo.com</a>mit
> + COMMIT=89f716dc2ec7362864a368d<a href="tel:32533184">32533184</a>b55fb7831
> ++ /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/<a href="http://rpm-tmp.WF">rpm-tmp.WF</a>aLYQ (%build)


> RPM build errors:
>     Macro expanded in comment on line 455: %{_libdir}/dovecot/settings

>     Bad exit status from /var/tmp/<a href="http://rpm-tmp.WF">rpm-tmp.WF</a>aLYQ (%build)

> I can get past this with an edit to the dovecot.spec file (removing sourcedir):

> if [ -e "<a href="http://buildinfo.com">buildinfo.com</a>mit" ]; then
>    COMMIT=`head -1 <a href="http://buildinfo.com">buildinfo.com</a>mit`
>    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`
> fi

> The RPM builds but it fails to run with this message in the logs:

> Jan  6 20:52:11 beta1
 systemd[1]: Starting Dovecot IMAP/POP3 email server...
> Jan  6 20:52:11 beta1 systemd[1]: Started Dovecot IMAP/POP3 email server.
> Jan  6 20:52:11 beta1 dovecot[356909]: /usr/sbin/dovecot: error while loading shared libraries: <a href="http://libdovecot.so">libdovecot.so</a>.0: cannot open shared object 
> file: No such file or directory
> Jan  6 20:52:11 beta1 systemd[1]: <a href="http://dovecot.se">dovecot.se</a>rvice: Main process exited, code=exited, status=127/n/a
> Jan  6 20:52:11 beta1 systemd[1]: <a href="http://dovecot.se">dovecot.se</a>rvice: Failed with result 'exit-code'.

> Any ideas what I have going wrong?

> Also, a side question, when I build the rpm it's not running the extensive tests that the old qmailtoaster source rpm used to run. I've 
> looked through the spec file and I don't really see where to turn that back on.

> Sorry if any of this is stupid, but I'm new to building directly from the dovecot repo.

>
 Steve


I think the file is installed under /usr/lib64/, so check

ldd /usr/lib64/<a href="http://libdovecot.so">libdovecot.so</a>.0

Is there some reason you are building the rpms yourself?

Aki
</pre></div>


</body></html>