Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#981387: pure-ftpd FTCBFS: fails finding mysql/mariadb

2 views
Skip to first unread message

Helmut Grohne

unread,
Jan 30, 2021, 8:40:03 AM1/30/21
to
Source: pure-ftpd
Version: 1.0.49-4.1
Tags: patch upstream
User: debian...@lists.debian.org
Usertags: ftcbfs

pure-ftpd fails to cross build from source, because it fails finding
mariadb or mysql. During cross compilation, mysql_config does not work.
I've looked into it and we cannot make it work. The way to fix this is
using pkg-config. I've attached a patch that makes pure-ftpd try
pkg-config and then fall back to mysql_config. In order to apply it, you
need to regenerate configure and add a build dependency on pkg-config.
Once doing so, pure-ftpd will become cross buildable.

Helmut
cross.patch

Helmut Grohne

unread,
Dec 3, 2021, 1:40:04 PM12/3/21
to
Control: reopen -1

On Wed, Dec 01, 2021 at 09:36:10AM +0000, Debian Bug Tracking System wrote:
> It has been closed by Debian FTP Masters <ftpm...@ftp-master.debian.org> (reply to Stefan Hornburg (Racke) <ra...@linuxia.de>).

I think the bug is only partially fixed. While configure.ac has been
patched, configure wasn't updated and since it isn't regenerated during
build, the unfixed version is actually being used.

Helmut

Stefan Hornburg (Racke)

unread,
Dec 3, 2021, 2:30:05 PM12/3/21
to
Hello Helmut,

are you going to create a patch that fixes the problem for good?

Regards
Racke

--
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration.


OpenPGP_signature

Helmut Grohne

unread,
Dec 3, 2021, 4:30:03 PM12/3/21
to
On Fri, Dec 03, 2021 at 07:43:49PM +0100, Stefan Hornburg (Racke) wrote:
> are you going to create a patch that fixes the problem for good?

I don't think that would make sense. Suppose I were to regenerate
configure and diff the present configure with the new one. You'd get a
giant diff that essentially replaces configure. How would you review
tens of thousands of lines changed?

Instead, you should locally regenerate configure before uploading.

The alternative chosen by most maintainers (due to being automatically
enabled in debhelper compat level >= 10) is using dh_autoreconf. It will
ignore the shipped configure and regenerate it during build. You're
presently using compat level 9, which happens to be deprecated.

Helmut

Stefan Hornburg (Racke)

unread,
Dec 4, 2021, 9:50:04 AM12/4/21
to
Hello Helmet,

thanks for your advice. I bumped up the compat level for the next release
of the package.
OpenPGP_signature

Helmut Grohne

unread,
Dec 6, 2021, 4:30:03 AM12/6/21
to
Control: reopen -1

On Sun, Dec 05, 2021 at 01:06:03PM +0000, Debian Bug Tracking System wrote:
> #981387: pure-ftpd FTCBFS: fails finding mysql/mariadb
>
> It has been closed by Debian FTP Masters <ftpm...@ftp-master.debian.org> (reply to Stefan Hornburg (Racke) <ra...@linuxia.de>).

I'm sorry, but the issue is still unfixed. My recommendation of using dh
compat level >= 10 does not work, because pure-ftpd does not use dh. As
such, it cannot benefit from the automation. The bug persists.

Your options:
* Use dh.
* Explicitly call dh_autoreconf.
* Run autoreconf before upload.

Helmut
0 new messages