Dovecot 2.3.13 source rpm build fails on Centos 8
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
On 08/01/2021 04:34 steve@keptprivate.com <steve@keptprivate.com> wrote:
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 (http://mkcert.sh) doc/example-config/conf.d/10-ssl.co (http://10-ssl.co)nf
- '[' -e buildinfo.com (http://buildinfo.com)mit ']' ++ head -1 buildinfo.com (http://buildinfo.com)mit
- 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.WF (http://rpm-tmp.WF)aLYQ (%build)
RPM build errors: Macro expanded in comment on line 455: %{_libdir}/dovecot/settings
Bad exit status from /var/tmp/rpm-tmp.WF (http://rpm-tmp.WF)aLYQ (%build)
I can get past this with an edit to the dovecot.spec file (removing sourcedir):
if [ -e "buildinfo.com (http://buildinfo.com)mit" ]; then COMMIT=
head -1 buildinfo.com (http://buildinfo.com)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 Can someone who knows the source rpm build config. please respond? The committed spec file contains errors.Thanks
Sent from my T-Mobile 4G LTE device
There are now source RPMs for centos8 in repo.dovecot.org. Maybe they work better?
Aki
This is the source RPM I'm using
https://repo.dovecot.org/ce-2.3.13/centos/8/SRPMS/2.3.13-2_ce/
Steve
On 08/01/2021 04:34 steve@keptprivate.com <steve@keptprivate.com> wrote:
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 (http://mkcert.sh) doc/example-config/conf.d/10-ssl.co (http://10-ssl.co)nf + '[' -e buildinfo.com (http://buildinfo.com)mit ']' ++ head -1 buildinfo.com (http://buildinfo.com)mit
- 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.WF (http://rpm-tmp.WF)aLYQ (%build)
RPM build errors: Macro expanded in comment on line 455: %{_libdir}/dovecot/settings
Bad exit status from /var/tmp/rpm-tmp.WF (http://rpm-tmp.WF)aLYQ (%build)
I can get past this with an edit to the dovecot.spec file (removing sourcedir):
if [ -e "buildinfo.com (http://buildinfo.com)mit" ]; then COMMIT=
head -1 buildinfo.com (http://buildinfo.com)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 Can someone who knows the source rpm build config. please respond? The committed spec file contains errors.Thanks
Sent from my T-Mobile 4G LTE device
There are now source RPMs for centos8 in repo.dovecot.org. Maybe they work better?
Aki
This is the source RPM I'm using
https://repo.dovecot.org/ce-2.3.13/centos/8/SRPMS/2.3.13-2_ce/
Steve
On 08/01/2021 04:34 steve@keptprivate.com <steve@keptprivate.com> wrote:
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 (http://mkcert.sh) doc/example-config/conf.d/10-ssl.co (http://10-ssl.co)nf + '[' -e buildinfo.com (http://buildinfo.com)mit ']' ++ head -1 buildinfo.com (http://buildinfo.com)mit
- 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.WF (http://rpm-tmp.WF)aLYQ (%build)
RPM build errors: Macro expanded in comment on line 455: %{_libdir}/dovecot/settings
Bad exit status from /var/tmp/rpm-tmp.WF (http://rpm-tmp.WF)aLYQ (%build)
I can get past this with an edit to the dovecot.spec file (removing sourcedir):
if [ -e "buildinfo.com (http://buildinfo.com)mit" ]; then COMMIT=
head -1 buildinfo.com (http://buildinfo.com)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 Can someone who knows the source rpm build config. please respond? The committed spec file contains errors.Thanks
Sent from my T-Mobile 4G LTE device
There are now source RPMs for centos8 in repo.dovecot.org. Maybe they work better?
Aki
Il 08/01/21 03:34, steve@keptprivate.com ha scritto:
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 <http://mkcert.sh> doc/example-config/conf.d/10-ssl.co <http://10-ssl.co>nf
- '[' -e buildinfo.com <http://buildinfo.com>mit ']' ++ head -1 buildinfo.com <http://buildinfo.com>mit
- COMMIT=89f716dc2ec7362864a368d32533184 <tel:32533184>b55fb7831 ++ /bin/sh /home/build/rpmbuild/SOURCES/lsb_release -is
/bin/sh: /home/build/rpmbuild/SOURCES/lsb_release: No such file or directory
- ID=
Hi,
I solved with a:
cp /usr/bin/lsb_release /home/build/rpmbuild/SOURCES/lsb_release
but probably the dovecot.spec file inside the src.rpm need a fix.
Ciao
-- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
On 08/01/2021 10:25 Alessio Cecchi <alessio@skye.it> wrote:
Il 08/01/21 03:34, steve@keptprivate.com ha scritto:
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 (http://mkcert.sh) doc/example-config/conf.d/10-ssl.co (http://10-ssl.co)nf
- '[' -e buildinfo.com (http://buildinfo.com)mit ']' ++ head -1 buildinfo.com (http://buildinfo.com)mit
- 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=
Hi, I solved with a: cp /usr/bin/lsb_release /home/build/rpmbuild/SOURCES/lsb_release but probably the dovecot.spec file inside the src.rpm need a fix. Ciao
-- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
Thank you, was about to send you this step, but seems you found it out yourself. We'll see if this can be done in some other way that does not rely this step.
Aki
Hi Alessio,
Thanks. I had made an edit to fix the SPEC file myself as well and was able to build the rpm. At that point though, I ran into a second problem. When it is installed and you try to start it, it fails reporting that it can't find libdovecot.so (which I checked, and it there).
It seems like some untested changes have crept into the source rpm build.
Steve
Il 08/01/21 03:34, steve@keptprivate.com ha scritto:
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 <http://mkcert.sh> doc/example-config/conf.d/10-ssl.co <http://10-ssl.co>nf
- '[' -e buildinfo.com <http://buildinfo.com>mit ']' ++ head -1 buildinfo.com <http://buildinfo.com>mit
- COMMIT=89f716dc2ec7362864a368d32533184 <tel:32533184>b55fb7831 ++ /bin/sh /home/build/rpmbuild/SOURCES/lsb_release -is
/bin/sh: /home/build/rpmbuild/SOURCES/lsb_release: No such file or directory
- ID=
Hi,
I solved with a:
cp /usr/bin/lsb_release /home/build/rpmbuild/SOURCES/lsb_release
but probably the dovecot.spec file inside the src.rpm need a fix.
Ciao
-- Alessio Cecchi Postmaster @ http://www.qboxmail.it https://www.linkedin.com/in/alessice
participants (3)
-
Aki Tuomi
-
Alessio Cecchi
-
steve@keptprivate.com