Re: win32mak_patch

Lists: pgsql-patches
From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: win32mak_patch
Date: 2008-04-27 14:57:40
Message-ID: 039401c8a877$0a3e78a0$0d01a8c0@IBMC9A0F63B40D
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Hi.

Now, win32.mak of CVS-HEAD was left by the structural change.
Please apply it.

Regards,
Hiroshi Saito

Attachment Content-Type Size
win32mak_patch application/octet-stream 1.7 KB

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: win32mak_patch
Date: 2008-04-27 15:53:09
Message-ID: 20150.1209311589@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

"Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp> writes:
> *** src/interfaces/libpq/exports.txt.orig Sun Apr 27 23:41:51 2008
> --- src/interfaces/libpq/exports.txt Sun Apr 27 23:42:48 2008
> ***************
> *** 141,143 ****
> --- 141,144 ----
> pg_valid_server_encoding_id 139
> PQconnectionNeedsPassword 140
> lo_import_with_oid 141
> + pgwin32_safestat 142

We are most certainly NOT doing that (for one reason, it will instantly
break every platform except Windows). If there is something that seems
to require it then you need to find another way.

regards, tom lane


From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-patches(at)postgresql(dot)org>
Subject: Re: win32mak_patch
Date: 2008-04-27 16:38:38
Message-ID: 003a01c8a885$25185ed0$0b01a8c0@yourc3ftrhkaod
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Hi.

Oops, Certainly.
I propose the method of merging by distprep as exports.txt.win32.
What do you think?

Regards,
Hiroshi Saito

----- Original Message -----
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>

> "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp> writes:
>> *** src/interfaces/libpq/exports.txt.orig Sun Apr 27 23:41:51 2008
>> --- src/interfaces/libpq/exports.txt Sun Apr 27 23:42:48 2008
>> ***************
>> *** 141,143 ****
>> --- 141,144 ----
>> pg_valid_server_encoding_id 139
>> PQconnectionNeedsPassword 140
>> lo_import_with_oid 141
>> + pgwin32_safestat 142
>
>
> We are most certainly NOT doing that (for one reason, it will instantly
> break every platform except Windows). If there is something that seems
> to require it then you need to find another way.
>
> regards, tom lane


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: win32mak_patch
Date: 2008-04-27 16:49:40
Message-ID: 20080427184940.15d96b6b@mha-laptop.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

The changes except the one to exports.txt look ok.

Why do you need to export pgwin32_safestat? It's *not* exported when
you build with mingw or the automated msvc build, and nothing breaks
there. Who is trying to use it?

//Magnus

Hiroshi Saito wrote:
> Hi.
>
> Oops, Certainly.
> I propose the method of merging by distprep as exports.txt.win32.
> What do you think?
>
> Regards,
> Hiroshi Saito
>
> ----- Original Message -----
> From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
>
>
> > "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp> writes:
> >> *** src/interfaces/libpq/exports.txt.orig Sun Apr 27 23:41:51 2008
> >> --- src/interfaces/libpq/exports.txt Sun Apr 27 23:42:48 2008
> >> ***************
> >> *** 141,143 ****
> >> --- 141,144 ----
> >> pg_valid_server_encoding_id 139
> >> PQconnectionNeedsPassword 140
> >> lo_import_with_oid 141
> >> + pgwin32_safestat 142
> >
> >
> > We are most certainly NOT doing that (for one reason, it will
> > instantly break every platform except Windows). If there is
> > something that seems to require it then you need to find another
> > way.
> >
> > regards, tom lane
>
> --
> Sent via pgsql-patches mailing list (pgsql-patches(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-patches


From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Magnus Hagander" <magnus(at)hagander(dot)net>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: win32mak_patch
Date: 2008-04-27 17:00:26
Message-ID: 005901c8a888$30aecd80$0b01a8c0@yourc3ftrhkaod
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Hi.

Eh? It is strange...
http://winpg.jp/~saito/pg_work/WIN32_BUILD_INF/psql_win32.mak
Actually, it is required although psql is built. Have I missed something?

Regards,
Hiroshi Saito

----- Original Message -----
From: "Magnus Hagander" <magnus(at)hagander(dot)net>

> The changes except the one to exports.txt look ok.
>
> Why do you need to export pgwin32_safestat? It's *not* exported when
> you build with mingw or the automated msvc build, and nothing breaks
> there. Who is trying to use it?
>
> //Magnus
>
> Hiroshi Saito wrote:
>> Hi.
>>
>> Oops, Certainly.
>> I propose the method of merging by distprep as exports.txt.win32.
>> What do you think?
>>
>> Regards,
>> Hiroshi Saito
>>
>> ----- Original Message -----
>> From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
>>
>>
>> > "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp> writes:
>> >> *** src/interfaces/libpq/exports.txt.orig Sun Apr 27 23:41:51 2008
>> >> --- src/interfaces/libpq/exports.txt Sun Apr 27 23:42:48 2008
>> >> ***************
>> >> *** 141,143 ****
>> >> --- 141,144 ----
>> >> pg_valid_server_encoding_id 139
>> >> PQconnectionNeedsPassword 140
>> >> lo_import_with_oid 141
>> >> + pgwin32_safestat 142
>> >
>> >
>> > We are most certainly NOT doing that (for one reason, it will
>> > instantly break every platform except Windows). If there is
>> > something that seems to require it then you need to find another
>> > way.
>> >
>> > regards, tom lane
>>
>> --
>> Sent via pgsql-patches mailing list (pgsql-patches(at)postgresql(dot)org)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-patches
>
>
> --
> Sent via pgsql-patches mailing list (pgsql-patches(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-patches


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: win32mak_patch
Date: 2008-04-28 08:13:48
Message-ID: 20080428101348.39e03c65@mha-laptop.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Hiroshi Saito wrote:
> Hi.
>
> Eh? It is strange...
> http://winpg.jp/~saito/pg_work/WIN32_BUILD_INF/psql_win32.mak
> Actually, it is required although psql is built. Have I missed
> something?

Note that building psql this way really isn't supported anymore :-)

Anyway. If you get references to it, you need to pull in port/dirmod.c
into psql as well. Normally, it would get this through libpgport, but
it looks like your custom makfile is pulling the files in directly
instead. So adding dirmod to the list of stuff from src/port should
hopefully fix your problem.

//Magnus


From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Magnus Hagander" <magnus(at)hagander(dot)net>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: win32mak_patch
Date: 2008-04-28 08:23:25
Message-ID: 016e01c8a909$2148d440$0b01a8c0@saito3cedm5qc7
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Hi.

Thanks!

----- Original Message -----
From: "Magnus Hagander" <magnus(at)hagander(dot)net>

> Hiroshi Saito wrote:
>> Hi.
>>
>> Eh? It is strange...
>> http://winpg.jp/~saito/pg_work/WIN32_BUILD_INF/psql_win32.mak
>> Actually, it is required although psql is built. Have I missed
>> something?
>
> Note that building psql this way really isn't supported anymore :-)

Yes, It is only a script for my check. :-)

>
> Anyway. If you get references to it, you need to pull in port/dirmod.c
> into psql as well. Normally, it would get this through libpgport, but
> it looks like your custom makfile is pulling the files in directly
> instead. So adding dirmod to the list of stuff from src/port should
> hopefully fix your problem.

Um, win32.mak of libpq needed to add dirmod.c
--
libpq.lib(fe-connect.obj) : error LNK2001: (snip-sjis message) "_pgwin32_safestat"

Then, Is containing in libpq wrong?
I'm confused for a while...

Regards,
Hiroshi Saito


From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Hiroshi Saito <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: win32mak_patch
Date: 2008-04-29 11:40:23
Message-ID: 48170927.1080801@hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Hiroshi Saito wrote:
>> Anyway. If you get references to it, you need to pull in port/dirmod.c
>> into psql as well. Normally, it would get this through libpgport, but
>> it looks like your custom makfile is pulling the files in directly
>> instead. So adding dirmod to the list of stuff from src/port should
>> hopefully fix your problem.
>
> Um, win32.mak of libpq needed to add dirmod.c --
> libpq.lib(fe-connect.obj) : error LNK2001: (snip-sjis message)
> "_pgwin32_safestat"
>
> Then, Is containing in libpq wrong? I'm confused for a while...

Yes, you are missing something :-)

The patch for win32.mak I'm happy to apply, it looks fine.

The patch for exports.txt does not look fine.

Can you confirm that you can build things properly *with* the patch to
win32.mak but *without* the patch to exports.txt?

Also, I assume this needs to be backpatched?

//Magnus


From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Magnus Hagander" <magnus(at)hagander(dot)net>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: win32mak_patch
Date: 2008-04-29 14:02:31
Message-ID: 00af01c8aa01$aae93ac0$0d01a8c0@IBMC9A0F63B40D
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Hi Magnus.

----- Original Message -----
From: "Magnus Hagander" <magnus(at)hagander(dot)net>

>> Um, win32.mak of libpq needed to add dirmod.c --
>> libpq.lib(fe-connect.obj) : error LNK2001: (snip-sjis message)
>> "_pgwin32_safestat"
>>
>> Then, Is containing in libpq wrong? I'm confused for a while...
>
> Yes, you are missing something :-)

Ahh Sure, I had missed discussion of this improvement.
Then, It seems that win32.mak has been forgotten.

>
> The patch for win32.mak I'm happy to apply, it looks fine.

Yeah, Anyway I think that the equipment is required.

>
> The patch for exports.txt does not look fine.

About it, I do not have firm belief yet. However, It does not put in there.

>
> Can you confirm that you can build things properly *with* the patch to
> win32.mak but *without* the patch to exports.txt?

http://winpg.jp/~saito/pg_work/WIN32_BUILD_INF/psql_win32_n.mak
I checked the build without correction of exports.txt.

>
> Also, I assume this needs to be backpatched?

Yes, Since you have already done, I think that it is required.
Thanks!

Regards,
Hiroshi Saito


From: Magnus Hagander <magnus(at)hagander(dot)net>
To:
Cc: Hiroshi Saito <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: win32mak_patch
Date: 2008-05-05 19:32:12
Message-ID: 20080505213212.77e1c3ae@mha-laptop.hagander.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Magnus Hagander wrote:
> Hiroshi Saito wrote:
> >> Anyway. If you get references to it, you need to pull in
> >> port/dirmod.c into psql as well. Normally, it would get this
> >> through libpgport, but it looks like your custom makfile is
> >> pulling the files in directly instead. So adding dirmod to the
> >> list of stuff from src/port should hopefully fix your problem.
> >
> > Um, win32.mak of libpq needed to add dirmod.c --
> > libpq.lib(fe-connect.obj) : error LNK2001: (snip-sjis message)
> > "_pgwin32_safestat"
> >
> > Then, Is containing in libpq wrong? I'm confused for a while...

Applied and backpatched, except for the changes to exports.txt that
shouldn't be required.

//Magnus