bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Building PostgreSQL support


From: Jordi Mallach
Subject: Building PostgreSQL support
Date: Tue, 09 Feb 2021 16:09:46 +0100
User-agent: Evolution 3.38.3-1

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 <jordi@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 <jordi@debian.org>
Debian Project




reply via email to

[Prev in Thread] Current Thread [Next in Thread]