Hi,

To summarize a long story, Debian has never shipped mailutils with
PostgreSQL support due to OpenSSL and GPL license incompatibilities.

This changed recently when the Debian ftpmaster team started
considering OpenSSL a "system library", which is one of the exceptions
in the GPL that would allow linking.

That said, my build was failing with a simple

"fatal error: libpq-fe.h: No such file or directory"

Does anyone else compile PostgreSQL support in?

I find that this trivial patch fixes it, but I am puzzled that nobody
else has stumbled upon this until now.


Author: Jordi Mallach <jo...@debian.org>
Date:   Tue Feb 9 16:04:38 2021 +0100

    Fix postgresql include dir.

diff --git a/sql/postgres.c b/sql/postgres.c
index 1c6bed90b..b9a8cf89d 100644
--- a/sql/postgres.c
+++ b/sql/postgres.c
@@ -24,7 +24,7 @@
 #include <mailutils/sql.h>
 #include <mailutils/cctype.h>
 
-#include <libpq-fe.h>
+#include <postgresql/libpq-fe.h>
 
 static char *
 chop (char *str)


-- 
Jordi Mallach <jo...@debian.org>
Debian Project


Reply via email to