rpms/postgresql/F-9 postgresql.spec,1.95,1.96
Tom Lane (tgl)
fedora-extras-commits at redhat.com
Fri Jun 20 17:28:42 UTC 2008
- Previous message (by thread): rpms/swarp/devel import.log, NONE, 1.1 swarp.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/gammu/F-9 gammu.spec,1.13,1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: tgl
Update of /cvs/pkgs/rpms/postgresql/F-9
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10196
Modified Files:
postgresql.spec
Log Message:
Install Pgtcl in /usr/lib/tcl$TCL_VERSION, not directly in /usr/lib
Index: postgresql.spec
===================================================================
RCS file: /cvs/pkgs/rpms/postgresql/F-9/postgresql.spec,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -r1.95 -r1.96
--- postgresql.spec 11 Jun 2008 16:33:03 -0000 1.95
+++ postgresql.spec 20 Jun 2008 17:27:56 -0000 1.96
@@ -83,7 +83,7 @@
Summary: PostgreSQL client programs and libraries
Name: postgresql
Version: 8.3.3
-Release: 1%{?dist}
+Release: 2%{?dist}
License: BSD
Group: Applications/Databases
Url: http://www.postgresql.org/
@@ -305,7 +305,7 @@
Group: Applications/Databases
# this is intentionally not a version-specific Requires:
Requires: libpq.so
-Requires: tcl >= 8.3
+Requires: tcl >= 8.5
Obsoletes: rh-postgresql-tcl
%description tcl
@@ -520,9 +520,17 @@
cp src/tutorial/* $RPM_BUILD_ROOT%{_libdir}/pgsql/tutorial
%if %tcl
- install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/Pgtcl
- cp Pgtcl/pkgIndex.tcl $RPM_BUILD_ROOT%{_libdir}/Pgtcl
- cp Pgtcl/libpgtcl*.so $RPM_BUILD_ROOT%{_libdir}/Pgtcl
+ TCL_VERSION=`echo 'puts $tcl_version' | tclsh`
+ TCLLIBDIR="%{_libdir}/tcl$TCL_VERSION"
+ # check the target directory is a dir, not a symlink
+ if [ -h "$TCLLIBDIR" ] ; then
+ echo "$TCLLIBDIR must not be a symlink"
+ exit 1
+ fi
+ PGTCL_DIR="${RPM_BUILD_ROOT}${TCLLIBDIR}/Pgtcl"
+ install -d -m 755 "$PGTCL_DIR"
+ cp Pgtcl/pkgIndex.tcl "$PGTCL_DIR"
+ cp Pgtcl/libpgtcl*.so "$PGTCL_DIR"
%endif
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
@@ -808,7 +816,7 @@
%if %tcl
%files tcl
%defattr(-,root,root)
-%{_libdir}/Pgtcl/
+%{_libdir}/tcl*/Pgtcl/
%doc Pgtcl-docs/*
%endif
@@ -851,6 +859,14 @@
%endif
%changelog
+* Fri Jun 20 2008 Tom Lane <tgl at redhat.com> 8.3.3-2
+- Install Pgtcl in /usr/lib/tcl$TCL_VERSION, not directly in /usr/lib.
+ Needed because tcl 8.5 no longer puts /usr/lib into its package search path.
+ NOTE: do not back-port this change into branches using pre-8.5 tcl, because
+ /usr/lib/tcl8.4 had been a symlink to /usr/share/tcl8.4, and /usr/share
+ is exactly where we must not put Pgtcl.
+Resolves: #228263
+
* Wed Jun 11 2008 Tom Lane <tgl at redhat.com> 8.3.3-1
- Update to PostgreSQL 8.3.3.
- Remove postgresql-prefer-ncurses.patch, no longer needed in recent
- Previous message (by thread): rpms/swarp/devel import.log, NONE, 1.1 swarp.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Next message (by thread): rpms/gammu/F-9 gammu.spec,1.13,1.14
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list