Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteeca4bd

Browse files
committed
The attached patch changes src/interfaces/python/GNUmakefile to use the
value of DESTDIR like the rest (or at least most) of the PostgreSQLmakefiles. I found this problem when trying to package a pre-builtCygwin PostgreSQL distribution, but this problem is platform independent.The problem manifests itself when one tries to install into a staggingarea (e.g., to build a tarball) instead of a real install. In this case,pg.py and _pgmodule$(SO) still end up being installed in the configuredprefix directory ignoring the value of DESTDIR.Unfortunately, this patch does not handle the case where PostgreSQLand Python are configured with different prefixes. Since the PythonMakefile is automatically generated and does not use DESTDIR, I believethat this issue will be difficult to correct. If anyone has ideas onhow to fix this issue, then I'm quite willing to rework the patch totake the suggestion into account.Jason Tishler
1 parent74068df commiteeca4bd

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

‎src/interfaces/python/GNUmakefile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Written by Peter Eisentraut <peter_e@gmx.net>
66
#
7-
# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.7 2001/05/12 17:49:32 petere Exp $
7+
# $Header: /cvsroot/pgsql/src/interfaces/python/Attic/GNUmakefile,v 1.8 2001/05/25 14:29:39 momjian Exp $
88
#
99
#-------------------------------------------------------------------
1010

@@ -32,10 +32,10 @@ Setup.in: Setup.in.raw
3232
-e's%@INCLUDES@%$(filter -I%, $(CPPFLAGS))%g'\
3333
$<>$@
3434

35-
install: all
35+
install: all installdirs
3636
@echo"Installing Python module"
37-
@if ($(INSTALL_DATA) pg.py$(python_moduledir)&& \
38-
$(MAKE) -f Makefile install );then:;else\
37+
@if ($(INSTALL_DATA) pg.py$(DESTDIR)$(python_moduledir)&& \
38+
$(MAKE) -f Makefileprefix=$(DESTDIR)$(prefix)install );then:;else\
3939
echo"*****";\
4040
echo"* Skipping the installation of the Python interface module for lack";\
4141
echo"* of permissions. To install it, change to the directory";\
@@ -44,6 +44,9 @@ install: all
4444
echo"*****";\
4545
fi
4646

47+
installdirs:
48+
$(mkinstalldirs)$(DESTDIR)$(python_moduledir)
49+
4750
uninstall:
4851
@echo"*****";\
4952
echo"* Unfortunately, the Python interface module cannot be uninstalled";\

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp