]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/patches/postgresql.patch
Restore win32 dir from Branch-5.2 and update it
[bacula/bacula] / bacula / src / win32 / patches / postgresql.patch
1 Index: doc/Makefile
2 --- ../original/postgresql-8.1.4/doc/Makefile   2003-11-29 11:51:36.000000000 -0800
3 +++ ./doc/Makefile      2006-06-29 03:44:10.000000000 -0700
4 @@ -101,4 +101,4 @@
5  
6  clean distclean maintainer-clean:
7         rm -rf man1/ man$(sqlmansectnum)/ man$(sqlmansect_dummy)/
8 -       $(MAKE) -C src $@
9 +       -$(MAKE) -C src $@
10 Index: src/bin/pgevent/Makefile
11 --- ../original/postgresql-8.1.4/src/bin/pgevent/Makefile       2004-12-31 14:03:14.000000000 -0800
12 +++ ./src/bin/pgevent/Makefile  2006-06-29 01:19:18.000000000 -0700
13 @@ -14,16 +14,18 @@
14  
15  OBJS=pgevent.o pgmsgevent.o
16  NAME=pgevent.dll
17 +DLLWRAP=dllwrap
18 +WINDRES=windres
19  
20  all: $(NAME)
21  
22  install: all install-lib
23  
24  pgevent.dll: $(OBJS) pgevent.def
25 -       dllwrap --def pgevent.def -o $(NAME) $(OBJS)
26 +       $(DLLWRAP) --def pgevent.def -o $(NAME) $(OBJS)
27         
28  pgmsgevent.o: pgmsgevent.rc win32ver.rc
29 -       windres pgmsgevent.rc -o pgmsgevent.o --include-dir=$(top_builddir)/src/include
30 +       $(WINDRES) pgmsgevent.rc -o pgmsgevent.o --include-dir=$(top_builddir)/src/include
31  
32  all-lib: $(NAME)
33  
34 Index: src/interfaces/libpq/Makefile
35 --- ../original/postgresql-8.1.4/src/interfaces/libpq/Makefile  2005-08-28 17:47:35.000000000 -0700
36 +++ ./src/interfaces/libpq/Makefile     2006-06-29 01:15:35.000000000 -0700
37 @@ -13,6 +13,7 @@
38  top_builddir = ../../..
39  include $(top_builddir)/src/Makefile.global
40  
41 +WINDRES=windres
42  
43  # shared library parameters
44  NAME= pq
45 @@ -42,7 +43,7 @@
46  DLL_DEFFILE=libpqdll.def
47  
48  libpqrc.o: libpq.rc
49 -       windres -i libpq.rc -o libpqrc.o
50 +       $(WINDRES) -i libpq.rc -o libpqrc.o
51  
52  ifeq ($(enable_thread_safety), yes)
53  OBJS += pthread-win32.o
54 Index: src/Makefile
55 --- ../original/postgresql-8.1.4/src/Makefile   2005-01-13 10:23:21.000000000 -0800
56 +++ ./src/Makefile      2006-06-29 04:07:54.000000000 -0700
57 @@ -52,10 +52,10 @@
58         $(MAKE) -C bin $@
59         $(MAKE) -C pl $@
60         $(MAKE) -C makefiles $@
61 -       $(MAKE) -C test $@
62 -       $(MAKE) -C tutorial NO_PGXS=1 $@
63 +       -$(MAKE) -C test $@
64 +       -$(MAKE) -C tutorial NO_PGXS=1 $@
65         $(MAKE) -C utils $@
66 -       $(MAKE) -C tools/thread $@
67 +       -$(MAKE) -C tools/thread $@
68  
69  distclean maintainer-clean:
70         -$(MAKE) -C port $@
71 Index: src/Makefile.global.in
72 --- ../original/postgresql-8.1.4/src/Makefile.global.in 2005-09-27 10:39:32.000000000 -0700
73 +++ ./src/Makefile.global.in    2006-06-29 01:11:44.000000000 -0700
74 @@ -31,6 +31,7 @@
75  # PostgreSQL version number
76  VERSION = @PACKAGE_VERSION@
77  
78 +WINDRES=windres
79  # Support for VPATH builds
80  vpath_build = @vpath_build@
81  abs_top_srcdir = @abs_top_srcdir@
82 @@ -456,7 +457,7 @@
83         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*//'`';' $(top_builddir)/src/port/win32ver.rc > win32ver.rc
84  win32ver.o: $(top_builddir)/src/port/win32ver.rc
85         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*//'`';' $(top_builddir)/src/port/win32ver.rc > win32ver.rc
86 -       windres -i win32ver.rc -o win32ver.o --include-dir=$(top_builddir)/src/include
87 +       $(WINDRES) -i win32ver.rc -o win32ver.o --include-dir=$(top_builddir)/src/include
88         rm -f win32ver.rc
89  endif
90  
91 Index: src/timezone/Makefile
92 --- ../original/postgresql-8.1.4/src/timezone/Makefile  2005-07-06 14:40:09.000000000 -0700
93 +++ ./src/timezone/Makefile     2006-06-29 03:22:26.000000000 -0700
94 @@ -12,6 +12,8 @@
95  top_builddir = ../..
96  include $(top_builddir)/src/Makefile.global
97  
98 +ZIC=./zic
99 +
100  override CPPFLAGS := $(CPPFLAGS)
101  
102  # files to build into backend
103 @@ -25,16 +27,16 @@
104         pacificnew etcetera factory backward systemv solar87 solar88 solar89
105  TZDATAFILES := $(TZDATA:%=$(srcdir)/data/%)
106  
107 -all: SUBSYS.o submake-libpgport zic
108 +all: SUBSYS.o submake-libpgport zic$(X)
109  
110  SUBSYS.o: $(OBJS)
111         $(LD) $(LDREL) $(LDOUT) SUBSYS.o $(OBJS)
112  
113 -zic: $(ZICOBJS)
114 -       $(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@$(X)
115 +zic$(X): $(ZICOBJS)
116 +       $(CC) $(CFLAGS) $(ZICOBJS) $(LDFLAGS) $(LIBS) -o $@
117  
118  install: all installdirs
119 -       ./zic -d $(DESTDIR)$(datadir)/timezone $(TZDATAFILES)
120 +       $(ZIC) -d $(DESTDIR)$(datadir)/timezone $(TZDATAFILES)
121  
122  installdirs:
123         $(mkinstalldirs) $(DESTDIR)$(datadir)