OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 15-Jan-2006 20:19:12
Branch: HEAD Handle: 2006011519191200
Modified files:
openpkg-src/postgresql postgresql.spec
Log:
apply a cruel hack to make sure pg_config(1) outputs really the
logical <prefix> and not the resolved one (which in turn makes trouble
for packages like 'uuid' who prefix this with a DESTDIR)
Summary:
Revision Changes Path
1.183 +10 -1 openpkg-src/postgresql/postgresql.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/postgresql/postgresql.spec
============================================================================
$ cvs diff -u -r1.182 -r1.183 postgresql.spec
--- openpkg-src/postgresql/postgresql.spec 11 Jan 2006 13:56:28 -0000
1.182
+++ openpkg-src/postgresql/postgresql.spec 15 Jan 2006 19:19:12 -0000
1.183
@@ -43,7 +43,7 @@
Group: Database
License: GPL
Version: %{V_postgresql}
-Release: 20060111
+Release: 20060115
# package options
%option with_server yes
@@ -368,6 +368,15 @@
) || exit $?
%endif
+ # rebuild pg_config with hard-coded path to avoid that it provides
+ # dynamically resolved paths which circumvent symlinks, etc.
+ ( cd src/bin/pg_config
+ %{l_shtool} subst \
+ -e 's:find_my_exec(argv.0., mypath):0; strcpy(mypath,
"%{l_prefix}/bin/pg_config"):' \
+ pg_config.c
+ %{l_make} %{l_mflags}
+ ) || exit $?
+
%install
rm -rf $RPM_BUILD_ROOT
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]