- 489017 update to 8.5.7 with systemtap support

This commit is contained in:
Marcela Mašláňová 2009-05-18 11:27:39 +00:00
parent 41c679170f
commit 868e14bb01
4 changed files with 51 additions and 43 deletions

View File

@ -1,2 +1 @@
tcl8.5.5-src.tar.gz
tcl8.5.6-src.tar.gz
tcl8.5.7-src.tar.gz

View File

@ -1,2 +1 @@
39faed045bd03da1267fb66c9b75349f tcl8.5.5-src.tar.gz
d0b0b3ff7600ff63135c710b575265cd tcl8.5.6-src.tar.gz
f70ad8f78b5e4a9f792fe101f22b125f tcl8.5.7-src.tar.gz

View File

@ -1,21 +1,23 @@
diff -up tcl8.5.1/unix/configure.in.autopath tcl8.5.1/unix/configure.in
--- tcl8.5.1/unix/configure.in.autopath 2008-02-05 18:00:35.000000000 +0100
+++ tcl8.5.1/unix/configure.in 2008-03-17 14:57:24.000000000 +0100
@@ -795,9 +795,9 @@ if test "$FRAMEWORK_BUILD" = "1" ; then
test -z "$TCL_MODULE_PATH" && \
TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl /Network/Library/Tcl /System/Library/Tcl"
elif test "$prefix/lib" != "$libdir"; then
- TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}"
+ TCL_PACKAGE_PATH="${libdir}/tcl8.5 ${libdir}/tk8.5 ${prefix}/lib/tcl8.5 ${prefix}/lib/tk8.5 ${prefix}/share/tcl8.5 ${TCL_PACKAGE_PATH}"
else
- TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}"
+ TCL_PACKAGE_PATH="${libdir}/tcl8.5 ${prefix}/share/tcl8.5 ${libdir}/tk8.5 ${TCL_PACKAGE_PATH}"
fi
diff -up tcl8.5.7/library/auto.tcl.old tcl8.5.7/library/auto.tcl
--- tcl8.5.7/library/auto.tcl.old 2006-11-03 01:34:52.000000000 +0100
+++ tcl8.5.7/library/auto.tcl 2009-05-18 10:28:16.337102378 +0200
@@ -85,6 +85,13 @@ proc tcl_findLibrary {basename version p
lappend dirs $value
}
#--------------------------------------------------------------------
diff -up tcl8.5.1/library/init.tcl.autopath tcl8.5.1/library/init.tcl
--- tcl8.5.1/library/init.tcl.autopath 2008-02-04 18:29:11.000000000 +0100
+++ tcl8.5.1/library/init.tcl 2008-02-19 09:11:51.000000000 +0100
+ # 2a. As a sibling of Tcl's script directory
+ if {[catch {
+ ::tcl::pkgconfig get scriptdir,runtime
+ } value] == 0} {
+ lappend dirs [file join [file dirname $value] $basename$version]
+ }
+
# 3. Relative to auto_path directories. This checks relative to the
# Tcl library as well as allowing loading of libraries added to the
# auto_path that is not relative to the core library or binary paths.
diff -up tcl8.5.7/library/init.tcl.old tcl8.5.7/library/init.tcl
--- tcl8.5.7/library/init.tcl.old 2009-04-10 18:54:51.000000000 +0200
+++ tcl8.5.7/library/init.tcl 2009-05-18 10:25:25.904853164 +0200
@@ -48,16 +48,11 @@ if {![info exists auto_path]} {
}
namespace eval tcl {
@ -34,20 +36,18 @@ diff -up tcl8.5.1/library/init.tcl.autopath tcl8.5.1/library/init.tcl
catch {
foreach Dir $::tcl_pkgPath {
if {$Dir ni $::auto_path} {
diff -up tcl8.5.1/library/auto.tcl.autopath tcl8.5.1/library/auto.tcl
--- tcl8.5.1/library/auto.tcl.autopath 2006-11-03 01:34:52.000000000 +0100
+++ tcl8.5.1/library/auto.tcl 2008-02-19 09:11:51.000000000 +0100
@@ -85,6 +85,13 @@ proc tcl_findLibrary {basename version p
lappend dirs $value
}
diff -up tcl8.5.7/unix/configure.in.old tcl8.5.7/unix/configure.in
--- tcl8.5.7/unix/configure.in.old 2009-04-15 21:30:05.000000000 +0200
+++ tcl8.5.7/unix/configure.in 2009-05-18 10:21:30.987855050 +0200
@@ -833,9 +833,9 @@ if test "$FRAMEWORK_BUILD" = "1" ; then
test -z "$TCL_MODULE_PATH" && \
TCL_MODULE_PATH="~/Library/Tcl /Library/Tcl /System/Library/Tcl"
elif test "$prefix/lib" != "$libdir"; then
- TCL_PACKAGE_PATH="${libdir} ${prefix}/lib ${TCL_PACKAGE_PATH}"
+ TCL_PACKAGE_PATH="${libdir}/tcl8.5 ${prefix}/share/tcl8.5 ${TCL_PACKAGE_PATH}"
else
- TCL_PACKAGE_PATH="${prefix}/lib ${TCL_PACKAGE_PATH}"
+ TCL_PACKAGE_PATH="${libdir}/tcl8.5 ${prefix}/share/tcl8.5 ${TCL_PACKAGE_PATH}"
fi
+ # 2a. As a sibling of Tcl's script directory
+ if {[catch {
+ ::tcl::pkgconfig get scriptdir,runtime
+ } value] == 0} {
+ lappend dirs [file join [file dirname $value] $basename$version]
+ }
+
# 3. Relative to auto_path directories. This checks relative to the
# Tcl library as well as allowing loading of libraries added to the
# auto_path that is not relative to the core library or binary paths.
#--------------------------------------------------------------------

View File

@ -1,10 +1,11 @@
%define majorver 8.5
%define vers %{majorver}.6
%define vers %{majorver}.7
%{!?sdt:%define sdt 1}
Summary: Tool Command Language, pronounced tickle
Name: tcl
Version: %{vers}
Release: 6%{?dist}
Release: 1%{?dist}
Epoch: 1
License: TCL
Group: Development/Languages
@ -18,7 +19,10 @@ Provides: tcl-tcldict = %{vers}
Patch0: tcl-8.5.1-autopath.patch
Patch1: tcl-8.5.0-conf.patch
Patch2: tcl-8.5.0-hidden.patch
Patch3: tcl-8.5.6-http.patch
%if %sdt
BuildRequires: systemtap-sdt-devel
%endif
%description
The Tcl (Tool Command Language) provides a powerful platform for
@ -52,12 +56,15 @@ chmod -x generic/tclThreadAlloc.c
%patch0 -p1 -b .autopath
%patch1 -p1 -b .conf
%patch2 -p1 -b .hidden
%patch3 -p1 -b .http
%build
pushd unix
autoconf
%configure --disable-threads
%configure \
%if %sdt
--enable-dtrace \
%endif
--disable-threads
make %{?_smp_mflags} TCL_LIBRARY=%{_datadir}/%{name}%{majorver}
%check
@ -66,7 +73,7 @@ make %{?_smp_mflags} TCL_LIBRARY=%{_datadir}/%{name}%{majorver}
%{!?_without_check: %define _without_check 1}
%if ! %{_without_check}
make test
# make test
%endif
%install
@ -126,6 +133,9 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/%{name}8.5/%{name}Config.sh
%changelog
* Mon May 18 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1:8.5.7-1
- 489017 update to 8.5.7 with systemtap support
* Wed Apr 1 2009 Marcela Mašláňová <mmaslano@redhat.com> - 1:8.5.6-6
- add missing part of patch