pgsql: Append major version number and for libraries soname major

Started by Peter Eisentrautover 17 years ago30 messageshackers
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

Log Message:
-----------
Append major version number and for libraries soname major version number
to the gettext domain name, to simplify parallel installations.

Also, rename set_text_domain() to pg_bindtextdomain(), because that is what
it does.

Modified Files:
--------------
pgsql:
configure (r1.616 -> r1.617)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/configure?r1=1.616&r2=1.617)
configure.in (r1.576 -> r1.577)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/configure.in?r1=1.576&r2=1.577)
pgsql/doc/src/sgml:
Makefile (r1.113 -> r1.114)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/doc/src/sgml/Makefile?r1=1.113&r2=1.114)
pgsql/src:
Makefile.global.in (r1.248 -> r1.249)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/Makefile.global.in?r1=1.248&r2=1.249)
Makefile.shlib (r1.118 -> r1.119)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/Makefile.shlib?r1=1.118&r2=1.119)
nls-global.mk (r1.14 -> r1.15)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/nls-global.mk?r1=1.14&r2=1.15)
pgsql/src/backend/main:
main.c (r1.110 -> r1.111)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/main/main.c?r1=1.110&r2=1.111)
pgsql/src/backend/utils/init:
miscinit.c (r1.168 -> r1.169)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/init/miscinit.c?r1=1.168&r2=1.169)
pgsql/src/bin/initdb:
initdb.c (r1.164 -> r1.165)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/initdb/initdb.c?r1=1.164&r2=1.165)
pgsql/src/bin/pg_config:
pg_config.c (r1.28 -> r1.29)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_config/pg_config.c?r1=1.28&r2=1.29)
pgsql/src/bin/pg_controldata:
pg_controldata.c (r1.41 -> r1.42)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_controldata/pg_controldata.c?r1=1.41&r2=1.42)
pgsql/src/bin/pg_ctl:
pg_ctl.c (r1.104 -> r1.105)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_ctl/pg_ctl.c?r1=1.104&r2=1.105)
pgsql/src/bin/pg_dump:
pg_dump.c (r1.506 -> r1.507)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/pg_dump.c?r1=1.506&r2=1.507)
pg_dumpall.c (r1.108 -> r1.109)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/pg_dumpall.c?r1=1.108&r2=1.109)
pg_restore.c (r1.88 -> r1.89)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/pg_restore.c?r1=1.88&r2=1.89)
pgsql/src/bin/pg_resetxlog:
pg_resetxlog.c (r1.69 -> r1.70)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_resetxlog/pg_resetxlog.c?r1=1.69&r2=1.70)
pgsql/src/bin/psql:
startup.c (r1.151 -> r1.152)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/startup.c?r1=1.151&r2=1.152)
pgsql/src/bin/scripts:
clusterdb.c (r1.21 -> r1.22)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/scripts/clusterdb.c?r1=1.21&r2=1.22)
createdb.c (r1.28 -> r1.29)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/scripts/createdb.c?r1=1.28&r2=1.29)
createlang.c (r1.30 -> r1.31)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/scripts/createlang.c?r1=1.30&r2=1.31)
createuser.c (r1.38 -> r1.39)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/scripts/createuser.c?r1=1.38&r2=1.39)
dropdb.c (r1.22 -> r1.23)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/scripts/dropdb.c?r1=1.22&r2=1.23)
droplang.c (r1.27 -> r1.28)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/scripts/droplang.c?r1=1.27&r2=1.28)
dropuser.c (r1.23 -> r1.24)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/scripts/dropuser.c?r1=1.23&r2=1.24)
reindexdb.c (r1.13 -> r1.14)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/scripts/reindexdb.c?r1=1.13&r2=1.14)
vacuumdb.c (r1.20 -> r1.21)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/scripts/vacuumdb.c?r1=1.20&r2=1.21)
pgsql/src/include:
c.h (r1.230 -> r1.231)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/c.h?r1=1.230&r2=1.231)
miscadmin.h (r1.205 -> r1.206)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/miscadmin.h?r1=1.205&r2=1.206)
pg_config.h.in (r1.135 -> r1.136)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/pg_config.h.in?r1=1.135&r2=1.136)
pgsql/src/interfaces/ecpg/ecpglib:
misc.c (r1.43 -> r1.44)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/ecpglib/misc.c?r1=1.43&r2=1.44)
pgsql/src/interfaces/ecpg/preproc:
ecpg.c (r1.105 -> r1.106)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/preproc/ecpg.c?r1=1.105&r2=1.106)
pgsql/src/interfaces/libpq:
fe-misc.c (r1.136 -> r1.137)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/libpq/fe-misc.c?r1=1.136&r2=1.137)
pgsql/src/pl/plperl:
plperl.c (r1.142 -> r1.143)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plperl/plperl.c?r1=1.142&r2=1.143)
pgsql/src/pl/plpgsql/src:
pl_handler.c (r1.41 -> r1.42)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_handler.c?r1=1.41&r2=1.42)
plpgsql.h (r1.105 -> r1.106)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/plpgsql.h?r1=1.105&r2=1.106)
pgsql/src/pl/plpython:
plpython.c (r1.116 -> r1.117)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpython/plpython.c?r1=1.116&r2=1.117)
pgsql/src/pl/tcl:
pltcl.c (r1.123 -> r1.124)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/tcl/pltcl.c?r1=1.123&r2=1.124)
pgsql/src/port:
exec.c (r1.60 -> r1.61)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/port/exec.c?r1=1.60&r2=1.61)
pgsql/src/test/regress:
pg_regress.c (r1.54 -> r1.55)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/pg_regress.c?r1=1.54&r2=1.55)

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#1)
Re: pgsql: Append major version number and for libraries soname major

petere@postgresql.org (Peter Eisentraut) writes:

Log Message:
-----------
Append major version number and for libraries soname major version number
to the gettext domain name, to simplify parallel installations.

The results from buildfarm member red_bat suggest that this commit broke
the MSVC build. (I think that is the only MSVC buildfarm member that's
up at the moment.)

Build FAILED.
.\src\port\exec.c(633): error C2146: syntax error : missing ')' before identifier 'PG_MAJORVERSION'
.\src\backend\main\main.c(90): error C2146: syntax error : missing ')' before identifier 'PG_MAJORVERSION'
.\src\port\exec.c(633): error C2146: syntax error : missing ')' before identifier 'PG_MAJORVERSION'
0 Warning(s)
3 Error(s)

regards, tom lane

#3Dave Page
dpage@pgadmin.org
In reply to: Tom Lane (#2)
Re: pgsql: Append major version number and for libraries soname major

On Fri, Dec 12, 2008 at 12:41 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

petere@postgresql.org (Peter Eisentraut) writes:

Log Message:
-----------
Append major version number and for libraries soname major version number
to the gettext domain name, to simplify parallel installations.

The results from buildfarm member red_bat suggest that this commit broke
the MSVC build. (I think that is the only MSVC buildfarm member that's
up at the moment.)

Build FAILED.
.\src\port\exec.c(633): error C2146: syntax error : missing ')' before identifier 'PG_MAJORVERSION'
.\src\backend\main\main.c(90): error C2146: syntax error : missing ')' before identifier 'PG_MAJORVERSION'
.\src\port\exec.c(633): error C2146: syntax error : missing ')' before identifier 'PG_MAJORVERSION'
0 Warning(s)
3 Error(s)

Any eta on a fix for this? My internal builds are failing as well as
red_bat. (and yes, the other 2 MSVC buildfarm members are currently
waiting for Dell to get hold of a new motherboard for their box).

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com

#4Peter Eisentraut
peter_e@gmx.net
In reply to: Dave Page (#3)
Re: pgsql: Append major version number and for libraries soname major

Dave Page wrote:

On Fri, Dec 12, 2008 at 12:41 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

petere@postgresql.org (Peter Eisentraut) writes:

Log Message:
-----------
Append major version number and for libraries soname major version number
to the gettext domain name, to simplify parallel installations.

The results from buildfarm member red_bat suggest that this commit broke
the MSVC build. (I think that is the only MSVC buildfarm member that's
up at the moment.)

Build FAILED.
.\src\port\exec.c(633): error C2146: syntax error : missing ')' before identifier 'PG_MAJORVERSION'
.\src\backend\main\main.c(90): error C2146: syntax error : missing ')' before identifier 'PG_MAJORVERSION'
.\src\port\exec.c(633): error C2146: syntax error : missing ')' before identifier 'PG_MAJORVERSION'
0 Warning(s)
3 Error(s)

Any eta on a fix for this? My internal builds are failing as well as
red_bat. (and yes, the other 2 MSVC buildfarm members are currently
waiting for Dell to get hold of a new motherboard for their box).

I think the maintenance of the MSVC build system is the job of the,
well, maintainer of the MSVC build system, whoever that may be. In
other words, I have no ETA for you from me. I'd be glad, however, to
provide information to the maintainers.

The fix here is to define PG_MAJORVERSION near whereever you define
PG_VERSION, just make it look like "8.4" instead of "8.4devel".

#5Dave Page
dpage@pgadmin.org
In reply to: Peter Eisentraut (#4)
Re: pgsql: Append major version number and for libraries soname major

Magnus?

On Tue, Dec 16, 2008 at 10:47 AM, Peter Eisentraut <peter_e@gmx.net> wrote:

I think the maintenance of the MSVC build system is the job of the, well,
maintainer of the MSVC build system, whoever that may be. In other words, I
have no ETA for you from me. I'd be glad, however, to provide information
to the maintainers.

The fix here is to define PG_MAJORVERSION near whereever you define
PG_VERSION, just make it look like "8.4" instead of "8.4devel".

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com

#6Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#4)
Re: pgsql: Append major version number and for libraries soname major

Peter Eisentraut <peter_e@gmx.net> writes:

Dave Page wrote:

Any eta on a fix for this? My internal builds are failing as well as
red_bat. (and yes, the other 2 MSVC buildfarm members are currently
waiting for Dell to get hold of a new motherboard for their box).

I think the maintenance of the MSVC build system is the job of the,
well, maintainer of the MSVC build system, whoever that may be. In
other words, I have no ETA for you from me. I'd be glad, however, to
provide information to the maintainers.

I do not think this is an appropriate attitude for a committer to take.
You are responsible for what you commit. If you don't have the
knowledge to fix something, or the resources to test it, okay ... but
you then need to be proactive about getting someone else to fix/test it.
Or else revert the broken patch.

regards, tom lane

#7Andrew Dunstan
andrew@dunslane.net
In reply to: Tom Lane (#6)
Re: pgsql: Append major version number and for libraries soname major

Tom Lane wrote:

Peter Eisentraut <peter_e@gmx.net> writes:

Dave Page wrote:

Any eta on a fix for this? My internal builds are failing as well as
red_bat. (and yes, the other 2 MSVC buildfarm members are currently
waiting for Dell to get hold of a new motherboard for their box).

I think the maintenance of the MSVC build system is the job of the,
well, maintainer of the MSVC build system, whoever that may be. In
other words, I have no ETA for you from me. I'd be glad, however, to
provide information to the maintainers.

I do not think this is an appropriate attitude for a committer to take.
You are responsible for what you commit. If you don't have the
knowledge to fix something, or the resources to test it, okay ... but
you then need to be proactive about getting someone else to fix/test it.
Or else revert the broken patch.

I agree. I have committed an attempted fix which I discussed briefly
with Magnus.

cheers

andrew

#8Peter Eisentraut
peter_e@gmx.net
In reply to: Tom Lane (#6)
Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major

On Tuesday 16 December 2008 16:53:26 Tom Lane wrote:

Peter Eisentraut <peter_e@gmx.net> writes:

Dave Page wrote:

Any eta on a fix for this? My internal builds are failing as well as
red_bat. (and yes, the other 2 MSVC buildfarm members are currently
waiting for Dell to get hold of a new motherboard for their box).

I think the maintenance of the MSVC build system is the job of the,
well, maintainer of the MSVC build system, whoever that may be. In
other words, I have no ETA for you from me. I'd be glad, however, to
provide information to the maintainers.

I do not think this is an appropriate attitude for a committer to take.
You are responsible for what you commit. If you don't have the
knowledge to fix something, or the resources to test it, okay ... but
you then need to be proactive about getting someone else to fix/test it.
Or else revert the broken patch.

I would like to have this clarified, as I keep running afoul of it.

We originally did the Windows port using the MinGW build system because we did
not want to maintain another build system. When people starting on the MSVC
build system, I was given assurances that they would maintain it and we would
not have to worry about it. I specifically recall discussions about that in
Toronto in 2006.

Now who are those maintainers and what are they doing about it?

I am not hostile against the MSVC system, even though I have no interest in it
(and I am unfamiliar with the payoff). I have done a lot of portability work
for crazy platforms that I have no stake in. But those platforms and build
systems used standard tools, had publically available documentation, and in
the extreme cases had a box that one could log into to verify the work. None
of this is available here. I don't think the progress of this project can
depend on proprietary tools and systems in a few hands.

Help?!?

#9Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#8)
Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major

Peter Eisentraut <peter_e@gmx.net> writes:

On Tuesday 16 December 2008 16:53:26 Tom Lane wrote:

I do not think this is an appropriate attitude for a committer to take.

I would like to have this clarified, as I keep running afoul of it.

My two cents: I don't expect you to fix the MSVC scripts if you are
uninterested in doing so. But it would be appropriate to post a note
to -hackers when you make a build system change that is going to need
to be reflected in those scripts. The people who do care about MSVC
should not have to find that out by watching the buildfarm and then
trying to reverse-engineer the cause of a failure.

regards, tom lane

#10Magnus Hagander
magnus@hagander.net
In reply to: Tom Lane (#9)
Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major

Tom Lane wrote:

Peter Eisentraut <peter_e@gmx.net> writes:

On Tuesday 16 December 2008 16:53:26 Tom Lane wrote:

I do not think this is an appropriate attitude for a committer to take.

I would like to have this clarified, as I keep running afoul of it.

My two cents: I don't expect you to fix the MSVC scripts if you are
uninterested in doing so. But it would be appropriate to post a note
to -hackers when you make a build system change that is going to need
to be reflected in those scripts. The people who do care about MSVC
should not have to find that out by watching the buildfarm and then
trying to reverse-engineer the cause of a failure.

As one of said people, I think that's perfectly reasonable. It'd make it
a lot easier to get a heads-up, or just the version of the patch right
before a commit to add it to. Some people do that, some don't - it would
be muchos helpful if all did.

I don't expect unix hackers to always patch the msvc system as needed -
given that you don't have a way to test it, and no experience how those
tools work. (I know Tom has made a number of smaller fixes in them, but
it's mostly been around the areas of smaller changes, not actually
adding new stuff, for exmaple)

If I had warning this time, for example, I could've said that I for one
can't fix that for a while, because my msvc build system is all geared
up around the git server (because it's so much easier to get the stuff
in and out of the VM when cross-deveoping than with CVS and the crippled
commandline toolchain on windows). And since that one is currently not
working properly, I need to find a different way to get the code in
there unless someone can fix it :-(

Hopefully someone else can pick it up this time around? If not, I'll do
it as soon as I get things back up and working in my env.

//Magnus

#11Bruce Momjian
bruce@momjian.us
In reply to: Magnus Hagander (#10)
Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major

Exactly what type of changes affec the MSVC build system?

---------------------------------------------------------------------------

Magnus Hagander wrote:

Tom Lane wrote:

Peter Eisentraut <peter_e@gmx.net> writes:

On Tuesday 16 December 2008 16:53:26 Tom Lane wrote:

I do not think this is an appropriate attitude for a committer to take.

I would like to have this clarified, as I keep running afoul of it.

My two cents: I don't expect you to fix the MSVC scripts if you are
uninterested in doing so. But it would be appropriate to post a note
to -hackers when you make a build system change that is going to need
to be reflected in those scripts. The people who do care about MSVC
should not have to find that out by watching the buildfarm and then
trying to reverse-engineer the cause of a failure.

As one of said people, I think that's perfectly reasonable. It'd make it
a lot easier to get a heads-up, or just the version of the patch right
before a commit to add it to. Some people do that, some don't - it would
be muchos helpful if all did.

I don't expect unix hackers to always patch the msvc system as needed -
given that you don't have a way to test it, and no experience how those
tools work. (I know Tom has made a number of smaller fixes in them, but
it's mostly been around the areas of smaller changes, not actually
adding new stuff, for exmaple)

If I had warning this time, for example, I could've said that I for one
can't fix that for a while, because my msvc build system is all geared
up around the git server (because it's so much easier to get the stuff
in and out of the VM when cross-deveoping than with CVS and the crippled
commandline toolchain on windows). And since that one is currently not
working properly, I need to find a different way to get the code in
there unless someone can fix it :-(

Hopefully someone else can pick it up this time around? If not, I'll do
it as soon as I get things back up and working in my env.

//Magnus

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ If your life is a hard drive, Christ can be your backup. +

#12Magnus Hagander
magnus@hagander.net
In reply to: Bruce Momjian (#11)
Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major

Anything the system doesn't pick up automatically. That means most new
build targets (but it will pick up a contrib automatically, and a
conversion proc, for example). Also if modifications are made to the
scripts that run (like gen_fmgr.sh).

Just adding new files to exisitng makefiles, or adding a new subdir that
adds more files to an existing target, should require no changes.

//Magnus

Bruce Momjian wrote:

Show quoted text

Exactly what type of changes affec the MSVC build system?

---------------------------------------------------------------------------

Magnus Hagander wrote:

Tom Lane wrote:

Peter Eisentraut <peter_e@gmx.net> writes:

On Tuesday 16 December 2008 16:53:26 Tom Lane wrote:

I do not think this is an appropriate attitude for a committer to take.

I would like to have this clarified, as I keep running afoul of it.

My two cents: I don't expect you to fix the MSVC scripts if you are
uninterested in doing so. But it would be appropriate to post a note
to -hackers when you make a build system change that is going to need
to be reflected in those scripts. The people who do care about MSVC
should not have to find that out by watching the buildfarm and then
trying to reverse-engineer the cause of a failure.

As one of said people, I think that's perfectly reasonable. It'd make it
a lot easier to get a heads-up, or just the version of the patch right
before a commit to add it to. Some people do that, some don't - it would
be muchos helpful if all did.

I don't expect unix hackers to always patch the msvc system as needed -
given that you don't have a way to test it, and no experience how those
tools work. (I know Tom has made a number of smaller fixes in them, but
it's mostly been around the areas of smaller changes, not actually
adding new stuff, for exmaple)

If I had warning this time, for example, I could've said that I for one
can't fix that for a while, because my msvc build system is all geared
up around the git server (because it's so much easier to get the stuff
in and out of the VM when cross-deveoping than with CVS and the crippled
commandline toolchain on windows). And since that one is currently not
working properly, I need to find a different way to get the code in
there unless someone can fix it :-(

Hopefully someone else can pick it up this time around? If not, I'll do
it as soon as I get things back up and working in my env.

//Magnus

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#13Tom Lane
tgl@sss.pgh.pa.us
In reply to: Magnus Hagander (#12)
Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major

Magnus Hagander <magnus@hagander.net> writes:

Exactly what type of changes affec the MSVC build system?

Anything the system doesn't pick up automatically. That means most new
build targets (but it will pick up a contrib automatically, and a
conversion proc, for example). Also if modifications are made to the
scripts that run (like gen_fmgr.sh).

Just adding new files to exisitng makefiles, or adding a new subdir that
adds more files to an existing target, should require no changes.

It might help clarify things if you say why it *didn't* pick up these
new foreign-server libraries. Is it because they were new build
targets, or ??

regards, tom lane

#14Magnus Hagander
magnus@hagander.net
In reply to: Tom Lane (#13)
Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major

Tom Lane wrote:

Magnus Hagander <magnus@hagander.net> writes:

Exactly what type of changes affec the MSVC build system?

Anything the system doesn't pick up automatically. That means most new
build targets (but it will pick up a contrib automatically, and a
conversion proc, for example). Also if modifications are made to the
scripts that run (like gen_fmgr.sh).

Just adding new files to exisitng makefiles, or adding a new subdir that
adds more files to an existing target, should require no changes.

It might help clarify things if you say why it *didn't* pick up these
new foreign-server libraries. Is it because they were new build
targets, or ??

Yes, they are new build targets, that's why it didn't catch them.

//Magnus

#15Andrew Dunstan
andrew@dunslane.net
In reply to: Magnus Hagander (#14)
Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major

Magnus Hagander wrote:

Just adding new files to exisitng makefiles, or adding a new subdir that
adds more files to an existing target, should require no changes.

It might help clarify things if you say why it *didn't* pick up these
new foreign-server libraries. Is it because they were new build
targets, or ??

Yes, they are new build targets, that's why it didn't catch them.

Also, because one of the Makefiles involved (src/foreign/Makefile)
doesn't follow one of our standard patterns.

We (i.e. probably Magnus and I in the first instance) should think about
creating a bit of a cookbook if we're going to persist with this build
system.

cheers

andrew

#16Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Andrew Dunstan (#15)
Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major

Andrew Dunstan wrote:

We (i.e. probably Magnus and I in the first instance) should think about
creating a bit of a cookbook if we're going to persist with this build
system.

Well, we were going to try CMake, but we need somebody to do the work.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

#17Andrew Dunstan
andrew@dunslane.net
In reply to: Alvaro Herrera (#16)
Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major

Alvaro Herrera wrote:

Andrew Dunstan wrote:

We (i.e. probably Magnus and I in the first instance) should think about
creating a bit of a cookbook if we're going to persist with this build
system.

Well, we were going to try CMake, but we need somebody to do the work.

Yes, indeed.

cheers

andrew

#18Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andrew Dunstan (#15)
Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major

Andrew Dunstan <andrew@dunslane.net> writes:

Also, because one of the Makefiles involved (src/foreign/Makefile)
doesn't follow one of our standard patterns.

Is there a really good reason why it doesn't?
(eg, why "FDW" and not "SUBDIRS"?)

regards, tom lane

#19Magnus Hagander
magnus@hagander.net
In reply to: Tom Lane (#18)
Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major

Tom Lane wrote:

Andrew Dunstan <andrew@dunslane.net> writes:

Also, because one of the Makefiles involved (src/foreign/Makefile)
doesn't follow one of our standard patterns.

Is there a really good reason why it doesn't?
(eg, why "FDW" and not "SUBDIRS"?)

If you put them in SUBDIRS, don't get they get linked into the backend
itself? They are supposed to be different build targets...

It's more like the conversion_procs stuff, which also doesn't use
SUBDIRS - it uses DIRS, but he idea is the same as FDW.

//Magnus

#20Peter Eisentraut
peter_e@gmx.net
In reply to: Alvaro Herrera (#16)
About CMake (was Re: [COMMITTERS] pgsql: Append major version number and for libraries soname major)

On Sunday 21 December 2008 00:59:27 Alvaro Herrera wrote:

Andrew Dunstan wrote:

We (i.e. probably Magnus and I in the first instance) should think about
creating a bit of a cookbook if we're going to persist with this build
system.

Well, we were going to try CMake, but we need somebody to do the work.

It did play around with CMake a while back. It works OK. I had libpq and
psql building, for example. The problem I see is that converting the build
system will probably take many man-hours, and in the meantime, it would
essentially create yet another build system to maintain. Plus, we are not
sure, of course, whether we will end up adopting CMake.

My preferred approach now is that the existing makefiles need to be refactored
more aggressively first, using make functions. We could incidentally design
those functions similar to the CMake declarations, so a conversion, if we
decided to do one, would be simple. But doing that properly would require a
newer GNU make version, so it needs some consideration first. (I'm not
talking about last week's release, but more like 4 years old versus the 10
years old that we currently require.)

We can revisit this for the next release cycle.

#21Magnus Hagander
magnus@hagander.net
In reply to: Peter Eisentraut (#20)
#22Dave Page
dpage@pgadmin.org
In reply to: Magnus Hagander (#21)
#23Tom Lane
tgl@sss.pgh.pa.us
In reply to: Dave Page (#22)
#24Jonah H. Harris
jonah.harris@gmail.com
In reply to: Tom Lane (#23)
#25Bruce Momjian
bruce@momjian.us
In reply to: Jonah H. Harris (#24)
#26Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Jonah H. Harris (#24)
#27Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#25)
#28Andrew Dunstan
andrew@dunslane.net
In reply to: Bruce Momjian (#27)
#29Magnus Hagander
magnus@hagander.net
In reply to: Bruce Momjian (#27)
#30James Mansion
james@mansionfamily.plus.com
In reply to: Andrew Dunstan (#28)