dbTalk Databases Forums  

[BUGS] BUG #2585: Please provide pkg-config support

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2585: Please provide pkg-config support in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
 
Posts: n/a

Default [BUGS] BUG #2585: Please provide pkg-config support - 08-21-2006 , 09:41 AM







The following bug has been logged online:

Bug reference: 2585
Logged by:
Email address: mafm (AT) users (DOT) sourceforge.net
PostgreSQL version: 8.1.4
Operating system: GNU/Linux
Description: Please provide pkg-config support
Details:

I haven't found a suitable place to put this wish-list item, and since most
projects manage these along with bug in trackers, here we go...

I'd like you to provide a pkg-config file, so people can use pkg-config to
gather the neccesary compiler flags to build and link against libpq
libraries.

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply With Quote
  #2  
Old   
Stefan Kaltenbrunner
 
Posts: n/a

Default Re: [BUGS] BUG #2585: Please provide pkg-config support - 08-21-2006 , 09:48 AM






mafm (AT) users (DOT) sourceforge.net wrote:
Quote:
The following bug has been logged online:

Bug reference: 2585
Logged by:
Email address: mafm (AT) users (DOT) sourceforge.net
PostgreSQL version: 8.1.4
Operating system: GNU/Linux
Description: Please provide pkg-config support
Details:

I haven't found a suitable place to put this wish-list item, and since most
projects manage these along with bug in trackers, here we go...

I'd like you to provide a pkg-config file, so people can use pkg-config to
gather the neccesary compiler flags to build and link against libpq
libraries.
whats wrong with using pg_config ?


Stefan

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
  #3  
Old   
Manuel A. Fernandez Montecelo
 
Posts: n/a

Default Re: [BUGS] BUG #2585: Please provide pkg-config support - 08-22-2006 , 01:36 PM




Well, I use around 10 libraries in my project, it's easier to use standardized
methods to gather the compiler/linker options using pkg-config than calling
different configuration scripts for each one, and using "pkg-config --exists
$name" or "pkg-config --at-least=1.0 $name" than to check whether
the "pg_config" script (and so with the rest) exists in your path, and
figuring out ways to compare versions. I was reporting it as a wish-list
item after all

Greetings.

On Monday 21 August 2006 16:44, Stefan Kaltenbrunner wrote:
Quote:
mafm (AT) users (DOT) sourceforge.net wrote:
The following bug has been logged online:

Bug reference: 2585
Logged by:
Email address: mafm (AT) users (DOT) sourceforge.net
PostgreSQL version: 8.1.4
Operating system: GNU/Linux
Description: Please provide pkg-config support
Details:

I haven't found a suitable place to put this wish-list item, and since
most projects manage these along with bug in trackers, here we go...

I'd like you to provide a pkg-config file, so people can use pkg-config
to gather the neccesary compiler flags to build and link against libpq
libraries.

whats wrong with using pg_config ?


Stefan
--
Manuel A. Fernandez Montecelo <manuel.montezelo (AT) gmail (DOT) com>

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster


Reply With Quote
  #4  
Old   
Alvaro Herrera
 
Posts: n/a

Default Re: [BUGS] BUG #2585: Please provide pkg-config support - 08-22-2006 , 02:01 PM



Manuel A. Fernandez Montecelo wrote:
Quote:
Well, I use around 10 libraries in my project, it's easier to use standardized
methods to gather the compiler/linker options using pkg-config than calling
different configuration scripts for each one, and using "pkg-config --exists
$name" or "pkg-config --at-least=1.0 $name" than to check whether
the "pg_config" script (and so with the rest) exists in your path, and
figuring out ways to compare versions. I was reporting it as a wish-list
item after all
Just FYI, this was proposed and rejected before. pg_config is our
method. It doesn't seem like too onerous a requeriment to change "pkg-"
to "pg_", is it?

The --at-least= or similar stuff may be useful though, not sure.

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

---------------------------(end of broadcast)---------------------------
TIP 6: explain analyze is your friend


Reply With Quote
  #5  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2585: Please provide pkg-config support - 08-22-2006 , 03:28 PM



[ redirecting to pgsql-hackers since this is not a bug ]

Alvaro Herrera <alvherre (AT) commandprompt (DOT) com> writes:
Quote:
Manuel A. Fernandez Montecelo wrote:
Well, I use around 10 libraries in my project, it's easier to use standardized
methods to gather the compiler/linker options using pkg-config than calling
different configuration scripts for each one,

Just FYI, this was proposed and rejected before. pg_config is our
method. It doesn't seem like too onerous a requeriment to change "pkg-"
to "pg_", is it?
The previous discussion starts here:
http://archives.postgresql.org/pgsql...8/msg00433.php

That requestor got off to an extremely bad start by presuming that
a documentation-free patch with no prior discussion would be a
sufficient way of proposing a new feature. However there are a
couple of pretty compelling points mentioned later in the thread,
particularly the issue of multiple installations on one machine.
(And does pkg-config still not distinguish CPPFLAGS from CFLAGS?)

Since that was two years ago, maybe we should take another look
and see if pkg-config has gotten better. If it hasn't evolved
some then the answer will probably be the same though.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.