[Buildroot] [PATCH v2 1/5] python-psycopg2: new package

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Feb 12 13:48:55 UTC 2018


Hello,

On Mon, 12 Feb 2018 07:06:13 -0500, Adam Duskett wrote:

> This patch is from yocto actually.  pg_config is called by setup.py to
> get the PostgreSQL server version.
> There are two problems with this:
> 
> 1) There is no way to specify a path to pg_config, so it uses the
> hosts pg_config (if it's not available it causes an error)
> 2) Even if you do use pg_config, the one generated during
> cross-compilation doesn't print out the version information
>     that setup.py is looking for.

Did you notice that Buildroot has its own pg_config in
package/postgresql/postgresql.mk ? Indeed, the pg_config built/installed
by PostgreSQL didn't work properly in a cross-compilation context, so
we simply implemented a simplified shell-based version. Perhaps it just
needs to be extended to support what python-psycopg2 needs ?

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
http://bootlin.com


More information about the buildroot mailing list