pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Missing file versions for a bunch of dll/exe files in Windows builds
25+ messages / 5 participants
[nested] [flat]

* Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-04-24 05:54  Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 25+ messages in thread

From: Michael Paquier @ 2014-04-24 05:54 UTC (permalink / raw)
  To: pgsql-bugs

Hi all,

A colleague of mine pointed out that the file version is missing in a
couple of dll and exe files when building on windows using the
community scripts in src/tools/msvc. After having a closer look, I
noticed that a *lot* of files are missing the shot:
- all the exe/dll in contrib/
- dll of PL languages (perl, python, tcl, pgsql)
- libpqwalreceiver, snowball
- ecpg stuff
- regression and isolation test stuff
- conversion_procs thingies
Having a version number associated to a build is important for all
companies creating builds of Postgres on Windows, so it would be good
to have the patch attached applied and back-patched.

Regards,
-- 
Michael

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

Attachments:

20140424_win_rcfiles.patch (text/plain, 7.5K) download diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index 308a4b4..08fdc14 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -103,7 +103,7 @@ sub mkvcbuild 'src\backend\port\win32_shmem.c'); $postgres->ReplaceFile('src\backend\port\pg_latch.c', 'src\backend\port\win32_latch.c'); - $postgres->AddFiles('src\port', @pgportfiles); + $postgres->AddFiles('src\port', @pgportfiles); $postgres->AddFiles('src\common', @pgcommonbkndfiles); $postgres->AddDir('src\timezone'); $postgres->AddFiles('src\backend\parser', 'scan.l', 'gram.y'); @@ -128,11 +128,13 @@ sub mkvcbuild }); $snowball->AddIncludeDir('src\include\snowball'); $snowball->AddReference($postgres); + $snowball->AddResourceFile('src\backend\snowball', 'snowball'); my $plpgsql = $solution->AddProject('plpgsql', 'dll', 'PLs', 'src\pl\plpgsql\src'); $plpgsql->AddFiles('src\pl\plpgsql\src', 'pl_gram.y'); $plpgsql->AddReference($postgres); + $plpgsql->AddResourceFile('src\pl\plpgsql\src', 'plpgsql'); if ($solution->{options}->{perl}) { @@ -206,6 +208,7 @@ sub mkvcbuild } } $plperl->AddReference($postgres); + $plperl->AddResourceFile('src\pl\plperl', 'plperl'); my @perl_libs = grep { /perl\d+.lib$/ } glob($solution->{options}->{perl} . '\lib\CORE\perl*.lib'); @@ -245,6 +248,7 @@ sub mkvcbuild $plpython->AddIncludeDir($pyprefix . '\include'); $plpython->AddLibrary($pyprefix . "\\Libs\\python$pyver.lib"); $plpython->AddReference($postgres); + $plpython->AddResourceFile('src\pl\plpython', 'plpython'); } if ($solution->{options}->{tcl}) @@ -253,6 +257,7 @@ sub mkvcbuild $solution->AddProject('pltcl', 'dll', 'PLs', 'src\pl\tcl'); $pltcl->AddIncludeDir($solution->{options}->{tcl} . '\include'); $pltcl->AddReference($postgres); + $pltcl->AddResourceFile('src\pl\tcl', 'pltcl'); if (-e $solution->{options}->{tcl} . '\lib\tcl85.lib') { $pltcl->AddLibrary( @@ -284,6 +289,8 @@ sub mkvcbuild 'src\backend\replication\libpqwalreceiver'); $libpqwalreceiver->AddIncludeDir('src\interfaces\libpq'); $libpqwalreceiver->AddReference($postgres, $libpq); + $libpqwalreceiver->AddResourceFile('src\backend\replication\libpqwalreceiver', + 'libpqwalreceiver'); my $pgtypes = $solution->AddProject( 'libpgtypes', 'dll', @@ -292,6 +299,8 @@ sub mkvcbuild $pgtypes->AddReference($libpgport); $pgtypes->UseDef('src\interfaces\ecpg\pgtypeslib\pgtypeslib.def'); $pgtypes->AddIncludeDir('src\interfaces\ecpg\include'); + $pgtypes->AddResourceFile('src\interfaces\ecpg\pgtypeslib', + 'libpgtypes'); my $libecpg = $solution->AddProject('libecpg', 'dll', 'interfaces', 'src\interfaces\ecpg\ecpglib'); @@ -302,6 +311,8 @@ sub mkvcbuild $libecpg->UseDef('src\interfaces\ecpg\ecpglib\ecpglib.def'); $libecpg->AddLibrary('wsock32.lib'); $libecpg->AddReference($libpq, $pgtypes, $libpgport); + $libecpg->AddResourceFile('src\interfaces\ecpg\ecpglib', + 'libecpg'); my $libecpgcompat = $solution->AddProject( 'libecpg_compat', 'dll', @@ -310,6 +321,8 @@ sub mkvcbuild $libecpgcompat->AddIncludeDir('src\interfaces\libpq'); $libecpgcompat->UseDef('src\interfaces\ecpg\compatlib\compatlib.def'); $libecpgcompat->AddReference($pgtypes, $libecpg, $libpgport); + $libecpgcompat->AddResourceFile('src\interfaces\ecpg\compatlib', + 'libecpg_compat'); my $ecpg = $solution->AddProject('ecpg', 'exe', 'interfaces', 'src\interfaces\ecpg\preproc'); @@ -332,6 +345,8 @@ sub mkvcbuild $pgregress_ecpg->AddDefine('HOST_TUPLE="i686-pc-win32vc"'); $pgregress_ecpg->AddDefine('FRONTEND'); $pgregress_ecpg->AddReference($libpgcommon, $libpgport); + $pgregress_ecpg->AddResourceFile('src\interfaces\ecpg\test', + 'pg_regress_ecpg'); my $isolation_tester = $solution->AddProject('isolationtester', 'exe', 'misc'); @@ -347,6 +362,8 @@ sub mkvcbuild $isolation_tester->AddDefine('FRONTEND'); $isolation_tester->AddLibrary('wsock32.lib'); $isolation_tester->AddReference($libpq, $libpgcommon, $libpgport); + $isolation_tester->AddResourceFile('src\test\isolation', + 'isolation'); my $pgregress_isolation = $solution->AddProject('pg_isolation_regress', 'exe', 'misc'); @@ -435,6 +452,7 @@ sub mkvcbuild $zic->AddFiles('src\timezone', 'zic.c', 'ialloc.c', 'scheck.c', 'localtime.c'); $zic->AddReference($libpgcommon, $libpgport); + $zic->AddResourceFile('src\timezone', 'zic'); if ($solution->{options}->{xml}) { @@ -501,6 +519,7 @@ sub mkvcbuild } $pgcrypto->AddReference($postgres); $pgcrypto->AddLibrary('wsock32.lib'); + $pgcrypto->AddResourceFile('contrib\pgcrypto', 'pgcrypto'); my $mf = Project::read_file('contrib/pgcrypto/Makefile'); GenerateContribSqlFiles('pgcrypto', $mf); @@ -535,6 +554,7 @@ sub mkvcbuild 'src\backend\utils\mb\conversion_procs\\' . $sub . '\\' . $1); } $p->AddReference($postgres); + $p->AddResourceFile('src\backend\utils\mb\conversion_procs\\' . $sub, $sub); } $mf = Project::read_file('src\bin\scripts\Makefile'); @@ -590,12 +610,13 @@ sub mkvcbuild $pgregress->AddIncludeDir('src\port'); $pgregress->AddDefine('HOST_TUPLE="i686-pc-win32vc"'); $pgregress->AddReference($libpgcommon, $libpgport); + $pgregress->AddResourceFile('src\test\regress', 'pg_regress'); # fix up pg_xlogdump once it's been set up # files symlinked on Unix are copied on windows my $pg_xlogdump = (grep { $_->{name} eq 'pg_xlogdump' } - @{ $solution->{projects}->{contrib} })[0]; + @{ $solution->{projects}->{contrib} })[0]; $pg_xlogdump->AddDefine('FRONTEND'); foreach my $xf (glob('src/backend/access/rmgrdesc/*desc.c')) { @@ -603,9 +624,8 @@ sub mkvcbuild copy($xf, "contrib/pg_xlogdump/$bf"); $pg_xlogdump->AddFile("contrib\\pg_xlogdump\\$bf"); } - copy( - 'src/backend/access/transam/xlogreader.c', - 'contrib/pg_xlogdump/xlogreader.c'); + copy('src/backend/access/transam/xlogreader.c', + 'contrib/pg_xlogdump/xlogreader.c'); $solution->Save(); return $solution->{vcver}; @@ -672,6 +692,7 @@ sub AddContrib } } } + AddContribResourceFile($proj, $mf, 'contrib\\' . $n, $dn); AdjustContribProj($proj); } elsif ($mf =~ /^MODULES\s*=\s*(.*)$/mg) @@ -681,12 +702,14 @@ sub AddContrib my $proj = $solution->AddProject($mod, 'dll', 'contrib'); $proj->AddFile('contrib\\' . $n . '\\' . $mod . '.c'); $proj->AddReference($postgres); + AddContribResourceFile($proj, $mf, 'contrib\\' . $n, $mod); AdjustContribProj($proj); } } elsif ($mf =~ /^PROGRAM\s*=\s*(.*)$/mg) { - my $proj = $solution->AddProject($1, 'exe', 'contrib'); + my $dn = $1; + my $proj = $solution->AddProject($dn, 'exe', 'contrib'); $mf =~ s{\\\s*[\r\n]+}{}mg; $mf =~ /^OBJS\s*=\s*(.*)$/gm || croak "Could not find objects in PROGRAM for $n\n"; @@ -697,6 +720,7 @@ sub AddContrib $o =~ s/\.o$/.c/; $proj->AddFile('contrib\\' . $n . '\\' . $o); } + AddContribResourceFile($proj, $mf, 'contrib\\' . $n, $dn); AdjustContribProj($proj); } else @@ -708,6 +732,29 @@ sub AddContrib GenerateContribSqlFiles($n, $mf); } +sub AddContribResourceFile +{ + my $proj = shift; + my $mf = shift; + my $dir = shift; + my $name = shift; + + # See if this contrib Makefile contains a description and then + # generate its resource file. If no explicit file description is + # given use the module name. + if ($mf =~ /^PGFILEDESC\s*=\s*\"([^\"]+)\"/m) + { + my $desc = $1; + my $ico; + if ($mf =~ /^PGAPPICON\s*=\s*(.*)$/m) { $ico = $1; } + $proj->AddResourceFile($dir, $desc, $ico); + } + else + { + $proj->AddResourceFile($dir, $name); + } +} + sub GenerateContribSqlFiles { my $n = shift;
^ permalink raw reply [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-04-24 07:27  Magnus Hagander <magnus@hagander.net>
  parent: Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 2 replies; 25+ messages in thread

From: Magnus Hagander @ 2014-04-24 07:27 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: pgsql-bugs

On Thu, Apr 24, 2014 at 7:54 AM, Michael Paquier
<michael.paquier@gmail.com>wrote:

> Hi all,
>
> A colleague of mine pointed out that the file version is missing in a
> couple of dll and exe files when building on windows using the
> community scripts in src/tools/msvc. After having a closer look, I
> noticed that a *lot* of files are missing the shot:
> - all the exe/dll in contrib/
> - dll of PL languages (perl, python, tcl, pgsql)
> - libpqwalreceiver, snowball
> - ecpg stuff
> - regression and isolation test stuff
> - conversion_procs thingies
> Having a version number associated to a build is important for all
> companies creating builds of Postgres on Windows, so it would be good
> to have the patch attached applied and back-patched.
>
>
At least some fo that is intentional - things that are considered
"internal" were not given a version resource intentionally. E.g. the
conversion_procs is very intentional. The EXE/DLL in contrib should
definitely have them though.

it also seems like the wrong way to go about it - for all the other files,
it's added by rule (when PGFILEDESC is specified in the Makefile). Which
currently appears to be the *only* way it's added, so are you saying this
just doesn't work? Or does it work for some of them?

I think the proper solutioni s to add PGFILEDESC entries to the Makefile's,
and if that one doesn't actually work then fix the build system to work :)
(Sorry, don't have a win32 build environment around to test it right now)

Then it will be consistent between mingw and msvc, which your patch isn't,
I believe?


-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-04-24 07:50  Dave Page <dpage@pgadmin.org>
  parent: Magnus Hagander <magnus@hagander.net>
  1 sibling, 1 reply; 25+ messages in thread

From: Dave Page @ 2014-04-24 07:50 UTC (permalink / raw)
  To: Magnus Hagander <magnus@hagander.net>; +Cc: Michael Paquier <michael.paquier@gmail.com>; pgsql-bugs

On Thu, Apr 24, 2014 at 8:27 AM, Magnus Hagander <magnus@hagander.net> wrote:
> On Thu, Apr 24, 2014 at 7:54 AM, Michael Paquier <michael.paquier@gmail.com>
> wrote:
>>
>> Hi all,
>>
>> A colleague of mine pointed out that the file version is missing in a
>> couple of dll and exe files when building on windows using the
>> community scripts in src/tools/msvc. After having a closer look, I
>> noticed that a *lot* of files are missing the shot:
>> - all the exe/dll in contrib/
>> - dll of PL languages (perl, python, tcl, pgsql)
>> - libpqwalreceiver, snowball
>> - ecpg stuff
>> - regression and isolation test stuff
>> - conversion_procs thingies
>> Having a version number associated to a build is important for all
>> companies creating builds of Postgres on Windows, so it would be good
>> to have the patch attached applied and back-patched.
>>
>
> At least some fo that is intentional - things that are considered "internal"
> were not given a version resource intentionally. E.g. the conversion_procs
> is very intentional.

Why? Version resources are kinda handy for installers to reliably
figure out whether or not something should be upgraded.

-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-04-24 08:13  Magnus Hagander <magnus@hagander.net>
  parent: Dave Page <dpage@pgadmin.org>
  0 siblings, 1 reply; 25+ messages in thread

From: Magnus Hagander @ 2014-04-24 08:13 UTC (permalink / raw)
  To: Dave Page <dpage@pgadmin.org>; +Cc: Michael Paquier <michael.paquier@gmail.com>; pgsql-bugs

On Thu, Apr 24, 2014 at 9:50 AM, Dave Page <dpage@pgadmin.org> wrote:

> On Thu, Apr 24, 2014 at 8:27 AM, Magnus Hagander <magnus@hagander.net>
> wrote:
> > On Thu, Apr 24, 2014 at 7:54 AM, Michael Paquier <
> michael.paquier@gmail.com>
> > wrote:
> >>
> >> Hi all,
> >>
> >> A colleague of mine pointed out that the file version is missing in a
> >> couple of dll and exe files when building on windows using the
> >> community scripts in src/tools/msvc. After having a closer look, I
> >> noticed that a *lot* of files are missing the shot:
> >> - all the exe/dll in contrib/
> >> - dll of PL languages (perl, python, tcl, pgsql)
> >> - libpqwalreceiver, snowball
> >> - ecpg stuff
> >> - regression and isolation test stuff
> >> - conversion_procs thingies
> >> Having a version number associated to a build is important for all
> >> companies creating builds of Postgres on Windows, so it would be good
> >> to have the patch attached applied and back-patched.
> >>
> >
> > At least some fo that is intentional - things that are considered
> "internal"
> > were not given a version resource intentionally. E.g. the
> conversion_procs
> > is very intentional.
>
> Why? Version resources are kinda handy for installers to reliably
> figure out whether or not something should be upgraded.
>

I think the general argument was "maintenance overhead". This was back
before the 8.0 release, so my memory is somewhat sketchy :)

Which also means of course that we can reconsider that decision. But if we
do, we need to support it equally in mingw and msvc.

-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-04-24 08:18  Dave Page <dpage@pgadmin.org>
  parent: Magnus Hagander <magnus@hagander.net>
  0 siblings, 1 reply; 25+ messages in thread

From: Dave Page @ 2014-04-24 08:18 UTC (permalink / raw)
  To: Magnus Hagander <magnus@hagander.net>; +Cc: Michael Paquier <michael.paquier@gmail.com>; pgsql-bugs

On Thu, Apr 24, 2014 at 9:13 AM, Magnus Hagander <magnus@hagander.net> wrote:
> On Thu, Apr 24, 2014 at 9:50 AM, Dave Page <dpage@pgadmin.org> wrote:
>>
>> On Thu, Apr 24, 2014 at 8:27 AM, Magnus Hagander <magnus@hagander.net>
>> wrote:
>> > On Thu, Apr 24, 2014 at 7:54 AM, Michael Paquier
>> > <michael.paquier@gmail.com>
>> > wrote:
>> >>
>> >> Hi all,
>> >>
>> >> A colleague of mine pointed out that the file version is missing in a
>> >> couple of dll and exe files when building on windows using the
>> >> community scripts in src/tools/msvc. After having a closer look, I
>> >> noticed that a *lot* of files are missing the shot:
>> >> - all the exe/dll in contrib/
>> >> - dll of PL languages (perl, python, tcl, pgsql)
>> >> - libpqwalreceiver, snowball
>> >> - ecpg stuff
>> >> - regression and isolation test stuff
>> >> - conversion_procs thingies
>> >> Having a version number associated to a build is important for all
>> >> companies creating builds of Postgres on Windows, so it would be good
>> >> to have the patch attached applied and back-patched.
>> >>
>> >
>> > At least some fo that is intentional - things that are considered
>> > "internal"
>> > were not given a version resource intentionally. E.g. the
>> > conversion_procs
>> > is very intentional.
>>
>> Why? Version resources are kinda handy for installers to reliably
>> figure out whether or not something should be upgraded.
>
>
> I think the general argument was "maintenance overhead". This was back
> before the 8.0 release, so my memory is somewhat sketchy :)
>
> Which also means of course that we can reconsider that decision. But if we
> do, we need to support it equally in mingw and msvc.

Well it's pretty darn close to zero maintenance isn't it? We don't
even have to maintain rc files with the proposed patch (if my
extremely weak perl-fu is reading the code correctly).

-- 
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-04-24 09:00  Magnus Hagander <magnus@hagander.net>
  parent: Dave Page <dpage@pgadmin.org>
  0 siblings, 1 reply; 25+ messages in thread

From: Magnus Hagander @ 2014-04-24 09:00 UTC (permalink / raw)
  To: Dave Page <dpage@pgadmin.org>; +Cc: Michael Paquier <michael.paquier@gmail.com>; pgsql-bugs

On Thu, Apr 24, 2014 at 10:18 AM, Dave Page <dpage@pgadmin.org> wrote:

> On Thu, Apr 24, 2014 at 9:13 AM, Magnus Hagander <magnus@hagander.net>
> wrote:
> > On Thu, Apr 24, 2014 at 9:50 AM, Dave Page <dpage@pgadmin.org> wrote:
> >>
> >> On Thu, Apr 24, 2014 at 8:27 AM, Magnus Hagander <magnus@hagander.net>
> >> wrote:
> >> > On Thu, Apr 24, 2014 at 7:54 AM, Michael Paquier
> >> > <michael.paquier@gmail.com>
> >> > wrote:
> >> >>
> >> >> Hi all,
> >> >>
> >> >> A colleague of mine pointed out that the file version is missing in a
> >> >> couple of dll and exe files when building on windows using the
> >> >> community scripts in src/tools/msvc. After having a closer look, I
> >> >> noticed that a *lot* of files are missing the shot:
> >> >> - all the exe/dll in contrib/
> >> >> - dll of PL languages (perl, python, tcl, pgsql)
> >> >> - libpqwalreceiver, snowball
> >> >> - ecpg stuff
> >> >> - regression and isolation test stuff
> >> >> - conversion_procs thingies
> >> >> Having a version number associated to a build is important for all
> >> >> companies creating builds of Postgres on Windows, so it would be good
> >> >> to have the patch attached applied and back-patched.
> >> >>
> >> >
> >> > At least some fo that is intentional - things that are considered
> >> > "internal"
> >> > were not given a version resource intentionally. E.g. the
> >> > conversion_procs
> >> > is very intentional.
> >>
> >> Why? Version resources are kinda handy for installers to reliably
> >> figure out whether or not something should be upgraded.
> >
> >
> > I think the general argument was "maintenance overhead". This was back
> > before the 8.0 release, so my memory is somewhat sketchy :)
> >
> > Which also means of course that we can reconsider that decision. But if
> we
> > do, we need to support it equally in mingw and msvc.
>
> Well it's pretty darn close to zero maintenance isn't it? We don't
> even have to maintain rc files with the proposed patch (if my
> extremely weak perl-fu is reading the code correctly).
>
>
Probably, yes. It may just have been the caution of the first release..

That said, as also noted, the patch doesn't actually fix the problem :P For
one it establishes two different ways of generating the resources. And it
also doesn't support mingw. So it's likely going to be a little bit more
involved, but probably not hugely much. And if we do it right, ongoing
maintenance should hopefully be very low.

-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-04-24 09:09  Michael Paquier <michael.paquier@gmail.com>
  parent: Magnus Hagander <magnus@hagander.net>
  1 sibling, 1 reply; 25+ messages in thread

From: Michael Paquier @ 2014-04-24 09:09 UTC (permalink / raw)
  To: Magnus Hagander <magnus@hagander.net>; +Cc: pgsql-bugs

On Thu, Apr 24, 2014 at 4:27 PM, Magnus Hagander <magnus@hagander.net> wrote:
> At least some fo that is intentional - things that are considered "internal"
> were not given a version resource intentionally. E.g. the conversion_procs
> is very intentional. The EXE/DLL in contrib should definitely have them
> though.
Why isn't conversion_procs done? Just to lower the maintenance pain?

> it also seems like the wrong way to go about it - for all the other files,
> it's added by rule (when PGFILEDESC is specified in the Makefile). Which
> currently appears to be the *only* way it's added, so are you saying this
> just doesn't work? Or does it work for some of them?
PGFILEDESC gets recognized, but not for any Makefile in contrib/. I am
guessing that a call to AddDir is missing when defining the contrib
projects. Just a guess from reading the code.

> I think the proper solutioni s to add PGFILEDESC entries to the Makefile's,
> and if that one doesn't actually work then fix the build system to work :)
> (Sorry, don't have a win32 build environment around to test it right now)
Yeah, that's what I thought, until I noticed that PGFILEDESC is only
defined in Makefile of contrib modules containing binaries
(pg_upgrade, oid2name, etc.). There is no documentation describing
this variable except what I could find in some archives of 2004.

> Then it will be consistent between mingw and msvc, which your patch isn't, I
> believe?
There is no reference in the source code to mingw. Am I missing smth?
-- 
Michael


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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-04-24 09:13  Michael Paquier <michael.paquier@gmail.com>
  parent: Magnus Hagander <magnus@hagander.net>
  0 siblings, 0 replies; 25+ messages in thread

From: Michael Paquier @ 2014-04-24 09:13 UTC (permalink / raw)
  To: Magnus Hagander <magnus@hagander.net>; +Cc: Dave Page <dpage@pgadmin.org>; pgsql-bugs

On Thu, Apr 24, 2014 at 6:00 PM, Magnus Hagander <magnus@hagander.net> wrote:
> That said, as also noted, the patch doesn't actually fix the problem :P For
> one it establishes two different ways of generating the resources.
I still lack knowledge of those scripts. Any pointers on how to do
that more correctly?
-- 
Michael


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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-04-24 09:18  Magnus Hagander <magnus@hagander.net>
  parent: Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 25+ messages in thread

From: Magnus Hagander @ 2014-04-24 09:18 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: pgsql-bugs

On Thu, Apr 24, 2014 at 11:09 AM, Michael Paquier <michael.paquier@gmail.com
> wrote:

> On Thu, Apr 24, 2014 at 4:27 PM, Magnus Hagander <magnus@hagander.net>
> wrote:
> > At least some fo that is intentional - things that are considered
> "internal"
> > were not given a version resource intentionally. E.g. the
> conversion_procs
> > is very intentional. The EXE/DLL in contrib should definitely have them
> > though.
> Why isn't conversion_procs done? Just to lower the maintenance pain?
>
>
IIRC, yes.



> > it also seems like the wrong way to go about it - for all the other
> files,
> > it's added by rule (when PGFILEDESC is specified in the Makefile). Which
> > currently appears to be the *only* way it's added, so are you saying this
> > just doesn't work? Or does it work for some of them?
> PGFILEDESC gets recognized, but not for any Makefile in contrib/. I am
> guessing that a call to AddDir is missing when defining the contrib
> projects. Just a guess from reading the code.
>

Quite possibly so - in which case that's probably what should be fixed,
rather than adding manual calls all over the place.

It does have it for pgevent.dll, btw - that's the one that also uses
PGFILESHLIB which would have to be set properly for anything else that's a
DLL.


> I think the proper solutioni s to add PGFILEDESC entries to the
> Makefile's,
> > and if that one doesn't actually work then fix the build system to work
> :)
> > (Sorry, don't have a win32 build environment around to test it right now)
> Yeah, that's what I thought, until I noticed that PGFILEDESC is only
> defined in Makefile of contrib modules containing binaries
> (pg_upgrade, oid2name, etc.). There is no documentation describing
> this variable except what I could find in some archives of 2004.
>

Hehe, yeah. The patch should add it to the others that need the version
resource.



> > Then it will be consistent between mingw and msvc, which your patch
> isn't, I
> > believe?
> There is no reference in the source code to mingw. Am I missing smth?
>

mingw builds using the Makefiles, not the "perl based custom build system".
In particular, the PGFILEDESC stuff s in makefiles/Makefile.win32.  (Also
PGFILESHLIB)

-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-04-24 11:31  Michael Paquier <michael.paquier@gmail.com>
  parent: Magnus Hagander <magnus@hagander.net>
  0 siblings, 1 reply; 25+ messages in thread

From: Michael Paquier @ 2014-04-24 11:31 UTC (permalink / raw)
  To: Magnus Hagander <magnus@hagander.net>; +Cc: pgsql-bugs

On Thu, Apr 24, 2014 at 6:18 PM, Magnus Hagander <magnus@hagander.net> wrote:
> Quite possibly so - in which case that's probably what should be fixed,
> rather than adding manual calls all over the place.
> It does have it for pgevent.dll, btw - that's the one that also uses
> PGFILESHLIB which would have to be set properly for anything else that's a
> DLL.
OK, fine for me. Including the makefiles of PL languages and of all
the other modules, there would be smth like 30~40 files touched, a
number pretty high for a change that should be back-patched IMO as it
impacts existing versions (I'd actually need the fix for 9.3
precisely, or I would have to go with a hack similar to what I posted
earlier)...

>> > Then it will be consistent between mingw and msvc, which your patch
>> > isn't, I
>> > believe?
>> There is no reference in the source code to mingw. Am I missing smth?
>
>
> mingw builds using the Makefiles, not the "perl based custom build system".
> In particular, the PGFILEDESC stuff s in makefiles/Makefile.win32.  (Also
> PGFILESHLIB)
Oh OK. I'll try to get a clean patch following those lines. There is
as well the AddDir call for contrib/ to add...

Regards,
-- 
Michael


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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-04-25 02:21  Michael Paquier <michael.paquier@gmail.com>
  parent: Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 25+ messages in thread

From: Michael Paquier @ 2014-04-25 02:21 UTC (permalink / raw)
  To: Magnus Hagander <magnus@hagander.net>; +Cc: pgsql-bugs

On Thu, Apr 24, 2014 at 8:31 PM, Michael Paquier
<michael.paquier@gmail.com> wrote:
> Oh OK. I'll try to get a clean patch following those lines. There is
> as well the AddDir call for contrib/ to add...
I went through those things, resulting in the following set of patches:
- 20140425_msvc_adddir.patch, adding some AddDir for contrib modules
to be able to detect PGFILEDESC and generate resource files in
consequence.
- 20140425_pgfiledesc_contrib.patch, adding PGFILEDESC to all the
modules that actually need it (PL things, snowball, contrib/, etc.)
- 20140425_pgfiledesc_cvprocs.patch, adding PGFILEDESC to all the
modules in conversion_procs. OK this does not ease the maintenance
pain, but for correctness in the file version of a build this is
important.

Patch 1 should be definitely applied, that's an existing bug. Patch 2
and 3 are here to ensure that all the dll/exe files generated have a
version number associated with a build on Windows, something
particularly useful for upgrades, and important for consistency among
files...
Regards,
-- 
Michael

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

Attachments: download all (3 files, .tar.gz)

20140425_msvc_adddir.patch (text/plain, 870B) download diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index 308a4b4..51385d0 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -653,6 +653,7 @@ sub AddContrib $proj->AddFile('contrib\\' . $n . '\\' . $o); } $proj->AddReference($postgres); + $proj->AddDir('contrib\\' . $n); if ($mf =~ /^SUBDIRS\s*:?=\s*(.*)$/mg) { foreach my $d (split /\s+/, $1) @@ -680,6 +681,7 @@ sub AddContrib { my $proj = $solution->AddProject($mod, 'dll', 'contrib'); $proj->AddFile('contrib\\' . $n . '\\' . $mod . '.c'); + $proj->AddDir('contrib\\' . $n); $proj->AddReference($postgres); AdjustContribProj($proj); } @@ -697,6 +699,7 @@ sub AddContrib $o =~ s/\.o$/.c/; $proj->AddFile('contrib\\' . $n . '\\' . $o); } + $proj->AddDir('contrib\\' . $n); AdjustContribProj($proj); } else
20140425_pgfiledesc_contrib.patch (text/plain, 22.6K) download commit edcf356d967b94da9628284c4d7fae178cfd131a Author: Michael Paquier <michael@otacoo.com> Date: Fri Apr 25 11:03:30 2014 +0900 Add PGFILEDESC for all modules and contrib/ things diff --git a/contrib/adminpack/Makefile b/contrib/adminpack/Makefile index 5cbc8f0..9d7d159 100644 --- a/contrib/adminpack/Makefile +++ b/contrib/adminpack/Makefile @@ -6,6 +6,7 @@ PG_CPPFLAGS = -I$(libpq_srcdir) EXTENSION = adminpack DATA = adminpack--1.0.sql +PGFILEDESC = "adminpack - Support functions for pgAdmin" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/auth_delay/Makefile b/contrib/auth_delay/Makefile index 09d2d54..8a96bd4 100644 --- a/contrib/auth_delay/Makefile +++ b/contrib/auth_delay/Makefile @@ -1,6 +1,7 @@ # contrib/auth_delay/Makefile MODULES = auth_delay +PGFILEDESC = "auth_delay - Delay authentication failure reports" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/auto_explain/Makefile b/contrib/auto_explain/Makefile index 2d1443f..0eb8346 100644 --- a/contrib/auto_explain/Makefile +++ b/contrib/auto_explain/Makefile @@ -2,6 +2,7 @@ MODULE_big = auto_explain OBJS = auto_explain.o +PGFILEDESC = "auto_explain - Logging facility for execution plans" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/btree_gin/Makefile b/contrib/btree_gin/Makefile index 09fd3e6..fcf7cba 100644 --- a/contrib/btree_gin/Makefile +++ b/contrib/btree_gin/Makefile @@ -5,6 +5,7 @@ OBJS = btree_gin.o EXTENSION = btree_gin DATA = btree_gin--1.0.sql btree_gin--unpackaged--1.0.sql +PGFILEDESC = "btree_gin - B-Tree equivalent GIN operator classes" REGRESS = install_btree_gin int2 int4 int8 float4 float8 money oid \ timestamp timestamptz time timetz date interval \ diff --git a/contrib/btree_gist/Makefile b/contrib/btree_gist/Makefile index ba4af14..45d5931 100644 --- a/contrib/btree_gist/Makefile +++ b/contrib/btree_gist/Makefile @@ -10,6 +10,7 @@ OBJS = btree_gist.o btree_utils_num.o btree_utils_var.o btree_int2.o \ EXTENSION = btree_gist DATA = btree_gist--1.0.sql btree_gist--unpackaged--1.0.sql +PGFILEDESC = "btree_gist - B-Tree equivalent GIST operator classes" REGRESS = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz \ time timetz date interval macaddr inet cidr text varchar char bytea \ diff --git a/contrib/chkpass/Makefile b/contrib/chkpass/Makefile index b775aef..22efe7b 100644 --- a/contrib/chkpass/Makefile +++ b/contrib/chkpass/Makefile @@ -5,6 +5,7 @@ OBJS = chkpass.o EXTENSION = chkpass DATA = chkpass--1.0.sql chkpass--unpackaged--1.0.sql +PGFILEDESC = "chkpass - Data type for storage of encrypted passwords" SHLIB_LINK = $(filter -lcrypt, $(LIBS)) diff --git a/contrib/citext/Makefile b/contrib/citext/Makefile index 6594252..8eddf30 100644 --- a/contrib/citext/Makefile +++ b/contrib/citext/Makefile @@ -4,6 +4,7 @@ MODULES = citext EXTENSION = citext DATA = citext--1.0.sql citext--unpackaged--1.0.sql +PGFILEDESC = "citext - Case-insensitive character string type" REGRESS = citext diff --git a/contrib/cube/Makefile b/contrib/cube/Makefile index b5cd5d0..fba76a5 100644 --- a/contrib/cube/Makefile +++ b/contrib/cube/Makefile @@ -5,6 +5,7 @@ OBJS= cube.o cubeparse.o EXTENSION = cube DATA = cube--1.0.sql cube--unpackaged--1.0.sql +PGFILEDESC = "cube - Data type for multidimensional cube representation" REGRESS = cube diff --git a/contrib/dblink/Makefile b/contrib/dblink/Makefile index 32314a0..58584e1 100644 --- a/contrib/dblink/Makefile +++ b/contrib/dblink/Makefile @@ -8,6 +8,7 @@ SHLIB_PREREQS = submake-libpq EXTENSION = dblink DATA = dblink--1.1.sql dblink--1.0--1.1.sql dblink--unpackaged--1.0.sql +PGFILEDESC = "dblink - Connection facility for PostgreSQL" REGRESS = dblink diff --git a/contrib/dict_int/Makefile b/contrib/dict_int/Makefile index 3a3fc36..030acb7 100644 --- a/contrib/dict_int/Makefile +++ b/contrib/dict_int/Makefile @@ -5,6 +5,7 @@ OBJS = dict_int.o EXTENSION = dict_int DATA = dict_int--1.0.sql dict_int--unpackaged--1.0.sql +PGFILEDESC = "dict_int - Add-on dictionary template for full-text search" REGRESS = dict_int diff --git a/contrib/dict_xsyn/Makefile b/contrib/dict_xsyn/Makefile index ce92baa..0b3d6e5 100644 --- a/contrib/dict_xsyn/Makefile +++ b/contrib/dict_xsyn/Makefile @@ -6,6 +6,7 @@ OBJS = dict_xsyn.o EXTENSION = dict_xsyn DATA = dict_xsyn--1.0.sql dict_xsyn--unpackaged--1.0.sql DATA_TSEARCH = xsyn_sample.rules +PGFILEDESC = "dict_xsyn - Add-on dictionary template for full-text search" REGRESS = dict_xsyn diff --git a/contrib/dummy_seclabel/Makefile b/contrib/dummy_seclabel/Makefile index 105400f..20f86fc 100644 --- a/contrib/dummy_seclabel/Makefile +++ b/contrib/dummy_seclabel/Makefile @@ -1,6 +1,7 @@ # contrib/dummy_seclabel/Makefile MODULES = dummy_seclabel +PGFILEDESC = "dummy_seclabel - Regression testing of the SECURITY LABEL statement" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/earthdistance/Makefile b/contrib/earthdistance/Makefile index 48a7cf8..3a35859 100644 --- a/contrib/earthdistance/Makefile +++ b/contrib/earthdistance/Makefile @@ -4,6 +4,7 @@ MODULES = earthdistance EXTENSION = earthdistance DATA = earthdistance--1.0.sql earthdistance--unpackaged--1.0.sql +PGFILEDESC = "earthdistance - Calculate distances on the surface of the Earth" REGRESS = earthdistance REGRESS_OPTS = --extra-install=contrib/cube diff --git a/contrib/file_fdw/Makefile b/contrib/file_fdw/Makefile index 4616cec..105e34e 100644 --- a/contrib/file_fdw/Makefile +++ b/contrib/file_fdw/Makefile @@ -4,6 +4,7 @@ MODULES = file_fdw EXTENSION = file_fdw DATA = file_fdw--1.0.sql +PGFILEDESC = "file_fdw - Foreign-data wrapper for files" REGRESS = file_fdw diff --git a/contrib/fuzzystrmatch/Makefile b/contrib/fuzzystrmatch/Makefile index 834b679..68f8bf2 100644 --- a/contrib/fuzzystrmatch/Makefile +++ b/contrib/fuzzystrmatch/Makefile @@ -5,6 +5,7 @@ OBJS = fuzzystrmatch.o dmetaphone.o EXTENSION = fuzzystrmatch DATA = fuzzystrmatch--1.0.sql fuzzystrmatch--unpackaged--1.0.sql +PGFILEDESC = "fuzzystrmatch - Similarities and distance between strings" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/hstore/Makefile b/contrib/hstore/Makefile index 2b60fbe..98fc304 100644 --- a/contrib/hstore/Makefile +++ b/contrib/hstore/Makefile @@ -8,6 +8,7 @@ EXTENSION = hstore DATA = hstore--1.3.sql hstore--1.2--1.3.sql \ hstore--1.1--1.2.sql hstore--1.0--1.1.sql \ hstore--unpackaged--1.0.sql +PGFILEDESC = "hstore - Data type for key/value pairs" REGRESS = hstore diff --git a/contrib/isn/Makefile b/contrib/isn/Makefile index bd8f193..1c09116 100644 --- a/contrib/isn/Makefile +++ b/contrib/isn/Makefile @@ -4,6 +4,7 @@ MODULES = isn EXTENSION = isn DATA = isn--1.0.sql isn--unpackaged--1.0.sql +PGFILEDESC = "isn - Data types for numbering standards" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/lo/Makefile b/contrib/lo/Makefile index 66b337c..907ccf0 100644 --- a/contrib/lo/Makefile +++ b/contrib/lo/Makefile @@ -4,6 +4,7 @@ MODULES = lo EXTENSION = lo DATA = lo--1.0.sql lo--unpackaged--1.0.sql +PGFILEDESC = "lo - Management for large objects" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/ltree/Makefile b/contrib/ltree/Makefile index 65d42f8..a90d045 100644 --- a/contrib/ltree/Makefile +++ b/contrib/ltree/Makefile @@ -7,6 +7,7 @@ PG_CPPFLAGS = -DLOWER_NODE EXTENSION = ltree DATA = ltree--1.0.sql ltree--unpackaged--1.0.sql +PGFILEDESC = "ltree - Data type for representing labels of data stored" REGRESS = ltree diff --git a/contrib/pageinspect/Makefile b/contrib/pageinspect/Makefile index ee78cb2..c96140f 100644 --- a/contrib/pageinspect/Makefile +++ b/contrib/pageinspect/Makefile @@ -6,6 +6,7 @@ OBJS = rawpage.o heapfuncs.o btreefuncs.o fsmfuncs.o EXTENSION = pageinspect DATA = pageinspect--1.2.sql pageinspect--1.0--1.1.sql \ pageinspect--1.1--1.2.sql pageinspect--unpackaged--1.0.sql +PGFILEDESC = "pageinspect - Functions to inspect contents of database pages" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/passwordcheck/Makefile b/contrib/passwordcheck/Makefile index 4829bfd..2cb4656 100644 --- a/contrib/passwordcheck/Makefile +++ b/contrib/passwordcheck/Makefile @@ -2,6 +2,7 @@ MODULE_big = passwordcheck OBJS = passwordcheck.o +PGFILEDESC = "passwordcheck - Strengthen user password checks" # uncomment the following two lines to enable cracklib support # PG_CPPFLAGS = -DUSE_CRACKLIB '-DCRACKLIB_DICTPATH="/usr/lib/cracklib_dict"' diff --git a/contrib/pg_buffercache/Makefile b/contrib/pg_buffercache/Makefile index 323c0ac..da18231 100644 --- a/contrib/pg_buffercache/Makefile +++ b/contrib/pg_buffercache/Makefile @@ -5,6 +5,7 @@ OBJS = pg_buffercache_pages.o EXTENSION = pg_buffercache DATA = pg_buffercache--1.0.sql pg_buffercache--unpackaged--1.0.sql +PGFILEDESC = "pg_buffercache - Monitoring of shared buffer cache in real-time" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_freespacemap/Makefile b/contrib/pg_freespacemap/Makefile index b2e3ba3..2bb50d7 100644 --- a/contrib/pg_freespacemap/Makefile +++ b/contrib/pg_freespacemap/Makefile @@ -5,6 +5,7 @@ OBJS = pg_freespacemap.o EXTENSION = pg_freespacemap DATA = pg_freespacemap--1.0.sql pg_freespacemap--unpackaged--1.0.sql +PGFILEDESC = "pg_freespacemap - Monitoring of free space map" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_prewarm/Makefile b/contrib/pg_prewarm/Makefile index 176a29a..cdfec0d 100644 --- a/contrib/pg_prewarm/Makefile +++ b/contrib/pg_prewarm/Makefile @@ -5,6 +5,7 @@ OBJS = pg_prewarm.o EXTENSION = pg_prewarm DATA = pg_prewarm--1.0.sql +PGFILEDESC = "pg_prewarm - Preload relation data into system buffer cache" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_stat_statements/Makefile b/contrib/pg_stat_statements/Makefile index 95a2767..70910e5 100644 --- a/contrib/pg_stat_statements/Makefile +++ b/contrib/pg_stat_statements/Makefile @@ -6,6 +6,7 @@ OBJS = pg_stat_statements.o EXTENSION = pg_stat_statements DATA = pg_stat_statements--1.2.sql pg_stat_statements--1.1--1.2.sql \ pg_stat_statements--1.0--1.1.sql pg_stat_statements--unpackaged--1.0.sql +PGFILEDESC = "pg_stat_statements - Execution statistics of SQL statements" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_trgm/Makefile b/contrib/pg_trgm/Makefile index 0d549f8..cafef1e 100644 --- a/contrib/pg_trgm/Makefile +++ b/contrib/pg_trgm/Makefile @@ -5,6 +5,7 @@ OBJS = trgm_op.o trgm_gist.o trgm_gin.o trgm_regexp.o EXTENSION = pg_trgm DATA = pg_trgm--1.1.sql pg_trgm--1.0--1.1.sql pg_trgm--unpackaged--1.0.sql +PGFILEDESC = "pg_trgm - Trigram matching" REGRESS = pg_trgm diff --git a/contrib/pgcrypto/Makefile b/contrib/pgcrypto/Makefile index 1c85c98..6874dbf 100644 --- a/contrib/pgcrypto/Makefile +++ b/contrib/pgcrypto/Makefile @@ -27,6 +27,7 @@ OBJS = $(SRCS:.c=.o) EXTENSION = pgcrypto DATA = pgcrypto--1.1.sql pgcrypto--1.0--1.1.sql pgcrypto--unpackaged--1.0.sql +PGFILEDESC = "pgcrypto - Cryptographic functions" REGRESS = init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \ $(CF_TESTS) \ diff --git a/contrib/pgrowlocks/Makefile b/contrib/pgrowlocks/Makefile index fe80423..23ed97a 100644 --- a/contrib/pgrowlocks/Makefile +++ b/contrib/pgrowlocks/Makefile @@ -5,6 +5,7 @@ OBJS = pgrowlocks.o EXTENSION = pgrowlocks DATA = pgrowlocks--1.1.sql pgrowlocks--1.0--1.1.sql pgrowlocks--unpackaged--1.0.sql +PGFILEDESC = "pgrowlocks - Display row locking information" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pgstattuple/Makefile b/contrib/pgstattuple/Makefile index d991c3a..a12ad59 100644 --- a/contrib/pgstattuple/Makefile +++ b/contrib/pgstattuple/Makefile @@ -5,6 +5,7 @@ OBJS = pgstattuple.o pgstatindex.o EXTENSION = pgstattuple DATA = pgstattuple--1.2.sql pgstattuple--1.1--1.2.sql pgstattuple--1.0--1.1.sql pgstattuple--unpackaged--1.0.sql +PGFILEDESC = "pgstattuple - Tuple-level statistics" REGRESS = pgstattuple diff --git a/contrib/postgres_fdw/Makefile b/contrib/postgres_fdw/Makefile index 8c49720..182f742 100644 --- a/contrib/postgres_fdw/Makefile +++ b/contrib/postgres_fdw/Makefile @@ -2,6 +2,7 @@ MODULE_big = postgres_fdw OBJS = postgres_fdw.o option.o deparse.o connection.o +PGFILEDESC = "postgres_fdw - Foreign data wrapper for PostgreSQL" PG_CPPFLAGS = -I$(libpq_srcdir) SHLIB_LINK = $(libpq) diff --git a/contrib/seg/Makefile b/contrib/seg/Makefile index fb9c576..f523265 100644 --- a/contrib/seg/Makefile +++ b/contrib/seg/Makefile @@ -5,6 +5,7 @@ OBJS = seg.o segparse.o EXTENSION = seg DATA = seg--1.0.sql seg--unpackaged--1.0.sql +PGFILEDESC = "seg - Representation of line segments" REGRESS = seg diff --git a/contrib/sepgsql/Makefile b/contrib/sepgsql/Makefile index ff3a61d..f73e8b6 100644 --- a/contrib/sepgsql/Makefile +++ b/contrib/sepgsql/Makefile @@ -4,6 +4,7 @@ MODULE_big = sepgsql OBJS = hooks.o selinux.o uavc.o label.o dml.o \ database.o schema.o relation.o proc.o DATA_built = sepgsql.sql +PGFILEDESC = "sepgsql - Module for SELinux security policy" # Note: because we don't tell the Makefile there are any regression tests, # we have to clean those result files explicitly diff --git a/contrib/spi/Makefile b/contrib/spi/Makefile index 0c11bfc..10ab5bb 100644 --- a/contrib/spi/Makefile +++ b/contrib/spi/Makefile @@ -9,6 +9,7 @@ DATA = autoinc--1.0.sql autoinc--unpackaged--1.0.sql \ moddatetime--1.0.sql moddatetime--unpackaged--1.0.sql \ refint--1.0.sql refint--unpackaged--1.0.sql \ timetravel--1.0.sql timetravel--unpackaged--1.0.sql +PGFILEDESC = "spi - examples of using SPI and triggers" DOCS = $(addsuffix .example, $(MODULES)) diff --git a/contrib/sslinfo/Makefile b/contrib/sslinfo/Makefile index 0dee6ed..faa297a 100644 --- a/contrib/sslinfo/Makefile +++ b/contrib/sslinfo/Makefile @@ -5,6 +5,7 @@ OBJS = sslinfo.o EXTENSION = sslinfo DATA = sslinfo--1.0.sql sslinfo--unpackaged--1.0.sql +PGFILEDESC = "sslinfo - Informations about SSL certificates" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/tablefunc/Makefile b/contrib/tablefunc/Makefile index eb10893..d566352 100644 --- a/contrib/tablefunc/Makefile +++ b/contrib/tablefunc/Makefile @@ -4,6 +4,7 @@ MODULES = tablefunc EXTENSION = tablefunc DATA = tablefunc--1.0.sql tablefunc--unpackaged--1.0.sql +PGFILEDESC = "tablefunc - Some functions returning tables" REGRESS = tablefunc diff --git a/contrib/tcn/Makefile b/contrib/tcn/Makefile index 7bac5e3..d10929e 100644 --- a/contrib/tcn/Makefile +++ b/contrib/tcn/Makefile @@ -4,6 +4,7 @@ MODULES = tcn EXTENSION = tcn DATA = tcn--1.0.sql +PGFILEDESC = "tcn - Trigger function notifying listeners" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/test_decoding/Makefile b/contrib/test_decoding/Makefile index 685986c..4f44438 100644 --- a/contrib/test_decoding/Makefile +++ b/contrib/test_decoding/Makefile @@ -2,6 +2,7 @@ MODULES = test_decoding OBJS = test_decoding.o +PGFILEDESC = "test_decoding - Example of a logical decoding output plugin" # Note: because we don't tell the Makefile there are any regression tests, # we have to clean those result files explicitly diff --git a/contrib/test_parser/Makefile b/contrib/test_parser/Makefile index b9766cb..855a84b 100644 --- a/contrib/test_parser/Makefile +++ b/contrib/test_parser/Makefile @@ -2,6 +2,7 @@ MODULE_big = test_parser OBJS = test_parser.o +PGFILEDESC = "test_parser - Example of a custom parser for full-text search" EXTENSION = test_parser DATA = test_parser--1.0.sql test_parser--unpackaged--1.0.sql diff --git a/contrib/test_shm_mq/Makefile b/contrib/test_shm_mq/Makefile index 5e5ac1c..123d016 100644 --- a/contrib/test_shm_mq/Makefile +++ b/contrib/test_shm_mq/Makefile @@ -2,6 +2,7 @@ MODULE_big = test_shm_mq OBJS = test.o setup.o worker.o +PGFILEDESC = "test_shm_mq - Example of memory message queue facilities" EXTENSION = test_shm_mq DATA = test_shm_mq--1.0.sql diff --git a/contrib/tsearch2/Makefile b/contrib/tsearch2/Makefile index d260fd0..b561ad0 100644 --- a/contrib/tsearch2/Makefile +++ b/contrib/tsearch2/Makefile @@ -4,6 +4,7 @@ MODULES = tsearch2 EXTENSION = tsearch2 DATA = tsearch2--1.0.sql tsearch2--unpackaged--1.0.sql +PGFILEDESC = "tsearch2 - Backward-compatible text search functionalities" REGRESS = tsearch2 diff --git a/contrib/unaccent/Makefile b/contrib/unaccent/Makefile index f0be62d..fe4848d 100644 --- a/contrib/unaccent/Makefile +++ b/contrib/unaccent/Makefile @@ -6,6 +6,7 @@ OBJS = unaccent.o EXTENSION = unaccent DATA = unaccent--1.0.sql unaccent--unpackaged--1.0.sql DATA_TSEARCH = unaccent.rules +PGFILEDESC = "unaccent - Text search dictionary that removes accents" REGRESS = unaccent diff --git a/contrib/uuid-ossp/Makefile b/contrib/uuid-ossp/Makefile index 9b2d2e3..c573005 100644 --- a/contrib/uuid-ossp/Makefile +++ b/contrib/uuid-ossp/Makefile @@ -5,6 +5,7 @@ OBJS = uuid-ossp.o EXTENSION = uuid-ossp DATA = uuid-ossp--1.0.sql uuid-ossp--unpackaged--1.0.sql +PGFILEDESC = "uuid-ossp - Generation of UUIDs" SHLIB_LINK += $(OSSP_UUID_LIBS) diff --git a/contrib/worker_spi/Makefile b/contrib/worker_spi/Makefile index fbb29b4..97f10ef 100644 --- a/contrib/worker_spi/Makefile +++ b/contrib/worker_spi/Makefile @@ -4,6 +4,7 @@ MODULES = worker_spi EXTENSION = worker_spi DATA = worker_spi--1.0.sql +PGFILEDESC = "worker_spi - Background worker example" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/xml2/Makefile b/contrib/xml2/Makefile index be3d018..d0ce896 100644 --- a/contrib/xml2/Makefile +++ b/contrib/xml2/Makefile @@ -5,6 +5,7 @@ OBJS = xpath.o xslt_proc.o EXTENSION = xml2 DATA = xml2--1.0.sql xml2--unpackaged--1.0.sql +PGFILEDESC = "xml2 - XPath querying and XSLT functionality" REGRESS = xml2 diff --git a/src/backend/replication/libpqwalreceiver/Makefile b/src/backend/replication/libpqwalreceiver/Makefile index 774adaa..815e08e 100644 --- a/src/backend/replication/libpqwalreceiver/Makefile +++ b/src/backend/replication/libpqwalreceiver/Makefile @@ -17,6 +17,7 @@ override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS) OBJS = libpqwalreceiver.o SHLIB_LINK = $(libpq) SHLIB_PREREQS = submake-libpq +PGFILEDESC = "libpqwalreceiver - WAL receiver library" NAME = libpqwalreceiver all: all-shared-lib diff --git a/src/backend/snowball/Makefile b/src/backend/snowball/Makefile index ac80efe..f8ce94f 100644 --- a/src/backend/snowball/Makefile +++ b/src/backend/snowball/Makefile @@ -73,6 +73,8 @@ DICTDIR=tsearch_data VPATH += $(srcdir)/libstemmer +PGFILEDESC = "Snowball - Dictionary" + NAME := dict_snowball rpath = diff --git a/src/interfaces/ecpg/compatlib/Makefile b/src/interfaces/ecpg/compatlib/Makefile index 84021ac..c1762b3 100644 --- a/src/interfaces/ecpg/compatlib/Makefile +++ b/src/interfaces/ecpg/compatlib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/compatlib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG compat - Compatibility Library for ECPG" NAME= ecpg_compat SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 6 diff --git a/src/interfaces/ecpg/ecpglib/Makefile b/src/interfaces/ecpg/ecpglib/Makefile index ae4474f..cb4b128 100644 --- a/src/interfaces/ecpg/ecpglib/Makefile +++ b/src/interfaces/ecpg/ecpglib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/ecpglib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG - Embedded SQL in C" NAME= ecpg SO_MAJOR_VERSION= 6 SO_MINOR_VERSION= 6 diff --git a/src/interfaces/ecpg/pgtypeslib/Makefile b/src/interfaces/ecpg/pgtypeslib/Makefile index 6b490a7..fe3de27 100644 --- a/src/interfaces/ecpg/pgtypeslib/Makefile +++ b/src/interfaces/ecpg/pgtypeslib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/pgtypeslib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "pgtypes - Library for data type mapping" NAME= pgtypes SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 5 diff --git a/src/interfaces/ecpg/test/Makefile b/src/interfaces/ecpg/test/Makefile index d359fce..0befee3 100644 --- a/src/interfaces/ecpg/test/Makefile +++ b/src/interfaces/ecpg/test/Makefile @@ -13,6 +13,8 @@ override CPPFLAGS := \ '-DDLSUFFIX="$(DLSUFFIX)"' \ $(CPPFLAGS) +PGFILEDESC = "ECPG Test - Regression tests for ECPG" + # where to find psql for testing an existing installation PSQLDIR = $(bindir) diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile index 1e800a3..831da22 100644 --- a/src/pl/plperl/GNUmakefile +++ b/src/pl/plperl/GNUmakefile @@ -26,6 +26,7 @@ override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE rpathdir = $(perl_archlibexp)/CORE +PGFILEDESC = "PL/Perl - Perl Procedural Language" NAME = plperl diff --git a/src/pl/plpgsql/src/Makefile b/src/pl/plpgsql/src/Makefile index 852b0c7..2ddbefb 100644 --- a/src/pl/plpgsql/src/Makefile +++ b/src/pl/plpgsql/src/Makefile @@ -10,6 +10,8 @@ subdir = src/pl/plpgsql/src top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "PL/pgSQL - SQL Procedural Language" + # Shared library parameters NAME= plpgsql diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index 46d2030..1fc1f58 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -35,6 +35,8 @@ override CPPFLAGS := -I. -I$(srcdir) $(python_includespec) $(CPPFLAGS) rpathdir = $(python_libdir) +PGFILEDESC = "PL/Python - Python Procedural Language" + NAME = plpython$(python_majorversion) OBJS = \ diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index 2ab2a27..70333e7 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -34,6 +34,7 @@ ifneq ($(PORTNAME), win32) SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS) -lc endif +PGFILEDESC = "PL/Tcl - Tcl Procedural Language" NAME = pltcl diff --git a/src/test/isolation/Makefile b/src/test/isolation/Makefile index 26bcf22..d3135c3 100644 --- a/src/test/isolation/Makefile +++ b/src/test/isolation/Makefile @@ -6,6 +6,8 @@ subdir = src/test/isolation top_builddir = ../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "isolation - Regression tests for isolation" + # where to find psql for testing an existing installation PSQLDIR = $(bindir) diff --git a/src/test/regress/GNUmakefile b/src/test/regress/GNUmakefile index b084e0a..8189db8 100644 --- a/src/test/regress/GNUmakefile +++ b/src/test/regress/GNUmakefile @@ -14,6 +14,8 @@ subdir = src/test/regress top_builddir = ../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "regress - Regression test for PostgreSQL server" + # file with extra config for temp build TEMP_CONF = ifdef TEMP_CONFIG diff --git a/src/timezone/Makefile b/src/timezone/Makefile index ef739e9..97b3272 100644 --- a/src/timezone/Makefile +++ b/src/timezone/Makefile @@ -12,6 +12,8 @@ subdir = src/timezone top_builddir = ../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "timezone - Timezone Library" + # files to build into backend OBJS= localtime.o strftime.o pgtz.o
20140425_pgfiledesc_cvprocs.patch (text/plain, 12.7K) download commit f55c940991495b771d1846729dfb7587c1df26d5 Author: Michael Paquier <michael@otacoo.com> Date: Fri Apr 25 11:11:31 2014 +0900 Add PGFILEDESC for all conversion_procs modules diff --git a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile index d71ca16..26f0c05 100644 --- a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = ascii_and_mic +PGFILEDESC = "ascii_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile index 78c384a..933fa15 100644 --- a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = cyrillic_and_mic +PGFILEDESC = "cyrillic_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile index 199e655..7f31e94 100644 --- a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc2004_sjis2004 +PGFILEDESC = "euc2004_sjis2004" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile index a740656..df511e4 100644 --- a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_cn_and_mic +PGFILEDESC = "euc_cn_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile index fa167e9..aa1eb51 100644 --- a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_jp_and_sjis +PGFILEDESC = "euc_jp_and_sjis" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile index 5ce5548..c99a115 100644 --- a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_kr_and_mic +PGFILEDESC = "euc_kr_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile index 7625435..e45d69d 100644 --- a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile @@ -8,6 +8,7 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_tw_and_big5 +PGFILEDESC = "euc_tw_and_big5" SRCS += big5.c OBJS += big5.o diff --git a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile index 7587b66..21a61aa 100644 --- a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin2_and_win1250 +PGFILEDESC = "latin2_and_win1250" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile index ec88740..976ce15 100644 --- a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin_and_mic +PGFILEDESC = "latin_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile index a4b1b3f..cd31b40 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_ascii +PGFILEDESC = "utf8_and_ascii" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile index df72836..50c2bd4 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_big5 +PGFILEDESC = "utf8_and_big5" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile index 410037c..941b946 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_cyrillic +PGFILEDESC = "utf8_and_cyrillic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile index 58c513a..ef239f1 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc2004 +PGFILEDESC = "utf8_and_euc2004" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile index 053162e..7df9e53 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_cn +PGFILEDESC = "utf8_and_euc_cn" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile index 6a7678d..384391c 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_jp +PGFILEDESC = "utf8_and_euc_jp" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile index 13935ab..7bf52d1 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_kr +PGFILEDESC = "utf8_and_euc_kr" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile index 7b9b833..6cf2764 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_tw +PGFILEDESC = "utf8_and_euc_tw" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile index 1fb3e5a..a31aaff 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gb18030 +PGFILEDESC = "utf8_and_gb18030" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile index 240fe14..6430d40 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gbk +PGFILEDESC = "utf8_and_gbk" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile index c02323e..a268ac8 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859 +PGFILEDESC = "utf8_and_iso8859" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile index c2fac2e..766ab31 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859_1 +PGFILEDESC = "utf8_and_iso8859_1" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile index bdd39fb..fc47e99 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_johab +PGFILEDESC = "utf8_and_johab" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile index 7f4dd0c..4e0fd86 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis +PGFILEDESC = "utf8_and_sjis" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile index ed0bfde..c96fd0e 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis2004 +PGFILEDESC = "utf8_and_sjis2004" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile index 5c09c7e..b7bb518 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_uhc +PGFILEDESC = "utf8_and_uhc" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile index 31c510b..097b242 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_win +PGFILEDESC = "utf8_and_win" include $(srcdir)/../proc.mk
^ permalink raw reply [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-06-20 12:02  MauMau <maumau307@gmail.com>
  parent: Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 25+ messages in thread

From: MauMau @ 2014-06-20 12:02 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; Magnus Hagander <magnus@hagander.net>; +Cc: pgsql-bugs

From: "Michael Paquier" <michael.paquier@gmail.com>
> Patch 1 should be definitely applied, that's an existing bug. Patch 2
> and 3 are here to ensure that all the dll/exe files generated have a
> version number associated with a build on Windows, something
> particularly useful for upgrades, and important for consistency among
> files...

+1 for all these three patches.  There seems to be a few issues.


(1)
The patches applied cleanly, but the build failed.  I used MSVC 2008 
Express.  build.bat output the following messages at the end.  I'm sorry the 
messages are in Japanese; the compiler didn't emit English messages even 
when I switched the code page with chcp.

--------------------------------------------------
...
  cl : コマンド ライン warning D9024: ソースファイルの種類 
'.\src\timezone\win32ver.rc' は認識できませんでした。オブジェクト ファイルと仮定します。
  cl : コマンド ライン warning D9027: ソースファイル 
'.\src\timezone\win32ver.rc' は無視されます。
  cl : コマンド ライン warning D9021: 何も実行されませんでした


"D:\postgresql-9.4\pgsql.sln" (既定のターゲット) (1) ->
(postgres ターゲット) ->
  LINK : fatal error LNK1104: ファイル 
'.\release\postgres\src_timezone_win32ver.obj' を開くことができません。

    6 警告
    1 エラー

経過時間 00:06:19.96
--------------------------------------------------


The cause seems to be the following part in postgres.vcproj. 
src\timezone\win32ver.rc entry is present, while it's not without the 
patches.

--------------------------------------------------
    <File RelativePath="src\timezone\strftime.c" />
    <File RelativePath="src\timezone\win32ver.rc"><FileConfiguration 
Name="Debug|Win32"><Tool Name="VCCLCompilerTool" 
ObjectFile=".\debug\postgres\src_timezone_win32ver.obj" 
/></FileConfiguration><FileConfiguration Name="Release|Win32"><Tool 
Name="VCCLCompilerTool" 
ObjectFile=".\release\postgres\src_timezone_win32ver.obj" 
/></FileConfiguration></File>
   </Filter>
  </Filter>
 </Files>
 <Globals/>
</VisualStudioProject>
--------------------------------------------------


(2)
The line in contrib/adminpack/Makefile has one extra space after "-".  Other 
contribs have one space there.

PGFILEDESC = "adminpack -  Support functions for pgAdmin"


(3)
Makefiles in contrib/int_agg and contrib/intarray do not have PGFILEDESC.



(4)
Some existing Makefiles should have better description.  If you find it 
appropriate to include the improvements in your patch, could you improve the 
description?

* src/bin/pg_basebackup/Makefile has the line:

PGFILEDESC = "pg_basebackup - takes a streaming base backup of a PostgreSQL 
instance"

On the other hand, src/bin/pg_dump/Makefile has:

PGFILEDESC = "pg_dump/pg_restore/pg_dumpall - backup and restore PostgreSQL 
databases"

I think pg_basebackup's Makefile should follow the style of pg_dump, because 
multiple programs are built in pg_basebackup/.

* contrib/pg_xlogdump/Makefile lacks the command description.

PGFILEDESC = "pg_xlogdump"

Regards
MauMau



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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-06-20 14:17  Michael Paquier <michael.paquier@gmail.com>
  parent: MauMau <maumau307@gmail.com>
  0 siblings, 1 reply; 25+ messages in thread

From: Michael Paquier @ 2014-06-20 14:17 UTC (permalink / raw)
  To: MauMau <maumau307@gmail.com>; +Cc: Magnus Hagander <magnus@hagander.net>; pgsql-bugs

On Fri, Jun 20, 2014 at 9:02 PM, MauMau <maumau307@gmail.com> wrote:
> From: "Michael Paquier" <michael.paquier@gmail.com>
>> Patch 1 should be definitely applied, that's an existing bug. Patch 2
>> and 3 are here to ensure that all the dll/exe files generated have a
>> version number associated with a build on Windows, something
>> particularly useful for upgrades, and important for consistency among
>> files...
> +1 for all these three patches.  There seems to be a few issues.
Thanks for taking the time to look at those patches.

> (1)
> The patches applied cleanly, but the build failed.  I used MSVC 2008
> Express.  build.bat output the following messages at the end.  I'm sorry the
> messages are in Japanese; the compiler didn't emit English messages even
> when I switched the code page with chcp.
Thanks, at least I'm fine on this field :)

> "D:\postgresql-9.4\pgsql.sln" ($B4{Dj$N%?!<%2%C%H(B) (1) ->
> (postgres $B%?!<%2%C%H(B) ->
>  LINK : fatal error LNK1104: $B%U%!%$%k(B
> '.\release\postgres\src_timezone_win32ver.obj' $B$r3+$/$3$H$,$G$-$^$;$s!#(B
>
>    6 $B7Y9p(B
>    1 $B%(%i!<(B
>
> $B7P2a;~4V(B 00:06:19.96
> --------------------------------------------------
> The cause seems to be the following part in postgres.vcproj.
> src\timezone\win32ver.rc entry is present, while it's not without the
> patches.
Interesting to see build failing because of that, this is caused by
the addition of PGFILEDESC in src/timezone/Makefile. Note that I found
something similar with snowball as postgres already includes it,
making a similar conflict with the rc file inclusions. Btw, in the new
patch attached I have removed both of them for the time being, and
build worked fine. This results in dict_snowball.dll not to be
versioned though. At the same time, I am removing as well the
versioning of the regression stuff in src/test/* (isolation, regress)
as they are not mandatory to have for the server and the client
binaries/libs. I also noticed that the dlls of conversion_procs were
not versioned correctly as well, problem fixed in the new patch,

Globally, we could do a better effort in versioning for
dict_snowball.dll, however I'd rather see that in another patch as it
would need some more manipulation of Mkvcbuild.pm & co, and current
patch already improves versioning for a bunch of files already..

> (2)
> The line in contrib/adminpack/Makefile has one extra space after "-".  Other
> contribs have one space there.
>
> PGFILEDESC = "adminpack -  Support functions for pgAdmin"
Fixed.

> (3)
> Makefiles in contrib/int_agg and contrib/intarray do not have PGFILEDESC.
Fixed. I clearly missed them

> (4)
> Some existing Makefiles should have better description.  If you find it
> appropriate to include the improvements in your patch, could you improve the
> description?
>
> * src/bin/pg_basebackup/Makefile has the line:
>
> PGFILEDESC = "pg_basebackup - takes a streaming base backup of a PostgreSQL
> instance"
>
> On the other hand, src/bin/pg_dump/Makefile has:
>
> PGFILEDESC = "pg_dump/pg_restore/pg_dumpall - backup and restore PostgreSQL
> databases"
>
> I think pg_basebackup's Makefile should follow the style of pg_dump, because
> multiple programs are built in pg_basebackup/.
That's an excellent suggestion. Done. This could be done as a separate
patch, master branch and even back branches are missing the shot.

> * contrib/pg_xlogdump/Makefile lacks the command description.
>
> PGFILEDESC = "pg_xlogdump"
Done.

For the sake of the archives, I have been using the following vbscript
to check if a dll/exe has a version number attached:
Set args = WScript.Arguments
Set objFSO = CreateObject("Scripting.FileSystemObject")
Wscript.Echo objFSO.GetFileVersion(args.Item(0))

Then it is only a matter to run it like that:
cscript /nologo my_script.vbs file_to_check.exe

Regards,
-- 
Michael

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

Attachments: download all (2 files, .tar.gz)

0001-Add-AddDir-calls-for-contrib.patch (text/x-patch, 1.1K) download From a491755ebcce62b9f9716868a031c6d552a8e352 Mon Sep 17 00:00:00 2001 From: Michael Paquier <michael@otacoo.com> Date: Fri, 25 Apr 2014 08:58:16 +0900 Subject: [PATCH 1/2] Add AddDir calls for contrib/ --- src/tools/msvc/Mkvcbuild.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index 8002f23..0377772 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -658,6 +658,7 @@ sub AddContrib $proj->AddFile('contrib\\' . $n . '\\' . $o); } $proj->AddReference($postgres); + $proj->AddDir('contrib\\' . $n); if ($mf =~ /^SUBDIRS\s*:?=\s*(.*)$/mg) { foreach my $d (split /\s+/, $1) @@ -685,6 +686,7 @@ sub AddContrib { my $proj = $solution->AddProject($mod, 'dll', 'contrib'); $proj->AddFile('contrib\\' . $n . '\\' . $mod . '.c'); + $proj->AddDir('contrib\\' . $n); $proj->AddReference($postgres); AdjustContribProj($proj); } @@ -702,6 +704,7 @@ sub AddContrib $o =~ s/\.o$/.c/; $proj->AddFile('contrib\\' . $n . '\\' . $o); } + $proj->AddDir('contrib\\' . $n); AdjustContribProj($proj); } else -- 2.0.0
0002-Add-file-versioning-for-all-core-dll-and-exe-in-MSVC.patch (text/x-patch, 41.9K) download From ce0aa8e31679790b62e00ca3e20d2e70ed2bfad8 Mon Sep 17 00:00:00 2001 From: Michael Paquier <michael@otacoo.com> Date: Fri, 20 Jun 2014 22:54:55 +0900 Subject: [PATCH 2/2] Add file versioning for all core dll and exe in MSVC builds This includes the following files: - things in contrib/ - things in backend/utils/mb/conversion_procs/ - ecpg stuff - PL language libraries - replication libraries --- contrib/adminpack/Makefile | 1 + contrib/auth_delay/Makefile | 1 + contrib/auto_explain/Makefile | 1 + contrib/btree_gin/Makefile | 1 + contrib/btree_gist/Makefile | 1 + contrib/chkpass/Makefile | 1 + contrib/citext/Makefile | 1 + contrib/cube/Makefile | 1 + contrib/dblink/Makefile | 1 + contrib/dict_int/Makefile | 1 + contrib/dict_xsyn/Makefile | 1 + contrib/dummy_seclabel/Makefile | 1 + contrib/earthdistance/Makefile | 1 + contrib/file_fdw/Makefile | 1 + contrib/fuzzystrmatch/Makefile | 1 + contrib/hstore/Makefile | 1 + contrib/intagg/Makefile | 1 + contrib/intarray/Makefile | 1 + contrib/isn/Makefile | 1 + contrib/lo/Makefile | 1 + contrib/ltree/Makefile | 1 + contrib/pageinspect/Makefile | 1 + contrib/passwordcheck/Makefile | 1 + contrib/pg_buffercache/Makefile | 1 + contrib/pg_freespacemap/Makefile | 1 + contrib/pg_prewarm/Makefile | 1 + contrib/pg_stat_statements/Makefile | 1 + contrib/pg_trgm/Makefile | 1 + contrib/pg_xlogdump/Makefile | 2 +- contrib/pgcrypto/Makefile | 1 + contrib/pgrowlocks/Makefile | 1 + contrib/pgstattuple/Makefile | 1 + contrib/postgres_fdw/Makefile | 1 + contrib/seg/Makefile | 1 + contrib/sepgsql/Makefile | 1 + contrib/spi/Makefile | 1 + contrib/sslinfo/Makefile | 1 + contrib/tablefunc/Makefile | 1 + contrib/tcn/Makefile | 1 + contrib/test_decoding/Makefile | 1 + contrib/test_parser/Makefile | 1 + contrib/test_shm_mq/Makefile | 1 + contrib/tsearch2/Makefile | 1 + contrib/unaccent/Makefile | 1 + contrib/uuid-ossp/Makefile | 1 + contrib/worker_spi/Makefile | 1 + contrib/xml2/Makefile | 1 + src/backend/replication/libpqwalreceiver/Makefile | 1 + src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile | 1 + src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile | 1 + src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile | 1 + src/bin/pg_basebackup/Makefile | 2 +- src/interfaces/ecpg/compatlib/Makefile | 1 + src/interfaces/ecpg/ecpglib/Makefile | 1 + src/interfaces/ecpg/pgtypeslib/Makefile | 1 + src/interfaces/ecpg/test/Makefile | 2 ++ src/pl/plperl/GNUmakefile | 1 + src/pl/plpgsql/src/Makefile | 2 ++ src/pl/plpython/Makefile | 2 ++ src/pl/tcl/Makefile | 1 + src/tools/msvc/Mkvcbuild.pm | 1 + 84 files changed, 87 insertions(+), 2 deletions(-) diff --git a/contrib/adminpack/Makefile b/contrib/adminpack/Makefile index 5cbc8f0..6122599 100644 --- a/contrib/adminpack/Makefile +++ b/contrib/adminpack/Makefile @@ -6,6 +6,7 @@ PG_CPPFLAGS = -I$(libpq_srcdir) EXTENSION = adminpack DATA = adminpack--1.0.sql +PGFILEDESC = "adminpack - Support functions for pgAdmin" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/auth_delay/Makefile b/contrib/auth_delay/Makefile index 09d2d54..8a96bd4 100644 --- a/contrib/auth_delay/Makefile +++ b/contrib/auth_delay/Makefile @@ -1,6 +1,7 @@ # contrib/auth_delay/Makefile MODULES = auth_delay +PGFILEDESC = "auth_delay - Delay authentication failure reports" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/auto_explain/Makefile b/contrib/auto_explain/Makefile index 2d1443f..0eb8346 100644 --- a/contrib/auto_explain/Makefile +++ b/contrib/auto_explain/Makefile @@ -2,6 +2,7 @@ MODULE_big = auto_explain OBJS = auto_explain.o +PGFILEDESC = "auto_explain - Logging facility for execution plans" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/btree_gin/Makefile b/contrib/btree_gin/Makefile index 09fd3e6..fcf7cba 100644 --- a/contrib/btree_gin/Makefile +++ b/contrib/btree_gin/Makefile @@ -5,6 +5,7 @@ OBJS = btree_gin.o EXTENSION = btree_gin DATA = btree_gin--1.0.sql btree_gin--unpackaged--1.0.sql +PGFILEDESC = "btree_gin - B-Tree equivalent GIN operator classes" REGRESS = install_btree_gin int2 int4 int8 float4 float8 money oid \ timestamp timestamptz time timetz date interval \ diff --git a/contrib/btree_gist/Makefile b/contrib/btree_gist/Makefile index ba4af14..45d5931 100644 --- a/contrib/btree_gist/Makefile +++ b/contrib/btree_gist/Makefile @@ -10,6 +10,7 @@ OBJS = btree_gist.o btree_utils_num.o btree_utils_var.o btree_int2.o \ EXTENSION = btree_gist DATA = btree_gist--1.0.sql btree_gist--unpackaged--1.0.sql +PGFILEDESC = "btree_gist - B-Tree equivalent GIST operator classes" REGRESS = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz \ time timetz date interval macaddr inet cidr text varchar char bytea \ diff --git a/contrib/chkpass/Makefile b/contrib/chkpass/Makefile index b775aef..22efe7b 100644 --- a/contrib/chkpass/Makefile +++ b/contrib/chkpass/Makefile @@ -5,6 +5,7 @@ OBJS = chkpass.o EXTENSION = chkpass DATA = chkpass--1.0.sql chkpass--unpackaged--1.0.sql +PGFILEDESC = "chkpass - Data type for storage of encrypted passwords" SHLIB_LINK = $(filter -lcrypt, $(LIBS)) diff --git a/contrib/citext/Makefile b/contrib/citext/Makefile index 6594252..8eddf30 100644 --- a/contrib/citext/Makefile +++ b/contrib/citext/Makefile @@ -4,6 +4,7 @@ MODULES = citext EXTENSION = citext DATA = citext--1.0.sql citext--unpackaged--1.0.sql +PGFILEDESC = "citext - Case-insensitive character string type" REGRESS = citext diff --git a/contrib/cube/Makefile b/contrib/cube/Makefile index b5cd5d0..fba76a5 100644 --- a/contrib/cube/Makefile +++ b/contrib/cube/Makefile @@ -5,6 +5,7 @@ OBJS= cube.o cubeparse.o EXTENSION = cube DATA = cube--1.0.sql cube--unpackaged--1.0.sql +PGFILEDESC = "cube - Data type for multidimensional cube representation" REGRESS = cube diff --git a/contrib/dblink/Makefile b/contrib/dblink/Makefile index 32314a0..58584e1 100644 --- a/contrib/dblink/Makefile +++ b/contrib/dblink/Makefile @@ -8,6 +8,7 @@ SHLIB_PREREQS = submake-libpq EXTENSION = dblink DATA = dblink--1.1.sql dblink--1.0--1.1.sql dblink--unpackaged--1.0.sql +PGFILEDESC = "dblink - Connection facility for PostgreSQL" REGRESS = dblink diff --git a/contrib/dict_int/Makefile b/contrib/dict_int/Makefile index 3a3fc36..030acb7 100644 --- a/contrib/dict_int/Makefile +++ b/contrib/dict_int/Makefile @@ -5,6 +5,7 @@ OBJS = dict_int.o EXTENSION = dict_int DATA = dict_int--1.0.sql dict_int--unpackaged--1.0.sql +PGFILEDESC = "dict_int - Add-on dictionary template for full-text search" REGRESS = dict_int diff --git a/contrib/dict_xsyn/Makefile b/contrib/dict_xsyn/Makefile index ce92baa..0b3d6e5 100644 --- a/contrib/dict_xsyn/Makefile +++ b/contrib/dict_xsyn/Makefile @@ -6,6 +6,7 @@ OBJS = dict_xsyn.o EXTENSION = dict_xsyn DATA = dict_xsyn--1.0.sql dict_xsyn--unpackaged--1.0.sql DATA_TSEARCH = xsyn_sample.rules +PGFILEDESC = "dict_xsyn - Add-on dictionary template for full-text search" REGRESS = dict_xsyn diff --git a/contrib/dummy_seclabel/Makefile b/contrib/dummy_seclabel/Makefile index 105400f..20f86fc 100644 --- a/contrib/dummy_seclabel/Makefile +++ b/contrib/dummy_seclabel/Makefile @@ -1,6 +1,7 @@ # contrib/dummy_seclabel/Makefile MODULES = dummy_seclabel +PGFILEDESC = "dummy_seclabel - Regression testing of the SECURITY LABEL statement" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/earthdistance/Makefile b/contrib/earthdistance/Makefile index 48a7cf8..3a35859 100644 --- a/contrib/earthdistance/Makefile +++ b/contrib/earthdistance/Makefile @@ -4,6 +4,7 @@ MODULES = earthdistance EXTENSION = earthdistance DATA = earthdistance--1.0.sql earthdistance--unpackaged--1.0.sql +PGFILEDESC = "earthdistance - Calculate distances on the surface of the Earth" REGRESS = earthdistance REGRESS_OPTS = --extra-install=contrib/cube diff --git a/contrib/file_fdw/Makefile b/contrib/file_fdw/Makefile index 4616cec..7d637de 100644 --- a/contrib/file_fdw/Makefile +++ b/contrib/file_fdw/Makefile @@ -4,6 +4,7 @@ MODULES = file_fdw EXTENSION = file_fdw DATA = file_fdw--1.0.sql +PGFILEDESC = "file_fdw - Foreign data wrapper for files" REGRESS = file_fdw diff --git a/contrib/fuzzystrmatch/Makefile b/contrib/fuzzystrmatch/Makefile index 834b679..68f8bf2 100644 --- a/contrib/fuzzystrmatch/Makefile +++ b/contrib/fuzzystrmatch/Makefile @@ -5,6 +5,7 @@ OBJS = fuzzystrmatch.o dmetaphone.o EXTENSION = fuzzystrmatch DATA = fuzzystrmatch--1.0.sql fuzzystrmatch--unpackaged--1.0.sql +PGFILEDESC = "fuzzystrmatch - Similarities and distance between strings" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/hstore/Makefile b/contrib/hstore/Makefile index 2b60fbe..98fc304 100644 --- a/contrib/hstore/Makefile +++ b/contrib/hstore/Makefile @@ -8,6 +8,7 @@ EXTENSION = hstore DATA = hstore--1.3.sql hstore--1.2--1.3.sql \ hstore--1.1--1.2.sql hstore--1.0--1.1.sql \ hstore--unpackaged--1.0.sql +PGFILEDESC = "hstore - Data type for key/value pairs" REGRESS = hstore diff --git a/contrib/intagg/Makefile b/contrib/intagg/Makefile index 2cfe997..bf36a61 100644 --- a/contrib/intagg/Makefile +++ b/contrib/intagg/Makefile @@ -2,6 +2,7 @@ EXTENSION = intagg DATA = intagg--1.0.sql intagg--unpackaged--1.0.sql +PGFILEDESC = "intagg - Integer aggregator and numerator" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/intarray/Makefile b/contrib/intarray/Makefile index 71f820e..f322512 100644 --- a/contrib/intarray/Makefile +++ b/contrib/intarray/Makefile @@ -5,6 +5,7 @@ OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o _int_gin.o EXTENSION = intarray DATA = intarray--1.0.sql intarray--unpackaged--1.0.sql +PGFILEDESC = "intarray - Functions and operators for array of integers" REGRESS = _int diff --git a/contrib/isn/Makefile b/contrib/isn/Makefile index bd8f193..1c09116 100644 --- a/contrib/isn/Makefile +++ b/contrib/isn/Makefile @@ -4,6 +4,7 @@ MODULES = isn EXTENSION = isn DATA = isn--1.0.sql isn--unpackaged--1.0.sql +PGFILEDESC = "isn - Data types for numbering standards" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/lo/Makefile b/contrib/lo/Makefile index 66b337c..907ccf0 100644 --- a/contrib/lo/Makefile +++ b/contrib/lo/Makefile @@ -4,6 +4,7 @@ MODULES = lo EXTENSION = lo DATA = lo--1.0.sql lo--unpackaged--1.0.sql +PGFILEDESC = "lo - Management for large objects" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/ltree/Makefile b/contrib/ltree/Makefile index 65d42f8..a90d045 100644 --- a/contrib/ltree/Makefile +++ b/contrib/ltree/Makefile @@ -7,6 +7,7 @@ PG_CPPFLAGS = -DLOWER_NODE EXTENSION = ltree DATA = ltree--1.0.sql ltree--unpackaged--1.0.sql +PGFILEDESC = "ltree - Data type for representing labels of data stored" REGRESS = ltree diff --git a/contrib/pageinspect/Makefile b/contrib/pageinspect/Makefile index ee78cb2..c96140f 100644 --- a/contrib/pageinspect/Makefile +++ b/contrib/pageinspect/Makefile @@ -6,6 +6,7 @@ OBJS = rawpage.o heapfuncs.o btreefuncs.o fsmfuncs.o EXTENSION = pageinspect DATA = pageinspect--1.2.sql pageinspect--1.0--1.1.sql \ pageinspect--1.1--1.2.sql pageinspect--unpackaged--1.0.sql +PGFILEDESC = "pageinspect - Functions to inspect contents of database pages" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/passwordcheck/Makefile b/contrib/passwordcheck/Makefile index 4829bfd..2cb4656 100644 --- a/contrib/passwordcheck/Makefile +++ b/contrib/passwordcheck/Makefile @@ -2,6 +2,7 @@ MODULE_big = passwordcheck OBJS = passwordcheck.o +PGFILEDESC = "passwordcheck - Strengthen user password checks" # uncomment the following two lines to enable cracklib support # PG_CPPFLAGS = -DUSE_CRACKLIB '-DCRACKLIB_DICTPATH="/usr/lib/cracklib_dict"' diff --git a/contrib/pg_buffercache/Makefile b/contrib/pg_buffercache/Makefile index 323c0ac..da18231 100644 --- a/contrib/pg_buffercache/Makefile +++ b/contrib/pg_buffercache/Makefile @@ -5,6 +5,7 @@ OBJS = pg_buffercache_pages.o EXTENSION = pg_buffercache DATA = pg_buffercache--1.0.sql pg_buffercache--unpackaged--1.0.sql +PGFILEDESC = "pg_buffercache - Monitoring of shared buffer cache in real-time" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_freespacemap/Makefile b/contrib/pg_freespacemap/Makefile index b2e3ba3..2bb50d7 100644 --- a/contrib/pg_freespacemap/Makefile +++ b/contrib/pg_freespacemap/Makefile @@ -5,6 +5,7 @@ OBJS = pg_freespacemap.o EXTENSION = pg_freespacemap DATA = pg_freespacemap--1.0.sql pg_freespacemap--unpackaged--1.0.sql +PGFILEDESC = "pg_freespacemap - Monitoring of free space map" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_prewarm/Makefile b/contrib/pg_prewarm/Makefile index 176a29a..cdfec0d 100644 --- a/contrib/pg_prewarm/Makefile +++ b/contrib/pg_prewarm/Makefile @@ -5,6 +5,7 @@ OBJS = pg_prewarm.o EXTENSION = pg_prewarm DATA = pg_prewarm--1.0.sql +PGFILEDESC = "pg_prewarm - Preload relation data into system buffer cache" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_stat_statements/Makefile b/contrib/pg_stat_statements/Makefile index 95a2767..70910e5 100644 --- a/contrib/pg_stat_statements/Makefile +++ b/contrib/pg_stat_statements/Makefile @@ -6,6 +6,7 @@ OBJS = pg_stat_statements.o EXTENSION = pg_stat_statements DATA = pg_stat_statements--1.2.sql pg_stat_statements--1.1--1.2.sql \ pg_stat_statements--1.0--1.1.sql pg_stat_statements--unpackaged--1.0.sql +PGFILEDESC = "pg_stat_statements - Execution statistics of SQL statements" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_trgm/Makefile b/contrib/pg_trgm/Makefile index 0d549f8..cafef1e 100644 --- a/contrib/pg_trgm/Makefile +++ b/contrib/pg_trgm/Makefile @@ -5,6 +5,7 @@ OBJS = trgm_op.o trgm_gist.o trgm_gin.o trgm_regexp.o EXTENSION = pg_trgm DATA = pg_trgm--1.1.sql pg_trgm--1.0--1.1.sql pg_trgm--unpackaged--1.0.sql +PGFILEDESC = "pg_trgm - Trigram matching" REGRESS = pg_trgm diff --git a/contrib/pg_xlogdump/Makefile b/contrib/pg_xlogdump/Makefile index ada261c..a3ba823 100644 --- a/contrib/pg_xlogdump/Makefile +++ b/contrib/pg_xlogdump/Makefile @@ -1,6 +1,6 @@ # contrib/pg_xlogdump/Makefile -PGFILEDESC = "pg_xlogdump" +PGFILEDESC = "pg_xlogdump - Tool to display in readable form WAL contents" PGAPPICON=win32 PROGRAM = pg_xlogdump diff --git a/contrib/pgcrypto/Makefile b/contrib/pgcrypto/Makefile index 1c85c98..6874dbf 100644 --- a/contrib/pgcrypto/Makefile +++ b/contrib/pgcrypto/Makefile @@ -27,6 +27,7 @@ OBJS = $(SRCS:.c=.o) EXTENSION = pgcrypto DATA = pgcrypto--1.1.sql pgcrypto--1.0--1.1.sql pgcrypto--unpackaged--1.0.sql +PGFILEDESC = "pgcrypto - Cryptographic functions" REGRESS = init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \ $(CF_TESTS) \ diff --git a/contrib/pgrowlocks/Makefile b/contrib/pgrowlocks/Makefile index fe80423..23ed97a 100644 --- a/contrib/pgrowlocks/Makefile +++ b/contrib/pgrowlocks/Makefile @@ -5,6 +5,7 @@ OBJS = pgrowlocks.o EXTENSION = pgrowlocks DATA = pgrowlocks--1.1.sql pgrowlocks--1.0--1.1.sql pgrowlocks--unpackaged--1.0.sql +PGFILEDESC = "pgrowlocks - Display row locking information" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pgstattuple/Makefile b/contrib/pgstattuple/Makefile index d991c3a..a12ad59 100644 --- a/contrib/pgstattuple/Makefile +++ b/contrib/pgstattuple/Makefile @@ -5,6 +5,7 @@ OBJS = pgstattuple.o pgstatindex.o EXTENSION = pgstattuple DATA = pgstattuple--1.2.sql pgstattuple--1.1--1.2.sql pgstattuple--1.0--1.1.sql pgstattuple--unpackaged--1.0.sql +PGFILEDESC = "pgstattuple - Tuple-level statistics" REGRESS = pgstattuple diff --git a/contrib/postgres_fdw/Makefile b/contrib/postgres_fdw/Makefile index 8c49720..182f742 100644 --- a/contrib/postgres_fdw/Makefile +++ b/contrib/postgres_fdw/Makefile @@ -2,6 +2,7 @@ MODULE_big = postgres_fdw OBJS = postgres_fdw.o option.o deparse.o connection.o +PGFILEDESC = "postgres_fdw - Foreign data wrapper for PostgreSQL" PG_CPPFLAGS = -I$(libpq_srcdir) SHLIB_LINK = $(libpq) diff --git a/contrib/seg/Makefile b/contrib/seg/Makefile index fb9c576..f523265 100644 --- a/contrib/seg/Makefile +++ b/contrib/seg/Makefile @@ -5,6 +5,7 @@ OBJS = seg.o segparse.o EXTENSION = seg DATA = seg--1.0.sql seg--unpackaged--1.0.sql +PGFILEDESC = "seg - Representation of line segments" REGRESS = seg diff --git a/contrib/sepgsql/Makefile b/contrib/sepgsql/Makefile index ff3a61d..f73e8b6 100644 --- a/contrib/sepgsql/Makefile +++ b/contrib/sepgsql/Makefile @@ -4,6 +4,7 @@ MODULE_big = sepgsql OBJS = hooks.o selinux.o uavc.o label.o dml.o \ database.o schema.o relation.o proc.o DATA_built = sepgsql.sql +PGFILEDESC = "sepgsql - Module for SELinux security policy" # Note: because we don't tell the Makefile there are any regression tests, # we have to clean those result files explicitly diff --git a/contrib/spi/Makefile b/contrib/spi/Makefile index 0c11bfc..10ab5bb 100644 --- a/contrib/spi/Makefile +++ b/contrib/spi/Makefile @@ -9,6 +9,7 @@ DATA = autoinc--1.0.sql autoinc--unpackaged--1.0.sql \ moddatetime--1.0.sql moddatetime--unpackaged--1.0.sql \ refint--1.0.sql refint--unpackaged--1.0.sql \ timetravel--1.0.sql timetravel--unpackaged--1.0.sql +PGFILEDESC = "spi - examples of using SPI and triggers" DOCS = $(addsuffix .example, $(MODULES)) diff --git a/contrib/sslinfo/Makefile b/contrib/sslinfo/Makefile index 0dee6ed..faa297a 100644 --- a/contrib/sslinfo/Makefile +++ b/contrib/sslinfo/Makefile @@ -5,6 +5,7 @@ OBJS = sslinfo.o EXTENSION = sslinfo DATA = sslinfo--1.0.sql sslinfo--unpackaged--1.0.sql +PGFILEDESC = "sslinfo - Informations about SSL certificates" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/tablefunc/Makefile b/contrib/tablefunc/Makefile index eb10893..d566352 100644 --- a/contrib/tablefunc/Makefile +++ b/contrib/tablefunc/Makefile @@ -4,6 +4,7 @@ MODULES = tablefunc EXTENSION = tablefunc DATA = tablefunc--1.0.sql tablefunc--unpackaged--1.0.sql +PGFILEDESC = "tablefunc - Some functions returning tables" REGRESS = tablefunc diff --git a/contrib/tcn/Makefile b/contrib/tcn/Makefile index 7bac5e3..d10929e 100644 --- a/contrib/tcn/Makefile +++ b/contrib/tcn/Makefile @@ -4,6 +4,7 @@ MODULES = tcn EXTENSION = tcn DATA = tcn--1.0.sql +PGFILEDESC = "tcn - Trigger function notifying listeners" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/test_decoding/Makefile b/contrib/test_decoding/Makefile index 58e0f38..3c02a8e 100644 --- a/contrib/test_decoding/Makefile +++ b/contrib/test_decoding/Makefile @@ -2,6 +2,7 @@ MODULES = test_decoding OBJS = test_decoding.o +PGFILEDESC = "test_decoding - Example of a logical decoding output plugin" # Note: because we don't tell the Makefile there are any regression tests, # we have to clean those result files explicitly diff --git a/contrib/test_parser/Makefile b/contrib/test_parser/Makefile index b9766cb..855a84b 100644 --- a/contrib/test_parser/Makefile +++ b/contrib/test_parser/Makefile @@ -2,6 +2,7 @@ MODULE_big = test_parser OBJS = test_parser.o +PGFILEDESC = "test_parser - Example of a custom parser for full-text search" EXTENSION = test_parser DATA = test_parser--1.0.sql test_parser--unpackaged--1.0.sql diff --git a/contrib/test_shm_mq/Makefile b/contrib/test_shm_mq/Makefile index 5e5ac1c..123d016 100644 --- a/contrib/test_shm_mq/Makefile +++ b/contrib/test_shm_mq/Makefile @@ -2,6 +2,7 @@ MODULE_big = test_shm_mq OBJS = test.o setup.o worker.o +PGFILEDESC = "test_shm_mq - Example of memory message queue facilities" EXTENSION = test_shm_mq DATA = test_shm_mq--1.0.sql diff --git a/contrib/tsearch2/Makefile b/contrib/tsearch2/Makefile index d260fd0..b561ad0 100644 --- a/contrib/tsearch2/Makefile +++ b/contrib/tsearch2/Makefile @@ -4,6 +4,7 @@ MODULES = tsearch2 EXTENSION = tsearch2 DATA = tsearch2--1.0.sql tsearch2--unpackaged--1.0.sql +PGFILEDESC = "tsearch2 - Backward-compatible text search functionalities" REGRESS = tsearch2 diff --git a/contrib/unaccent/Makefile b/contrib/unaccent/Makefile index f0be62d..fe4848d 100644 --- a/contrib/unaccent/Makefile +++ b/contrib/unaccent/Makefile @@ -6,6 +6,7 @@ OBJS = unaccent.o EXTENSION = unaccent DATA = unaccent--1.0.sql unaccent--unpackaged--1.0.sql DATA_TSEARCH = unaccent.rules +PGFILEDESC = "unaccent - Text search dictionary that removes accents" REGRESS = unaccent diff --git a/contrib/uuid-ossp/Makefile b/contrib/uuid-ossp/Makefile index 335cc7e..d31ae7a 100644 --- a/contrib/uuid-ossp/Makefile +++ b/contrib/uuid-ossp/Makefile @@ -5,6 +5,7 @@ OBJS = uuid-ossp.o $(UUID_EXTRA_OBJS) EXTENSION = uuid-ossp DATA = uuid-ossp--1.0.sql uuid-ossp--unpackaged--1.0.sql +PGFILEDESC = "uuid-ossp - Generation of UUIDs" REGRESS = uuid_ossp diff --git a/contrib/worker_spi/Makefile b/contrib/worker_spi/Makefile index fbb29b4..97f10ef 100644 --- a/contrib/worker_spi/Makefile +++ b/contrib/worker_spi/Makefile @@ -4,6 +4,7 @@ MODULES = worker_spi EXTENSION = worker_spi DATA = worker_spi--1.0.sql +PGFILEDESC = "worker_spi - Background worker example" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/xml2/Makefile b/contrib/xml2/Makefile index be3d018..d0ce896 100644 --- a/contrib/xml2/Makefile +++ b/contrib/xml2/Makefile @@ -5,6 +5,7 @@ OBJS = xpath.o xslt_proc.o EXTENSION = xml2 DATA = xml2--1.0.sql xml2--unpackaged--1.0.sql +PGFILEDESC = "xml2 - XPath querying and XSLT functionality" REGRESS = xml2 diff --git a/src/backend/replication/libpqwalreceiver/Makefile b/src/backend/replication/libpqwalreceiver/Makefile index 774adaa..815e08e 100644 --- a/src/backend/replication/libpqwalreceiver/Makefile +++ b/src/backend/replication/libpqwalreceiver/Makefile @@ -17,6 +17,7 @@ override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS) OBJS = libpqwalreceiver.o SHLIB_LINK = $(libpq) SHLIB_PREREQS = submake-libpq +PGFILEDESC = "libpqwalreceiver - WAL receiver library" NAME = libpqwalreceiver all: all-shared-lib diff --git a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile index d71ca16..26f0c05 100644 --- a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = ascii_and_mic +PGFILEDESC = "ascii_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile index 78c384a..933fa15 100644 --- a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = cyrillic_and_mic +PGFILEDESC = "cyrillic_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile index 199e655..7f31e94 100644 --- a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc2004_sjis2004 +PGFILEDESC = "euc2004_sjis2004" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile index a740656..df511e4 100644 --- a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_cn_and_mic +PGFILEDESC = "euc_cn_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile index fa167e9..aa1eb51 100644 --- a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_jp_and_sjis +PGFILEDESC = "euc_jp_and_sjis" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile index 5ce5548..c99a115 100644 --- a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_kr_and_mic +PGFILEDESC = "euc_kr_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile index 7625435..e45d69d 100644 --- a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile @@ -8,6 +8,7 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_tw_and_big5 +PGFILEDESC = "euc_tw_and_big5" SRCS += big5.c OBJS += big5.o diff --git a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile index 7587b66..21a61aa 100644 --- a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin2_and_win1250 +PGFILEDESC = "latin2_and_win1250" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile index ec88740..976ce15 100644 --- a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin_and_mic +PGFILEDESC = "latin_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile index a4b1b3f..cd31b40 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_ascii +PGFILEDESC = "utf8_and_ascii" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile index df72836..50c2bd4 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_big5 +PGFILEDESC = "utf8_and_big5" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile index 410037c..941b946 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_cyrillic +PGFILEDESC = "utf8_and_cyrillic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile index 58c513a..ef239f1 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc2004 +PGFILEDESC = "utf8_and_euc2004" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile index 053162e..7df9e53 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_cn +PGFILEDESC = "utf8_and_euc_cn" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile index 6a7678d..384391c 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_jp +PGFILEDESC = "utf8_and_euc_jp" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile index 13935ab..7bf52d1 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_kr +PGFILEDESC = "utf8_and_euc_kr" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile index 7b9b833..6cf2764 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_tw +PGFILEDESC = "utf8_and_euc_tw" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile index 1fb3e5a..a31aaff 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gb18030 +PGFILEDESC = "utf8_and_gb18030" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile index 240fe14..6430d40 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gbk +PGFILEDESC = "utf8_and_gbk" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile index c02323e..a268ac8 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859 +PGFILEDESC = "utf8_and_iso8859" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile index c2fac2e..766ab31 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859_1 +PGFILEDESC = "utf8_and_iso8859_1" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile index bdd39fb..fc47e99 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_johab +PGFILEDESC = "utf8_and_johab" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile index 7f4dd0c..4e0fd86 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis +PGFILEDESC = "utf8_and_sjis" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile index ed0bfde..c96fd0e 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis2004 +PGFILEDESC = "utf8_and_sjis2004" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile index 5c09c7e..b7bb518 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_uhc +PGFILEDESC = "utf8_and_uhc" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile index 31c510b..097b242 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_win +PGFILEDESC = "utf8_and_win" include $(srcdir)/../proc.mk diff --git a/src/bin/pg_basebackup/Makefile b/src/bin/pg_basebackup/Makefile index c6322ec..5fc73e9 100644 --- a/src/bin/pg_basebackup/Makefile +++ b/src/bin/pg_basebackup/Makefile @@ -9,7 +9,7 @@ # #------------------------------------------------------------------------- -PGFILEDESC = "pg_basebackup - takes a streaming base backup of a PostgreSQL instance" +PGFILEDESC = "pg_basebackup/pg_receivexlog/pg_recvlogical - Backup tool and WAL stream receivers" PGAPPICON=win32 subdir = src/bin/pg_basebackup diff --git a/src/interfaces/ecpg/compatlib/Makefile b/src/interfaces/ecpg/compatlib/Makefile index db704d7..5582bb7 100644 --- a/src/interfaces/ecpg/compatlib/Makefile +++ b/src/interfaces/ecpg/compatlib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/compatlib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG compat - Compatibility Library for ECPG" NAME= ecpg_compat SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 7 diff --git a/src/interfaces/ecpg/ecpglib/Makefile b/src/interfaces/ecpg/ecpglib/Makefile index 9f4582e..9bf4d1f 100644 --- a/src/interfaces/ecpg/ecpglib/Makefile +++ b/src/interfaces/ecpg/ecpglib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/ecpglib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG - Embedded SQL in C" NAME= ecpg SO_MAJOR_VERSION= 6 SO_MINOR_VERSION= 7 diff --git a/src/interfaces/ecpg/pgtypeslib/Makefile b/src/interfaces/ecpg/pgtypeslib/Makefile index d73c37e..3eb643b 100644 --- a/src/interfaces/ecpg/pgtypeslib/Makefile +++ b/src/interfaces/ecpg/pgtypeslib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/pgtypeslib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "pgtypes - Library for data type mapping" NAME= pgtypes SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 6 diff --git a/src/interfaces/ecpg/test/Makefile b/src/interfaces/ecpg/test/Makefile index d359fce..0befee3 100644 --- a/src/interfaces/ecpg/test/Makefile +++ b/src/interfaces/ecpg/test/Makefile @@ -13,6 +13,8 @@ override CPPFLAGS := \ '-DDLSUFFIX="$(DLSUFFIX)"' \ $(CPPFLAGS) +PGFILEDESC = "ECPG Test - Regression tests for ECPG" + # where to find psql for testing an existing installation PSQLDIR = $(bindir) diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile index 1e800a3..831da22 100644 --- a/src/pl/plperl/GNUmakefile +++ b/src/pl/plperl/GNUmakefile @@ -26,6 +26,7 @@ override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE rpathdir = $(perl_archlibexp)/CORE +PGFILEDESC = "PL/Perl - Perl Procedural Language" NAME = plperl diff --git a/src/pl/plpgsql/src/Makefile b/src/pl/plpgsql/src/Makefile index 852b0c7..2ddbefb 100644 --- a/src/pl/plpgsql/src/Makefile +++ b/src/pl/plpgsql/src/Makefile @@ -10,6 +10,8 @@ subdir = src/pl/plpgsql/src top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "PL/pgSQL - SQL Procedural Language" + # Shared library parameters NAME= plpgsql diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index 020861a..cf57e97 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -38,6 +38,8 @@ override CPPFLAGS := -I. -I$(srcdir) $(python_includespec) $(CPPFLAGS) rpathdir = $(python_libdir) +PGFILEDESC = "PL/Python - Python Procedural Language" + NAME = plpython$(python_majorversion) OBJS = \ diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index 2ab2a27..70333e7 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -34,6 +34,7 @@ ifneq ($(PORTNAME), win32) SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS) -lc endif +PGFILEDESC = "PL/Tcl - Tcl Procedural Language" NAME = pltcl diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index 0377772..368e61f 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -539,6 +539,7 @@ sub mkvcbuild $p->AddFile( 'src\backend\utils\mb\conversion_procs\\' . $sub . '\\' . $1); } + $p->AddDir('src\backend\utils\mb\conversion_procs\\' . $sub); $p->AddReference($postgres); } -- 2.0.0
^ permalink raw reply [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-06-20 16:44  MauMau <maumau307@gmail.com>
  parent: Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 25+ messages in thread

From: MauMau @ 2014-06-20 16:44 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: Magnus Hagander <magnus@hagander.net>; pgsql-bugs

From: "Michael Paquier" <michael.paquier@gmail.com>
> Interesting to see build failing because of that, this is caused by
> the addition of PGFILEDESC in src/timezone/Makefile. Note that I found
> something similar with snowball as postgres already includes it,
> making a similar conflict with the rc file inclusions. Btw, in the new
> patch attached I have removed both of them for the time being, and
> build worked fine. This results in dict_snowball.dll not to be
> versioned though. At the same time, I am removing as well the
> versioning of the regression stuff in src/test/* (isolation, regress)
> as they are not mandatory to have for the server and the client
> binaries/libs. I also noticed that the dlls of conversion_procs were
> not versioned correctly as well, problem fixed in the new patch,

I see, but that's mottainai.  I could remove the build errors regarding 
src/timezone and dict_snowball by removing the .rc file as follows.  pgevent 
already seems to do something similar.  This gets the patch closer to 
completeness.  I didn't try the stuff in src/test/.

 $postgres->AddDir('src\timezone');
 $postgres->RemoveFile('src\timezone\win32ver.rc');
 $postgres->AddFiles('src\backend\parser', 'scan.l', 'gram.y');

 $snowball->AddReference($postgres);
 $snowball->RemoveFile('src\backend\snowball\libstemmer\win32ver.rc');



> Globally, we could do a better effort in versioning for
> dict_snowball.dll, however I'd rather see that in another patch as it
> would need some more manipulation of Mkvcbuild.pm & co, and current
> patch already improves versioning for a bunch of files already..

Yes, your current patch improved the file versioning greatly, and I'm 
comfortable with it.  Please tell me if you fix src/timezone, dict_snowball 
and src/test stuff.  I'm okay with either.  Then I'll continue the test with 
the current or next patch.

Regards
MauMau




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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-06-20 22:17  Michael Paquier <michael.paquier@gmail.com>
  parent: MauMau <maumau307@gmail.com>
  0 siblings, 1 reply; 25+ messages in thread

From: Michael Paquier @ 2014-06-20 22:17 UTC (permalink / raw)
  To: MauMau <maumau307@gmail.com>; +Cc: Magnus Hagander <magnus@hagander.net>; pgsql-bugs

On Sat, Jun 21, 2014 at 1:44 AM, MauMau <maumau307@gmail.com> wrote:
> From: "Michael Paquier" <michael.paquier@gmail.com>
>
>> Interesting to see build failing because of that, this is caused by
>> the addition of PGFILEDESC in src/timezone/Makefile. Note that I found
>> something similar with snowball as postgres already includes it,
>> making a similar conflict with the rc file inclusions. Btw, in the new
>> patch attached I have removed both of them for the time being, and
>> build worked fine. This results in dict_snowball.dll not to be
>> versioned though. At the same time, I am removing as well the
>> versioning of the regression stuff in src/test/* (isolation, regress)
>> as they are not mandatory to have for the server and the client
>> binaries/libs. I also noticed that the dlls of conversion_procs were
>> not versioned correctly as well, problem fixed in the new patch,
>
>
> I see, but that's mottainai.  I could remove the build errors regarding
> src/timezone and dict_snowball by removing the .rc file as follows.  pgevent
> already seems to do something similar.  This gets the patch closer to
> completeness.  I didn't try the stuff in src/test/.
>
> $postgres->AddDir('src\timezone');
> $postgres->RemoveFile('src\timezone\win32ver.rc');
> $postgres->AddFiles('src\backend\parser', 'scan.l', 'gram.y');
>
> $snowball->AddReference($postgres);
> $snowball->RemoveFile('src\backend\snowball\libstemmer\win32ver.rc');
Yeah this trick is fine as well, but it complicates the code without
versioning those paths :) So let's do without please and find a
cleaner solution later on.

>> Globally, we could do a better effort in versioning for
>> dict_snowball.dll, however I'd rather see that in another patch as it
>> would need some more manipulation of Mkvcbuild.pm & co, and current
>> patch already improves versioning for a bunch of files already..
>
>
> Yes, your current patch improved the file versioning greatly, and I'm
> comfortable with it.  Please tell me if you fix src/timezone, dict_snowball
> and src/test stuff.  I'm okay with either.  Then I'll continue the test with
> the current or next patch.
Current patch would be better, conversion_procs paths are now
correctly versioned.
-- 
Michael


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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-06-21 02:47  MauMau <maumau307@gmail.com>
  parent: Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 25+ messages in thread

From: MauMau @ 2014-06-21 02:47 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: Magnus Hagander <magnus@hagander.net>; pgsql-bugs

From: "Michael Paquier" <michael.paquier@gmail.com>
> Yeah this trick is fine as well, but it complicates the code without
> versioning those paths :) So let's do without please and find a
> cleaner solution later on.

OK.



> Current patch would be better, conversion_procs paths are now
> correctly versioned.

OK, I tested with the current patches:

0001-Add-AddDir-calls-for-contrib.patch
0002-Add-file-versioning-for-all-core-dll-and-exe-in-MSVC.patch

They applied cleanly, and the build with MSVC succeeded.

I checked if Exes and DLLs in bin\ and lib\ have proper versioning info by 
looking at the file property with Windows Explorer.  I could confirm that 
most contrib modules and plpgsql.dll have correct versioning ifno.  The 
following modules have better description now.  Thanks.

bin\pg_basebackup.exe
bin\pg_receivexlog.exe
bin\pg_recvlogical.exe
bin\pg_xlogdump.exe

The below modules did not have versioning info as intended.  I hope this 
will be improved in the future.

bin\isolationtester.exe
bin\pg_isolation_regress
bin\pg_regress.exe
bin\pg_regress_ecpg.exe
bin\zic.exe
lib\dict_snowball.dll
lib\regress.dll

However, there seems to be two issues before marking this patch as ready for 
committer.

(1)
lib\pgcrypto.dll doesn't have versioning info.


(2)
None of the conversion_procs has versioning info.  But their Makefiles have 
PGFILEDESC line.  For example, 
src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile has the line:

NAME  = ascii_and_mic
PGFILEDESC = "ascii_and_mic"

Regards
MauMau



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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-06-21 13:13  Michael Paquier <michael.paquier@gmail.com>
  parent: MauMau <maumau307@gmail.com>
  0 siblings, 2 replies; 25+ messages in thread

From: Michael Paquier @ 2014-06-21 13:13 UTC (permalink / raw)
  To: MauMau <maumau307@gmail.com>; +Cc: Magnus Hagander <magnus@hagander.net>; pgsql-bugs

On Sat, Jun 21, 2014 at 11:47 AM, MauMau <maumau307@gmail.com> wrote:
> bin\isolationtester.exe
> bin\pg_isolation_regress
> bin\pg_regress.exe
> bin\pg_regress_ecpg.exe
> bin\zic.exe
> lib\dict_snowball.dll
> lib\regress.dll
Yes, I'd like to improve that in a next patch hopefully in CF2, except
if a committer picking up this patch thinks differently.

> However, there seems to be two issues before marking this patch as ready for
> committer.
> (1)
> lib\pgcrypto.dll doesn't have versioning info.
Urgh, thanks I missed it. It is fixed in the patch attached by adding
a AddDir call in the project of pgcrypto as this contrib module is
kind of particular in the MSVC scripts. Here is the output of my
cscript checking versioning with the new patch:
$ cscript ..\extra\vb_version.vbs lib\pgcrypto.dll
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

9.5.0.14171

> (2)
> None of the conversion_procs has versioning info.  But their Makefiles have
> PGFILEDESC line.  For example,
> src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile has the line:
>
> NAME  = ascii_and_mic
> PGFILEDESC = "ascii_and_mic"
Strange, it works for me:
$ cscript ..\extra\vb_version.vbs lib\utf8_and_ascii.dll

Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

9.5.0.14170
Regards,
-- 
Michael

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

Attachments: download all (2 files, .tar.gz)

0001-Add-AddDir-calls-for-contrib-v3.patch (text/x-diff, 1.1K) download From a491755ebcce62b9f9716868a031c6d552a8e352 Mon Sep 17 00:00:00 2001 From: Michael Paquier <michael@otacoo.com> Date: Fri, 25 Apr 2014 08:58:16 +0900 Subject: [PATCH 1/2] Add AddDir calls for contrib/ --- src/tools/msvc/Mkvcbuild.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index 8002f23..0377772 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -658,6 +658,7 @@ sub AddContrib $proj->AddFile('contrib\\' . $n . '\\' . $o); } $proj->AddReference($postgres); + $proj->AddDir('contrib\\' . $n); if ($mf =~ /^SUBDIRS\s*:?=\s*(.*)$/mg) { foreach my $d (split /\s+/, $1) @@ -685,6 +686,7 @@ sub AddContrib { my $proj = $solution->AddProject($mod, 'dll', 'contrib'); $proj->AddFile('contrib\\' . $n . '\\' . $mod . '.c'); + $proj->AddDir('contrib\\' . $n); $proj->AddReference($postgres); AdjustContribProj($proj); } @@ -702,6 +704,7 @@ sub AddContrib $o =~ s/\.o$/.c/; $proj->AddFile('contrib\\' . $n . '\\' . $o); } + $proj->AddDir('contrib\\' . $n); AdjustContribProj($proj); } else -- 2.0.0
0002-Add-file-versioning-for-all-core-dll-and-exe-in-MSVC-v3.patch (text/x-diff, 42.4K) download From dbe33675eab8f3931a4fb74839a67cd9d2a7541f Mon Sep 17 00:00:00 2001 From: Michael Paquier <michael@otacoo.com> Date: Sat, 21 Jun 2014 22:08:44 +0900 Subject: [PATCH 2/2] Add file versioning for all core dll and exe in MSVC builds This includes the following files: - dll and exe files in contrib/ - dll files in backend/utils/mb/conversion_procs/ - ecpg stuff - PL language libraries - replication libraries Things are not perfect and the following targets are still missing: - zic.dll - dict_snowball.dll - Regression test thingies Still, with the number of binaries and libraries newly versioned in this patch, the improvement is quite large. --- contrib/adminpack/Makefile | 1 + contrib/auth_delay/Makefile | 1 + contrib/auto_explain/Makefile | 1 + contrib/btree_gin/Makefile | 1 + contrib/btree_gist/Makefile | 1 + contrib/chkpass/Makefile | 1 + contrib/citext/Makefile | 1 + contrib/cube/Makefile | 1 + contrib/dblink/Makefile | 1 + contrib/dict_int/Makefile | 1 + contrib/dict_xsyn/Makefile | 1 + contrib/dummy_seclabel/Makefile | 1 + contrib/earthdistance/Makefile | 1 + contrib/file_fdw/Makefile | 1 + contrib/fuzzystrmatch/Makefile | 1 + contrib/hstore/Makefile | 1 + contrib/intagg/Makefile | 1 + contrib/intarray/Makefile | 1 + contrib/isn/Makefile | 1 + contrib/lo/Makefile | 1 + contrib/ltree/Makefile | 1 + contrib/pageinspect/Makefile | 1 + contrib/passwordcheck/Makefile | 1 + contrib/pg_buffercache/Makefile | 1 + contrib/pg_freespacemap/Makefile | 1 + contrib/pg_prewarm/Makefile | 1 + contrib/pg_stat_statements/Makefile | 1 + contrib/pg_trgm/Makefile | 1 + contrib/pg_xlogdump/Makefile | 2 +- contrib/pgcrypto/Makefile | 1 + contrib/pgrowlocks/Makefile | 1 + contrib/pgstattuple/Makefile | 1 + contrib/postgres_fdw/Makefile | 1 + contrib/seg/Makefile | 1 + contrib/sepgsql/Makefile | 1 + contrib/spi/Makefile | 1 + contrib/sslinfo/Makefile | 1 + contrib/tablefunc/Makefile | 1 + contrib/tcn/Makefile | 1 + contrib/test_decoding/Makefile | 1 + contrib/test_parser/Makefile | 1 + contrib/test_shm_mq/Makefile | 1 + contrib/tsearch2/Makefile | 1 + contrib/unaccent/Makefile | 1 + contrib/uuid-ossp/Makefile | 1 + contrib/worker_spi/Makefile | 1 + contrib/xml2/Makefile | 1 + src/backend/replication/libpqwalreceiver/Makefile | 1 + src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile | 1 + src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile | 1 + src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile | 1 + src/bin/pg_basebackup/Makefile | 2 +- src/interfaces/ecpg/compatlib/Makefile | 1 + src/interfaces/ecpg/ecpglib/Makefile | 1 + src/interfaces/ecpg/pgtypeslib/Makefile | 1 + src/interfaces/ecpg/test/Makefile | 2 ++ src/pl/plperl/GNUmakefile | 1 + src/pl/plpgsql/src/Makefile | 2 ++ src/pl/plpython/Makefile | 2 ++ src/pl/tcl/Makefile | 1 + src/tools/msvc/Mkvcbuild.pm | 2 ++ 84 files changed, 88 insertions(+), 2 deletions(-) diff --git a/contrib/adminpack/Makefile b/contrib/adminpack/Makefile index 5cbc8f0..6122599 100644 --- a/contrib/adminpack/Makefile +++ b/contrib/adminpack/Makefile @@ -6,6 +6,7 @@ PG_CPPFLAGS = -I$(libpq_srcdir) EXTENSION = adminpack DATA = adminpack--1.0.sql +PGFILEDESC = "adminpack - Support functions for pgAdmin" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/auth_delay/Makefile b/contrib/auth_delay/Makefile index 09d2d54..8a96bd4 100644 --- a/contrib/auth_delay/Makefile +++ b/contrib/auth_delay/Makefile @@ -1,6 +1,7 @@ # contrib/auth_delay/Makefile MODULES = auth_delay +PGFILEDESC = "auth_delay - Delay authentication failure reports" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/auto_explain/Makefile b/contrib/auto_explain/Makefile index 2d1443f..0eb8346 100644 --- a/contrib/auto_explain/Makefile +++ b/contrib/auto_explain/Makefile @@ -2,6 +2,7 @@ MODULE_big = auto_explain OBJS = auto_explain.o +PGFILEDESC = "auto_explain - Logging facility for execution plans" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/btree_gin/Makefile b/contrib/btree_gin/Makefile index 09fd3e6..fcf7cba 100644 --- a/contrib/btree_gin/Makefile +++ b/contrib/btree_gin/Makefile @@ -5,6 +5,7 @@ OBJS = btree_gin.o EXTENSION = btree_gin DATA = btree_gin--1.0.sql btree_gin--unpackaged--1.0.sql +PGFILEDESC = "btree_gin - B-Tree equivalent GIN operator classes" REGRESS = install_btree_gin int2 int4 int8 float4 float8 money oid \ timestamp timestamptz time timetz date interval \ diff --git a/contrib/btree_gist/Makefile b/contrib/btree_gist/Makefile index ba4af14..45d5931 100644 --- a/contrib/btree_gist/Makefile +++ b/contrib/btree_gist/Makefile @@ -10,6 +10,7 @@ OBJS = btree_gist.o btree_utils_num.o btree_utils_var.o btree_int2.o \ EXTENSION = btree_gist DATA = btree_gist--1.0.sql btree_gist--unpackaged--1.0.sql +PGFILEDESC = "btree_gist - B-Tree equivalent GIST operator classes" REGRESS = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz \ time timetz date interval macaddr inet cidr text varchar char bytea \ diff --git a/contrib/chkpass/Makefile b/contrib/chkpass/Makefile index b775aef..22efe7b 100644 --- a/contrib/chkpass/Makefile +++ b/contrib/chkpass/Makefile @@ -5,6 +5,7 @@ OBJS = chkpass.o EXTENSION = chkpass DATA = chkpass--1.0.sql chkpass--unpackaged--1.0.sql +PGFILEDESC = "chkpass - Data type for storage of encrypted passwords" SHLIB_LINK = $(filter -lcrypt, $(LIBS)) diff --git a/contrib/citext/Makefile b/contrib/citext/Makefile index 6594252..8eddf30 100644 --- a/contrib/citext/Makefile +++ b/contrib/citext/Makefile @@ -4,6 +4,7 @@ MODULES = citext EXTENSION = citext DATA = citext--1.0.sql citext--unpackaged--1.0.sql +PGFILEDESC = "citext - Case-insensitive character string type" REGRESS = citext diff --git a/contrib/cube/Makefile b/contrib/cube/Makefile index b5cd5d0..fba76a5 100644 --- a/contrib/cube/Makefile +++ b/contrib/cube/Makefile @@ -5,6 +5,7 @@ OBJS= cube.o cubeparse.o EXTENSION = cube DATA = cube--1.0.sql cube--unpackaged--1.0.sql +PGFILEDESC = "cube - Data type for multidimensional cube representation" REGRESS = cube diff --git a/contrib/dblink/Makefile b/contrib/dblink/Makefile index 32314a0..58584e1 100644 --- a/contrib/dblink/Makefile +++ b/contrib/dblink/Makefile @@ -8,6 +8,7 @@ SHLIB_PREREQS = submake-libpq EXTENSION = dblink DATA = dblink--1.1.sql dblink--1.0--1.1.sql dblink--unpackaged--1.0.sql +PGFILEDESC = "dblink - Connection facility for PostgreSQL" REGRESS = dblink diff --git a/contrib/dict_int/Makefile b/contrib/dict_int/Makefile index 3a3fc36..030acb7 100644 --- a/contrib/dict_int/Makefile +++ b/contrib/dict_int/Makefile @@ -5,6 +5,7 @@ OBJS = dict_int.o EXTENSION = dict_int DATA = dict_int--1.0.sql dict_int--unpackaged--1.0.sql +PGFILEDESC = "dict_int - Add-on dictionary template for full-text search" REGRESS = dict_int diff --git a/contrib/dict_xsyn/Makefile b/contrib/dict_xsyn/Makefile index ce92baa..0b3d6e5 100644 --- a/contrib/dict_xsyn/Makefile +++ b/contrib/dict_xsyn/Makefile @@ -6,6 +6,7 @@ OBJS = dict_xsyn.o EXTENSION = dict_xsyn DATA = dict_xsyn--1.0.sql dict_xsyn--unpackaged--1.0.sql DATA_TSEARCH = xsyn_sample.rules +PGFILEDESC = "dict_xsyn - Add-on dictionary template for full-text search" REGRESS = dict_xsyn diff --git a/contrib/dummy_seclabel/Makefile b/contrib/dummy_seclabel/Makefile index 105400f..20f86fc 100644 --- a/contrib/dummy_seclabel/Makefile +++ b/contrib/dummy_seclabel/Makefile @@ -1,6 +1,7 @@ # contrib/dummy_seclabel/Makefile MODULES = dummy_seclabel +PGFILEDESC = "dummy_seclabel - Regression testing of the SECURITY LABEL statement" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/earthdistance/Makefile b/contrib/earthdistance/Makefile index 48a7cf8..3a35859 100644 --- a/contrib/earthdistance/Makefile +++ b/contrib/earthdistance/Makefile @@ -4,6 +4,7 @@ MODULES = earthdistance EXTENSION = earthdistance DATA = earthdistance--1.0.sql earthdistance--unpackaged--1.0.sql +PGFILEDESC = "earthdistance - Calculate distances on the surface of the Earth" REGRESS = earthdistance REGRESS_OPTS = --extra-install=contrib/cube diff --git a/contrib/file_fdw/Makefile b/contrib/file_fdw/Makefile index 4616cec..7d637de 100644 --- a/contrib/file_fdw/Makefile +++ b/contrib/file_fdw/Makefile @@ -4,6 +4,7 @@ MODULES = file_fdw EXTENSION = file_fdw DATA = file_fdw--1.0.sql +PGFILEDESC = "file_fdw - Foreign data wrapper for files" REGRESS = file_fdw diff --git a/contrib/fuzzystrmatch/Makefile b/contrib/fuzzystrmatch/Makefile index 834b679..68f8bf2 100644 --- a/contrib/fuzzystrmatch/Makefile +++ b/contrib/fuzzystrmatch/Makefile @@ -5,6 +5,7 @@ OBJS = fuzzystrmatch.o dmetaphone.o EXTENSION = fuzzystrmatch DATA = fuzzystrmatch--1.0.sql fuzzystrmatch--unpackaged--1.0.sql +PGFILEDESC = "fuzzystrmatch - Similarities and distance between strings" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/hstore/Makefile b/contrib/hstore/Makefile index 2b60fbe..98fc304 100644 --- a/contrib/hstore/Makefile +++ b/contrib/hstore/Makefile @@ -8,6 +8,7 @@ EXTENSION = hstore DATA = hstore--1.3.sql hstore--1.2--1.3.sql \ hstore--1.1--1.2.sql hstore--1.0--1.1.sql \ hstore--unpackaged--1.0.sql +PGFILEDESC = "hstore - Data type for key/value pairs" REGRESS = hstore diff --git a/contrib/intagg/Makefile b/contrib/intagg/Makefile index 2cfe997..bf36a61 100644 --- a/contrib/intagg/Makefile +++ b/contrib/intagg/Makefile @@ -2,6 +2,7 @@ EXTENSION = intagg DATA = intagg--1.0.sql intagg--unpackaged--1.0.sql +PGFILEDESC = "intagg - Integer aggregator and numerator" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/intarray/Makefile b/contrib/intarray/Makefile index 71f820e..f322512 100644 --- a/contrib/intarray/Makefile +++ b/contrib/intarray/Makefile @@ -5,6 +5,7 @@ OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o _int_gin.o EXTENSION = intarray DATA = intarray--1.0.sql intarray--unpackaged--1.0.sql +PGFILEDESC = "intarray - Functions and operators for array of integers" REGRESS = _int diff --git a/contrib/isn/Makefile b/contrib/isn/Makefile index bd8f193..1c09116 100644 --- a/contrib/isn/Makefile +++ b/contrib/isn/Makefile @@ -4,6 +4,7 @@ MODULES = isn EXTENSION = isn DATA = isn--1.0.sql isn--unpackaged--1.0.sql +PGFILEDESC = "isn - Data types for numbering standards" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/lo/Makefile b/contrib/lo/Makefile index 66b337c..907ccf0 100644 --- a/contrib/lo/Makefile +++ b/contrib/lo/Makefile @@ -4,6 +4,7 @@ MODULES = lo EXTENSION = lo DATA = lo--1.0.sql lo--unpackaged--1.0.sql +PGFILEDESC = "lo - Management for large objects" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/ltree/Makefile b/contrib/ltree/Makefile index 65d42f8..a90d045 100644 --- a/contrib/ltree/Makefile +++ b/contrib/ltree/Makefile @@ -7,6 +7,7 @@ PG_CPPFLAGS = -DLOWER_NODE EXTENSION = ltree DATA = ltree--1.0.sql ltree--unpackaged--1.0.sql +PGFILEDESC = "ltree - Data type for representing labels of data stored" REGRESS = ltree diff --git a/contrib/pageinspect/Makefile b/contrib/pageinspect/Makefile index ee78cb2..c96140f 100644 --- a/contrib/pageinspect/Makefile +++ b/contrib/pageinspect/Makefile @@ -6,6 +6,7 @@ OBJS = rawpage.o heapfuncs.o btreefuncs.o fsmfuncs.o EXTENSION = pageinspect DATA = pageinspect--1.2.sql pageinspect--1.0--1.1.sql \ pageinspect--1.1--1.2.sql pageinspect--unpackaged--1.0.sql +PGFILEDESC = "pageinspect - Functions to inspect contents of database pages" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/passwordcheck/Makefile b/contrib/passwordcheck/Makefile index 4829bfd..2cb4656 100644 --- a/contrib/passwordcheck/Makefile +++ b/contrib/passwordcheck/Makefile @@ -2,6 +2,7 @@ MODULE_big = passwordcheck OBJS = passwordcheck.o +PGFILEDESC = "passwordcheck - Strengthen user password checks" # uncomment the following two lines to enable cracklib support # PG_CPPFLAGS = -DUSE_CRACKLIB '-DCRACKLIB_DICTPATH="/usr/lib/cracklib_dict"' diff --git a/contrib/pg_buffercache/Makefile b/contrib/pg_buffercache/Makefile index 323c0ac..da18231 100644 --- a/contrib/pg_buffercache/Makefile +++ b/contrib/pg_buffercache/Makefile @@ -5,6 +5,7 @@ OBJS = pg_buffercache_pages.o EXTENSION = pg_buffercache DATA = pg_buffercache--1.0.sql pg_buffercache--unpackaged--1.0.sql +PGFILEDESC = "pg_buffercache - Monitoring of shared buffer cache in real-time" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_freespacemap/Makefile b/contrib/pg_freespacemap/Makefile index b2e3ba3..2bb50d7 100644 --- a/contrib/pg_freespacemap/Makefile +++ b/contrib/pg_freespacemap/Makefile @@ -5,6 +5,7 @@ OBJS = pg_freespacemap.o EXTENSION = pg_freespacemap DATA = pg_freespacemap--1.0.sql pg_freespacemap--unpackaged--1.0.sql +PGFILEDESC = "pg_freespacemap - Monitoring of free space map" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_prewarm/Makefile b/contrib/pg_prewarm/Makefile index 176a29a..cdfec0d 100644 --- a/contrib/pg_prewarm/Makefile +++ b/contrib/pg_prewarm/Makefile @@ -5,6 +5,7 @@ OBJS = pg_prewarm.o EXTENSION = pg_prewarm DATA = pg_prewarm--1.0.sql +PGFILEDESC = "pg_prewarm - Preload relation data into system buffer cache" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_stat_statements/Makefile b/contrib/pg_stat_statements/Makefile index 95a2767..70910e5 100644 --- a/contrib/pg_stat_statements/Makefile +++ b/contrib/pg_stat_statements/Makefile @@ -6,6 +6,7 @@ OBJS = pg_stat_statements.o EXTENSION = pg_stat_statements DATA = pg_stat_statements--1.2.sql pg_stat_statements--1.1--1.2.sql \ pg_stat_statements--1.0--1.1.sql pg_stat_statements--unpackaged--1.0.sql +PGFILEDESC = "pg_stat_statements - Execution statistics of SQL statements" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_trgm/Makefile b/contrib/pg_trgm/Makefile index 0d549f8..cafef1e 100644 --- a/contrib/pg_trgm/Makefile +++ b/contrib/pg_trgm/Makefile @@ -5,6 +5,7 @@ OBJS = trgm_op.o trgm_gist.o trgm_gin.o trgm_regexp.o EXTENSION = pg_trgm DATA = pg_trgm--1.1.sql pg_trgm--1.0--1.1.sql pg_trgm--unpackaged--1.0.sql +PGFILEDESC = "pg_trgm - Trigram matching" REGRESS = pg_trgm diff --git a/contrib/pg_xlogdump/Makefile b/contrib/pg_xlogdump/Makefile index ada261c..a3ba823 100644 --- a/contrib/pg_xlogdump/Makefile +++ b/contrib/pg_xlogdump/Makefile @@ -1,6 +1,6 @@ # contrib/pg_xlogdump/Makefile -PGFILEDESC = "pg_xlogdump" +PGFILEDESC = "pg_xlogdump - Tool to display in readable form WAL contents" PGAPPICON=win32 PROGRAM = pg_xlogdump diff --git a/contrib/pgcrypto/Makefile b/contrib/pgcrypto/Makefile index 1c85c98..6874dbf 100644 --- a/contrib/pgcrypto/Makefile +++ b/contrib/pgcrypto/Makefile @@ -27,6 +27,7 @@ OBJS = $(SRCS:.c=.o) EXTENSION = pgcrypto DATA = pgcrypto--1.1.sql pgcrypto--1.0--1.1.sql pgcrypto--unpackaged--1.0.sql +PGFILEDESC = "pgcrypto - Cryptographic functions" REGRESS = init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \ $(CF_TESTS) \ diff --git a/contrib/pgrowlocks/Makefile b/contrib/pgrowlocks/Makefile index fe80423..23ed97a 100644 --- a/contrib/pgrowlocks/Makefile +++ b/contrib/pgrowlocks/Makefile @@ -5,6 +5,7 @@ OBJS = pgrowlocks.o EXTENSION = pgrowlocks DATA = pgrowlocks--1.1.sql pgrowlocks--1.0--1.1.sql pgrowlocks--unpackaged--1.0.sql +PGFILEDESC = "pgrowlocks - Display row locking information" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pgstattuple/Makefile b/contrib/pgstattuple/Makefile index d991c3a..a12ad59 100644 --- a/contrib/pgstattuple/Makefile +++ b/contrib/pgstattuple/Makefile @@ -5,6 +5,7 @@ OBJS = pgstattuple.o pgstatindex.o EXTENSION = pgstattuple DATA = pgstattuple--1.2.sql pgstattuple--1.1--1.2.sql pgstattuple--1.0--1.1.sql pgstattuple--unpackaged--1.0.sql +PGFILEDESC = "pgstattuple - Tuple-level statistics" REGRESS = pgstattuple diff --git a/contrib/postgres_fdw/Makefile b/contrib/postgres_fdw/Makefile index 8c49720..182f742 100644 --- a/contrib/postgres_fdw/Makefile +++ b/contrib/postgres_fdw/Makefile @@ -2,6 +2,7 @@ MODULE_big = postgres_fdw OBJS = postgres_fdw.o option.o deparse.o connection.o +PGFILEDESC = "postgres_fdw - Foreign data wrapper for PostgreSQL" PG_CPPFLAGS = -I$(libpq_srcdir) SHLIB_LINK = $(libpq) diff --git a/contrib/seg/Makefile b/contrib/seg/Makefile index fb9c576..f523265 100644 --- a/contrib/seg/Makefile +++ b/contrib/seg/Makefile @@ -5,6 +5,7 @@ OBJS = seg.o segparse.o EXTENSION = seg DATA = seg--1.0.sql seg--unpackaged--1.0.sql +PGFILEDESC = "seg - Representation of line segments" REGRESS = seg diff --git a/contrib/sepgsql/Makefile b/contrib/sepgsql/Makefile index ff3a61d..f73e8b6 100644 --- a/contrib/sepgsql/Makefile +++ b/contrib/sepgsql/Makefile @@ -4,6 +4,7 @@ MODULE_big = sepgsql OBJS = hooks.o selinux.o uavc.o label.o dml.o \ database.o schema.o relation.o proc.o DATA_built = sepgsql.sql +PGFILEDESC = "sepgsql - Module for SELinux security policy" # Note: because we don't tell the Makefile there are any regression tests, # we have to clean those result files explicitly diff --git a/contrib/spi/Makefile b/contrib/spi/Makefile index 0c11bfc..10ab5bb 100644 --- a/contrib/spi/Makefile +++ b/contrib/spi/Makefile @@ -9,6 +9,7 @@ DATA = autoinc--1.0.sql autoinc--unpackaged--1.0.sql \ moddatetime--1.0.sql moddatetime--unpackaged--1.0.sql \ refint--1.0.sql refint--unpackaged--1.0.sql \ timetravel--1.0.sql timetravel--unpackaged--1.0.sql +PGFILEDESC = "spi - examples of using SPI and triggers" DOCS = $(addsuffix .example, $(MODULES)) diff --git a/contrib/sslinfo/Makefile b/contrib/sslinfo/Makefile index 0dee6ed..faa297a 100644 --- a/contrib/sslinfo/Makefile +++ b/contrib/sslinfo/Makefile @@ -5,6 +5,7 @@ OBJS = sslinfo.o EXTENSION = sslinfo DATA = sslinfo--1.0.sql sslinfo--unpackaged--1.0.sql +PGFILEDESC = "sslinfo - Informations about SSL certificates" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/tablefunc/Makefile b/contrib/tablefunc/Makefile index eb10893..d566352 100644 --- a/contrib/tablefunc/Makefile +++ b/contrib/tablefunc/Makefile @@ -4,6 +4,7 @@ MODULES = tablefunc EXTENSION = tablefunc DATA = tablefunc--1.0.sql tablefunc--unpackaged--1.0.sql +PGFILEDESC = "tablefunc - Some functions returning tables" REGRESS = tablefunc diff --git a/contrib/tcn/Makefile b/contrib/tcn/Makefile index 7bac5e3..d10929e 100644 --- a/contrib/tcn/Makefile +++ b/contrib/tcn/Makefile @@ -4,6 +4,7 @@ MODULES = tcn EXTENSION = tcn DATA = tcn--1.0.sql +PGFILEDESC = "tcn - Trigger function notifying listeners" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/test_decoding/Makefile b/contrib/test_decoding/Makefile index 58e0f38..3c02a8e 100644 --- a/contrib/test_decoding/Makefile +++ b/contrib/test_decoding/Makefile @@ -2,6 +2,7 @@ MODULES = test_decoding OBJS = test_decoding.o +PGFILEDESC = "test_decoding - Example of a logical decoding output plugin" # Note: because we don't tell the Makefile there are any regression tests, # we have to clean those result files explicitly diff --git a/contrib/test_parser/Makefile b/contrib/test_parser/Makefile index b9766cb..855a84b 100644 --- a/contrib/test_parser/Makefile +++ b/contrib/test_parser/Makefile @@ -2,6 +2,7 @@ MODULE_big = test_parser OBJS = test_parser.o +PGFILEDESC = "test_parser - Example of a custom parser for full-text search" EXTENSION = test_parser DATA = test_parser--1.0.sql test_parser--unpackaged--1.0.sql diff --git a/contrib/test_shm_mq/Makefile b/contrib/test_shm_mq/Makefile index 5e5ac1c..123d016 100644 --- a/contrib/test_shm_mq/Makefile +++ b/contrib/test_shm_mq/Makefile @@ -2,6 +2,7 @@ MODULE_big = test_shm_mq OBJS = test.o setup.o worker.o +PGFILEDESC = "test_shm_mq - Example of memory message queue facilities" EXTENSION = test_shm_mq DATA = test_shm_mq--1.0.sql diff --git a/contrib/tsearch2/Makefile b/contrib/tsearch2/Makefile index d260fd0..b561ad0 100644 --- a/contrib/tsearch2/Makefile +++ b/contrib/tsearch2/Makefile @@ -4,6 +4,7 @@ MODULES = tsearch2 EXTENSION = tsearch2 DATA = tsearch2--1.0.sql tsearch2--unpackaged--1.0.sql +PGFILEDESC = "tsearch2 - Backward-compatible text search functionalities" REGRESS = tsearch2 diff --git a/contrib/unaccent/Makefile b/contrib/unaccent/Makefile index f0be62d..fe4848d 100644 --- a/contrib/unaccent/Makefile +++ b/contrib/unaccent/Makefile @@ -6,6 +6,7 @@ OBJS = unaccent.o EXTENSION = unaccent DATA = unaccent--1.0.sql unaccent--unpackaged--1.0.sql DATA_TSEARCH = unaccent.rules +PGFILEDESC = "unaccent - Text search dictionary that removes accents" REGRESS = unaccent diff --git a/contrib/uuid-ossp/Makefile b/contrib/uuid-ossp/Makefile index 335cc7e..d31ae7a 100644 --- a/contrib/uuid-ossp/Makefile +++ b/contrib/uuid-ossp/Makefile @@ -5,6 +5,7 @@ OBJS = uuid-ossp.o $(UUID_EXTRA_OBJS) EXTENSION = uuid-ossp DATA = uuid-ossp--1.0.sql uuid-ossp--unpackaged--1.0.sql +PGFILEDESC = "uuid-ossp - Generation of UUIDs" REGRESS = uuid_ossp diff --git a/contrib/worker_spi/Makefile b/contrib/worker_spi/Makefile index fbb29b4..97f10ef 100644 --- a/contrib/worker_spi/Makefile +++ b/contrib/worker_spi/Makefile @@ -4,6 +4,7 @@ MODULES = worker_spi EXTENSION = worker_spi DATA = worker_spi--1.0.sql +PGFILEDESC = "worker_spi - Background worker example" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/xml2/Makefile b/contrib/xml2/Makefile index be3d018..d0ce896 100644 --- a/contrib/xml2/Makefile +++ b/contrib/xml2/Makefile @@ -5,6 +5,7 @@ OBJS = xpath.o xslt_proc.o EXTENSION = xml2 DATA = xml2--1.0.sql xml2--unpackaged--1.0.sql +PGFILEDESC = "xml2 - XPath querying and XSLT functionality" REGRESS = xml2 diff --git a/src/backend/replication/libpqwalreceiver/Makefile b/src/backend/replication/libpqwalreceiver/Makefile index 774adaa..815e08e 100644 --- a/src/backend/replication/libpqwalreceiver/Makefile +++ b/src/backend/replication/libpqwalreceiver/Makefile @@ -17,6 +17,7 @@ override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS) OBJS = libpqwalreceiver.o SHLIB_LINK = $(libpq) SHLIB_PREREQS = submake-libpq +PGFILEDESC = "libpqwalreceiver - WAL receiver library" NAME = libpqwalreceiver all: all-shared-lib diff --git a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile index d71ca16..26f0c05 100644 --- a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = ascii_and_mic +PGFILEDESC = "ascii_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile index 78c384a..933fa15 100644 --- a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = cyrillic_and_mic +PGFILEDESC = "cyrillic_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile index 199e655..7f31e94 100644 --- a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc2004_sjis2004 +PGFILEDESC = "euc2004_sjis2004" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile index a740656..df511e4 100644 --- a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_cn_and_mic +PGFILEDESC = "euc_cn_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile index fa167e9..aa1eb51 100644 --- a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_jp_and_sjis +PGFILEDESC = "euc_jp_and_sjis" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile index 5ce5548..c99a115 100644 --- a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_kr_and_mic +PGFILEDESC = "euc_kr_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile index 7625435..e45d69d 100644 --- a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile @@ -8,6 +8,7 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_tw_and_big5 +PGFILEDESC = "euc_tw_and_big5" SRCS += big5.c OBJS += big5.o diff --git a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile index 7587b66..21a61aa 100644 --- a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin2_and_win1250 +PGFILEDESC = "latin2_and_win1250" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile index ec88740..976ce15 100644 --- a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin_and_mic +PGFILEDESC = "latin_and_mic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile index a4b1b3f..cd31b40 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_ascii +PGFILEDESC = "utf8_and_ascii" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile index df72836..50c2bd4 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_big5 +PGFILEDESC = "utf8_and_big5" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile index 410037c..941b946 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_cyrillic +PGFILEDESC = "utf8_and_cyrillic" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile index 58c513a..ef239f1 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc2004 +PGFILEDESC = "utf8_and_euc2004" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile index 053162e..7df9e53 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_cn +PGFILEDESC = "utf8_and_euc_cn" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile index 6a7678d..384391c 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_jp +PGFILEDESC = "utf8_and_euc_jp" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile index 13935ab..7bf52d1 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_kr +PGFILEDESC = "utf8_and_euc_kr" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile index 7b9b833..6cf2764 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_tw +PGFILEDESC = "utf8_and_euc_tw" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile index 1fb3e5a..a31aaff 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gb18030 +PGFILEDESC = "utf8_and_gb18030" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile index 240fe14..6430d40 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gbk +PGFILEDESC = "utf8_and_gbk" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile index c02323e..a268ac8 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859 +PGFILEDESC = "utf8_and_iso8859" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile index c2fac2e..766ab31 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859_1 +PGFILEDESC = "utf8_and_iso8859_1" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile index bdd39fb..fc47e99 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_johab +PGFILEDESC = "utf8_and_johab" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile index 7f4dd0c..4e0fd86 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis +PGFILEDESC = "utf8_and_sjis" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile index ed0bfde..c96fd0e 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis2004 +PGFILEDESC = "utf8_and_sjis2004" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile index 5c09c7e..b7bb518 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_uhc +PGFILEDESC = "utf8_and_uhc" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile index 31c510b..097b242 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_win +PGFILEDESC = "utf8_and_win" include $(srcdir)/../proc.mk diff --git a/src/bin/pg_basebackup/Makefile b/src/bin/pg_basebackup/Makefile index c6322ec..5fc73e9 100644 --- a/src/bin/pg_basebackup/Makefile +++ b/src/bin/pg_basebackup/Makefile @@ -9,7 +9,7 @@ # #------------------------------------------------------------------------- -PGFILEDESC = "pg_basebackup - takes a streaming base backup of a PostgreSQL instance" +PGFILEDESC = "pg_basebackup/pg_receivexlog/pg_recvlogical - Backup tool and WAL stream receivers" PGAPPICON=win32 subdir = src/bin/pg_basebackup diff --git a/src/interfaces/ecpg/compatlib/Makefile b/src/interfaces/ecpg/compatlib/Makefile index db704d7..5582bb7 100644 --- a/src/interfaces/ecpg/compatlib/Makefile +++ b/src/interfaces/ecpg/compatlib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/compatlib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG compat - Compatibility Library for ECPG" NAME= ecpg_compat SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 7 diff --git a/src/interfaces/ecpg/ecpglib/Makefile b/src/interfaces/ecpg/ecpglib/Makefile index 9f4582e..9bf4d1f 100644 --- a/src/interfaces/ecpg/ecpglib/Makefile +++ b/src/interfaces/ecpg/ecpglib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/ecpglib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG - Embedded SQL in C" NAME= ecpg SO_MAJOR_VERSION= 6 SO_MINOR_VERSION= 7 diff --git a/src/interfaces/ecpg/pgtypeslib/Makefile b/src/interfaces/ecpg/pgtypeslib/Makefile index d73c37e..3eb643b 100644 --- a/src/interfaces/ecpg/pgtypeslib/Makefile +++ b/src/interfaces/ecpg/pgtypeslib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/pgtypeslib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "pgtypes - Library for data type mapping" NAME= pgtypes SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 6 diff --git a/src/interfaces/ecpg/test/Makefile b/src/interfaces/ecpg/test/Makefile index d359fce..0befee3 100644 --- a/src/interfaces/ecpg/test/Makefile +++ b/src/interfaces/ecpg/test/Makefile @@ -13,6 +13,8 @@ override CPPFLAGS := \ '-DDLSUFFIX="$(DLSUFFIX)"' \ $(CPPFLAGS) +PGFILEDESC = "ECPG Test - Regression tests for ECPG" + # where to find psql for testing an existing installation PSQLDIR = $(bindir) diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile index 1e800a3..831da22 100644 --- a/src/pl/plperl/GNUmakefile +++ b/src/pl/plperl/GNUmakefile @@ -26,6 +26,7 @@ override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE rpathdir = $(perl_archlibexp)/CORE +PGFILEDESC = "PL/Perl - Perl Procedural Language" NAME = plperl diff --git a/src/pl/plpgsql/src/Makefile b/src/pl/plpgsql/src/Makefile index 852b0c7..2ddbefb 100644 --- a/src/pl/plpgsql/src/Makefile +++ b/src/pl/plpgsql/src/Makefile @@ -10,6 +10,8 @@ subdir = src/pl/plpgsql/src top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "PL/pgSQL - SQL Procedural Language" + # Shared library parameters NAME= plpgsql diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index 020861a..cf57e97 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -38,6 +38,8 @@ override CPPFLAGS := -I. -I$(srcdir) $(python_includespec) $(CPPFLAGS) rpathdir = $(python_libdir) +PGFILEDESC = "PL/Python - Python Procedural Language" + NAME = plpython$(python_majorversion) OBJS = \ diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index 2ab2a27..70333e7 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -34,6 +34,7 @@ ifneq ($(PORTNAME), win32) SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS) -lc endif +PGFILEDESC = "PL/Tcl - Tcl Procedural Language" NAME = pltcl diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index 0377772..3bee965 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -505,6 +505,7 @@ sub mkvcbuild 'pgp-mpi-internal.c', 'imath.c'); } $pgcrypto->AddReference($postgres); + $pgcrypto->AddDir('contrib/pgcrypto'); $pgcrypto->AddLibrary('wsock32.lib'); my $mf = Project::read_file('contrib/pgcrypto/Makefile'); GenerateContribSqlFiles('pgcrypto', $mf); @@ -539,6 +540,7 @@ sub mkvcbuild $p->AddFile( 'src\backend\utils\mb\conversion_procs\\' . $sub . '\\' . $1); } + $p->AddDir('src\backend\utils\mb\conversion_procs\\' . $sub); $p->AddReference($postgres); } -- 2.0.0
^ permalink raw reply [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-06-21 14:46  MauMau <maumau307@gmail.com>
  parent: Michael Paquier <michael.paquier@gmail.com>
  1 sibling, 0 replies; 25+ messages in thread

From: MauMau @ 2014-06-21 14:46 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: Magnus Hagander <magnus@hagander.net>; pgsql-bugs

From: "Michael Paquier" <michael.paquier@gmail.com>
> On Sat, Jun 21, 2014 at 11:47 AM, MauMau <maumau307@gmail.com> wrote:
>> (1)
>> lib\pgcrypto.dll doesn't have versioning info.
> Urgh, thanks I missed it. It is fixed in the patch attached by adding
> a AddDir call in the project of pgcrypto as this contrib module is
> kind of particular in the MSVC scripts. Here is the output of my
> cscript checking versioning with the new patch:

Thanks, I confirmed that pgcrypto.dll has proper versioning info.


>> (2)
>> None of the conversion_procs has versioning info.  But their Makefiles 
>> have
>> PGFILEDESC line.  For example,
>> src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile has the 
>> line:
>>
>> NAME  = ascii_and_mic
>> PGFILEDESC = "ascii_and_mic"
> Strange, it works for me:

Sorry, this was my mistake.  The patch application of Mkvcbuild.pm in 
0002*.patch failed due to file permissions.  conversion_procs Dlls now have 
correct versioning info.

I marked this CommitFest entry as ready for committer.

Regards
MauMau



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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-07-10 15:02  Noah Misch <noah@leadboat.com>
  parent: Michael Paquier <michael.paquier@gmail.com>
  1 sibling, 1 reply; 25+ messages in thread

From: Noah Misch @ 2014-07-10 15:02 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: MauMau <maumau307@gmail.com>; Magnus Hagander <magnus@hagander.net>; pgsql-bugs

I started editing these patches for commit, but I ran into two defects.
First, clean.bat requires an update to remove the new win32ver.rc files.
Second, the MinGW build uses few or none of the new PGFILEDESC entries; you
need to mention $(WIN32RES) as in (most) existing PGFILEDESC-using makefiles.

Here are the patches as they stood at the time of those discoveries.
Project::AddDir() does more than look for PGFILEDESC.  Your patches placed
AddDir calls next to code made redundant by those calls; I removed the
now-redundant code.  I prefer four-argument Solution::AddProject() over
three-argument Solution::AddProject() followed promptly by Project::AddDir(),
but that was a mere cosmetic judgement.  Our prevailing style is to not
uppercase the letter after the hyphen in PGFILEDESC, and I edited PGFILEDESC
wording here and there.  Please update these to fix the two bugs noted above.

You requested a back-patch, but no part of this change qualifies.  Even given
a back-patch, automata checking this metadata should point at one of the files
that already has it.

On Sat, Jun 21, 2014 at 10:13:40PM +0900, Michael Paquier wrote:
> On Sat, Jun 21, 2014 at 11:47 AM, MauMau <maumau307@gmail.com> wrote:
> > bin\isolationtester.exe
> > bin\pg_isolation_regress
> > bin\pg_regress.exe
> > bin\pg_regress_ecpg.exe
> > bin\zic.exe
> > lib\dict_snowball.dll
> > lib\regress.dll
> Yes, I'd like to improve that in a next patch hopefully in CF2, except
> if a committer picking up this patch thinks differently.

While I'd have preferred to see all binaries covered at once, that's fine.

nm

-- 
Noah Misch
EnterpriseDB                                 http://www.enterprisedb.com

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

Attachments: download all (2 files, .tar.gz)

0001-Add-AddDir-calls-for-contrib-v4.patch (text/plain, 4.0K) download commit 9946486 Author: Noah Misch <noah@leadboat.com> AuthorDate: Wed Jul 9 18:41:40 2014 -0400 Commit: Noah Misch <noah@leadboat.com> CommitDate: Thu Jul 10 10:35:54 2014 -0400 MSVC: Recognize PGFILEDESC in contrib and conversion_procs modules. Achieve this by consistently using four-argument Solution::AddProject() calls. Remove ad hoc Makefile parsing made redundant by doing that. Michael Paquier and Noah Misch diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index 8002f23..71450f4 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -474,8 +474,10 @@ sub mkvcbuild push @contrib_excludes, 'uuid-ossp'; } - # Pgcrypto makefile too complex to parse.... - my $pgcrypto = $solution->AddProject('pgcrypto', 'dll', 'crypto'); + # AddProject() does not recognize the constructs used to populate OBJS in + # the pgcrypto Makefile, so it will discover no files. + my $pgcrypto = + $solution->AddProject('pgcrypto', 'dll', 'crypto', 'contrib\\pgcrypto'); $pgcrypto->AddFiles( 'contrib\pgcrypto', 'pgcrypto.c', 'px.c', 'px-hmac.c', @@ -527,18 +529,9 @@ sub mkvcbuild || die 'Could not match in conversion makefile' . "\n"; foreach my $sub (split /\s+/, $1) { - my $mf = Project::read_file( - 'src\backend\utils\mb\conversion_procs\\' . $sub . '\Makefile'); - my $p = $solution->AddProject($sub, 'dll', 'conversion procs'); - $p->AddFile('src\backend\utils\mb\conversion_procs\\' - . $sub . '\\' - . $sub - . '.c'); - if ($mf =~ m{^SRCS\s*\+=\s*(.*)$}m) - { - $p->AddFile( - 'src\backend\utils\mb\conversion_procs\\' . $sub . '\\' . $1); - } + my $dir = 'src\backend\utils\mb\conversion_procs\\' . $sub; + my $p = $solution->AddProject($sub, 'dll', 'conversion procs', $dir); + $p->AddFile("$dir\\$sub.c"); # implicit source file $p->AddReference($postgres); } @@ -646,44 +639,17 @@ sub AddContrib if ($mf =~ /^MODULE_big\s*=\s*(.*)$/mg) { my $dn = $1; - $mf =~ s{\\\s*[\r\n]+}{}mg; - my $proj = $solution->AddProject($dn, 'dll', 'contrib'); - $mf =~ /^OBJS\s*=\s*(.*)$/gm - || croak "Could not find objects in MODULE_big for $n\n"; - my $objs = $1; - while ($objs =~ /\b([\w-]+\.o)\b/g) - { - my $o = $1; - $o =~ s/\.o$/.c/; - $proj->AddFile('contrib\\' . $n . '\\' . $o); - } + my $proj = + $solution->AddProject($dn, 'dll', 'contrib', 'contrib\\' . $n); $proj->AddReference($postgres); - if ($mf =~ /^SUBDIRS\s*:?=\s*(.*)$/mg) - { - foreach my $d (split /\s+/, $1) - { - my $mf2 = Project::read_file( - 'contrib\\' . $n . '\\' . $d . '\Makefile'); - $mf2 =~ s{\\\s*[\r\n]+}{}mg; - $mf2 =~ /^SUBOBJS\s*=\s*(.*)$/gm - || croak - "Could not find objects in MODULE_big for $n, subdir $d\n"; - $objs = $1; - while ($objs =~ /\b([\w-]+\.o)\b/g) - { - my $o = $1; - $o =~ s/\.o$/.c/; - $proj->AddFile('contrib\\' . $n . '\\' . $d . '\\' . $o); - } - } - } AdjustContribProj($proj); } elsif ($mf =~ /^MODULES\s*=\s*(.*)$/mg) { foreach my $mod (split /\s+/, $1) { - my $proj = $solution->AddProject($mod, 'dll', 'contrib'); + my $proj = + $solution->AddProject($mod, 'dll', 'contrib', 'contrib\\' . $n); $proj->AddFile('contrib\\' . $n . '\\' . $mod . '.c'); $proj->AddReference($postgres); AdjustContribProj($proj); @@ -691,17 +657,8 @@ sub AddContrib } elsif ($mf =~ /^PROGRAM\s*=\s*(.*)$/mg) { - my $proj = $solution->AddProject($1, 'exe', 'contrib'); - $mf =~ s{\\\s*[\r\n]+}{}mg; - $mf =~ /^OBJS\s*=\s*(.*)$/gm - || croak "Could not find objects in PROGRAM for $n\n"; - my $objs = $1; - while ($objs =~ /\b([\w-]+\.o)\b/g) - { - my $o = $1; - $o =~ s/\.o$/.c/; - $proj->AddFile('contrib\\' . $n . '\\' . $o); - } + my $proj = + $solution->AddProject($1, 'exe', 'contrib', 'contrib\\' . $n); AdjustContribProj($proj); } else @@ -717,6 +674,7 @@ sub GenerateContribSqlFiles { my $n = shift; my $mf = shift; + $mf =~ s{\\\s*[\r\n]+}{}mg; if ($mf =~ /^DATA_built\s*=\s*(.*)$/mg) { my $l = $1;
0002-Add-file-versioning-for-all-core-dll-and-exe-in-MSVC-v4.patch (text/plain, 35.6K) download commit da661ff Author: Noah Misch <noah@leadboat.com> AuthorDate: Wed Jul 9 18:51:52 2014 -0400 Commit: Noah Misch <noah@leadboat.com> CommitDate: Thu Jul 10 10:36:20 2014 -0400 Draft edit of Makefile bits diff --git a/contrib/adminpack/Makefile b/contrib/adminpack/Makefile index 5cbc8f0..6122599 100644 --- a/contrib/adminpack/Makefile +++ b/contrib/adminpack/Makefile @@ -6,6 +6,7 @@ PG_CPPFLAGS = -I$(libpq_srcdir) EXTENSION = adminpack DATA = adminpack--1.0.sql +PGFILEDESC = "adminpack - Support functions for pgAdmin" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/auth_delay/Makefile b/contrib/auth_delay/Makefile index 09d2d54..4b86ec3 100644 --- a/contrib/auth_delay/Makefile +++ b/contrib/auth_delay/Makefile @@ -1,6 +1,7 @@ # contrib/auth_delay/Makefile MODULES = auth_delay +PGFILEDESC = "auth_delay - delay authentication failure reports" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/auto_explain/Makefile b/contrib/auto_explain/Makefile index 2d1443f..8759e94 100644 --- a/contrib/auto_explain/Makefile +++ b/contrib/auto_explain/Makefile @@ -2,6 +2,7 @@ MODULE_big = auto_explain OBJS = auto_explain.o +PGFILEDESC = "auto_explain - logging facility for execution plans" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/btree_gin/Makefile b/contrib/btree_gin/Makefile index 09fd3e6..cd5530a 100644 --- a/contrib/btree_gin/Makefile +++ b/contrib/btree_gin/Makefile @@ -5,6 +5,7 @@ OBJS = btree_gin.o EXTENSION = btree_gin DATA = btree_gin--1.0.sql btree_gin--unpackaged--1.0.sql +PGFILEDESC = "btree_gin - B-tree equivalent GIN operator classes" REGRESS = install_btree_gin int2 int4 int8 float4 float8 money oid \ timestamp timestamptz time timetz date interval \ diff --git a/contrib/btree_gist/Makefile b/contrib/btree_gist/Makefile index ba4af14..86e6611 100644 --- a/contrib/btree_gist/Makefile +++ b/contrib/btree_gist/Makefile @@ -10,6 +10,7 @@ OBJS = btree_gist.o btree_utils_num.o btree_utils_var.o btree_int2.o \ EXTENSION = btree_gist DATA = btree_gist--1.0.sql btree_gist--unpackaged--1.0.sql +PGFILEDESC = "btree_gist - B-tree equivalent GIST operator classes" REGRESS = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz \ time timetz date interval macaddr inet cidr text varchar char bytea \ diff --git a/contrib/chkpass/Makefile b/contrib/chkpass/Makefile index b775aef..9eb38fd 100644 --- a/contrib/chkpass/Makefile +++ b/contrib/chkpass/Makefile @@ -5,6 +5,7 @@ OBJS = chkpass.o EXTENSION = chkpass DATA = chkpass--1.0.sql chkpass--unpackaged--1.0.sql +PGFILEDESC = "chkpass - encrypted password data type" SHLIB_LINK = $(filter -lcrypt, $(LIBS)) diff --git a/contrib/citext/Makefile b/contrib/citext/Makefile index 6594252..267854b 100644 --- a/contrib/citext/Makefile +++ b/contrib/citext/Makefile @@ -4,6 +4,7 @@ MODULES = citext EXTENSION = citext DATA = citext--1.0.sql citext--unpackaged--1.0.sql +PGFILEDESC = "citext - case-insensitive character string data type" REGRESS = citext diff --git a/contrib/cube/Makefile b/contrib/cube/Makefile index b5cd5d0..c8e9e39 100644 --- a/contrib/cube/Makefile +++ b/contrib/cube/Makefile @@ -5,6 +5,7 @@ OBJS= cube.o cubeparse.o EXTENSION = cube DATA = cube--1.0.sql cube--unpackaged--1.0.sql +PGFILEDESC = "cube - multidimensional cube data type" REGRESS = cube diff --git a/contrib/dblink/Makefile b/contrib/dblink/Makefile index 32314a0..8baf8b1 100644 --- a/contrib/dblink/Makefile +++ b/contrib/dblink/Makefile @@ -8,6 +8,7 @@ SHLIB_PREREQS = submake-libpq EXTENSION = dblink DATA = dblink--1.1.sql dblink--1.0--1.1.sql dblink--unpackaged--1.0.sql +PGFILEDESC = "dblink - connect to other PostgreSQL databases" REGRESS = dblink diff --git a/contrib/dict_int/Makefile b/contrib/dict_int/Makefile index 3a3fc36..f70e194 100644 --- a/contrib/dict_int/Makefile +++ b/contrib/dict_int/Makefile @@ -5,6 +5,7 @@ OBJS = dict_int.o EXTENSION = dict_int DATA = dict_int--1.0.sql dict_int--unpackaged--1.0.sql +PGFILEDESC = "dict_int - add-on dictionary template for full-text search" REGRESS = dict_int diff --git a/contrib/dict_xsyn/Makefile b/contrib/dict_xsyn/Makefile index ce92baa..0335efe 100644 --- a/contrib/dict_xsyn/Makefile +++ b/contrib/dict_xsyn/Makefile @@ -6,6 +6,7 @@ OBJS = dict_xsyn.o EXTENSION = dict_xsyn DATA = dict_xsyn--1.0.sql dict_xsyn--unpackaged--1.0.sql DATA_TSEARCH = xsyn_sample.rules +PGFILEDESC = "dict_xsyn - add-on dictionary template for full-text search" REGRESS = dict_xsyn diff --git a/contrib/dummy_seclabel/Makefile b/contrib/dummy_seclabel/Makefile index 105400f..e69aa1f 100644 --- a/contrib/dummy_seclabel/Makefile +++ b/contrib/dummy_seclabel/Makefile @@ -1,6 +1,7 @@ # contrib/dummy_seclabel/Makefile MODULES = dummy_seclabel +PGFILEDESC = "dummy_seclabel - regression testing of the SECURITY LABEL statement" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/earthdistance/Makefile b/contrib/earthdistance/Makefile index 48a7cf8..93dcbe3 100644 --- a/contrib/earthdistance/Makefile +++ b/contrib/earthdistance/Makefile @@ -4,6 +4,7 @@ MODULES = earthdistance EXTENSION = earthdistance DATA = earthdistance--1.0.sql earthdistance--unpackaged--1.0.sql +PGFILEDESC = "earthdistance - calculate distances on the surface of the Earth" REGRESS = earthdistance REGRESS_OPTS = --extra-install=contrib/cube diff --git a/contrib/file_fdw/Makefile b/contrib/file_fdw/Makefile index 4616cec..4da9f2d 100644 --- a/contrib/file_fdw/Makefile +++ b/contrib/file_fdw/Makefile @@ -4,6 +4,7 @@ MODULES = file_fdw EXTENSION = file_fdw DATA = file_fdw--1.0.sql +PGFILEDESC = "file_fdw - foreign data wrapper for files" REGRESS = file_fdw diff --git a/contrib/fuzzystrmatch/Makefile b/contrib/fuzzystrmatch/Makefile index 834b679..dc06a70 100644 --- a/contrib/fuzzystrmatch/Makefile +++ b/contrib/fuzzystrmatch/Makefile @@ -5,6 +5,7 @@ OBJS = fuzzystrmatch.o dmetaphone.o EXTENSION = fuzzystrmatch DATA = fuzzystrmatch--1.0.sql fuzzystrmatch--unpackaged--1.0.sql +PGFILEDESC = "fuzzystrmatch - similarities and distance between strings" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/hstore/Makefile b/contrib/hstore/Makefile index 2b60fbe..3f9b252 100644 --- a/contrib/hstore/Makefile +++ b/contrib/hstore/Makefile @@ -8,6 +8,7 @@ EXTENSION = hstore DATA = hstore--1.3.sql hstore--1.2--1.3.sql \ hstore--1.1--1.2.sql hstore--1.0--1.1.sql \ hstore--unpackaged--1.0.sql +PGFILEDESC = "hstore - key/value pair data type" REGRESS = hstore diff --git a/contrib/intagg/Makefile b/contrib/intagg/Makefile index 2cfe997..81bb7cc 100644 --- a/contrib/intagg/Makefile +++ b/contrib/intagg/Makefile @@ -2,6 +2,7 @@ EXTENSION = intagg DATA = intagg--1.0.sql intagg--unpackaged--1.0.sql +PGFILEDESC = "intagg - integer aggregator and enumerator" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/intarray/Makefile b/contrib/intarray/Makefile index 71f820e..3496d62 100644 --- a/contrib/intarray/Makefile +++ b/contrib/intarray/Makefile @@ -5,6 +5,7 @@ OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o _int_gin.o EXTENSION = intarray DATA = intarray--1.0.sql intarray--unpackaged--1.0.sql +PGFILEDESC = "intarray - functions and operators for arrays of integers" REGRESS = _int diff --git a/contrib/isn/Makefile b/contrib/isn/Makefile index bd8f193..75c07a8 100644 --- a/contrib/isn/Makefile +++ b/contrib/isn/Makefile @@ -4,6 +4,7 @@ MODULES = isn EXTENSION = isn DATA = isn--1.0.sql isn--unpackaged--1.0.sql +PGFILEDESC = "isn - data types for international product numbering standards" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/lo/Makefile b/contrib/lo/Makefile index 66b337c..b956aa4 100644 --- a/contrib/lo/Makefile +++ b/contrib/lo/Makefile @@ -4,6 +4,7 @@ MODULES = lo EXTENSION = lo DATA = lo--1.0.sql lo--unpackaged--1.0.sql +PGFILEDESC = "lo - management for large objects" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/ltree/Makefile b/contrib/ltree/Makefile index 65d42f8..a28e29c 100644 --- a/contrib/ltree/Makefile +++ b/contrib/ltree/Makefile @@ -7,6 +7,7 @@ PG_CPPFLAGS = -DLOWER_NODE EXTENSION = ltree DATA = ltree--1.0.sql ltree--unpackaged--1.0.sql +PGFILEDESC = "ltree - hierarchical label data type" REGRESS = ltree diff --git a/contrib/pageinspect/Makefile b/contrib/pageinspect/Makefile index ee78cb2..e4b5d8e 100644 --- a/contrib/pageinspect/Makefile +++ b/contrib/pageinspect/Makefile @@ -6,6 +6,7 @@ OBJS = rawpage.o heapfuncs.o btreefuncs.o fsmfuncs.o EXTENSION = pageinspect DATA = pageinspect--1.2.sql pageinspect--1.0--1.1.sql \ pageinspect--1.1--1.2.sql pageinspect--unpackaged--1.0.sql +PGFILEDESC = "pageinspect - functions to inspect contents of database pages" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/passwordcheck/Makefile b/contrib/passwordcheck/Makefile index 4829bfd..93672f1 100644 --- a/contrib/passwordcheck/Makefile +++ b/contrib/passwordcheck/Makefile @@ -2,6 +2,7 @@ MODULE_big = passwordcheck OBJS = passwordcheck.o +PGFILEDESC = "passwordcheck - strengthen user password checks" # uncomment the following two lines to enable cracklib support # PG_CPPFLAGS = -DUSE_CRACKLIB '-DCRACKLIB_DICTPATH="/usr/lib/cracklib_dict"' diff --git a/contrib/pg_buffercache/Makefile b/contrib/pg_buffercache/Makefile index 323c0ac..3c8535c 100644 --- a/contrib/pg_buffercache/Makefile +++ b/contrib/pg_buffercache/Makefile @@ -5,6 +5,7 @@ OBJS = pg_buffercache_pages.o EXTENSION = pg_buffercache DATA = pg_buffercache--1.0.sql pg_buffercache--unpackaged--1.0.sql +PGFILEDESC = "pg_buffercache - monitoring of shared buffer cache in real-time" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_freespacemap/Makefile b/contrib/pg_freespacemap/Makefile index b2e3ba3..bd8b9ba 100644 --- a/contrib/pg_freespacemap/Makefile +++ b/contrib/pg_freespacemap/Makefile @@ -5,6 +5,7 @@ OBJS = pg_freespacemap.o EXTENSION = pg_freespacemap DATA = pg_freespacemap--1.0.sql pg_freespacemap--unpackaged--1.0.sql +PGFILEDESC = "pg_freespacemap - monitoring of free space map" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_prewarm/Makefile b/contrib/pg_prewarm/Makefile index 176a29a..3ba82f7 100644 --- a/contrib/pg_prewarm/Makefile +++ b/contrib/pg_prewarm/Makefile @@ -5,6 +5,7 @@ OBJS = pg_prewarm.o EXTENSION = pg_prewarm DATA = pg_prewarm--1.0.sql +PGFILEDESC = "pg_prewarm - preload relation data into system buffer cache" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_stat_statements/Makefile b/contrib/pg_stat_statements/Makefile index 95a2767..0783360 100644 --- a/contrib/pg_stat_statements/Makefile +++ b/contrib/pg_stat_statements/Makefile @@ -6,6 +6,7 @@ OBJS = pg_stat_statements.o EXTENSION = pg_stat_statements DATA = pg_stat_statements--1.2.sql pg_stat_statements--1.1--1.2.sql \ pg_stat_statements--1.0--1.1.sql pg_stat_statements--unpackaged--1.0.sql +PGFILEDESC = "pg_stat_statements - execution statistics of SQL statements" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_trgm/Makefile b/contrib/pg_trgm/Makefile index 0d549f8..432c33f 100644 --- a/contrib/pg_trgm/Makefile +++ b/contrib/pg_trgm/Makefile @@ -5,6 +5,7 @@ OBJS = trgm_op.o trgm_gist.o trgm_gin.o trgm_regexp.o EXTENSION = pg_trgm DATA = pg_trgm--1.1.sql pg_trgm--1.0--1.1.sql pg_trgm--unpackaged--1.0.sql +PGFILEDESC = "pg_trgm - trigram matching" REGRESS = pg_trgm diff --git a/contrib/pg_xlogdump/Makefile b/contrib/pg_xlogdump/Makefile index ada261c..30a8706 100644 --- a/contrib/pg_xlogdump/Makefile +++ b/contrib/pg_xlogdump/Makefile @@ -1,6 +1,6 @@ # contrib/pg_xlogdump/Makefile -PGFILEDESC = "pg_xlogdump" +PGFILEDESC = "pg_xlogdump - decode and display WAL" PGAPPICON=win32 PROGRAM = pg_xlogdump diff --git a/contrib/pgcrypto/Makefile b/contrib/pgcrypto/Makefile index 1c85c98..66ef75d 100644 --- a/contrib/pgcrypto/Makefile +++ b/contrib/pgcrypto/Makefile @@ -27,6 +27,7 @@ OBJS = $(SRCS:.c=.o) EXTENSION = pgcrypto DATA = pgcrypto--1.1.sql pgcrypto--1.0--1.1.sql pgcrypto--unpackaged--1.0.sql +PGFILEDESC = "pgcrypto - cryptographic functions" REGRESS = init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \ $(CF_TESTS) \ diff --git a/contrib/pgrowlocks/Makefile b/contrib/pgrowlocks/Makefile index fe80423..7ac7042 100644 --- a/contrib/pgrowlocks/Makefile +++ b/contrib/pgrowlocks/Makefile @@ -5,6 +5,7 @@ OBJS = pgrowlocks.o EXTENSION = pgrowlocks DATA = pgrowlocks--1.1.sql pgrowlocks--1.0--1.1.sql pgrowlocks--unpackaged--1.0.sql +PGFILEDESC = "pgrowlocks - display row locking information" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pgstattuple/Makefile b/contrib/pgstattuple/Makefile index d991c3a..ef2190f 100644 --- a/contrib/pgstattuple/Makefile +++ b/contrib/pgstattuple/Makefile @@ -5,6 +5,7 @@ OBJS = pgstattuple.o pgstatindex.o EXTENSION = pgstattuple DATA = pgstattuple--1.2.sql pgstattuple--1.1--1.2.sql pgstattuple--1.0--1.1.sql pgstattuple--unpackaged--1.0.sql +PGFILEDESC = "pgstattuple - tuple-level statistics" REGRESS = pgstattuple diff --git a/contrib/postgres_fdw/Makefile b/contrib/postgres_fdw/Makefile index 8c49720..8801249 100644 --- a/contrib/postgres_fdw/Makefile +++ b/contrib/postgres_fdw/Makefile @@ -2,6 +2,7 @@ MODULE_big = postgres_fdw OBJS = postgres_fdw.o option.o deparse.o connection.o +PGFILEDESC = "postgres_fdw - foreign data wrapper for PostgreSQL" PG_CPPFLAGS = -I$(libpq_srcdir) SHLIB_LINK = $(libpq) diff --git a/contrib/seg/Makefile b/contrib/seg/Makefile index fb9c576..7f1c23a 100644 --- a/contrib/seg/Makefile +++ b/contrib/seg/Makefile @@ -5,6 +5,7 @@ OBJS = seg.o segparse.o EXTENSION = seg DATA = seg--1.0.sql seg--unpackaged--1.0.sql +PGFILEDESC = "seg - line segment data type" REGRESS = seg diff --git a/contrib/sepgsql/Makefile b/contrib/sepgsql/Makefile index ff3a61d..70b71aa 100644 --- a/contrib/sepgsql/Makefile +++ b/contrib/sepgsql/Makefile @@ -4,6 +4,7 @@ MODULE_big = sepgsql OBJS = hooks.o selinux.o uavc.o label.o dml.o \ database.o schema.o relation.o proc.o DATA_built = sepgsql.sql +PGFILEDESC = "sepgsql - SELinux integration" # Note: because we don't tell the Makefile there are any regression tests, # we have to clean those result files explicitly diff --git a/contrib/spi/Makefile b/contrib/spi/Makefile index 0c11bfc..10ab5bb 100644 --- a/contrib/spi/Makefile +++ b/contrib/spi/Makefile @@ -9,6 +9,7 @@ DATA = autoinc--1.0.sql autoinc--unpackaged--1.0.sql \ moddatetime--1.0.sql moddatetime--unpackaged--1.0.sql \ refint--1.0.sql refint--unpackaged--1.0.sql \ timetravel--1.0.sql timetravel--unpackaged--1.0.sql +PGFILEDESC = "spi - examples of using SPI and triggers" DOCS = $(addsuffix .example, $(MODULES)) diff --git a/contrib/sslinfo/Makefile b/contrib/sslinfo/Makefile index 0dee6ed..7f6e032 100644 --- a/contrib/sslinfo/Makefile +++ b/contrib/sslinfo/Makefile @@ -5,6 +5,7 @@ OBJS = sslinfo.o EXTENSION = sslinfo DATA = sslinfo--1.0.sql sslinfo--unpackaged--1.0.sql +PGFILEDESC = "sslinfo - information about client SSL certificate" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/tablefunc/Makefile b/contrib/tablefunc/Makefile index eb10893..7150117 100644 --- a/contrib/tablefunc/Makefile +++ b/contrib/tablefunc/Makefile @@ -4,6 +4,7 @@ MODULES = tablefunc EXTENSION = tablefunc DATA = tablefunc--1.0.sql tablefunc--unpackaged--1.0.sql +PGFILEDESC = "tablefunc - various functions that return tables" REGRESS = tablefunc diff --git a/contrib/tcn/Makefile b/contrib/tcn/Makefile index 7bac5e3..2de3425 100644 --- a/contrib/tcn/Makefile +++ b/contrib/tcn/Makefile @@ -4,6 +4,7 @@ MODULES = tcn EXTENSION = tcn DATA = tcn--1.0.sql +PGFILEDESC = "tcn - trigger function notifying listeners" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/test_decoding/Makefile b/contrib/test_decoding/Makefile index 58e0f38..a025f27 100644 --- a/contrib/test_decoding/Makefile +++ b/contrib/test_decoding/Makefile @@ -2,6 +2,7 @@ MODULES = test_decoding OBJS = test_decoding.o +PGFILEDESC = "test_decoding - example of a logical decoding output plugin" # Note: because we don't tell the Makefile there are any regression tests, # we have to clean those result files explicitly diff --git a/contrib/test_parser/Makefile b/contrib/test_parser/Makefile index b9766cb..b3310dd 100644 --- a/contrib/test_parser/Makefile +++ b/contrib/test_parser/Makefile @@ -2,6 +2,7 @@ MODULE_big = test_parser OBJS = test_parser.o +PGFILEDESC = "test_parser - example of a custom parser for full-text search" EXTENSION = test_parser DATA = test_parser--1.0.sql test_parser--unpackaged--1.0.sql diff --git a/contrib/test_shm_mq/Makefile b/contrib/test_shm_mq/Makefile index 5e5ac1c..3d72950 100644 --- a/contrib/test_shm_mq/Makefile +++ b/contrib/test_shm_mq/Makefile @@ -2,6 +2,7 @@ MODULE_big = test_shm_mq OBJS = test.o setup.o worker.o +PGFILEDESC = "test_shm_mq - example use of shared memory message queue" EXTENSION = test_shm_mq DATA = test_shm_mq--1.0.sql diff --git a/contrib/tsearch2/Makefile b/contrib/tsearch2/Makefile index d260fd0..36dcedc 100644 --- a/contrib/tsearch2/Makefile +++ b/contrib/tsearch2/Makefile @@ -4,6 +4,7 @@ MODULES = tsearch2 EXTENSION = tsearch2 DATA = tsearch2--1.0.sql tsearch2--unpackaged--1.0.sql +PGFILEDESC = "tsearch2 - backward-compatible text search functionality" REGRESS = tsearch2 diff --git a/contrib/unaccent/Makefile b/contrib/unaccent/Makefile index f0be62d..ad2e849 100644 --- a/contrib/unaccent/Makefile +++ b/contrib/unaccent/Makefile @@ -6,6 +6,7 @@ OBJS = unaccent.o EXTENSION = unaccent DATA = unaccent--1.0.sql unaccent--unpackaged--1.0.sql DATA_TSEARCH = unaccent.rules +PGFILEDESC = "unaccent - text search dictionary that removes accents" REGRESS = unaccent diff --git a/contrib/uuid-ossp/Makefile b/contrib/uuid-ossp/Makefile index 335cc7e..63386b3 100644 --- a/contrib/uuid-ossp/Makefile +++ b/contrib/uuid-ossp/Makefile @@ -5,6 +5,7 @@ OBJS = uuid-ossp.o $(UUID_EXTRA_OBJS) EXTENSION = uuid-ossp DATA = uuid-ossp--1.0.sql uuid-ossp--unpackaged--1.0.sql +PGFILEDESC = "uuid-ossp - UUID generation" REGRESS = uuid_ossp diff --git a/contrib/worker_spi/Makefile b/contrib/worker_spi/Makefile index fbb29b4..5cce4d1 100644 --- a/contrib/worker_spi/Makefile +++ b/contrib/worker_spi/Makefile @@ -4,6 +4,7 @@ MODULES = worker_spi EXTENSION = worker_spi DATA = worker_spi--1.0.sql +PGFILEDESC = "worker_spi - background worker example" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/xml2/Makefile b/contrib/xml2/Makefile index be3d018..d2402cb 100644 --- a/contrib/xml2/Makefile +++ b/contrib/xml2/Makefile @@ -5,6 +5,7 @@ OBJS = xpath.o xslt_proc.o EXTENSION = xml2 DATA = xml2--1.0.sql xml2--unpackaged--1.0.sql +PGFILEDESC = "xml2 - XPath querying and XSLT" REGRESS = xml2 diff --git a/src/backend/replication/libpqwalreceiver/Makefile b/src/backend/replication/libpqwalreceiver/Makefile index 774adaa..c286744 100644 --- a/src/backend/replication/libpqwalreceiver/Makefile +++ b/src/backend/replication/libpqwalreceiver/Makefile @@ -17,6 +17,7 @@ override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS) OBJS = libpqwalreceiver.o SHLIB_LINK = $(libpq) SHLIB_PREREQS = submake-libpq +PGFILEDESC = "libpqwalreceiver - receive WAL during streaming replication" NAME = libpqwalreceiver all: all-shared-lib diff --git a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile index d71ca16..fa65eba 100644 --- a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = ascii_and_mic +PGFILEDESC = "ascii <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile index 78c384a..e7cd8e8 100644 --- a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = cyrillic_and_mic +PGFILEDESC = "cyrillic <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile index 199e655..7f31e94 100644 --- a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc2004_sjis2004 +PGFILEDESC = "euc2004_sjis2004" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile index a740656..cb6a83f 100644 --- a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_cn_and_mic +PGFILEDESC = "euc_cn <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile index fa167e9..0b1de0e 100644 --- a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_jp_and_sjis +PGFILEDESC = "euc_jp <-> sjis text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile index 5ce5548..d43b082 100644 --- a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_kr_and_mic +PGFILEDESC = "euc_kr <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile index 7625435..5ac2389 100644 --- a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile @@ -8,6 +8,7 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_tw_and_big5 +PGFILEDESC = "euc_tw <-> big5 text conversions" SRCS += big5.c OBJS += big5.o diff --git a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile index 7587b66..5e48dae 100644 --- a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin2_and_win1250 +PGFILEDESC = "latin2 <-> win1250 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile index ec88740..c404738 100644 --- a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin_and_mic +PGFILEDESC = "latin <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile index a4b1b3f..7bd68e2 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_ascii +PGFILEDESC = "utf8 <-> ascii text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile index df72836..2c274f3 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_big5 +PGFILEDESC = "utf8 <-> big5 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile index 410037c..725281e 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_cyrillic +PGFILEDESC = "utf8 <-> cyrillic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile index 58c513a..c6c537c 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc2004 +PGFILEDESC = "utf8 <-> euc2004 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile index 053162e..9d0e157 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_cn +PGFILEDESC = "utf8 <-> euc_cn text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile index 6a7678d..c5f5578 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_jp +PGFILEDESC = "utf8 <-> euc_jp text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile index 13935ab..a7eff9e 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_kr +PGFILEDESC = "utf8 <-> euc_kr text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile index 7b9b833..59f42dc 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_tw +PGFILEDESC = "utf8 <-> euc_tw text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile index 1fb3e5a..17bc18c 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gb18030 +PGFILEDESC = "utf8 <-> gb18030 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile index 240fe14..eb20638 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gbk +PGFILEDESC = "utf8 <-> gbk text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile index c02323e..6fd0dd2 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859 +PGFILEDESC = "utf8 <-> iso8859 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile index c2fac2e..0298284 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859_1 +PGFILEDESC = "utf8 <-> iso8859_1 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile index bdd39fb..e48ef3e 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_johab +PGFILEDESC = "utf8 <-> johab text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile index 7f4dd0c..448c5d4 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis +PGFILEDESC = "utf8 <-> sjis text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile index ed0bfde..f7072a4 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis2004 +PGFILEDESC = "utf8 <-> sjis2004 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile index 5c09c7e..cc6e0a9 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_uhc +PGFILEDESC = "utf8 <-> uhc text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile index 31c510b..d8b18fb 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_win +PGFILEDESC = "utf8 <-> win text conversions" include $(srcdir)/../proc.mk diff --git a/src/bin/pg_basebackup/Makefile b/src/bin/pg_basebackup/Makefile index c6322ec..90d19e7 100644 --- a/src/bin/pg_basebackup/Makefile +++ b/src/bin/pg_basebackup/Makefile @@ -9,7 +9,7 @@ # #------------------------------------------------------------------------- -PGFILEDESC = "pg_basebackup - takes a streaming base backup of a PostgreSQL instance" +PGFILEDESC = "pg_basebackup/pg_receivexlog/pg_recvlogical - streaming WAL and backup receivers" PGAPPICON=win32 subdir = src/bin/pg_basebackup diff --git a/src/interfaces/ecpg/compatlib/Makefile b/src/interfaces/ecpg/compatlib/Makefile index db704d7..8ee1ced 100644 --- a/src/interfaces/ecpg/compatlib/Makefile +++ b/src/interfaces/ecpg/compatlib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/compatlib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG compat - compatibility library for ECPG" NAME= ecpg_compat SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 7 diff --git a/src/interfaces/ecpg/ecpglib/Makefile b/src/interfaces/ecpg/ecpglib/Makefile index 9f4582e..3e16d90 100644 --- a/src/interfaces/ecpg/ecpglib/Makefile +++ b/src/interfaces/ecpg/ecpglib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/ecpglib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG - embedded SQL in C" NAME= ecpg SO_MAJOR_VERSION= 6 SO_MINOR_VERSION= 7 diff --git a/src/interfaces/ecpg/pgtypeslib/Makefile b/src/interfaces/ecpg/pgtypeslib/Makefile index d73c37e..0a23b58 100644 --- a/src/interfaces/ecpg/pgtypeslib/Makefile +++ b/src/interfaces/ecpg/pgtypeslib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/pgtypeslib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "pgtypes - library for data type mapping" NAME= pgtypes SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 6 diff --git a/src/interfaces/ecpg/test/Makefile b/src/interfaces/ecpg/test/Makefile index d359fce..5414930 100644 --- a/src/interfaces/ecpg/test/Makefile +++ b/src/interfaces/ecpg/test/Makefile @@ -13,6 +13,8 @@ override CPPFLAGS := \ '-DDLSUFFIX="$(DLSUFFIX)"' \ $(CPPFLAGS) +PGFILEDESC = "ECPG Test - regression tests for ECPG" + # where to find psql for testing an existing installation PSQLDIR = $(bindir) diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile index 1e800a3..16ccb06 100644 --- a/src/pl/plperl/GNUmakefile +++ b/src/pl/plperl/GNUmakefile @@ -26,6 +26,7 @@ override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE rpathdir = $(perl_archlibexp)/CORE +PGFILEDESC = "PL/Perl - procedural language" NAME = plperl diff --git a/src/pl/plpgsql/src/Makefile b/src/pl/plpgsql/src/Makefile index 852b0c7..ec65888 100644 --- a/src/pl/plpgsql/src/Makefile +++ b/src/pl/plpgsql/src/Makefile @@ -10,6 +10,8 @@ subdir = src/pl/plpgsql/src top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "PL/pgSQL - procedural language" + # Shared library parameters NAME= plpgsql diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index 020861a..5aef941 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -38,6 +38,8 @@ override CPPFLAGS := -I. -I$(srcdir) $(python_includespec) $(CPPFLAGS) rpathdir = $(python_libdir) +PGFILEDESC = "PL/Python - procedural language" + NAME = plpython$(python_majorversion) OBJS = \ diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index 2ab2a27..cf0a66f 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -34,6 +34,7 @@ ifneq ($(PORTNAME), win32) SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS) -lc endif +PGFILEDESC = "PL/Tcl - procedural language" NAME = pltcl
^ permalink raw reply [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-07-11 04:21  Michael Paquier <michael.paquier@gmail.com>
  parent: Noah Misch <noah@leadboat.com>
  0 siblings, 1 reply; 25+ messages in thread

From: Michael Paquier @ 2014-07-11 04:21 UTC (permalink / raw)
  To: Noah Misch <noah@leadboat.com>; +Cc: MauMau <maumau307@gmail.com>; Magnus Hagander <magnus@hagander.net>; pgsql-bugs

On Fri, Jul 11, 2014 at 12:02 AM, Noah Misch <noah@leadboat.com> wrote:
> I started editing these patches for commit, but I ran into two defects.
Thanks for looking at that and helping out!

> First, clean.bat requires an update to remove the new win32ver.rc files.
Done. The removal of the additional rc files is grouped at the
beginning of clean.bat.

> Second, the MinGW build uses few or none of the new PGFILEDESC entries; you
> need to mention $(WIN32RES) as in (most) existing PGFILEDESC-using makefiles.
I see, that's specified in src/makefiles/Makefile.win32. For the
portion of conversion_procs, updating directly proc.mk seems to be
enough, so done this way. Also, an entry in conversion_procs was not
updated according to the PGFILEDESC you introduced.

Btw, looking more at those patches, I found a limitation with
contrib/spi for MinGW builds: in order to pass WIN32RES to OBJS, some
of the contrib defined as MODULES need to be defined as MODULE_big to
accept a custom list of OBJS, but MODULE_big is not able to accept a
list of shared libraries. This limitation causes all the dll generated
in contrib/spi to not be versioned with MinGW. MSVC works fine though.

> Here are the patches as they stood at the time of those discoveries.
> Project::AddDir() does more than look for PGFILEDESC.  Your patches placed
> AddDir calls next to code made redundant by those calls; I removed the
> now-redundant code.  I prefer four-argument Solution::AddProject() over
> three-argument Solution::AddProject() followed promptly by Project::AddDir(),
> but that was a mere cosmetic judgement.  Our prevailing style is to not
> uppercase the letter after the hyphen in PGFILEDESC, and I edited PGFILEDESC
> wording here and there.  Please update these to fix the two bugs noted above.
Ah, right. Nice catch.

> On Sat, Jun 21, 2014 at 10:13:40PM +0900, Michael Paquier wrote:
>> On Sat, Jun 21, 2014 at 11:47 AM, MauMau <maumau307@gmail.com> wrote:
>> > bin\isolationtester.exe
>> > bin\pg_isolation_regress
>> > bin\pg_regress.exe
>> > bin\pg_regress_ecpg.exe
>> > bin\zic.exe
>> > lib\dict_snowball.dll
>> > lib\regress.dll
>> Yes, I'd like to improve that in a next patch hopefully in CF2, except
>> if a committer picking up this patch thinks differently.
>
> While I'd have preferred to see all binaries covered at once, that's fine.
Thanks, I am still planning to work more on those things for CF2 and
next commit fests.

Updated patches are attached.

Regards,
-- 
Michael

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

Attachments: download all (2 files, .tar.gz)

0001-MSVC-Recognize-PGFILEDESC-in-contrib-and-conversion_.patch (text/x-patch, 4.1K) download From a2a83aafbaf729623a78c2b78075d15955fe1574 Mon Sep 17 00:00:00 2001 From: Michael Paquier <michael@otacoo.com> Date: Fri, 11 Jul 2014 10:05:28 +0900 Subject: [PATCH 1/2] MSVC: Recognize PGFILEDESC in contrib and conversion_procs modules Achieve this by consistently using four-argument Solution::AddProject() calls. Remove ad hoc Makefile parsing made redundant by doing that. Michael Paquier and Noah Misch --- src/tools/msvc/Mkvcbuild.pm | 70 +++++++++------------------------------------ 1 file changed, 14 insertions(+), 56 deletions(-) diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index 8002f23..71450f4 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -474,8 +474,10 @@ sub mkvcbuild push @contrib_excludes, 'uuid-ossp'; } - # Pgcrypto makefile too complex to parse.... - my $pgcrypto = $solution->AddProject('pgcrypto', 'dll', 'crypto'); + # AddProject() does not recognize the constructs used to populate OBJS in + # the pgcrypto Makefile, so it will discover no files. + my $pgcrypto = + $solution->AddProject('pgcrypto', 'dll', 'crypto', 'contrib\\pgcrypto'); $pgcrypto->AddFiles( 'contrib\pgcrypto', 'pgcrypto.c', 'px.c', 'px-hmac.c', @@ -527,18 +529,9 @@ sub mkvcbuild || die 'Could not match in conversion makefile' . "\n"; foreach my $sub (split /\s+/, $1) { - my $mf = Project::read_file( - 'src\backend\utils\mb\conversion_procs\\' . $sub . '\Makefile'); - my $p = $solution->AddProject($sub, 'dll', 'conversion procs'); - $p->AddFile('src\backend\utils\mb\conversion_procs\\' - . $sub . '\\' - . $sub - . '.c'); - if ($mf =~ m{^SRCS\s*\+=\s*(.*)$}m) - { - $p->AddFile( - 'src\backend\utils\mb\conversion_procs\\' . $sub . '\\' . $1); - } + my $dir = 'src\backend\utils\mb\conversion_procs\\' . $sub; + my $p = $solution->AddProject($sub, 'dll', 'conversion procs', $dir); + $p->AddFile("$dir\\$sub.c"); # implicit source file $p->AddReference($postgres); } @@ -646,44 +639,17 @@ sub AddContrib if ($mf =~ /^MODULE_big\s*=\s*(.*)$/mg) { my $dn = $1; - $mf =~ s{\\\s*[\r\n]+}{}mg; - my $proj = $solution->AddProject($dn, 'dll', 'contrib'); - $mf =~ /^OBJS\s*=\s*(.*)$/gm - || croak "Could not find objects in MODULE_big for $n\n"; - my $objs = $1; - while ($objs =~ /\b([\w-]+\.o)\b/g) - { - my $o = $1; - $o =~ s/\.o$/.c/; - $proj->AddFile('contrib\\' . $n . '\\' . $o); - } + my $proj = + $solution->AddProject($dn, 'dll', 'contrib', 'contrib\\' . $n); $proj->AddReference($postgres); - if ($mf =~ /^SUBDIRS\s*:?=\s*(.*)$/mg) - { - foreach my $d (split /\s+/, $1) - { - my $mf2 = Project::read_file( - 'contrib\\' . $n . '\\' . $d . '\Makefile'); - $mf2 =~ s{\\\s*[\r\n]+}{}mg; - $mf2 =~ /^SUBOBJS\s*=\s*(.*)$/gm - || croak - "Could not find objects in MODULE_big for $n, subdir $d\n"; - $objs = $1; - while ($objs =~ /\b([\w-]+\.o)\b/g) - { - my $o = $1; - $o =~ s/\.o$/.c/; - $proj->AddFile('contrib\\' . $n . '\\' . $d . '\\' . $o); - } - } - } AdjustContribProj($proj); } elsif ($mf =~ /^MODULES\s*=\s*(.*)$/mg) { foreach my $mod (split /\s+/, $1) { - my $proj = $solution->AddProject($mod, 'dll', 'contrib'); + my $proj = + $solution->AddProject($mod, 'dll', 'contrib', 'contrib\\' . $n); $proj->AddFile('contrib\\' . $n . '\\' . $mod . '.c'); $proj->AddReference($postgres); AdjustContribProj($proj); @@ -691,17 +657,8 @@ sub AddContrib } elsif ($mf =~ /^PROGRAM\s*=\s*(.*)$/mg) { - my $proj = $solution->AddProject($1, 'exe', 'contrib'); - $mf =~ s{\\\s*[\r\n]+}{}mg; - $mf =~ /^OBJS\s*=\s*(.*)$/gm - || croak "Could not find objects in PROGRAM for $n\n"; - my $objs = $1; - while ($objs =~ /\b([\w-]+\.o)\b/g) - { - my $o = $1; - $o =~ s/\.o$/.c/; - $proj->AddFile('contrib\\' . $n . '\\' . $o); - } + my $proj = + $solution->AddProject($1, 'exe', 'contrib', 'contrib\\' . $n); AdjustContribProj($proj); } else @@ -717,6 +674,7 @@ sub GenerateContribSqlFiles { my $n = shift; my $mf = shift; + $mf =~ s{\\\s*[\r\n]+}{}mg; if ($mf =~ /^DATA_built\s*=\s*(.*)$/mg) { my $l = $1; -- 2.0.1
0002-Improve-versioning-for-MSVC-and-MinGW-builds.patch (text/x-patch, 50.9K) download From f161753cb3114d8ea89aa3f5f16dec0a4df69f72 Mon Sep 17 00:00:00 2001 From: Michael Paquier <michael@otacoo.com> Date: Thu, 10 Jul 2014 21:14:34 -0700 Subject: [PATCH 2/2] Improve versioning for MSVC and MinGW builds A large portion of the dll libraries and executable files are associated a version number on Windows for MSVC and MinGW builds. The following libraries are still lacking a version number but there are plans for improvements in the future: - isolationtester.exe - pg_isolation_regress - pg_regress.exe - pg_regress_ecpg.exe - zic.exe - dict_snowball.dll - regress.dll --- contrib/adminpack/Makefile | 3 ++- contrib/auth_delay/Makefile | 4 +++- contrib/auto_explain/Makefile | 3 ++- contrib/btree_gin/Makefile | 3 ++- contrib/btree_gist/Makefile | 3 ++- contrib/chkpass/Makefile | 3 ++- contrib/citext/Makefile | 4 +++- contrib/cube/Makefile | 3 ++- contrib/dblink/Makefile | 3 ++- contrib/dict_int/Makefile | 3 ++- contrib/dict_xsyn/Makefile | 3 ++- contrib/dummy_seclabel/Makefile | 4 +++- contrib/earthdistance/Makefile | 4 +++- contrib/file_fdw/Makefile | 5 ++++- contrib/fuzzystrmatch/Makefile | 3 ++- contrib/hstore/Makefile | 3 ++- contrib/intagg/Makefile | 2 ++ contrib/intarray/Makefile | 4 +++- contrib/isn/Makefile | 4 +++- contrib/lo/Makefile | 4 +++- contrib/ltree/Makefile | 4 +++- contrib/pageinspect/Makefile | 3 ++- contrib/passwordcheck/Makefile | 3 ++- contrib/pg_buffercache/Makefile | 3 ++- contrib/pg_freespacemap/Makefile | 3 ++- contrib/pg_prewarm/Makefile | 3 ++- contrib/pg_stat_statements/Makefile | 3 ++- contrib/pg_trgm/Makefile | 3 ++- contrib/pg_upgrade_support/Makefile | 3 ++- contrib/pg_xlogdump/Makefile | 2 +- contrib/pgcrypto/Makefile | 3 ++- contrib/pgrowlocks/Makefile | 3 ++- contrib/pgstattuple/Makefile | 3 ++- contrib/postgres_fdw/Makefile | 3 ++- contrib/seg/Makefile | 3 ++- contrib/sepgsql/Makefile | 3 ++- contrib/spi/Makefile | 1 + contrib/sslinfo/Makefile | 3 ++- contrib/tablefunc/Makefile | 4 +++- contrib/tcn/Makefile | 4 +++- contrib/test_decoding/Makefile | 5 +++-- contrib/test_parser/Makefile | 3 ++- contrib/test_shm_mq/Makefile | 3 ++- contrib/tsearch2/Makefile | 4 +++- contrib/unaccent/Makefile | 3 ++- contrib/uuid-ossp/Makefile | 3 ++- contrib/worker_spi/Makefile | 4 +++- contrib/xml2/Makefile | 3 ++- src/backend/replication/libpqwalreceiver/Makefile | 3 ++- src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile | 1 + .../utils/mb/conversion_procs/latin2_and_win1250/Makefile | 1 + src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/proc.mk | 2 +- src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile | 1 + .../utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile | 1 + src/bin/pg_basebackup/Makefile | 2 +- src/interfaces/ecpg/compatlib/Makefile | 3 ++- src/interfaces/ecpg/ecpglib/Makefile | 1 + src/interfaces/ecpg/pgtypeslib/Makefile | 3 ++- src/interfaces/ecpg/test/Makefile | 6 ++++-- src/pl/plperl/GNUmakefile | 3 ++- src/pl/plpgsql/src/Makefile | 5 ++++- src/pl/plpython/Makefile | 4 +++- src/pl/tcl/Makefile | 3 ++- src/tools/msvc/clean.bat | 9 +++++++++ 86 files changed, 168 insertions(+), 58 deletions(-) diff --git a/contrib/adminpack/Makefile b/contrib/adminpack/Makefile index 5cbc8f0..29073fe 100644 --- a/contrib/adminpack/Makefile +++ b/contrib/adminpack/Makefile @@ -1,11 +1,12 @@ # contrib/adminpack/Makefile MODULE_big = adminpack -OBJS = adminpack.o +OBJS = adminpack.o $(WIN32RES) PG_CPPFLAGS = -I$(libpq_srcdir) EXTENSION = adminpack DATA = adminpack--1.0.sql +PGFILEDESC = "adminpack - Support functions for pgAdmin" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/auth_delay/Makefile b/contrib/auth_delay/Makefile index 09d2d54..098b3b1 100644 --- a/contrib/auth_delay/Makefile +++ b/contrib/auth_delay/Makefile @@ -1,6 +1,8 @@ # contrib/auth_delay/Makefile -MODULES = auth_delay +MODULE_big = auth_delay +OBJS = auth_delay.o $(WIN32RES) +PGFILEDESC = "auth_delay - delay authentication failure reports" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/auto_explain/Makefile b/contrib/auto_explain/Makefile index 2d1443f..fcf36c5 100644 --- a/contrib/auto_explain/Makefile +++ b/contrib/auto_explain/Makefile @@ -1,7 +1,8 @@ # contrib/auto_explain/Makefile MODULE_big = auto_explain -OBJS = auto_explain.o +OBJS = auto_explain.o $(WIN32RES) +PGFILEDESC = "auto_explain - logging facility for execution plans" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/btree_gin/Makefile b/contrib/btree_gin/Makefile index 09fd3e6..0492091 100644 --- a/contrib/btree_gin/Makefile +++ b/contrib/btree_gin/Makefile @@ -1,10 +1,11 @@ # contrib/btree_gin/Makefile MODULE_big = btree_gin -OBJS = btree_gin.o +OBJS = btree_gin.o $(WIN32RES) EXTENSION = btree_gin DATA = btree_gin--1.0.sql btree_gin--unpackaged--1.0.sql +PGFILEDESC = "btree_gin - B-tree equivalent GIN operator classes" REGRESS = install_btree_gin int2 int4 int8 float4 float8 money oid \ timestamp timestamptz time timetz date interval \ diff --git a/contrib/btree_gist/Makefile b/contrib/btree_gist/Makefile index ba4af14..19a5929 100644 --- a/contrib/btree_gist/Makefile +++ b/contrib/btree_gist/Makefile @@ -6,10 +6,11 @@ OBJS = btree_gist.o btree_utils_num.o btree_utils_var.o btree_int2.o \ btree_int4.o btree_int8.o btree_float4.o btree_float8.o btree_cash.o \ btree_oid.o btree_ts.o btree_time.o btree_date.o btree_interval.o \ btree_macaddr.o btree_inet.o btree_text.o btree_bytea.o btree_bit.o \ - btree_numeric.o + btree_numeric.o $(WIN32RES) EXTENSION = btree_gist DATA = btree_gist--1.0.sql btree_gist--unpackaged--1.0.sql +PGFILEDESC = "btree_gist - B-tree equivalent GIST operator classes" REGRESS = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz \ time timetz date interval macaddr inet cidr text varchar char bytea \ diff --git a/contrib/chkpass/Makefile b/contrib/chkpass/Makefile index b775aef..a2599ea 100644 --- a/contrib/chkpass/Makefile +++ b/contrib/chkpass/Makefile @@ -1,10 +1,11 @@ # contrib/chkpass/Makefile MODULE_big = chkpass -OBJS = chkpass.o +OBJS = chkpass.o $(WIN32RES) EXTENSION = chkpass DATA = chkpass--1.0.sql chkpass--unpackaged--1.0.sql +PGFILEDESC = "chkpass - encrypted password data type" SHLIB_LINK = $(filter -lcrypt, $(LIBS)) diff --git a/contrib/citext/Makefile b/contrib/citext/Makefile index 6594252..f95a873 100644 --- a/contrib/citext/Makefile +++ b/contrib/citext/Makefile @@ -1,9 +1,11 @@ # contrib/citext/Makefile -MODULES = citext +MODULE_big = citext +OBJS = citext.o $(WIN32RES) EXTENSION = citext DATA = citext--1.0.sql citext--unpackaged--1.0.sql +PGFILEDESC = "citext - case-insensitive character string data type" REGRESS = citext diff --git a/contrib/cube/Makefile b/contrib/cube/Makefile index b5cd5d0..67f7867 100644 --- a/contrib/cube/Makefile +++ b/contrib/cube/Makefile @@ -1,10 +1,11 @@ # contrib/cube/Makefile MODULE_big = cube -OBJS= cube.o cubeparse.o +OBJS= cube.o cubeparse.o $(WIN32RES) EXTENSION = cube DATA = cube--1.0.sql cube--unpackaged--1.0.sql +PGFILEDESC = "cube - multidimensional cube data type" REGRESS = cube diff --git a/contrib/dblink/Makefile b/contrib/dblink/Makefile index 32314a0..9242ed7 100644 --- a/contrib/dblink/Makefile +++ b/contrib/dblink/Makefile @@ -1,13 +1,14 @@ # contrib/dblink/Makefile MODULE_big = dblink -OBJS = dblink.o +OBJS = dblink.o $(WIN32RES) PG_CPPFLAGS = -I$(libpq_srcdir) SHLIB_LINK = $(libpq) SHLIB_PREREQS = submake-libpq EXTENSION = dblink DATA = dblink--1.1.sql dblink--1.0--1.1.sql dblink--unpackaged--1.0.sql +PGFILEDESC = "dblink - connect to other PostgreSQL databases" REGRESS = dblink diff --git a/contrib/dict_int/Makefile b/contrib/dict_int/Makefile index 3a3fc36..f6ae24a 100644 --- a/contrib/dict_int/Makefile +++ b/contrib/dict_int/Makefile @@ -1,10 +1,11 @@ # contrib/dict_int/Makefile MODULE_big = dict_int -OBJS = dict_int.o +OBJS = dict_int.o $(WIN32RES) EXTENSION = dict_int DATA = dict_int--1.0.sql dict_int--unpackaged--1.0.sql +PGFILEDESC = "dict_int - add-on dictionary template for full-text search" REGRESS = dict_int diff --git a/contrib/dict_xsyn/Makefile b/contrib/dict_xsyn/Makefile index ce92baa..0c401cf 100644 --- a/contrib/dict_xsyn/Makefile +++ b/contrib/dict_xsyn/Makefile @@ -1,11 +1,12 @@ # contrib/dict_xsyn/Makefile MODULE_big = dict_xsyn -OBJS = dict_xsyn.o +OBJS = dict_xsyn.o $(WIN32RES) EXTENSION = dict_xsyn DATA = dict_xsyn--1.0.sql dict_xsyn--unpackaged--1.0.sql DATA_TSEARCH = xsyn_sample.rules +PGFILEDESC = "dict_xsyn - add-on dictionary template for full-text search" REGRESS = dict_xsyn diff --git a/contrib/dummy_seclabel/Makefile b/contrib/dummy_seclabel/Makefile index 105400f..ed9a774 100644 --- a/contrib/dummy_seclabel/Makefile +++ b/contrib/dummy_seclabel/Makefile @@ -1,6 +1,8 @@ # contrib/dummy_seclabel/Makefile -MODULES = dummy_seclabel +MODULE_big = dummy_seclabel +OBJS = dummy_seclabel.o $(WIN32RES) +PGFILEDESC = "dummy_seclabel - regression testing of the SECURITY LABEL statement" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/earthdistance/Makefile b/contrib/earthdistance/Makefile index 48a7cf8..f6801d7 100644 --- a/contrib/earthdistance/Makefile +++ b/contrib/earthdistance/Makefile @@ -1,9 +1,11 @@ # contrib/earthdistance/Makefile -MODULES = earthdistance +MODULE_big = earthdistance +OBJS = earthdistance.o $(WIN32RES) EXTENSION = earthdistance DATA = earthdistance--1.0.sql earthdistance--unpackaged--1.0.sql +PGFILEDESC = "earthdistance - calculate distances on the surface of the Earth" REGRESS = earthdistance REGRESS_OPTS = --extra-install=contrib/cube diff --git a/contrib/file_fdw/Makefile b/contrib/file_fdw/Makefile index 4616cec..1010a18 100644 --- a/contrib/file_fdw/Makefile +++ b/contrib/file_fdw/Makefile @@ -1,9 +1,12 @@ # contrib/file_fdw/Makefile -MODULES = file_fdw +MODULE_big = file_fdw +OBJS = file_fdw.o $(WIN32RES) EXTENSION = file_fdw DATA = file_fdw--1.0.sql +PGFILEDESC = "file_fdw - foreign data wrapper for files" +PGAPPICON = win32 REGRESS = file_fdw diff --git a/contrib/fuzzystrmatch/Makefile b/contrib/fuzzystrmatch/Makefile index 834b679..024265d 100644 --- a/contrib/fuzzystrmatch/Makefile +++ b/contrib/fuzzystrmatch/Makefile @@ -1,10 +1,11 @@ # contrib/fuzzystrmatch/Makefile MODULE_big = fuzzystrmatch -OBJS = fuzzystrmatch.o dmetaphone.o +OBJS = fuzzystrmatch.o dmetaphone.o $(WIN32RES) EXTENSION = fuzzystrmatch DATA = fuzzystrmatch--1.0.sql fuzzystrmatch--unpackaged--1.0.sql +PGFILEDESC = "fuzzystrmatch - similarities and distance between strings" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/hstore/Makefile b/contrib/hstore/Makefile index 2b60fbe..3193668 100644 --- a/contrib/hstore/Makefile +++ b/contrib/hstore/Makefile @@ -2,12 +2,13 @@ MODULE_big = hstore OBJS = hstore_io.o hstore_op.o hstore_gist.o hstore_gin.o hstore_compat.o \ - crc32.o + crc32.o $(WIN32RES) EXTENSION = hstore DATA = hstore--1.3.sql hstore--1.2--1.3.sql \ hstore--1.1--1.2.sql hstore--1.0--1.1.sql \ hstore--unpackaged--1.0.sql +PGFILEDESC = "hstore - key/value pair data type" REGRESS = hstore diff --git a/contrib/intagg/Makefile b/contrib/intagg/Makefile index 2cfe997..c214c38 100644 --- a/contrib/intagg/Makefile +++ b/contrib/intagg/Makefile @@ -1,7 +1,9 @@ # contrib/intagg/Makefile EXTENSION = intagg +OBJS = intagg.o $(WIN32RES) DATA = intagg--1.0.sql intagg--unpackaged--1.0.sql +PGFILEDESC = "intagg - integer aggregator and enumerator" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/intarray/Makefile b/contrib/intarray/Makefile index 71f820e..a1067ac 100644 --- a/contrib/intarray/Makefile +++ b/contrib/intarray/Makefile @@ -1,10 +1,12 @@ # contrib/intarray/Makefile MODULE_big = _int -OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o _int_gin.o +OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o \ + _int_gin.o $(WIN32RES) EXTENSION = intarray DATA = intarray--1.0.sql intarray--unpackaged--1.0.sql +PGFILEDESC = "intarray - functions and operators for arrays of integers" REGRESS = _int diff --git a/contrib/isn/Makefile b/contrib/isn/Makefile index bd8f193..15a7d42 100644 --- a/contrib/isn/Makefile +++ b/contrib/isn/Makefile @@ -1,9 +1,11 @@ # contrib/isn/Makefile -MODULES = isn +MODULE_big = isn +OBJS = isn.o $(WIN32RES) EXTENSION = isn DATA = isn--1.0.sql isn--unpackaged--1.0.sql +PGFILEDESC = "isn - data types for international product numbering standards" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/lo/Makefile b/contrib/lo/Makefile index 66b337c..24b85cb 100644 --- a/contrib/lo/Makefile +++ b/contrib/lo/Makefile @@ -1,9 +1,11 @@ # contrib/lo/Makefile -MODULES = lo +MODULE_big = lo +OBJS = lo.o $(WIN32RES) EXTENSION = lo DATA = lo--1.0.sql lo--unpackaged--1.0.sql +PGFILEDESC = "lo - management for large objects" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/ltree/Makefile b/contrib/ltree/Makefile index 65d42f8..8dad94c 100644 --- a/contrib/ltree/Makefile +++ b/contrib/ltree/Makefile @@ -2,11 +2,13 @@ MODULE_big = ltree OBJS = ltree_io.o ltree_op.o lquery_op.o _ltree_op.o crc32.o \ - ltxtquery_io.o ltxtquery_op.o ltree_gist.o _ltree_gist.o + ltxtquery_io.o ltxtquery_op.o ltree_gist.o \ + _ltree_gist.o $(WIN32RES) PG_CPPFLAGS = -DLOWER_NODE EXTENSION = ltree DATA = ltree--1.0.sql ltree--unpackaged--1.0.sql +PGFILEDESC = "ltree - hierarchical label data type" REGRESS = ltree diff --git a/contrib/pageinspect/Makefile b/contrib/pageinspect/Makefile index ee78cb2..f10229d 100644 --- a/contrib/pageinspect/Makefile +++ b/contrib/pageinspect/Makefile @@ -1,11 +1,12 @@ # contrib/pageinspect/Makefile MODULE_big = pageinspect -OBJS = rawpage.o heapfuncs.o btreefuncs.o fsmfuncs.o +OBJS = rawpage.o heapfuncs.o btreefuncs.o fsmfuncs.o $(WIN32RES) EXTENSION = pageinspect DATA = pageinspect--1.2.sql pageinspect--1.0--1.1.sql \ pageinspect--1.1--1.2.sql pageinspect--unpackaged--1.0.sql +PGFILEDESC = "pageinspect - functions to inspect contents of database pages" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/passwordcheck/Makefile b/contrib/passwordcheck/Makefile index 4829bfd..4652aeb 100644 --- a/contrib/passwordcheck/Makefile +++ b/contrib/passwordcheck/Makefile @@ -1,7 +1,8 @@ # contrib/passwordcheck/Makefile MODULE_big = passwordcheck -OBJS = passwordcheck.o +OBJS = passwordcheck.o $(WIN32RES) +PGFILEDESC = "passwordcheck - strengthen user password checks" # uncomment the following two lines to enable cracklib support # PG_CPPFLAGS = -DUSE_CRACKLIB '-DCRACKLIB_DICTPATH="/usr/lib/cracklib_dict"' diff --git a/contrib/pg_buffercache/Makefile b/contrib/pg_buffercache/Makefile index 323c0ac..c5297d9 100644 --- a/contrib/pg_buffercache/Makefile +++ b/contrib/pg_buffercache/Makefile @@ -1,10 +1,11 @@ # contrib/pg_buffercache/Makefile MODULE_big = pg_buffercache -OBJS = pg_buffercache_pages.o +OBJS = pg_buffercache_pages.o $(WIN32RES) EXTENSION = pg_buffercache DATA = pg_buffercache--1.0.sql pg_buffercache--unpackaged--1.0.sql +PGFILEDESC = "pg_buffercache - monitoring of shared buffer cache in real-time" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_freespacemap/Makefile b/contrib/pg_freespacemap/Makefile index b2e3ba3..5760d9f 100644 --- a/contrib/pg_freespacemap/Makefile +++ b/contrib/pg_freespacemap/Makefile @@ -1,10 +1,11 @@ # contrib/pg_freespacemap/Makefile MODULE_big = pg_freespacemap -OBJS = pg_freespacemap.o +OBJS = pg_freespacemap.o $(WIN32RES) EXTENSION = pg_freespacemap DATA = pg_freespacemap--1.0.sql pg_freespacemap--unpackaged--1.0.sql +PGFILEDESC = "pg_freespacemap - monitoring of free space map" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_prewarm/Makefile b/contrib/pg_prewarm/Makefile index 176a29a..eeba502 100644 --- a/contrib/pg_prewarm/Makefile +++ b/contrib/pg_prewarm/Makefile @@ -1,10 +1,11 @@ # contrib/pg_prewarm/Makefile MODULE_big = pg_prewarm -OBJS = pg_prewarm.o +OBJS = pg_prewarm.o $(WIN32RES) EXTENSION = pg_prewarm DATA = pg_prewarm--1.0.sql +PGFILEDESC = "pg_prewarm - preload relation data into system buffer cache" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_stat_statements/Makefile b/contrib/pg_stat_statements/Makefile index 95a2767..2709909 100644 --- a/contrib/pg_stat_statements/Makefile +++ b/contrib/pg_stat_statements/Makefile @@ -1,11 +1,12 @@ # contrib/pg_stat_statements/Makefile MODULE_big = pg_stat_statements -OBJS = pg_stat_statements.o +OBJS = pg_stat_statements.o $(WIN32RES) EXTENSION = pg_stat_statements DATA = pg_stat_statements--1.2.sql pg_stat_statements--1.1--1.2.sql \ pg_stat_statements--1.0--1.1.sql pg_stat_statements--unpackaged--1.0.sql +PGFILEDESC = "pg_stat_statements - execution statistics of SQL statements" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_trgm/Makefile b/contrib/pg_trgm/Makefile index 0d549f8..e081a1e 100644 --- a/contrib/pg_trgm/Makefile +++ b/contrib/pg_trgm/Makefile @@ -1,10 +1,11 @@ # contrib/pg_trgm/Makefile MODULE_big = pg_trgm -OBJS = trgm_op.o trgm_gist.o trgm_gin.o trgm_regexp.o +OBJS = trgm_op.o trgm_gist.o trgm_gin.o trgm_regexp.o $(WIN32RES) EXTENSION = pg_trgm DATA = pg_trgm--1.1.sql pg_trgm--1.0--1.1.sql pg_trgm--unpackaged--1.0.sql +PGFILEDESC = "pg_trgm - trigram matching" REGRESS = pg_trgm diff --git a/contrib/pg_upgrade_support/Makefile b/contrib/pg_upgrade_support/Makefile index f7def16..d8124ac 100644 --- a/contrib/pg_upgrade_support/Makefile +++ b/contrib/pg_upgrade_support/Makefile @@ -2,7 +2,8 @@ PGFILEDESC = "pg_upgrade_support - server-side functions for pg_upgrade" -MODULES = pg_upgrade_support +MODULE_big = pg_upgrade_support +OBJS = pg_upgrade_support.o $(WIN32RES) ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_xlogdump/Makefile b/contrib/pg_xlogdump/Makefile index ada261c..30a8706 100644 --- a/contrib/pg_xlogdump/Makefile +++ b/contrib/pg_xlogdump/Makefile @@ -1,6 +1,6 @@ # contrib/pg_xlogdump/Makefile -PGFILEDESC = "pg_xlogdump" +PGFILEDESC = "pg_xlogdump - decode and display WAL" PGAPPICON=win32 PROGRAM = pg_xlogdump diff --git a/contrib/pgcrypto/Makefile b/contrib/pgcrypto/Makefile index 1c85c98..05716c9 100644 --- a/contrib/pgcrypto/Makefile +++ b/contrib/pgcrypto/Makefile @@ -23,10 +23,11 @@ SRCS = pgcrypto.c px.c px-hmac.c px-crypt.c \ pgp-pgsql.c MODULE_big = pgcrypto -OBJS = $(SRCS:.c=.o) +OBJS = $(SRCS:.c=.o) $(WIN32RES) EXTENSION = pgcrypto DATA = pgcrypto--1.1.sql pgcrypto--1.0--1.1.sql pgcrypto--unpackaged--1.0.sql +PGFILEDESC = "pgcrypto - cryptographic functions" REGRESS = init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \ $(CF_TESTS) \ diff --git a/contrib/pgrowlocks/Makefile b/contrib/pgrowlocks/Makefile index fe80423..059ea05 100644 --- a/contrib/pgrowlocks/Makefile +++ b/contrib/pgrowlocks/Makefile @@ -1,10 +1,11 @@ # contrib/pgrowlocks/Makefile MODULE_big = pgrowlocks -OBJS = pgrowlocks.o +OBJS = pgrowlocks.o $(WIN32RES) EXTENSION = pgrowlocks DATA = pgrowlocks--1.1.sql pgrowlocks--1.0--1.1.sql pgrowlocks--unpackaged--1.0.sql +PGFILEDESC = "pgrowlocks - display row locking information" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pgstattuple/Makefile b/contrib/pgstattuple/Makefile index d991c3a..862585c 100644 --- a/contrib/pgstattuple/Makefile +++ b/contrib/pgstattuple/Makefile @@ -1,10 +1,11 @@ # contrib/pgstattuple/Makefile MODULE_big = pgstattuple -OBJS = pgstattuple.o pgstatindex.o +OBJS = pgstattuple.o pgstatindex.o $(WIN32RES) EXTENSION = pgstattuple DATA = pgstattuple--1.2.sql pgstattuple--1.1--1.2.sql pgstattuple--1.0--1.1.sql pgstattuple--unpackaged--1.0.sql +PGFILEDESC = "pgstattuple - tuple-level statistics" REGRESS = pgstattuple diff --git a/contrib/postgres_fdw/Makefile b/contrib/postgres_fdw/Makefile index 8c49720..7c66095 100644 --- a/contrib/postgres_fdw/Makefile +++ b/contrib/postgres_fdw/Makefile @@ -1,7 +1,8 @@ # contrib/postgres_fdw/Makefile MODULE_big = postgres_fdw -OBJS = postgres_fdw.o option.o deparse.o connection.o +OBJS = postgres_fdw.o option.o deparse.o connection.o $(WIN32RES) +PGFILEDESC = "postgres_fdw - foreign data wrapper for PostgreSQL" PG_CPPFLAGS = -I$(libpq_srcdir) SHLIB_LINK = $(libpq) diff --git a/contrib/seg/Makefile b/contrib/seg/Makefile index fb9c576..d6de8a2 100644 --- a/contrib/seg/Makefile +++ b/contrib/seg/Makefile @@ -1,10 +1,11 @@ # contrib/seg/Makefile MODULE_big = seg -OBJS = seg.o segparse.o +OBJS = seg.o segparse.o $(WIN32RES) EXTENSION = seg DATA = seg--1.0.sql seg--unpackaged--1.0.sql +PGFILEDESC = "seg - line segment data type" REGRESS = seg diff --git a/contrib/sepgsql/Makefile b/contrib/sepgsql/Makefile index ff3a61d..f194b7e 100644 --- a/contrib/sepgsql/Makefile +++ b/contrib/sepgsql/Makefile @@ -2,8 +2,9 @@ MODULE_big = sepgsql OBJS = hooks.o selinux.o uavc.o label.o dml.o \ - database.o schema.o relation.o proc.o + database.o schema.o relation.o proc.o $(WIN32RES) DATA_built = sepgsql.sql +PGFILEDESC = "sepgsql - SELinux integration" # Note: because we don't tell the Makefile there are any regression tests, # we have to clean those result files explicitly diff --git a/contrib/spi/Makefile b/contrib/spi/Makefile index 0c11bfc..10ab5bb 100644 --- a/contrib/spi/Makefile +++ b/contrib/spi/Makefile @@ -9,6 +9,7 @@ DATA = autoinc--1.0.sql autoinc--unpackaged--1.0.sql \ moddatetime--1.0.sql moddatetime--unpackaged--1.0.sql \ refint--1.0.sql refint--unpackaged--1.0.sql \ timetravel--1.0.sql timetravel--unpackaged--1.0.sql +PGFILEDESC = "spi - examples of using SPI and triggers" DOCS = $(addsuffix .example, $(MODULES)) diff --git a/contrib/sslinfo/Makefile b/contrib/sslinfo/Makefile index 0dee6ed..86cbf05 100644 --- a/contrib/sslinfo/Makefile +++ b/contrib/sslinfo/Makefile @@ -1,10 +1,11 @@ # contrib/sslinfo/Makefile MODULE_big = sslinfo -OBJS = sslinfo.o +OBJS = sslinfo.o $(WIN32RES) EXTENSION = sslinfo DATA = sslinfo--1.0.sql sslinfo--unpackaged--1.0.sql +PGFILEDESC = "sslinfo - information about client SSL certificate" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/tablefunc/Makefile b/contrib/tablefunc/Makefile index eb10893..85d890d 100644 --- a/contrib/tablefunc/Makefile +++ b/contrib/tablefunc/Makefile @@ -1,9 +1,11 @@ # contrib/tablefunc/Makefile -MODULES = tablefunc +MODULE_big = tablefunc +OBJS = tablefunc.o $(WIN32RES) EXTENSION = tablefunc DATA = tablefunc--1.0.sql tablefunc--unpackaged--1.0.sql +PGFILEDESC = "tablefunc - various functions that return tables" REGRESS = tablefunc diff --git a/contrib/tcn/Makefile b/contrib/tcn/Makefile index 7bac5e3..6533ff6 100644 --- a/contrib/tcn/Makefile +++ b/contrib/tcn/Makefile @@ -1,9 +1,11 @@ # contrib/tcn/Makefile -MODULES = tcn +MODULE_big = tcn +OBJS = tcn.o $(WIN32RES) EXTENSION = tcn DATA = tcn--1.0.sql +PGFILEDESC = "tcn - trigger function notifying listeners" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/test_decoding/Makefile b/contrib/test_decoding/Makefile index 58e0f38..3892000 100644 --- a/contrib/test_decoding/Makefile +++ b/contrib/test_decoding/Makefile @@ -1,7 +1,8 @@ # contrib/test_decoding/Makefile -MODULES = test_decoding -OBJS = test_decoding.o +MODULE_big = test_decoding +OBJS = test_decoding.o $(WIN32RES) +PGFILEDESC = "test_decoding - example of a logical decoding output plugin" # Note: because we don't tell the Makefile there are any regression tests, # we have to clean those result files explicitly diff --git a/contrib/test_parser/Makefile b/contrib/test_parser/Makefile index b9766cb..7e068ab 100644 --- a/contrib/test_parser/Makefile +++ b/contrib/test_parser/Makefile @@ -1,7 +1,8 @@ # contrib/test_parser/Makefile MODULE_big = test_parser -OBJS = test_parser.o +OBJS = test_parser.o $(WIN32RES) +PGFILEDESC = "test_parser - example of a custom parser for full-text search" EXTENSION = test_parser DATA = test_parser--1.0.sql test_parser--unpackaged--1.0.sql diff --git a/contrib/test_shm_mq/Makefile b/contrib/test_shm_mq/Makefile index 5e5ac1c..e3c4054 100644 --- a/contrib/test_shm_mq/Makefile +++ b/contrib/test_shm_mq/Makefile @@ -1,7 +1,8 @@ # contrib/test_shm_mq/Makefile MODULE_big = test_shm_mq -OBJS = test.o setup.o worker.o +OBJS = test.o setup.o worker.o $(WIN32RES) +PGFILEDESC = "test_shm_mq - example use of shared memory message queue" EXTENSION = test_shm_mq DATA = test_shm_mq--1.0.sql diff --git a/contrib/tsearch2/Makefile b/contrib/tsearch2/Makefile index d260fd0..1a26719 100644 --- a/contrib/tsearch2/Makefile +++ b/contrib/tsearch2/Makefile @@ -1,9 +1,11 @@ # contrib/tsearch2/Makefile -MODULES = tsearch2 +MODULE_big = tsearch2 +OBJS = tsearch2.o $(WIN32RES) EXTENSION = tsearch2 DATA = tsearch2--1.0.sql tsearch2--unpackaged--1.0.sql +PGFILEDESC = "tsearch2 - backward-compatible text search functionality" REGRESS = tsearch2 diff --git a/contrib/unaccent/Makefile b/contrib/unaccent/Makefile index f0be62d..bc93e6f 100644 --- a/contrib/unaccent/Makefile +++ b/contrib/unaccent/Makefile @@ -1,11 +1,12 @@ # contrib/unaccent/Makefile MODULE_big = unaccent -OBJS = unaccent.o +OBJS = unaccent.o $(WIN32RES) EXTENSION = unaccent DATA = unaccent--1.0.sql unaccent--unpackaged--1.0.sql DATA_TSEARCH = unaccent.rules +PGFILEDESC = "unaccent - text search dictionary that removes accents" REGRESS = unaccent diff --git a/contrib/uuid-ossp/Makefile b/contrib/uuid-ossp/Makefile index 335cc7e..93b9355 100644 --- a/contrib/uuid-ossp/Makefile +++ b/contrib/uuid-ossp/Makefile @@ -1,10 +1,11 @@ # contrib/uuid-ossp/Makefile MODULE_big = uuid-ossp -OBJS = uuid-ossp.o $(UUID_EXTRA_OBJS) +OBJS = uuid-ossp.o $(UUID_EXTRA_OBJS) $(WIN32RES) EXTENSION = uuid-ossp DATA = uuid-ossp--1.0.sql uuid-ossp--unpackaged--1.0.sql +PGFILEDESC = "uuid-ossp - UUID generation" REGRESS = uuid_ossp diff --git a/contrib/worker_spi/Makefile b/contrib/worker_spi/Makefile index fbb29b4..bb26341 100644 --- a/contrib/worker_spi/Makefile +++ b/contrib/worker_spi/Makefile @@ -1,9 +1,11 @@ # contrib/worker_spi/Makefile -MODULES = worker_spi +MODULE_big = worker_spi +OBJS = worker_spi.o $(WIN32RES) EXTENSION = worker_spi DATA = worker_spi--1.0.sql +PGFILEDESC = "worker_spi - background worker example" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/xml2/Makefile b/contrib/xml2/Makefile index be3d018..2f7a08c 100644 --- a/contrib/xml2/Makefile +++ b/contrib/xml2/Makefile @@ -1,10 +1,11 @@ # contrib/xml2/Makefile MODULE_big = pgxml -OBJS = xpath.o xslt_proc.o +OBJS = xpath.o xslt_proc.o $(WIN32RES) EXTENSION = xml2 DATA = xml2--1.0.sql xml2--unpackaged--1.0.sql +PGFILEDESC = "xml2 - XPath querying and XSLT" REGRESS = xml2 diff --git a/src/backend/replication/libpqwalreceiver/Makefile b/src/backend/replication/libpqwalreceiver/Makefile index 774adaa..6c95c1c 100644 --- a/src/backend/replication/libpqwalreceiver/Makefile +++ b/src/backend/replication/libpqwalreceiver/Makefile @@ -14,9 +14,10 @@ include $(top_builddir)/src/Makefile.global override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS) -OBJS = libpqwalreceiver.o +OBJS = libpqwalreceiver.o $(WIN32RES) SHLIB_LINK = $(libpq) SHLIB_PREREQS = submake-libpq +PGFILEDESC = "libpqwalreceiver - receive WAL during streaming replication" NAME = libpqwalreceiver all: all-shared-lib diff --git a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile index d71ca16..fa65eba 100644 --- a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = ascii_and_mic +PGFILEDESC = "ascii <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile index 78c384a..e7cd8e8 100644 --- a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = cyrillic_and_mic +PGFILEDESC = "cyrillic <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile index 199e655..164d2f5 100644 --- a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc2004_sjis2004 +PGFILEDESC = "euc2004 <-> sjis2006 text conversions " include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile index a740656..cb6a83f 100644 --- a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_cn_and_mic +PGFILEDESC = "euc_cn <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile index fa167e9..0b1de0e 100644 --- a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_jp_and_sjis +PGFILEDESC = "euc_jp <-> sjis text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile index 5ce5548..d43b082 100644 --- a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_kr_and_mic +PGFILEDESC = "euc_kr <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile index 7625435..5ac2389 100644 --- a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile @@ -8,6 +8,7 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_tw_and_big5 +PGFILEDESC = "euc_tw <-> big5 text conversions" SRCS += big5.c OBJS += big5.o diff --git a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile index 7587b66..5e48dae 100644 --- a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin2_and_win1250 +PGFILEDESC = "latin2 <-> win1250 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile index ec88740..c404738 100644 --- a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin_and_mic +PGFILEDESC = "latin <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/proc.mk b/src/backend/utils/mb/conversion_procs/proc.mk index 77322a4..e0a3b74 100644 --- a/src/backend/utils/mb/conversion_procs/proc.mk +++ b/src/backend/utils/mb/conversion_procs/proc.mk @@ -1,5 +1,5 @@ SRCS += $(NAME).c -OBJS += $(NAME).o +OBJS += $(NAME).o $(WIN32RES) rpath = diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile index a4b1b3f..7bd68e2 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_ascii +PGFILEDESC = "utf8 <-> ascii text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile index df72836..2c274f3 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_big5 +PGFILEDESC = "utf8 <-> big5 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile index 410037c..725281e 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_cyrillic +PGFILEDESC = "utf8 <-> cyrillic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile index 58c513a..c6c537c 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc2004 +PGFILEDESC = "utf8 <-> euc2004 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile index 053162e..9d0e157 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_cn +PGFILEDESC = "utf8 <-> euc_cn text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile index 6a7678d..c5f5578 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_jp +PGFILEDESC = "utf8 <-> euc_jp text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile index 13935ab..a7eff9e 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_kr +PGFILEDESC = "utf8 <-> euc_kr text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile index 7b9b833..59f42dc 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_tw +PGFILEDESC = "utf8 <-> euc_tw text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile index 1fb3e5a..17bc18c 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gb18030 +PGFILEDESC = "utf8 <-> gb18030 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile index 240fe14..eb20638 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gbk +PGFILEDESC = "utf8 <-> gbk text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile index c02323e..6fd0dd2 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859 +PGFILEDESC = "utf8 <-> iso8859 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile index c2fac2e..0298284 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859_1 +PGFILEDESC = "utf8 <-> iso8859_1 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile index bdd39fb..e48ef3e 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_johab +PGFILEDESC = "utf8 <-> johab text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile index 7f4dd0c..448c5d4 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis +PGFILEDESC = "utf8 <-> sjis text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile index ed0bfde..f7072a4 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis2004 +PGFILEDESC = "utf8 <-> sjis2004 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile index 5c09c7e..cc6e0a9 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_uhc +PGFILEDESC = "utf8 <-> uhc text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile index 31c510b..d8b18fb 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_win +PGFILEDESC = "utf8 <-> win text conversions" include $(srcdir)/../proc.mk diff --git a/src/bin/pg_basebackup/Makefile b/src/bin/pg_basebackup/Makefile index c6322ec..90d19e7 100644 --- a/src/bin/pg_basebackup/Makefile +++ b/src/bin/pg_basebackup/Makefile @@ -9,7 +9,7 @@ # #------------------------------------------------------------------------- -PGFILEDESC = "pg_basebackup - takes a streaming base backup of a PostgreSQL instance" +PGFILEDESC = "pg_basebackup/pg_receivexlog/pg_recvlogical - streaming WAL and backup receivers" PGAPPICON=win32 subdir = src/bin/pg_basebackup diff --git a/src/interfaces/ecpg/compatlib/Makefile b/src/interfaces/ecpg/compatlib/Makefile index db704d7..1e2d698 100644 --- a/src/interfaces/ecpg/compatlib/Makefile +++ b/src/interfaces/ecpg/compatlib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/compatlib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG compat - compatibility library for ECPG" NAME= ecpg_compat SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 7 @@ -30,7 +31,7 @@ SHLIB_EXPORTS = exports.txt # Need to recompile any libpgport object files LIBS := $(filter-out -lpgport, $(LIBS)) -OBJS= informix.o $(filter snprintf.o, $(LIBOBJS)) +OBJS= informix.o $(filter snprintf.o, $(LIBOBJS)) $(WIN32RES) PKG_CONFIG_REQUIRES_PRIVATE = libecpg libpgtypes diff --git a/src/interfaces/ecpg/ecpglib/Makefile b/src/interfaces/ecpg/ecpglib/Makefile index 9f4582e..3e16d90 100644 --- a/src/interfaces/ecpg/ecpglib/Makefile +++ b/src/interfaces/ecpg/ecpglib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/ecpglib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG - embedded SQL in C" NAME= ecpg SO_MAJOR_VERSION= 6 SO_MINOR_VERSION= 7 diff --git a/src/interfaces/ecpg/pgtypeslib/Makefile b/src/interfaces/ecpg/pgtypeslib/Makefile index d73c37e..436855e 100644 --- a/src/interfaces/ecpg/pgtypeslib/Makefile +++ b/src/interfaces/ecpg/pgtypeslib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/pgtypeslib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "pgtypes - library for data type mapping" NAME= pgtypes SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 6 @@ -30,7 +31,7 @@ SHLIB_EXPORTS = exports.txt OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \ pgstrcasecmp.o \ - $(filter rint.o snprintf.o, $(LIBOBJS)) + $(filter rint.o snprintf.o, $(LIBOBJS)) $(WIN32RES) all: all-lib diff --git a/src/interfaces/ecpg/test/Makefile b/src/interfaces/ecpg/test/Makefile index d359fce..56f6a17 100644 --- a/src/interfaces/ecpg/test/Makefile +++ b/src/interfaces/ecpg/test/Makefile @@ -13,6 +13,8 @@ override CPPFLAGS := \ '-DDLSUFFIX="$(DLSUFFIX)"' \ $(CPPFLAGS) +PGFILEDESC = "ECPG Test - regression tests for ECPG" + # where to find psql for testing an existing installation PSQLDIR = $(bindir) @@ -41,13 +43,13 @@ clean distclean maintainer-clean: $(MAKE) -C compat_informix $@ $(MAKE) -C thread $@ rm -rf tmp_check results log - rm -f pg_regress regression.diffs regression.out pg_regress_ecpg.o + rm -f pg_regress regression.diffs regression.out pg_regress_ecpg.o $(WIN32RES) # Build regression test driver all: pg_regress$(X) -pg_regress$(X): pg_regress_ecpg.o $(top_builddir)/src/test/regress/pg_regress.o +pg_regress$(X): pg_regress_ecpg.o $(WIN32RES) $(top_builddir)/src/test/regress/pg_regress.o $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $^ $(LIBS) -o $@ $(top_builddir)/src/test/regress/pg_regress.o: diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile index 1e800a3..a04a2d3 100644 --- a/src/pl/plperl/GNUmakefile +++ b/src/pl/plperl/GNUmakefile @@ -26,10 +26,11 @@ override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE rpathdir = $(perl_archlibexp)/CORE +PGFILEDESC = "PL/Perl - procedural language" NAME = plperl -OBJS = plperl.o SPI.o Util.o +OBJS = plperl.o SPI.o Util.o $(WIN32RES) DATA = plperl.control plperl--1.0.sql plperl--unpackaged--1.0.sql \ plperlu.control plperlu--1.0.sql plperlu--unpackaged--1.0.sql diff --git a/src/pl/plpgsql/src/Makefile b/src/pl/plpgsql/src/Makefile index 852b0c7..257c529 100644 --- a/src/pl/plpgsql/src/Makefile +++ b/src/pl/plpgsql/src/Makefile @@ -10,6 +10,8 @@ subdir = src/pl/plpgsql/src top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "PL/pgSQL - procedural language" + # Shared library parameters NAME= plpgsql @@ -17,7 +19,8 @@ override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) SHLIB_LINK = $(filter -lintl, $(LIBS)) rpath = -OBJS = pl_gram.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o pl_scanner.o +OBJS = pl_gram.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o \ + pl_scanner.o $(WIN32RES) DATA = plpgsql.control plpgsql--1.0.sql plpgsql--unpackaged--1.0.sql diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index 020861a..bf7598a 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -38,6 +38,8 @@ override CPPFLAGS := -I. -I$(srcdir) $(python_includespec) $(CPPFLAGS) rpathdir = $(python_libdir) +PGFILEDESC = "PL/Python - procedural language" + NAME = plpython$(python_majorversion) OBJS = \ @@ -52,7 +54,7 @@ OBJS = \ plpy_spi.o \ plpy_subxactobject.o \ plpy_typeio.o \ - plpy_util.o + plpy_util.o $(WIN32RES) DATA = $(NAME)u.control $(NAME)u--1.0.sql $(NAME)u--unpackaged--1.0.sql ifeq ($(python_majorversion),2) diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index 2ab2a27..7ea0026 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -34,10 +34,11 @@ ifneq ($(PORTNAME), win32) SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS) -lc endif +PGFILEDESC = "PL/Tcl - procedural language" NAME = pltcl -OBJS = pltcl.o +OBJS = pltcl.o $(WIN32RES) DATA = pltcl.control pltcl--1.0.sql pltcl--unpackaged--1.0.sql \ pltclu.control pltclu--1.0.sql pltclu--unpackaged--1.0.sql diff --git a/src/tools/msvc/clean.bat b/src/tools/msvc/clean.bat index e06838c..982389c 100755 --- a/src/tools/msvc/clean.bat +++ b/src/tools/msvc/clean.bat @@ -19,6 +19,15 @@ if exist pgsql.suo del /q /a:H pgsql.suo del /s /q src\bin\win32ver.rc 2> NUL del /s /q src\interfaces\win32ver.rc 2> NUL if exist src\backend\win32ver.rc del /q src\backend\win32ver.rc +if exist src\backend\replication\libpqwalreceiver\win32ver.rc del /q src\backend\replication\libpqwalreceiver\win32ver.rc +if exist src\bin\pg_basebackup\win32ver.rc del /q src\bin\pg_basebackup\win32ver.rc +if exist src\pl\plperl\win32ver.rc del /q src\pl\plperl\win32ver.rc +if exist src\pl\plpgsql\src\win32ver.rc del /q src\pl\plpgsql\src\win32ver.rc +if exist src\pl\plpython\win32ver.rc del /q src\pl\plpython\win32ver.rc +if exist src\pl\tcl\win32ver.rc del /q src\pl\tcl\win32ver.rc +for /d %%f in (src\interfaces\ecpg\*) do if exist %%f\win32ver.rc del /q %%f\win32ver.rc +for /d %%f in (contrib\*) do if exist %%f\win32ver.rc del /q %%f\win32ver.rc +for /d %%f in (src\backend\utils\mb\conversion_procs\*) do if exist %%f\win32ver.rc del /q %%f\win32ver.rc REM Delete files created with GenerateFiles() in Solution.pm if exist src\include\pg_config.h del /q src\include\pg_config.h -- 2.0.1
^ permalink raw reply [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-07-11 13:34  Noah Misch <noah@leadboat.com>
  parent: Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 25+ messages in thread

From: Noah Misch @ 2014-07-11 13:34 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: MauMau <maumau307@gmail.com>; Magnus Hagander <magnus@hagander.net>; pgsql-bugs

On Fri, Jul 11, 2014 at 01:21:57PM +0900, Michael Paquier wrote:
> On Fri, Jul 11, 2014 at 12:02 AM, Noah Misch <noah@leadboat.com> wrote:
> > Second, the MinGW build uses few or none of the new PGFILEDESC entries; you
> > need to mention $(WIN32RES) as in (most) existing PGFILEDESC-using makefiles.
> I see, that's specified in src/makefiles/Makefile.win32. For the
> portion of conpversion_procs, updating directly proc.mk seems to be
> enough, so done this way. Also, an entry in conversion_procs was not
> updated according to the PGFILEDESC you introduced.
> 
> Btw, looking more at those patches, I found a limitation with
> contrib/spi for MinGW builds: in order to pass WIN32RES to OBJS, some
> of the contrib defined as MODULES need to be defined as MODULE_big to
> accept a custom list of OBJS, but MODULE_big is not able to accept a
> list of shared libraries. This limitation causes all the dll generated
> in contrib/spi to not be versioned with MinGW. MSVC works fine though.

Please fix the MODULES case, perhaps by linking $(WIN32RES) into each library
implicitly.

-- 
Noah Misch
EnterpriseDB                                 http://www.enterprisedb.com


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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-07-12 06:14  Michael Paquier <michael.paquier@gmail.com>
  parent: Noah Misch <noah@leadboat.com>
  0 siblings, 1 reply; 25+ messages in thread

From: Michael Paquier @ 2014-07-12 06:14 UTC (permalink / raw)
  To: Noah Misch <noah@leadboat.com>; +Cc: MauMau <maumau307@gmail.com>; Magnus Hagander <magnus@hagander.net>; pgsql-bugs

On Fri, Jul 11, 2014 at 10:34 PM, Noah Misch <noah@leadboat.com> wrote:
> Please fix the MODULES case, perhaps by linking $(WIN32RES) into each library
> implicitly.
Yes, that's exactly what I did in the patch attached by linking
WIN32RES and a shared library when the lib is built from a single .o
file. The rule in src/makefiles/Makefile.win32 has been updated
accordingly. pgxs.mk has been updated as well to remove WIN32RES when
clean is invoked for MODULES.
-- 
Michael

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

Attachments: download all (2 files, .tar.gz)

0001-MSVC-Recognize-PGFILEDESC-in-contrib-and-conversion_.patch (text/x-patch, 4.1K) download From 88128ea250a1187e63933f7ebd29d3a72a0ec97a Mon Sep 17 00:00:00 2001 From: Michael Paquier <michael@otacoo.com> Date: Fri, 11 Jul 2014 10:05:28 +0900 Subject: [PATCH 1/2] MSVC: Recognize PGFILEDESC in contrib and conversion_procs modules Achieve this by consistently using four-argument Solution::AddProject() calls. Remove ad hoc Makefile parsing made redundant by doing that. Michael Paquier and Noah Misch --- src/tools/msvc/Mkvcbuild.pm | 70 +++++++++------------------------------------ 1 file changed, 14 insertions(+), 56 deletions(-) diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm index 8002f23..71450f4 100644 --- a/src/tools/msvc/Mkvcbuild.pm +++ b/src/tools/msvc/Mkvcbuild.pm @@ -474,8 +474,10 @@ sub mkvcbuild push @contrib_excludes, 'uuid-ossp'; } - # Pgcrypto makefile too complex to parse.... - my $pgcrypto = $solution->AddProject('pgcrypto', 'dll', 'crypto'); + # AddProject() does not recognize the constructs used to populate OBJS in + # the pgcrypto Makefile, so it will discover no files. + my $pgcrypto = + $solution->AddProject('pgcrypto', 'dll', 'crypto', 'contrib\\pgcrypto'); $pgcrypto->AddFiles( 'contrib\pgcrypto', 'pgcrypto.c', 'px.c', 'px-hmac.c', @@ -527,18 +529,9 @@ sub mkvcbuild || die 'Could not match in conversion makefile' . "\n"; foreach my $sub (split /\s+/, $1) { - my $mf = Project::read_file( - 'src\backend\utils\mb\conversion_procs\\' . $sub . '\Makefile'); - my $p = $solution->AddProject($sub, 'dll', 'conversion procs'); - $p->AddFile('src\backend\utils\mb\conversion_procs\\' - . $sub . '\\' - . $sub - . '.c'); - if ($mf =~ m{^SRCS\s*\+=\s*(.*)$}m) - { - $p->AddFile( - 'src\backend\utils\mb\conversion_procs\\' . $sub . '\\' . $1); - } + my $dir = 'src\backend\utils\mb\conversion_procs\\' . $sub; + my $p = $solution->AddProject($sub, 'dll', 'conversion procs', $dir); + $p->AddFile("$dir\\$sub.c"); # implicit source file $p->AddReference($postgres); } @@ -646,44 +639,17 @@ sub AddContrib if ($mf =~ /^MODULE_big\s*=\s*(.*)$/mg) { my $dn = $1; - $mf =~ s{\\\s*[\r\n]+}{}mg; - my $proj = $solution->AddProject($dn, 'dll', 'contrib'); - $mf =~ /^OBJS\s*=\s*(.*)$/gm - || croak "Could not find objects in MODULE_big for $n\n"; - my $objs = $1; - while ($objs =~ /\b([\w-]+\.o)\b/g) - { - my $o = $1; - $o =~ s/\.o$/.c/; - $proj->AddFile('contrib\\' . $n . '\\' . $o); - } + my $proj = + $solution->AddProject($dn, 'dll', 'contrib', 'contrib\\' . $n); $proj->AddReference($postgres); - if ($mf =~ /^SUBDIRS\s*:?=\s*(.*)$/mg) - { - foreach my $d (split /\s+/, $1) - { - my $mf2 = Project::read_file( - 'contrib\\' . $n . '\\' . $d . '\Makefile'); - $mf2 =~ s{\\\s*[\r\n]+}{}mg; - $mf2 =~ /^SUBOBJS\s*=\s*(.*)$/gm - || croak - "Could not find objects in MODULE_big for $n, subdir $d\n"; - $objs = $1; - while ($objs =~ /\b([\w-]+\.o)\b/g) - { - my $o = $1; - $o =~ s/\.o$/.c/; - $proj->AddFile('contrib\\' . $n . '\\' . $d . '\\' . $o); - } - } - } AdjustContribProj($proj); } elsif ($mf =~ /^MODULES\s*=\s*(.*)$/mg) { foreach my $mod (split /\s+/, $1) { - my $proj = $solution->AddProject($mod, 'dll', 'contrib'); + my $proj = + $solution->AddProject($mod, 'dll', 'contrib', 'contrib\\' . $n); $proj->AddFile('contrib\\' . $n . '\\' . $mod . '.c'); $proj->AddReference($postgres); AdjustContribProj($proj); @@ -691,17 +657,8 @@ sub AddContrib } elsif ($mf =~ /^PROGRAM\s*=\s*(.*)$/mg) { - my $proj = $solution->AddProject($1, 'exe', 'contrib'); - $mf =~ s{\\\s*[\r\n]+}{}mg; - $mf =~ /^OBJS\s*=\s*(.*)$/gm - || croak "Could not find objects in PROGRAM for $n\n"; - my $objs = $1; - while ($objs =~ /\b([\w-]+\.o)\b/g) - { - my $o = $1; - $o =~ s/\.o$/.c/; - $proj->AddFile('contrib\\' . $n . '\\' . $o); - } + my $proj = + $solution->AddProject($1, 'exe', 'contrib', 'contrib\\' . $n); AdjustContribProj($proj); } else @@ -717,6 +674,7 @@ sub GenerateContribSqlFiles { my $n = shift; my $mf = shift; + $mf =~ s{\\\s*[\r\n]+}{}mg; if ($mf =~ /^DATA_built\s*=\s*(.*)$/mg) { my $l = $1; -- 2.0.1
0002-Improve-versioning-for-MSVC-and-MinGW-builds.patch (text/x-patch, 50.1K) download From 95bb2c40b4c40bab57252aa5edbfb563abb84f33 Mon Sep 17 00:00:00 2001 From: Michael Paquier <michael@otacoo.com> Date: Fri, 11 Jul 2014 23:03:25 -0700 Subject: [PATCH 2/2] Improve versioning for MSVC and MinGW builds A large portion of the dll libraries and executable files are associated a version number on Windows for MSVC and MinGW builds. The following libraries are still lacking a version number but there are plans for improvements in the future: - isolationtester.exe - pg_isolation_regress - pg_regress.exe - pg_regress_ecpg.exe - zic.exe - dict_snowball.dll - regress.dll --- contrib/adminpack/Makefile | 3 ++- contrib/auth_delay/Makefile | 1 + contrib/auto_explain/Makefile | 3 ++- contrib/btree_gin/Makefile | 3 ++- contrib/btree_gist/Makefile | 3 ++- contrib/chkpass/Makefile | 3 ++- contrib/citext/Makefile | 1 + contrib/cube/Makefile | 3 ++- contrib/dblink/Makefile | 3 ++- contrib/dict_int/Makefile | 3 ++- contrib/dict_xsyn/Makefile | 3 ++- contrib/dummy_seclabel/Makefile | 1 + contrib/earthdistance/Makefile | 1 + contrib/file_fdw/Makefile | 1 + contrib/fuzzystrmatch/Makefile | 3 ++- contrib/hstore/Makefile | 3 ++- contrib/intarray/Makefile | 4 +++- contrib/isn/Makefile | 1 + contrib/lo/Makefile | 1 + contrib/ltree/Makefile | 4 +++- contrib/pageinspect/Makefile | 3 ++- contrib/passwordcheck/Makefile | 3 ++- contrib/pg_buffercache/Makefile | 3 ++- contrib/pg_freespacemap/Makefile | 3 ++- contrib/pg_prewarm/Makefile | 3 ++- contrib/pg_stat_statements/Makefile | 3 ++- contrib/pg_trgm/Makefile | 3 ++- contrib/pg_xlogdump/Makefile | 2 +- contrib/pgcrypto/Makefile | 3 ++- contrib/pgrowlocks/Makefile | 3 ++- contrib/pgstattuple/Makefile | 3 ++- contrib/postgres_fdw/Makefile | 3 ++- contrib/seg/Makefile | 3 ++- contrib/sepgsql/Makefile | 3 ++- contrib/spi/Makefile | 1 + contrib/sslinfo/Makefile | 3 ++- contrib/tablefunc/Makefile | 1 + contrib/tcn/Makefile | 1 + contrib/test_decoding/Makefile | 2 +- contrib/test_parser/Makefile | 3 ++- contrib/test_shm_mq/Makefile | 3 ++- contrib/tsearch2/Makefile | 1 + contrib/unaccent/Makefile | 3 ++- contrib/uuid-ossp/Makefile | 3 ++- contrib/worker_spi/Makefile | 1 + contrib/xml2/Makefile | 3 ++- src/backend/replication/libpqwalreceiver/Makefile | 3 ++- src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile | 1 + .../utils/mb/conversion_procs/latin2_and_win1250/Makefile | 1 + src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile | 1 + src/backend/utils/mb/conversion_procs/proc.mk | 2 +- src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile | 1 + .../utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile | 1 + src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile | 1 + src/bin/pg_basebackup/Makefile | 2 +- src/interfaces/ecpg/compatlib/Makefile | 3 ++- src/interfaces/ecpg/ecpglib/Makefile | 1 + src/interfaces/ecpg/pgtypeslib/Makefile | 3 ++- src/interfaces/ecpg/test/Makefile | 6 ++++-- src/makefiles/Makefile.win32 | 4 ++-- src/makefiles/pgxs.mk | 2 +- src/pl/plperl/GNUmakefile | 3 ++- src/pl/plpgsql/src/Makefile | 5 ++++- src/pl/plpython/Makefile | 4 +++- src/pl/tcl/Makefile | 3 ++- src/tools/msvc/clean.bat | 9 +++++++++ 86 files changed, 142 insertions(+), 48 deletions(-) diff --git a/contrib/adminpack/Makefile b/contrib/adminpack/Makefile index 5cbc8f0..29073fe 100644 --- a/contrib/adminpack/Makefile +++ b/contrib/adminpack/Makefile @@ -1,11 +1,12 @@ # contrib/adminpack/Makefile MODULE_big = adminpack -OBJS = adminpack.o +OBJS = adminpack.o $(WIN32RES) PG_CPPFLAGS = -I$(libpq_srcdir) EXTENSION = adminpack DATA = adminpack--1.0.sql +PGFILEDESC = "adminpack - Support functions for pgAdmin" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/auth_delay/Makefile b/contrib/auth_delay/Makefile index 09d2d54..4b86ec3 100644 --- a/contrib/auth_delay/Makefile +++ b/contrib/auth_delay/Makefile @@ -1,6 +1,7 @@ # contrib/auth_delay/Makefile MODULES = auth_delay +PGFILEDESC = "auth_delay - delay authentication failure reports" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/auto_explain/Makefile b/contrib/auto_explain/Makefile index 2d1443f..fcf36c5 100644 --- a/contrib/auto_explain/Makefile +++ b/contrib/auto_explain/Makefile @@ -1,7 +1,8 @@ # contrib/auto_explain/Makefile MODULE_big = auto_explain -OBJS = auto_explain.o +OBJS = auto_explain.o $(WIN32RES) +PGFILEDESC = "auto_explain - logging facility for execution plans" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/btree_gin/Makefile b/contrib/btree_gin/Makefile index 09fd3e6..0492091 100644 --- a/contrib/btree_gin/Makefile +++ b/contrib/btree_gin/Makefile @@ -1,10 +1,11 @@ # contrib/btree_gin/Makefile MODULE_big = btree_gin -OBJS = btree_gin.o +OBJS = btree_gin.o $(WIN32RES) EXTENSION = btree_gin DATA = btree_gin--1.0.sql btree_gin--unpackaged--1.0.sql +PGFILEDESC = "btree_gin - B-tree equivalent GIN operator classes" REGRESS = install_btree_gin int2 int4 int8 float4 float8 money oid \ timestamp timestamptz time timetz date interval \ diff --git a/contrib/btree_gist/Makefile b/contrib/btree_gist/Makefile index ba4af14..19a5929 100644 --- a/contrib/btree_gist/Makefile +++ b/contrib/btree_gist/Makefile @@ -6,10 +6,11 @@ OBJS = btree_gist.o btree_utils_num.o btree_utils_var.o btree_int2.o \ btree_int4.o btree_int8.o btree_float4.o btree_float8.o btree_cash.o \ btree_oid.o btree_ts.o btree_time.o btree_date.o btree_interval.o \ btree_macaddr.o btree_inet.o btree_text.o btree_bytea.o btree_bit.o \ - btree_numeric.o + btree_numeric.o $(WIN32RES) EXTENSION = btree_gist DATA = btree_gist--1.0.sql btree_gist--unpackaged--1.0.sql +PGFILEDESC = "btree_gist - B-tree equivalent GIST operator classes" REGRESS = init int2 int4 int8 float4 float8 cash oid timestamp timestamptz \ time timetz date interval macaddr inet cidr text varchar char bytea \ diff --git a/contrib/chkpass/Makefile b/contrib/chkpass/Makefile index b775aef..a2599ea 100644 --- a/contrib/chkpass/Makefile +++ b/contrib/chkpass/Makefile @@ -1,10 +1,11 @@ # contrib/chkpass/Makefile MODULE_big = chkpass -OBJS = chkpass.o +OBJS = chkpass.o $(WIN32RES) EXTENSION = chkpass DATA = chkpass--1.0.sql chkpass--unpackaged--1.0.sql +PGFILEDESC = "chkpass - encrypted password data type" SHLIB_LINK = $(filter -lcrypt, $(LIBS)) diff --git a/contrib/citext/Makefile b/contrib/citext/Makefile index 6594252..267854b 100644 --- a/contrib/citext/Makefile +++ b/contrib/citext/Makefile @@ -4,6 +4,7 @@ MODULES = citext EXTENSION = citext DATA = citext--1.0.sql citext--unpackaged--1.0.sql +PGFILEDESC = "citext - case-insensitive character string data type" REGRESS = citext diff --git a/contrib/cube/Makefile b/contrib/cube/Makefile index b5cd5d0..67f7867 100644 --- a/contrib/cube/Makefile +++ b/contrib/cube/Makefile @@ -1,10 +1,11 @@ # contrib/cube/Makefile MODULE_big = cube -OBJS= cube.o cubeparse.o +OBJS= cube.o cubeparse.o $(WIN32RES) EXTENSION = cube DATA = cube--1.0.sql cube--unpackaged--1.0.sql +PGFILEDESC = "cube - multidimensional cube data type" REGRESS = cube diff --git a/contrib/dblink/Makefile b/contrib/dblink/Makefile index 32314a0..9242ed7 100644 --- a/contrib/dblink/Makefile +++ b/contrib/dblink/Makefile @@ -1,13 +1,14 @@ # contrib/dblink/Makefile MODULE_big = dblink -OBJS = dblink.o +OBJS = dblink.o $(WIN32RES) PG_CPPFLAGS = -I$(libpq_srcdir) SHLIB_LINK = $(libpq) SHLIB_PREREQS = submake-libpq EXTENSION = dblink DATA = dblink--1.1.sql dblink--1.0--1.1.sql dblink--unpackaged--1.0.sql +PGFILEDESC = "dblink - connect to other PostgreSQL databases" REGRESS = dblink diff --git a/contrib/dict_int/Makefile b/contrib/dict_int/Makefile index 3a3fc36..f6ae24a 100644 --- a/contrib/dict_int/Makefile +++ b/contrib/dict_int/Makefile @@ -1,10 +1,11 @@ # contrib/dict_int/Makefile MODULE_big = dict_int -OBJS = dict_int.o +OBJS = dict_int.o $(WIN32RES) EXTENSION = dict_int DATA = dict_int--1.0.sql dict_int--unpackaged--1.0.sql +PGFILEDESC = "dict_int - add-on dictionary template for full-text search" REGRESS = dict_int diff --git a/contrib/dict_xsyn/Makefile b/contrib/dict_xsyn/Makefile index ce92baa..0c401cf 100644 --- a/contrib/dict_xsyn/Makefile +++ b/contrib/dict_xsyn/Makefile @@ -1,11 +1,12 @@ # contrib/dict_xsyn/Makefile MODULE_big = dict_xsyn -OBJS = dict_xsyn.o +OBJS = dict_xsyn.o $(WIN32RES) EXTENSION = dict_xsyn DATA = dict_xsyn--1.0.sql dict_xsyn--unpackaged--1.0.sql DATA_TSEARCH = xsyn_sample.rules +PGFILEDESC = "dict_xsyn - add-on dictionary template for full-text search" REGRESS = dict_xsyn diff --git a/contrib/dummy_seclabel/Makefile b/contrib/dummy_seclabel/Makefile index 105400f..e69aa1f 100644 --- a/contrib/dummy_seclabel/Makefile +++ b/contrib/dummy_seclabel/Makefile @@ -1,6 +1,7 @@ # contrib/dummy_seclabel/Makefile MODULES = dummy_seclabel +PGFILEDESC = "dummy_seclabel - regression testing of the SECURITY LABEL statement" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/earthdistance/Makefile b/contrib/earthdistance/Makefile index 48a7cf8..93dcbe3 100644 --- a/contrib/earthdistance/Makefile +++ b/contrib/earthdistance/Makefile @@ -4,6 +4,7 @@ MODULES = earthdistance EXTENSION = earthdistance DATA = earthdistance--1.0.sql earthdistance--unpackaged--1.0.sql +PGFILEDESC = "earthdistance - calculate distances on the surface of the Earth" REGRESS = earthdistance REGRESS_OPTS = --extra-install=contrib/cube diff --git a/contrib/file_fdw/Makefile b/contrib/file_fdw/Makefile index 4616cec..4da9f2d 100644 --- a/contrib/file_fdw/Makefile +++ b/contrib/file_fdw/Makefile @@ -4,6 +4,7 @@ MODULES = file_fdw EXTENSION = file_fdw DATA = file_fdw--1.0.sql +PGFILEDESC = "file_fdw - foreign data wrapper for files" REGRESS = file_fdw diff --git a/contrib/fuzzystrmatch/Makefile b/contrib/fuzzystrmatch/Makefile index 834b679..024265d 100644 --- a/contrib/fuzzystrmatch/Makefile +++ b/contrib/fuzzystrmatch/Makefile @@ -1,10 +1,11 @@ # contrib/fuzzystrmatch/Makefile MODULE_big = fuzzystrmatch -OBJS = fuzzystrmatch.o dmetaphone.o +OBJS = fuzzystrmatch.o dmetaphone.o $(WIN32RES) EXTENSION = fuzzystrmatch DATA = fuzzystrmatch--1.0.sql fuzzystrmatch--unpackaged--1.0.sql +PGFILEDESC = "fuzzystrmatch - similarities and distance between strings" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/hstore/Makefile b/contrib/hstore/Makefile index 2b60fbe..3193668 100644 --- a/contrib/hstore/Makefile +++ b/contrib/hstore/Makefile @@ -2,12 +2,13 @@ MODULE_big = hstore OBJS = hstore_io.o hstore_op.o hstore_gist.o hstore_gin.o hstore_compat.o \ - crc32.o + crc32.o $(WIN32RES) EXTENSION = hstore DATA = hstore--1.3.sql hstore--1.2--1.3.sql \ hstore--1.1--1.2.sql hstore--1.0--1.1.sql \ hstore--unpackaged--1.0.sql +PGFILEDESC = "hstore - key/value pair data type" REGRESS = hstore diff --git a/contrib/intarray/Makefile b/contrib/intarray/Makefile index 71f820e..a1067ac 100644 --- a/contrib/intarray/Makefile +++ b/contrib/intarray/Makefile @@ -1,10 +1,12 @@ # contrib/intarray/Makefile MODULE_big = _int -OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o _int_gin.o +OBJS = _int_bool.o _int_gist.o _int_op.o _int_tool.o _intbig_gist.o \ + _int_gin.o $(WIN32RES) EXTENSION = intarray DATA = intarray--1.0.sql intarray--unpackaged--1.0.sql +PGFILEDESC = "intarray - functions and operators for arrays of integers" REGRESS = _int diff --git a/contrib/isn/Makefile b/contrib/isn/Makefile index bd8f193..75c07a8 100644 --- a/contrib/isn/Makefile +++ b/contrib/isn/Makefile @@ -4,6 +4,7 @@ MODULES = isn EXTENSION = isn DATA = isn--1.0.sql isn--unpackaged--1.0.sql +PGFILEDESC = "isn - data types for international product numbering standards" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/lo/Makefile b/contrib/lo/Makefile index 66b337c..b956aa4 100644 --- a/contrib/lo/Makefile +++ b/contrib/lo/Makefile @@ -4,6 +4,7 @@ MODULES = lo EXTENSION = lo DATA = lo--1.0.sql lo--unpackaged--1.0.sql +PGFILEDESC = "lo - management for large objects" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/ltree/Makefile b/contrib/ltree/Makefile index 65d42f8..8dad94c 100644 --- a/contrib/ltree/Makefile +++ b/contrib/ltree/Makefile @@ -2,11 +2,13 @@ MODULE_big = ltree OBJS = ltree_io.o ltree_op.o lquery_op.o _ltree_op.o crc32.o \ - ltxtquery_io.o ltxtquery_op.o ltree_gist.o _ltree_gist.o + ltxtquery_io.o ltxtquery_op.o ltree_gist.o \ + _ltree_gist.o $(WIN32RES) PG_CPPFLAGS = -DLOWER_NODE EXTENSION = ltree DATA = ltree--1.0.sql ltree--unpackaged--1.0.sql +PGFILEDESC = "ltree - hierarchical label data type" REGRESS = ltree diff --git a/contrib/pageinspect/Makefile b/contrib/pageinspect/Makefile index ee78cb2..f10229d 100644 --- a/contrib/pageinspect/Makefile +++ b/contrib/pageinspect/Makefile @@ -1,11 +1,12 @@ # contrib/pageinspect/Makefile MODULE_big = pageinspect -OBJS = rawpage.o heapfuncs.o btreefuncs.o fsmfuncs.o +OBJS = rawpage.o heapfuncs.o btreefuncs.o fsmfuncs.o $(WIN32RES) EXTENSION = pageinspect DATA = pageinspect--1.2.sql pageinspect--1.0--1.1.sql \ pageinspect--1.1--1.2.sql pageinspect--unpackaged--1.0.sql +PGFILEDESC = "pageinspect - functions to inspect contents of database pages" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/passwordcheck/Makefile b/contrib/passwordcheck/Makefile index 4829bfd..4652aeb 100644 --- a/contrib/passwordcheck/Makefile +++ b/contrib/passwordcheck/Makefile @@ -1,7 +1,8 @@ # contrib/passwordcheck/Makefile MODULE_big = passwordcheck -OBJS = passwordcheck.o +OBJS = passwordcheck.o $(WIN32RES) +PGFILEDESC = "passwordcheck - strengthen user password checks" # uncomment the following two lines to enable cracklib support # PG_CPPFLAGS = -DUSE_CRACKLIB '-DCRACKLIB_DICTPATH="/usr/lib/cracklib_dict"' diff --git a/contrib/pg_buffercache/Makefile b/contrib/pg_buffercache/Makefile index 323c0ac..c5297d9 100644 --- a/contrib/pg_buffercache/Makefile +++ b/contrib/pg_buffercache/Makefile @@ -1,10 +1,11 @@ # contrib/pg_buffercache/Makefile MODULE_big = pg_buffercache -OBJS = pg_buffercache_pages.o +OBJS = pg_buffercache_pages.o $(WIN32RES) EXTENSION = pg_buffercache DATA = pg_buffercache--1.0.sql pg_buffercache--unpackaged--1.0.sql +PGFILEDESC = "pg_buffercache - monitoring of shared buffer cache in real-time" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_freespacemap/Makefile b/contrib/pg_freespacemap/Makefile index b2e3ba3..5760d9f 100644 --- a/contrib/pg_freespacemap/Makefile +++ b/contrib/pg_freespacemap/Makefile @@ -1,10 +1,11 @@ # contrib/pg_freespacemap/Makefile MODULE_big = pg_freespacemap -OBJS = pg_freespacemap.o +OBJS = pg_freespacemap.o $(WIN32RES) EXTENSION = pg_freespacemap DATA = pg_freespacemap--1.0.sql pg_freespacemap--unpackaged--1.0.sql +PGFILEDESC = "pg_freespacemap - monitoring of free space map" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_prewarm/Makefile b/contrib/pg_prewarm/Makefile index 176a29a..eeba502 100644 --- a/contrib/pg_prewarm/Makefile +++ b/contrib/pg_prewarm/Makefile @@ -1,10 +1,11 @@ # contrib/pg_prewarm/Makefile MODULE_big = pg_prewarm -OBJS = pg_prewarm.o +OBJS = pg_prewarm.o $(WIN32RES) EXTENSION = pg_prewarm DATA = pg_prewarm--1.0.sql +PGFILEDESC = "pg_prewarm - preload relation data into system buffer cache" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_stat_statements/Makefile b/contrib/pg_stat_statements/Makefile index 95a2767..2709909 100644 --- a/contrib/pg_stat_statements/Makefile +++ b/contrib/pg_stat_statements/Makefile @@ -1,11 +1,12 @@ # contrib/pg_stat_statements/Makefile MODULE_big = pg_stat_statements -OBJS = pg_stat_statements.o +OBJS = pg_stat_statements.o $(WIN32RES) EXTENSION = pg_stat_statements DATA = pg_stat_statements--1.2.sql pg_stat_statements--1.1--1.2.sql \ pg_stat_statements--1.0--1.1.sql pg_stat_statements--unpackaged--1.0.sql +PGFILEDESC = "pg_stat_statements - execution statistics of SQL statements" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pg_trgm/Makefile b/contrib/pg_trgm/Makefile index 0d549f8..e081a1e 100644 --- a/contrib/pg_trgm/Makefile +++ b/contrib/pg_trgm/Makefile @@ -1,10 +1,11 @@ # contrib/pg_trgm/Makefile MODULE_big = pg_trgm -OBJS = trgm_op.o trgm_gist.o trgm_gin.o trgm_regexp.o +OBJS = trgm_op.o trgm_gist.o trgm_gin.o trgm_regexp.o $(WIN32RES) EXTENSION = pg_trgm DATA = pg_trgm--1.1.sql pg_trgm--1.0--1.1.sql pg_trgm--unpackaged--1.0.sql +PGFILEDESC = "pg_trgm - trigram matching" REGRESS = pg_trgm diff --git a/contrib/pg_xlogdump/Makefile b/contrib/pg_xlogdump/Makefile index ada261c..30a8706 100644 --- a/contrib/pg_xlogdump/Makefile +++ b/contrib/pg_xlogdump/Makefile @@ -1,6 +1,6 @@ # contrib/pg_xlogdump/Makefile -PGFILEDESC = "pg_xlogdump" +PGFILEDESC = "pg_xlogdump - decode and display WAL" PGAPPICON=win32 PROGRAM = pg_xlogdump diff --git a/contrib/pgcrypto/Makefile b/contrib/pgcrypto/Makefile index 1c85c98..05716c9 100644 --- a/contrib/pgcrypto/Makefile +++ b/contrib/pgcrypto/Makefile @@ -23,10 +23,11 @@ SRCS = pgcrypto.c px.c px-hmac.c px-crypt.c \ pgp-pgsql.c MODULE_big = pgcrypto -OBJS = $(SRCS:.c=.o) +OBJS = $(SRCS:.c=.o) $(WIN32RES) EXTENSION = pgcrypto DATA = pgcrypto--1.1.sql pgcrypto--1.0--1.1.sql pgcrypto--unpackaged--1.0.sql +PGFILEDESC = "pgcrypto - cryptographic functions" REGRESS = init md5 sha1 hmac-md5 hmac-sha1 blowfish rijndael \ $(CF_TESTS) \ diff --git a/contrib/pgrowlocks/Makefile b/contrib/pgrowlocks/Makefile index fe80423..059ea05 100644 --- a/contrib/pgrowlocks/Makefile +++ b/contrib/pgrowlocks/Makefile @@ -1,10 +1,11 @@ # contrib/pgrowlocks/Makefile MODULE_big = pgrowlocks -OBJS = pgrowlocks.o +OBJS = pgrowlocks.o $(WIN32RES) EXTENSION = pgrowlocks DATA = pgrowlocks--1.1.sql pgrowlocks--1.0--1.1.sql pgrowlocks--unpackaged--1.0.sql +PGFILEDESC = "pgrowlocks - display row locking information" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/pgstattuple/Makefile b/contrib/pgstattuple/Makefile index d991c3a..862585c 100644 --- a/contrib/pgstattuple/Makefile +++ b/contrib/pgstattuple/Makefile @@ -1,10 +1,11 @@ # contrib/pgstattuple/Makefile MODULE_big = pgstattuple -OBJS = pgstattuple.o pgstatindex.o +OBJS = pgstattuple.o pgstatindex.o $(WIN32RES) EXTENSION = pgstattuple DATA = pgstattuple--1.2.sql pgstattuple--1.1--1.2.sql pgstattuple--1.0--1.1.sql pgstattuple--unpackaged--1.0.sql +PGFILEDESC = "pgstattuple - tuple-level statistics" REGRESS = pgstattuple diff --git a/contrib/postgres_fdw/Makefile b/contrib/postgres_fdw/Makefile index 8c49720..7c66095 100644 --- a/contrib/postgres_fdw/Makefile +++ b/contrib/postgres_fdw/Makefile @@ -1,7 +1,8 @@ # contrib/postgres_fdw/Makefile MODULE_big = postgres_fdw -OBJS = postgres_fdw.o option.o deparse.o connection.o +OBJS = postgres_fdw.o option.o deparse.o connection.o $(WIN32RES) +PGFILEDESC = "postgres_fdw - foreign data wrapper for PostgreSQL" PG_CPPFLAGS = -I$(libpq_srcdir) SHLIB_LINK = $(libpq) diff --git a/contrib/seg/Makefile b/contrib/seg/Makefile index fb9c576..d6de8a2 100644 --- a/contrib/seg/Makefile +++ b/contrib/seg/Makefile @@ -1,10 +1,11 @@ # contrib/seg/Makefile MODULE_big = seg -OBJS = seg.o segparse.o +OBJS = seg.o segparse.o $(WIN32RES) EXTENSION = seg DATA = seg--1.0.sql seg--unpackaged--1.0.sql +PGFILEDESC = "seg - line segment data type" REGRESS = seg diff --git a/contrib/sepgsql/Makefile b/contrib/sepgsql/Makefile index ff3a61d..f194b7e 100644 --- a/contrib/sepgsql/Makefile +++ b/contrib/sepgsql/Makefile @@ -2,8 +2,9 @@ MODULE_big = sepgsql OBJS = hooks.o selinux.o uavc.o label.o dml.o \ - database.o schema.o relation.o proc.o + database.o schema.o relation.o proc.o $(WIN32RES) DATA_built = sepgsql.sql +PGFILEDESC = "sepgsql - SELinux integration" # Note: because we don't tell the Makefile there are any regression tests, # we have to clean those result files explicitly diff --git a/contrib/spi/Makefile b/contrib/spi/Makefile index 0c11bfc..10ab5bb 100644 --- a/contrib/spi/Makefile +++ b/contrib/spi/Makefile @@ -9,6 +9,7 @@ DATA = autoinc--1.0.sql autoinc--unpackaged--1.0.sql \ moddatetime--1.0.sql moddatetime--unpackaged--1.0.sql \ refint--1.0.sql refint--unpackaged--1.0.sql \ timetravel--1.0.sql timetravel--unpackaged--1.0.sql +PGFILEDESC = "spi - examples of using SPI and triggers" DOCS = $(addsuffix .example, $(MODULES)) diff --git a/contrib/sslinfo/Makefile b/contrib/sslinfo/Makefile index 0dee6ed..86cbf05 100644 --- a/contrib/sslinfo/Makefile +++ b/contrib/sslinfo/Makefile @@ -1,10 +1,11 @@ # contrib/sslinfo/Makefile MODULE_big = sslinfo -OBJS = sslinfo.o +OBJS = sslinfo.o $(WIN32RES) EXTENSION = sslinfo DATA = sslinfo--1.0.sql sslinfo--unpackaged--1.0.sql +PGFILEDESC = "sslinfo - information about client SSL certificate" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/tablefunc/Makefile b/contrib/tablefunc/Makefile index eb10893..7150117 100644 --- a/contrib/tablefunc/Makefile +++ b/contrib/tablefunc/Makefile @@ -4,6 +4,7 @@ MODULES = tablefunc EXTENSION = tablefunc DATA = tablefunc--1.0.sql tablefunc--unpackaged--1.0.sql +PGFILEDESC = "tablefunc - various functions that return tables" REGRESS = tablefunc diff --git a/contrib/tcn/Makefile b/contrib/tcn/Makefile index 7bac5e3..2de3425 100644 --- a/contrib/tcn/Makefile +++ b/contrib/tcn/Makefile @@ -4,6 +4,7 @@ MODULES = tcn EXTENSION = tcn DATA = tcn--1.0.sql +PGFILEDESC = "tcn - trigger function notifying listeners" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/test_decoding/Makefile b/contrib/test_decoding/Makefile index 58e0f38..d7f32c3 100644 --- a/contrib/test_decoding/Makefile +++ b/contrib/test_decoding/Makefile @@ -1,7 +1,7 @@ # contrib/test_decoding/Makefile MODULES = test_decoding -OBJS = test_decoding.o +PGFILEDESC = "test_decoding - example of a logical decoding output plugin" # Note: because we don't tell the Makefile there are any regression tests, # we have to clean those result files explicitly diff --git a/contrib/test_parser/Makefile b/contrib/test_parser/Makefile index b9766cb..7e068ab 100644 --- a/contrib/test_parser/Makefile +++ b/contrib/test_parser/Makefile @@ -1,7 +1,8 @@ # contrib/test_parser/Makefile MODULE_big = test_parser -OBJS = test_parser.o +OBJS = test_parser.o $(WIN32RES) +PGFILEDESC = "test_parser - example of a custom parser for full-text search" EXTENSION = test_parser DATA = test_parser--1.0.sql test_parser--unpackaged--1.0.sql diff --git a/contrib/test_shm_mq/Makefile b/contrib/test_shm_mq/Makefile index 5e5ac1c..e3c4054 100644 --- a/contrib/test_shm_mq/Makefile +++ b/contrib/test_shm_mq/Makefile @@ -1,7 +1,8 @@ # contrib/test_shm_mq/Makefile MODULE_big = test_shm_mq -OBJS = test.o setup.o worker.o +OBJS = test.o setup.o worker.o $(WIN32RES) +PGFILEDESC = "test_shm_mq - example use of shared memory message queue" EXTENSION = test_shm_mq DATA = test_shm_mq--1.0.sql diff --git a/contrib/tsearch2/Makefile b/contrib/tsearch2/Makefile index d260fd0..36dcedc 100644 --- a/contrib/tsearch2/Makefile +++ b/contrib/tsearch2/Makefile @@ -4,6 +4,7 @@ MODULES = tsearch2 EXTENSION = tsearch2 DATA = tsearch2--1.0.sql tsearch2--unpackaged--1.0.sql +PGFILEDESC = "tsearch2 - backward-compatible text search functionality" REGRESS = tsearch2 diff --git a/contrib/unaccent/Makefile b/contrib/unaccent/Makefile index f0be62d..bc93e6f 100644 --- a/contrib/unaccent/Makefile +++ b/contrib/unaccent/Makefile @@ -1,11 +1,12 @@ # contrib/unaccent/Makefile MODULE_big = unaccent -OBJS = unaccent.o +OBJS = unaccent.o $(WIN32RES) EXTENSION = unaccent DATA = unaccent--1.0.sql unaccent--unpackaged--1.0.sql DATA_TSEARCH = unaccent.rules +PGFILEDESC = "unaccent - text search dictionary that removes accents" REGRESS = unaccent diff --git a/contrib/uuid-ossp/Makefile b/contrib/uuid-ossp/Makefile index 335cc7e..93b9355 100644 --- a/contrib/uuid-ossp/Makefile +++ b/contrib/uuid-ossp/Makefile @@ -1,10 +1,11 @@ # contrib/uuid-ossp/Makefile MODULE_big = uuid-ossp -OBJS = uuid-ossp.o $(UUID_EXTRA_OBJS) +OBJS = uuid-ossp.o $(UUID_EXTRA_OBJS) $(WIN32RES) EXTENSION = uuid-ossp DATA = uuid-ossp--1.0.sql uuid-ossp--unpackaged--1.0.sql +PGFILEDESC = "uuid-ossp - UUID generation" REGRESS = uuid_ossp diff --git a/contrib/worker_spi/Makefile b/contrib/worker_spi/Makefile index fbb29b4..5cce4d1 100644 --- a/contrib/worker_spi/Makefile +++ b/contrib/worker_spi/Makefile @@ -4,6 +4,7 @@ MODULES = worker_spi EXTENSION = worker_spi DATA = worker_spi--1.0.sql +PGFILEDESC = "worker_spi - background worker example" ifdef USE_PGXS PG_CONFIG = pg_config diff --git a/contrib/xml2/Makefile b/contrib/xml2/Makefile index be3d018..2f7a08c 100644 --- a/contrib/xml2/Makefile +++ b/contrib/xml2/Makefile @@ -1,10 +1,11 @@ # contrib/xml2/Makefile MODULE_big = pgxml -OBJS = xpath.o xslt_proc.o +OBJS = xpath.o xslt_proc.o $(WIN32RES) EXTENSION = xml2 DATA = xml2--1.0.sql xml2--unpackaged--1.0.sql +PGFILEDESC = "xml2 - XPath querying and XSLT" REGRESS = xml2 diff --git a/src/backend/replication/libpqwalreceiver/Makefile b/src/backend/replication/libpqwalreceiver/Makefile index 774adaa..6c95c1c 100644 --- a/src/backend/replication/libpqwalreceiver/Makefile +++ b/src/backend/replication/libpqwalreceiver/Makefile @@ -14,9 +14,10 @@ include $(top_builddir)/src/Makefile.global override CPPFLAGS := -I$(srcdir) -I$(libpq_srcdir) $(CPPFLAGS) -OBJS = libpqwalreceiver.o +OBJS = libpqwalreceiver.o $(WIN32RES) SHLIB_LINK = $(libpq) SHLIB_PREREQS = submake-libpq +PGFILEDESC = "libpqwalreceiver - receive WAL during streaming replication" NAME = libpqwalreceiver all: all-shared-lib diff --git a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile index d71ca16..fa65eba 100644 --- a/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/ascii_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = ascii_and_mic +PGFILEDESC = "ascii <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile index 78c384a..e7cd8e8 100644 --- a/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/cyrillic_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = cyrillic_and_mic +PGFILEDESC = "cyrillic <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile index 199e655..164d2f5 100644 --- a/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc2004_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc2004_sjis2004 +PGFILEDESC = "euc2004 <-> sjis2006 text conversions " include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile index a740656..cb6a83f 100644 --- a/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_cn_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_cn_and_mic +PGFILEDESC = "euc_cn <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile index fa167e9..0b1de0e 100644 --- a/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_jp_and_sjis +PGFILEDESC = "euc_jp <-> sjis text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile index 5ce5548..d43b082 100644 --- a/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_kr_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_kr_and_mic +PGFILEDESC = "euc_kr <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile index 7625435..5ac2389 100644 --- a/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/euc_tw_and_big5/Makefile @@ -8,6 +8,7 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = euc_tw_and_big5 +PGFILEDESC = "euc_tw <-> big5 text conversions" SRCS += big5.c OBJS += big5.o diff --git a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile index 7587b66..5e48dae 100644 --- a/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin2_and_win1250/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin2_and_win1250 +PGFILEDESC = "latin2 <-> win1250 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile index ec88740..c404738 100644 --- a/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile +++ b/src/backend/utils/mb/conversion_procs/latin_and_mic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = latin_and_mic +PGFILEDESC = "latin <-> mic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/proc.mk b/src/backend/utils/mb/conversion_procs/proc.mk index 77322a4..e0a3b74 100644 --- a/src/backend/utils/mb/conversion_procs/proc.mk +++ b/src/backend/utils/mb/conversion_procs/proc.mk @@ -1,5 +1,5 @@ SRCS += $(NAME).c -OBJS += $(NAME).o +OBJS += $(NAME).o $(WIN32RES) rpath = diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile index a4b1b3f..7bd68e2 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_ascii/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_ascii +PGFILEDESC = "utf8 <-> ascii text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile index df72836..2c274f3 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_big5/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_big5 +PGFILEDESC = "utf8 <-> big5 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile index 410037c..725281e 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_cyrillic/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_cyrillic +PGFILEDESC = "utf8 <-> cyrillic text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile index 58c513a..c6c537c 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc2004 +PGFILEDESC = "utf8 <-> euc2004 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile index 053162e..9d0e157 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_cn/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_cn +PGFILEDESC = "utf8 <-> euc_cn text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile index 6a7678d..c5f5578 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_jp/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_jp +PGFILEDESC = "utf8 <-> euc_jp text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile index 13935ab..a7eff9e 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_kr/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_kr +PGFILEDESC = "utf8 <-> euc_kr text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile index 7b9b833..59f42dc 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_euc_tw/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_euc_tw +PGFILEDESC = "utf8 <-> euc_tw text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile index 1fb3e5a..17bc18c 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gb18030/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gb18030 +PGFILEDESC = "utf8 <-> gb18030 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile index 240fe14..eb20638 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_gbk/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_gbk +PGFILEDESC = "utf8 <-> gbk text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile index c02323e..6fd0dd2 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859 +PGFILEDESC = "utf8 <-> iso8859 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile index c2fac2e..0298284 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_iso8859_1/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_iso8859_1 +PGFILEDESC = "utf8 <-> iso8859_1 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile index bdd39fb..e48ef3e 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_johab/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_johab +PGFILEDESC = "utf8 <-> johab text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile index 7f4dd0c..448c5d4 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis +PGFILEDESC = "utf8 <-> sjis text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile index ed0bfde..f7072a4 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_sjis2004/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_sjis2004 +PGFILEDESC = "utf8 <-> sjis2004 text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile index 5c09c7e..cc6e0a9 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_uhc/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_uhc +PGFILEDESC = "utf8 <-> uhc text conversions" include $(srcdir)/../proc.mk diff --git a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile index 31c510b..d8b18fb 100644 --- a/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile +++ b/src/backend/utils/mb/conversion_procs/utf8_and_win/Makefile @@ -8,5 +8,6 @@ top_builddir = ../../../../../.. include $(top_builddir)/src/Makefile.global NAME = utf8_and_win +PGFILEDESC = "utf8 <-> win text conversions" include $(srcdir)/../proc.mk diff --git a/src/bin/pg_basebackup/Makefile b/src/bin/pg_basebackup/Makefile index c6322ec..90d19e7 100644 --- a/src/bin/pg_basebackup/Makefile +++ b/src/bin/pg_basebackup/Makefile @@ -9,7 +9,7 @@ # #------------------------------------------------------------------------- -PGFILEDESC = "pg_basebackup - takes a streaming base backup of a PostgreSQL instance" +PGFILEDESC = "pg_basebackup/pg_receivexlog/pg_recvlogical - streaming WAL and backup receivers" PGAPPICON=win32 subdir = src/bin/pg_basebackup diff --git a/src/interfaces/ecpg/compatlib/Makefile b/src/interfaces/ecpg/compatlib/Makefile index db704d7..1e2d698 100644 --- a/src/interfaces/ecpg/compatlib/Makefile +++ b/src/interfaces/ecpg/compatlib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/compatlib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG compat - compatibility library for ECPG" NAME= ecpg_compat SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 7 @@ -30,7 +31,7 @@ SHLIB_EXPORTS = exports.txt # Need to recompile any libpgport object files LIBS := $(filter-out -lpgport, $(LIBS)) -OBJS= informix.o $(filter snprintf.o, $(LIBOBJS)) +OBJS= informix.o $(filter snprintf.o, $(LIBOBJS)) $(WIN32RES) PKG_CONFIG_REQUIRES_PRIVATE = libecpg libpgtypes diff --git a/src/interfaces/ecpg/ecpglib/Makefile b/src/interfaces/ecpg/ecpglib/Makefile index 9f4582e..3e16d90 100644 --- a/src/interfaces/ecpg/ecpglib/Makefile +++ b/src/interfaces/ecpg/ecpglib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/ecpglib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "ECPG - embedded SQL in C" NAME= ecpg SO_MAJOR_VERSION= 6 SO_MINOR_VERSION= 7 diff --git a/src/interfaces/ecpg/pgtypeslib/Makefile b/src/interfaces/ecpg/pgtypeslib/Makefile index d73c37e..436855e 100644 --- a/src/interfaces/ecpg/pgtypeslib/Makefile +++ b/src/interfaces/ecpg/pgtypeslib/Makefile @@ -13,6 +13,7 @@ subdir = src/interfaces/ecpg/pgtypeslib top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "pgtypes - library for data type mapping" NAME= pgtypes SO_MAJOR_VERSION= 3 SO_MINOR_VERSION= 6 @@ -30,7 +31,7 @@ SHLIB_EXPORTS = exports.txt OBJS= numeric.o datetime.o common.o dt_common.o timestamp.o interval.o \ pgstrcasecmp.o \ - $(filter rint.o snprintf.o, $(LIBOBJS)) + $(filter rint.o snprintf.o, $(LIBOBJS)) $(WIN32RES) all: all-lib diff --git a/src/interfaces/ecpg/test/Makefile b/src/interfaces/ecpg/test/Makefile index d359fce..56f6a17 100644 --- a/src/interfaces/ecpg/test/Makefile +++ b/src/interfaces/ecpg/test/Makefile @@ -13,6 +13,8 @@ override CPPFLAGS := \ '-DDLSUFFIX="$(DLSUFFIX)"' \ $(CPPFLAGS) +PGFILEDESC = "ECPG Test - regression tests for ECPG" + # where to find psql for testing an existing installation PSQLDIR = $(bindir) @@ -41,13 +43,13 @@ clean distclean maintainer-clean: $(MAKE) -C compat_informix $@ $(MAKE) -C thread $@ rm -rf tmp_check results log - rm -f pg_regress regression.diffs regression.out pg_regress_ecpg.o + rm -f pg_regress regression.diffs regression.out pg_regress_ecpg.o $(WIN32RES) # Build regression test driver all: pg_regress$(X) -pg_regress$(X): pg_regress_ecpg.o $(top_builddir)/src/test/regress/pg_regress.o +pg_regress$(X): pg_regress_ecpg.o $(WIN32RES) $(top_builddir)/src/test/regress/pg_regress.o $(CC) $(CFLAGS) $(LDFLAGS) $(LDFLAGS_EX) $^ $(LIBS) -o $@ $(top_builddir)/src/test/regress/pg_regress.o: diff --git a/src/makefiles/Makefile.win32 b/src/makefiles/Makefile.win32 index 9cb84f2..6406776 100644 --- a/src/makefiles/Makefile.win32 +++ b/src/makefiles/Makefile.win32 @@ -75,5 +75,5 @@ win32ver.o: win32ver.rc $(WINDRES) -i $< -o $@ --include-dir=$(top_builddir)/src/include --include-dir=$(srcdir) # Rule for building a shared library from a single .o file -%.dll: %.o - $(CC) $(CFLAGS) -shared -o $@ $< -Wl,--export-all-symbols $(LDFLAGS) $(LDFLAGS_SL) $(BE_DLLLIBS) +%.dll: %.o $(WIN32RES) + $(CC) $(CFLAGS) -shared -o $@ $< $(WIN32RES) -Wl,--export-all-symbols $(LDFLAGS) $(LDFLAGS_SL) $(BE_DLLLIBS) diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk index 8cf229e..cc69c1b 100644 --- a/src/makefiles/pgxs.mk +++ b/src/makefiles/pgxs.mk @@ -224,7 +224,7 @@ endif # MODULE_big clean: ifdef MODULES - rm -f $(addsuffix $(DLSUFFIX), $(MODULES)) $(addsuffix .o, $(MODULES)) + rm -f $(addsuffix $(DLSUFFIX), $(MODULES)) $(addsuffix .o, $(MODULES)) $(WIN32RES) endif ifdef DATA_built rm -f $(DATA_built) diff --git a/src/pl/plperl/GNUmakefile b/src/pl/plperl/GNUmakefile index 1e800a3..a04a2d3 100644 --- a/src/pl/plperl/GNUmakefile +++ b/src/pl/plperl/GNUmakefile @@ -26,10 +26,11 @@ override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) -I$(perl_archlibexp)/CORE rpathdir = $(perl_archlibexp)/CORE +PGFILEDESC = "PL/Perl - procedural language" NAME = plperl -OBJS = plperl.o SPI.o Util.o +OBJS = plperl.o SPI.o Util.o $(WIN32RES) DATA = plperl.control plperl--1.0.sql plperl--unpackaged--1.0.sql \ plperlu.control plperlu--1.0.sql plperlu--unpackaged--1.0.sql diff --git a/src/pl/plpgsql/src/Makefile b/src/pl/plpgsql/src/Makefile index 852b0c7..257c529 100644 --- a/src/pl/plpgsql/src/Makefile +++ b/src/pl/plpgsql/src/Makefile @@ -10,6 +10,8 @@ subdir = src/pl/plpgsql/src top_builddir = ../../../.. include $(top_builddir)/src/Makefile.global +PGFILEDESC = "PL/pgSQL - procedural language" + # Shared library parameters NAME= plpgsql @@ -17,7 +19,8 @@ override CPPFLAGS := -I. -I$(srcdir) $(CPPFLAGS) SHLIB_LINK = $(filter -lintl, $(LIBS)) rpath = -OBJS = pl_gram.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o pl_scanner.o +OBJS = pl_gram.o pl_handler.o pl_comp.o pl_exec.o pl_funcs.o \ + pl_scanner.o $(WIN32RES) DATA = plpgsql.control plpgsql--1.0.sql plpgsql--unpackaged--1.0.sql diff --git a/src/pl/plpython/Makefile b/src/pl/plpython/Makefile index 020861a..bf7598a 100644 --- a/src/pl/plpython/Makefile +++ b/src/pl/plpython/Makefile @@ -38,6 +38,8 @@ override CPPFLAGS := -I. -I$(srcdir) $(python_includespec) $(CPPFLAGS) rpathdir = $(python_libdir) +PGFILEDESC = "PL/Python - procedural language" + NAME = plpython$(python_majorversion) OBJS = \ @@ -52,7 +54,7 @@ OBJS = \ plpy_spi.o \ plpy_subxactobject.o \ plpy_typeio.o \ - plpy_util.o + plpy_util.o $(WIN32RES) DATA = $(NAME)u.control $(NAME)u--1.0.sql $(NAME)u--unpackaged--1.0.sql ifeq ($(python_majorversion),2) diff --git a/src/pl/tcl/Makefile b/src/pl/tcl/Makefile index 2ab2a27..7ea0026 100644 --- a/src/pl/tcl/Makefile +++ b/src/pl/tcl/Makefile @@ -34,10 +34,11 @@ ifneq ($(PORTNAME), win32) SHLIB_LINK = $(TCL_LIB_SPEC) $(TCL_LIBS) -lc endif +PGFILEDESC = "PL/Tcl - procedural language" NAME = pltcl -OBJS = pltcl.o +OBJS = pltcl.o $(WIN32RES) DATA = pltcl.control pltcl--1.0.sql pltcl--unpackaged--1.0.sql \ pltclu.control pltclu--1.0.sql pltclu--unpackaged--1.0.sql diff --git a/src/tools/msvc/clean.bat b/src/tools/msvc/clean.bat index e06838c..982389c 100755 --- a/src/tools/msvc/clean.bat +++ b/src/tools/msvc/clean.bat @@ -19,6 +19,15 @@ if exist pgsql.suo del /q /a:H pgsql.suo del /s /q src\bin\win32ver.rc 2> NUL del /s /q src\interfaces\win32ver.rc 2> NUL if exist src\backend\win32ver.rc del /q src\backend\win32ver.rc +if exist src\backend\replication\libpqwalreceiver\win32ver.rc del /q src\backend\replication\libpqwalreceiver\win32ver.rc +if exist src\bin\pg_basebackup\win32ver.rc del /q src\bin\pg_basebackup\win32ver.rc +if exist src\pl\plperl\win32ver.rc del /q src\pl\plperl\win32ver.rc +if exist src\pl\plpgsql\src\win32ver.rc del /q src\pl\plpgsql\src\win32ver.rc +if exist src\pl\plpython\win32ver.rc del /q src\pl\plpython\win32ver.rc +if exist src\pl\tcl\win32ver.rc del /q src\pl\tcl\win32ver.rc +for /d %%f in (src\interfaces\ecpg\*) do if exist %%f\win32ver.rc del /q %%f\win32ver.rc +for /d %%f in (contrib\*) do if exist %%f\win32ver.rc del /q %%f\win32ver.rc +for /d %%f in (src\backend\utils\mb\conversion_procs\*) do if exist %%f\win32ver.rc del /q %%f\win32ver.rc REM Delete files created with GenerateFiles() in Solution.pm if exist src\include\pg_config.h del /q src\include\pg_config.h -- 2.0.1
^ permalink raw reply [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-07-14 19:03  Noah Misch <noah@leadboat.com>
  parent: Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 2 replies; 25+ messages in thread

From: Noah Misch @ 2014-07-14 19:03 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: MauMau <maumau307@gmail.com>; Magnus Hagander <magnus@hagander.net>; pgsql-bugs

On Fri, Jul 11, 2014 at 11:14:54PM -0700, Michael Paquier wrote:
> On Fri, Jul 11, 2014 at 10:34 PM, Noah Misch <noah@leadboat.com> wrote:
> > Please fix the MODULES case, perhaps by linking $(WIN32RES) into each library
> > implicitly.
> Yes, that's exactly what I did in the patch attached by linking
> WIN32RES and a shared library when the lib is built from a single .o
> file. The rule in src/makefiles/Makefile.win32 has been updated
> accordingly. pgxs.mk has been updated as well to remove WIN32RES when
> clean is invoked for MODULES.

There remained several binaries versioned under MSVC and not versioned under
MinGW.  With those fixed, I committed this work.

-- 
Noah Misch
EnterpriseDB                                 http://www.enterprisedb.com


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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2014-07-14 23:04  Michael Paquier <michael.paquier@gmail.com>
  parent: Noah Misch <noah@leadboat.com>
  1 sibling, 0 replies; 25+ messages in thread

From: Michael Paquier @ 2014-07-14 23:04 UTC (permalink / raw)
  To: Noah Misch <noah@leadboat.com>; +Cc: MauMau <maumau307@gmail.com>; Magnus Hagander <magnus@hagander.net>; pgsql-bugs

On Tue, Jul 15, 2014 at 4:03 AM, Noah Misch <noah@leadboat.com> wrote:
> There remained several binaries versioned under MSVC and not versioned under
> MinGW.  With those fixed, I committed this work.

Thanks! I saw your series of commits and the additional fixes you have done.
-- 
Michael


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



^ permalink  raw  reply  [nested|flat] 25+ messages in thread

* Re: Missing file versions for a bunch of dll/exe files in Windows builds
@ 2015-08-02 02:54  Noah Misch <noah@leadboat.com>
  parent: Noah Misch <noah@leadboat.com>
  1 sibling, 0 replies; 25+ messages in thread

From: Noah Misch @ 2015-08-02 02:54 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: MauMau <maumau307@gmail.com>; Magnus Hagander <magnus@hagander.net>; pgsql-bugs

On Mon, Jul 14, 2014 at 03:03:28PM -0400, Noah Misch wrote:
> On Fri, Jul 11, 2014 at 11:14:54PM -0700, Michael Paquier wrote:
> > On Fri, Jul 11, 2014 at 10:34 PM, Noah Misch <noah@leadboat.com> wrote:
> > > Please fix the MODULES case, perhaps by linking $(WIN32RES) into each library
> > > implicitly.

That idea was somewhat too broad.

> > Yes, that's exactly what I did in the patch attached by linking
> > WIN32RES and a shared library when the lib is built from a single .o
> > file. The rule in src/makefiles/Makefile.win32 has been updated
> > accordingly. pgxs.mk has been updated as well to remove WIN32RES when
> > clean is invoked for MODULES.
> 
> There remained several binaries versioned under MSVC and not versioned under
> MinGW.  With those fixed, I committed this work.

PostgreSQL 9.5 pgxs tries to link $(WIN32RES) into any single-file module, not
just in-tree modules.  Unless the module happens to ship a win32ver.rc file,
the build fails.  MODULE_big modules are unaffected.

I plan to fix this as attached, by linking $(WIN32RES) into single-file
modules only when PGFILEDESC is set in the Makefile.  That better aligns the
GNU make build system with the heuristic in the MSVC build system's
Project::AddDirResourceFile().  External modules wishing to embed a DLL icon
and/or version information should provide a win32ver.rc and set PGFILEDESC.
(As in released versions, MODULE_big modules must additionally mention
$(WIN32RES) in OBJS.)  Modules not desiring Windows file version information
should leave PGFILEDESC unset.  In-tree, installed modules do set PGFILEDESC;
to build one using PGXS, you can first build without PGXS and preserve the
generated win32ver.rc.

One alternative I considered was to link with $(WIN32RES) only when PGXS is
unset.  That would omit version information from in-tree, single-file modules
built with PGXS.  Unlike my plan, it would not break builds of modules that
set PGFILEDESC without intending to trigger inclusion of version information.
However, a grep of the code in PGXN found no affected module.

Thanks,
nm

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

Attachments:

pgxs-w32-single-file-v1.patch (text/plain, 1.6K) download diff --git a/src/makefiles/Makefile.win32 b/src/makefiles/Makefile.win32 index 176c8b9..fed1243 100644 --- a/src/makefiles/Makefile.win32 +++ b/src/makefiles/Makefile.win32 @@ -62,12 +62,18 @@ ifneq (,$(PGAPPICON)) PGICOSTR = $(subst /,\/,IDI_ICON ICON \"$(top_builddir)/src/port/$(PGAPPICON).ico\") endif +# We do not install src/port/win32ver.rc, its content being specific to +# PostgreSQL Global Development Group software. Any module can ship a +# win32ver.rc or furnish a rule for generating one. Set $(PGFILEDESC) to +# signal win32ver.rc availability to the dll build rule below. +ifndef PGXS win32ver.rc: $(top_srcdir)/src/port/win32ver.rc sed -e 's;FILEDESC;$(PGFILEDESC);' -e 's;VFT_APP;$(PGFTYPE);' -e 's;_ICO_;$(PGICOSTR);' -e 's;\(VERSION.*\),0 *$$;\1,'`date '+%y%j' | sed 's/^0*//'`';' $< >$@ +endif win32ver.o: win32ver.rc $(WINDRES) -i $< -o $@ --include-dir=$(top_builddir)/src/include --include-dir=$(srcdir) # Rule for building a shared library from a single .o file -%.dll: %.o $(WIN32RES) +%.dll: %.o $(if $(PGFILEDESC),$(WIN32RES)) $(CC) $(CFLAGS) -shared -static-libgcc -o $@ $^ -Wl,--export-all-symbols $(LDFLAGS) $(LDFLAGS_SL) $(BE_DLLLIBS) diff --git a/src/makefiles/pgxs.mk b/src/makefiles/pgxs.mk index b6874ce..2b4d684 100644 --- a/src/makefiles/pgxs.mk +++ b/src/makefiles/pgxs.mk @@ -202,7 +202,7 @@ endif # MODULE_big clean: ifdef MODULES - rm -f $(addsuffix $(DLSUFFIX), $(MODULES)) $(addsuffix .o, $(MODULES)) $(WIN32RES) + rm -f $(addsuffix $(DLSUFFIX), $(MODULES)) $(addsuffix .o, $(MODULES)) $(if $(PGFILEDESC),$(WIN32RES)) endif ifdef DATA_built rm -f $(DATA_built)
^ permalink raw reply [nested|flat] 25+ messages in thread


end of thread, other threads:[~2015-08-02 02:54 UTC | newest]

Thread overview: 25+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-04-24 05:54 Missing file versions for a bunch of dll/exe files in Windows builds Michael Paquier <michael.paquier@gmail.com>
2014-04-24 07:27 ` Magnus Hagander <magnus@hagander.net>
2014-04-24 07:50   ` Dave Page <dpage@pgadmin.org>
2014-04-24 08:13     ` Magnus Hagander <magnus@hagander.net>
2014-04-24 08:18       ` Dave Page <dpage@pgadmin.org>
2014-04-24 09:00         ` Magnus Hagander <magnus@hagander.net>
2014-04-24 09:13           ` Michael Paquier <michael.paquier@gmail.com>
2014-04-24 09:09   ` Michael Paquier <michael.paquier@gmail.com>
2014-04-24 09:18     ` Magnus Hagander <magnus@hagander.net>
2014-04-24 11:31       ` Michael Paquier <michael.paquier@gmail.com>
2014-04-25 02:21         ` Michael Paquier <michael.paquier@gmail.com>
2014-06-20 12:02           ` MauMau <maumau307@gmail.com>
2014-06-20 14:17             ` Michael Paquier <michael.paquier@gmail.com>
2014-06-20 16:44               ` MauMau <maumau307@gmail.com>
2014-06-20 22:17                 ` Michael Paquier <michael.paquier@gmail.com>
2014-06-21 02:47                   ` MauMau <maumau307@gmail.com>
2014-06-21 13:13                     ` Michael Paquier <michael.paquier@gmail.com>
2014-06-21 14:46                       ` MauMau <maumau307@gmail.com>
2014-07-10 15:02                       ` Noah Misch <noah@leadboat.com>
2014-07-11 04:21                         ` Michael Paquier <michael.paquier@gmail.com>
2014-07-11 13:34                           ` Noah Misch <noah@leadboat.com>
2014-07-12 06:14                             ` Michael Paquier <michael.paquier@gmail.com>
2014-07-14 19:03                               ` Noah Misch <noah@leadboat.com>
2014-07-14 23:04                                 ` Michael Paquier <michael.paquier@gmail.com>
2015-08-02 02:54                                 ` Noah Misch <noah@leadboat.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox