NeuroScouting / pg_amqp

AMQP Support for Postgres
https://labs.omniti.com/labs/pg_amqp
0 stars 0 forks source link

make install doesn't work on Fedora 21 #1

Open neurotico opened 9 years ago

neurotico commented 9 years ago

It tries to write files to the wrong location.

logandavis commented 9 years ago

More specifically:

Make install writes pg_amqp.so to /usr/lib64/pgsql/pg_amqp.so It should write pg_amqp.so to /usr/pgsql-9.3/lib/pg_amqp.so

Make install writes amqp.control to /usr/share/pgsql/extension/amqp.control It should write amqp.control to /usr/pgsql-9.3/share/extension/amqp.control

Make install writes amqp--0.3.0.sql to /usr/share/pgsql/extension/amqp--0.3.0.sql It should write amqp--0.3.0.sql to /usr/pgsql-9.3/share/extension/amqp--0.3.0.sql

Make install writes amqp--unpackaged--0.3.0.sql to /usr/share/pgsql/extension/amqp--unpackaged--0.3.0.sql It should write amqp--unpackaged--0.3.0.sql to /usr/pgsql-9.3/share/extension/amqp--unpackaged--0.3.0.sql

Make install writes amqp.md to /usr/share/doc/pgsql/extension/amqp.md It is not apparent where amqp.md should be written in the pgsql-9.3 file structure, and this causes no apparent errors, but it follows the previous pattern of incorrect write locations and should probably be checked out.

Furthermore, make install tries to write amqp--unpackaged--0.3.0.sql twice. This causes make install to fail and prevents the installation of amqp.db.

This bug - or at least the misplaced write error - occurs because PostgreSQL's file structure is different for different PostgreSQL versions AND different Linux distributions. As such, I think it's unlikely that this bug is specific to Fedora 21.