lp://qastaging/~flameeyes/gearmand/gentoo-fixes
- Get this branch:
- bzr branch lp://qastaging/~flameeyes/gearmand/gentoo-fixes
Branch merges
- Brian Aker: Needs Information
- Monty Taylor: Pending requested
-
Diff: 96 lines (+32/-21)3 files modifiedlibgearman-server/include.am (+2/-0)
libgearman-server/queue_libpq.c (+10/-8)
m4/pandora_have_libpq.m4 (+20/-13)
Branch information
Recent revisions
- 352. By Diego Elio Pettenò
-
Fix PostgreSQL queue manager building on Gentoo and other platforms.
When the includes are installed in non-standard positions, and especially
when libpq-fe.h is available without -I directives, but pg_config_manual.h
isn't, you cannot rely on just finding one to get the other.What you have to do in this case is use the pg_config script shipped with
PostgreSQL to get the right include directory, and use the simple basename
for the include headers.Also, on modern (glibc-2.10) systems, using simply pg_config_manual.h
without pg_config.h or without adding further checks in configure, the
build will fail with this error:In file included from libgearman-
server/ queue_libpq. c:19:
/usr/include/postgresql- 8.4/pg_ config_ manual. h:128:5: error: "HAVE_DECL_ POSIX_FADVISE" is not defined
make[1]: *** [libgearman-server/ libgearman_ server_ libgearman_ server_ la-queue_ libpq.lo] Error 1 So include the PostgreSQL headers first thing, undefine package-specific
entries, and proceed.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://qastaging/gearmand/1.0