Skip to content

Commit 41fd969

Browse files
committed
Back-patch creation of tar.bz2 tarball during "make dist".
Since commit a4d03bb, "make dist" has built both gzip- and bzip2-compressed tarballs. However, this was pretty useless, because our tarball build script didn't know about it and proceeded to overwrite the bz2 file with new data. Back-patch the change to all active branches, so that creation of the tar.bz2 file can be removed from the build script.
1 parent 457c2d9 commit 41fd969

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

GNUmakefile.in

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ distdir := postgresql-$(VERSION)
6767
dummy := =install=
6868
garbage := =* "#"* ."#"* *~* *.orig *.rej core postgresql-*
6969

70-
dist: $(distdir).tar.gz
70+
dist: $(distdir).tar.gz $(distdir).tar.bz2
7171
ifeq ($(split-dist), yes)
7272
dist: postgresql-base-$(VERSION).tar.gz postgresql-docs-$(VERSION).tar.gz postgresql-opt-$(VERSION).tar.gz postgresql-test-$(VERSION).tar.gz
7373
endif
@@ -77,6 +77,8 @@ dist:
7777
$(distdir).tar: distdir
7878
$(TAR) chf $@ $(distdir)
7979

80+
.INTERMEDIATE: $(distdir).tar
81+
8082
opt_files := \
8183
src/tools src/tutorial \
8284
$(addprefix src/pl/, plperl plpython tcl)
@@ -115,10 +117,10 @@ distdir:
115117
$(MAKE) -C $(distdir) distclean
116118
rm -f $(distdir)/README.git
117119

118-
distcheck: $(distdir).tar.gz
120+
distcheck: dist
119121
-rm -rf $(dummy)
120122
mkdir $(dummy)
121-
$(GZIP) -d -c $< | $(TAR) xf -
123+
$(GZIP) -d -c $(distdir).tar.gz | $(TAR) xf -
122124
install_prefix=`cd $(dummy) && pwd`; \
123125
cd $(distdir) \
124126
&& ./configure --prefix="$$install_prefix"

src/Makefile.global.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,10 @@ TAS = @TAS@
441441
# Global targets and rules
442442

443443
%.gz: %
444-
$(GZIP) -f --best $<
444+
$(GZIP) --best -c $< >$@
445445

446446
%.bz2: %
447-
$(BZIP2) -f $<
447+
$(BZIP2) -c $< >$@
448448

449449
ifeq ($(PORTNAME),win32)
450450
# Build rules to add versioninfo resources to win32 binaries

0 commit comments

Comments
 (0)