diff options
author | 2008-11-02 13:11:09 +0000 | |
---|---|---|
committer | 2008-11-02 13:11:09 +0000 | |
commit | 8ced62d4c5af851b0a7a173bcdaff4a359761a34 (patch) | |
tree | f8285ab85f3d2ad087ad176df7c1856597ecf7a0 /dev-tcltk | |
parent | bump (diff) | |
download | historical-8ced62d4c5af851b0a7a173bcdaff4a359761a34.tar.gz historical-8ced62d4c5af851b0a7a173bcdaff4a359761a34.tar.bz2 historical-8ced62d4c5af851b0a7a173bcdaff4a359761a34.zip |
adding v5.43.0, cause 5.44.1 was retired due to problems - bug #244827
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'dev-tcltk')
-rw-r--r-- | dev-tcltk/expect/ChangeLog | 7 | ||||
-rw-r--r-- | dev-tcltk/expect/Manifest | 6 | ||||
-rw-r--r-- | dev-tcltk/expect/expect-5.43.0.ebuild | 109 | ||||
-rw-r--r-- | dev-tcltk/expect/files/expect-5.43.0-avoid-tcl-internals-1.patch | 100 | ||||
-rw-r--r-- | dev-tcltk/expect/files/expect-5.43.0-multilib.patch | 11 |
5 files changed, 231 insertions, 2 deletions
diff --git a/dev-tcltk/expect/ChangeLog b/dev-tcltk/expect/ChangeLog index 05eba9f516c3..020f9bd0285d 100644 --- a/dev-tcltk/expect/ChangeLog +++ b/dev-tcltk/expect/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-tcltk/expect # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/expect/ChangeLog,v 1.49 2008/11/02 10:07:08 mescalinum Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/expect/ChangeLog,v 1.50 2008/11/02 13:11:09 mescalinum Exp $ + + 02 Nov 2008; Federico Ferri <mescalinum@gentoo.org> + +files/expect-5.43.0-avoid-tcl-internals-1.patch, + +files/expect-5.43.0-multilib.patch, +expect-5.43.0.ebuild: + adding v5.43.0, cause 5.44.1 was retired due to problems - bug #244827 02 Nov 2008; Federico Ferri <mescalinum@gentoo.org> expect-5.44.1.ebuild: tk dep isn't conditional anymore, bug #244827 diff --git a/dev-tcltk/expect/Manifest b/dev-tcltk/expect/Manifest index 5d4b663b7abc..a68ee268e8ef 100644 --- a/dev-tcltk/expect/Manifest +++ b/dev-tcltk/expect/Manifest @@ -1,10 +1,14 @@ AUX expect-5.39.0-libdir.patch 480 RMD160 e58373778379907bf68ce6e61acce5dad4852421 SHA1 f438e6899688f0b3d5bdb854246483ec29848c9a SHA256 971ac5bd88e393d1029ab248c1071529337baf0b50445c53e35f49fdb7c6365a AUX expect-5.42.1-multilib.patch 507 RMD160 d086ba11fb79048f1b800d17d93ffeb90912110b SHA1 b59faccf8a0e8c538126d68c5eed181d789f45d7 SHA256 a707e4d6f513f1b2b09edb3c7bb393b9f2f3fcfaf79db0326e82e018b842d002 +AUX expect-5.43.0-avoid-tcl-internals-1.patch 3376 RMD160 2a99f4496dbbb7b1575189fe284e847851b4bedf SHA1 e85341cfd075dc27c9f79c86ac6c035e82203a15 SHA256 2dbfcf569e766d6e5d2b6bc83a7556c0cb189a7da334e07b7201bb0b764fb610 +AUX expect-5.43.0-multilib.patch 507 RMD160 d086ba11fb79048f1b800d17d93ffeb90912110b SHA1 b59faccf8a0e8c538126d68c5eed181d789f45d7 SHA256 a707e4d6f513f1b2b09edb3c7bb393b9f2f3fcfaf79db0326e82e018b842d002 AUX expect-5.44.1-destdir.patch 1072 RMD160 b5dcc02f39215616e790b79088ee197ea74af7f6 SHA1 a662f32614cf37a40991e80cea8d43646ca72947 SHA256 41102ebbd7da6eccea0a88c29e5b5a1ce7039effdf8c271fe09d9bbe3fe55f0e AUX expect.m4 20468 RMD160 b06e075db9afed2b0a59d9b5721f874d74acdef5 SHA1 14d4cfc26131f8231af0bfa126722b123573aac4 SHA256 6b60f18a68792050c1cb8745508fd1595eb2789fd780195af0492e344d00faca DIST expect-5.42.1.tar.gz 524882 RMD160 d354d5d3ffa941d89e668fb4ad1ccbb59be4f341 SHA1 84ca72f0abd2b7a31ee332049b34575a286e8f27 SHA256 a2b64dbca4dc127dfcb6d7e16dd3c08ef8bba2056104ce89819d3e6f0e1df430 +DIST expect-5.43.0.tar.gz 525570 RMD160 223b78f39dca8cc7900d82230cf7db91e6770389 SHA1 4da64b7c50cea22ac87fcf0f8f98f786793ee785 SHA256 d11a77e680ddc0244370b46f117f0b28a6571db842885bee3b7c15372c1ca079 DIST expect-5.44.1.tar.gz 623422 RMD160 5f206d9e5b9bb73c97bb7fc0d7df7318d4525a32 SHA1 b897c7626e7dde0fd090a572389a5e2a95056de8 SHA256 e41a6b82d67150f0dc38faa5c96715d93b68d3e55be40a585737cc4f59c4fd8f EBUILD expect-5.42.1-r1.ebuild 3062 RMD160 37e2632986cfa482437551c2e8842fa773505d66 SHA1 21a51490a22cbcaac3ff158159af9583d34082e1 SHA256 e3315c6b5fd88d502bc53c735ca654308084a3cd4d0ba814b197f92ff4229183 +EBUILD expect-5.43.0.ebuild 3260 RMD160 c54d40b4eebd46a7b447d91bd22e2a5d9d3481f8 SHA1 48766a6aae766c487bd88894d4d9436d3c4b54ca SHA256 f10a5af627238e71fbe3149a9a08467c00f7f630b87e295faf2b891d30bcf7e5 EBUILD expect-5.44.1.ebuild 3300 RMD160 510363d02347b3acabf67076831e37d3423def73 SHA1 aa2367f44635f53344f5813e15ba6e4f1375b329 SHA256 835e672babf2edd6a0750e27a1b88a7a615c5a89c28a156897ddd25501286cb6 -MISC ChangeLog 7015 RMD160 7de5242aa44c2cc497362f2931eaf9047f76096a SHA1 5e9a3b6f9583e884c06c79b871663c65e09e2c9d SHA256 a1932da9f5f06075bfbc7cec2b9c75167f81b5b464e172de90e389c4813cb4da +MISC ChangeLog 7257 RMD160 bb2dc71358d1ea57e47bba6ab48342ce900325a7 SHA1 8da8bc9d48870e23d969cc8a0cfb8e2cc17e3793 SHA256 d8c25d14fa8495477ebc3a1df450c01d43a6be327a1895ee3b27483a381d1afe MISC metadata.xml 158 RMD160 f197c34c7dd71f6025e93436e3f999137928554a SHA1 edb8e5ac668440e92e947fc3dff54484b28c7775 SHA256 62fb2b0a899315973de885234e3931a2f652b343b68f90fe0778378fdca6f290 diff --git a/dev-tcltk/expect/expect-5.43.0.ebuild b/dev-tcltk/expect/expect-5.43.0.ebuild new file mode 100644 index 000000000000..abaccc67dde6 --- /dev/null +++ b/dev-tcltk/expect/expect-5.43.0.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/expect/expect-5.43.0.ebuild,v 1.9 2008/11/02 13:11:09 mescalinum Exp $ + +WANT_AUTOCONF="2.1" +inherit autotools eutils + +DESCRIPTION="tool for automating interactive applications" +HOMEPAGE="http://expect.nist.gov/" +SRC_URI="http://expect.nist.gov/src/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" +IUSE="X doc" + +# We need dejagnu for src_test, but dejagnu needs expect +# to compile/run, so we cant add dejagnu to DEPEND :/ +DEPEND=">=dev-lang/tcl-8.2 + X? ( >=dev-lang/tk-8.2 )" +RDEPEND="${DEPEND}" + +NON_MICRO_V=${P%.[0-9]} +S=${WORKDIR}/${NON_MICRO_V} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-multilib.patch + + #fix the rpath being set to /var/tmp/portage/... + epatch ${FILESDIR}/expect-5.39.0-libdir.patch + + #Removes references to functions that Tcl 8.5 no longer exposes. + epatch ${FILESDIR}/${P}-avoid-tcl-internals-1.patch + + sed -i 's#/usr/local/bin#/usr/bin#' expect.man + sed -i 's#/usr/local/bin#/usr/bin#' expectk.man + #stops any example scripts being installed by default + sed -i \ + -e '/^install:/s/install-libraries //' \ + -e 's/^SCRIPTS_MANPAGES = /_&/' \ + Makefile.in + #fixes "TCL_REG_BOSONLY undeclared" error due to a change in tcl8.5 + sed -i -e 's/^#include "tcl.h"/#include "tclInt.h"/' \ + exp_inter.c exp_command.c + #fix missing define of HAVE_UNISTD_H in Dbg.c + sed -i -e 's/^\(#include <stdio\.h>\)/\1\n#include "expect_cf.h"/' \ + Dbg.c + + eautoconf +} + +src_compile() { + local myconf + local tcl_version + local tcl_hdir + tcl_version=$(echo 'puts [set tcl_version]' | tclsh) + tcl_hdir="/usr/$(get_libdir)/tcl${tcl_version}/include" + + #configure needs to find the file tclConfig.sh is + myconf="--with-tcl=/usr/$(get_libdir) --with-tclinclude=$tcl_hdir" + + if use X ; then + #--with-x is enabled by default + #configure needs to find the file tkConfig.sh and tk.h + #tk.h is in /usr/lib so don't need to explicitly set --with-tkinclude + myconf="$myconf --with-tk=/usr/$(get_libdir)" + else + #configure knows that tk depends on X so just disable X + myconf="$myconf --without-x" + fi + + econf $myconf --enable-shared || die "econf failed" + emake TCLHDIRDASHI="-I${tcl_hdir}/generic -I${tcl_hdir}/unix" \ + || die "emake failed" +} + +src_test() { + # we need dejagnu to do tests ... but dejagnu needs + # expect ... so don't do tests unless we have dejagnu + type -p runtest || return 0 + make check || die "make check failed" +} + +src_install() { + dodir /usr/$(get_libdir) + make install INSTALL_ROOT=${D} || die "make install failed" + + dodoc ChangeLog FAQ HISTORY NEWS README + + local static_lib="lib${NON_MICRO_V/-/}.a" + rm ${D}/usr/$(get_libdir)/${NON_MICRO_V/-/}/${static_lib} + + #install examples if 'doc' is set + if use doc ; then + docinto examples + local scripts=$(make -qp | \ + sed -e 's/^SCRIPTS = //' -et -ed | head -n1) + exeinto /usr/share/doc/${PF}/examples + doexe ${scripts} + local scripts_manpages=$(make -qp | \ + sed -e 's/^_SCRIPTS_MANPAGES = //' -et -ed | head -n1) + for m in ${scripts_manpages}; do + dodoc example/${m}.man + done + dodoc example/README + fi +} diff --git a/dev-tcltk/expect/files/expect-5.43.0-avoid-tcl-internals-1.patch b/dev-tcltk/expect/files/expect-5.43.0-avoid-tcl-internals-1.patch new file mode 100644 index 000000000000..517fe93f8b2c --- /dev/null +++ b/dev-tcltk/expect/files/expect-5.43.0-avoid-tcl-internals-1.patch @@ -0,0 +1,100 @@ +Submitted By: Bryan Kadzban <bryan@kadzban.is-a-geek.net> +Date: 2008-01-12 +Initial Package Version: 5.43 +Upstream status: Not Submitted - Test Version +Origin: LFS ticket 2126 (http://wiki.linuxfromscratch.org/lfs/ticket/2126) +Description: Removes references to functions that Tcl 8.5 no longer exposes. + +diff -Naur expect-5.43/exp_command.c expect-5.43-patched/exp_command.c +--- expect-5.43/exp_command.c 2004-08-20 13:18:01.000000000 -0400 ++++ expect-5.43-patched/exp_command.c 2008-01-12 11:42:45.000000000 -0500 +@@ -2265,6 +2265,8 @@ + /*NOTREACHED*/ + } + ++static struct exp_cmd_data cmd_data[]; ++ + /*ARGSUSED*/ + static int + Exp_CloseObjCmd(clientData, interp, objc, objv) +@@ -2311,12 +2313,23 @@ + /* Historical note: we used "close" long before there was a */ + /* Tcl builtin by the same name. */ + ++ /* The code that registered this function as the handler for */ ++ /* the "close" command stored away the old handler in the */ ++ /* exp_cmd_data for the "close" command. */ ++ ++ struct exp_cmd_data *cmd_ptr; + Tcl_CmdInfo info; ++ ++ for(cmd_ptr = &cmd_data[0]; cmd_ptr->name; cmd_ptr++) { ++ if(strncmp(cmd_ptr->name, "close", 5) == 0) ++ break; ++ } ++ + Tcl_ResetResult(interp); + if (0 == Tcl_GetCommandInfo(interp,"close",&info)) { + info.clientData = 0; + } +- return(Tcl_CloseObjCmd(info.clientData,interp,objc_orig,objv_orig)); ++ return(cmd_ptr->old_objProc(info.clientData,interp,objc_orig,objv_orig)); + } + + if (chanName) { +@@ -2961,7 +2974,10 @@ + /* if successful (i.e., TCL_RETURN is returned) */ + /* modify the result, so that we will handle it specially */ + +- int result = Tcl_ReturnObjCmd(clientData,interp,objc,objv); ++ Tcl_CmdInfo info; ++ Tcl_GetCommandInfo(interp, "return", &info); ++ ++ int result = info.objProc(clientData,interp,objc,objv); + if (result == TCL_RETURN) + result = EXP_TCL_RETURN; + return result; +@@ -3062,8 +3078,7 @@ + + for (;c->name;c++) { + /* if already defined, don't redefine */ +- if ((c->flags & EXP_REDEFINE) || +- !(Tcl_FindHashEntry(&globalNsPtr->cmdTable,c->name) || ++ if (!(Tcl_FindHashEntry(&globalNsPtr->cmdTable,c->name) || + Tcl_FindHashEntry(&currNsPtr->cmdTable,c->name))) { + if (c->objproc) + Tcl_CreateObjCommand(interp,c->name, +@@ -3072,6 +3087,21 @@ + Tcl_CreateCommand(interp,c->name,c->proc, + c->data,exp_deleteProc); + } ++ else if (c->flags & EXP_REDEFINE) { /* unless the REDEFINE flag is present */ ++ Tcl_CmdInfo info; ++ ++ if (Tcl_GetCommandInfo(interp, c->name, &info)) { ++ c->old_proc = info.proc; ++ c->old_objProc = info.objProc; ++ } ++ ++ if (c->objproc) ++ Tcl_CreateObjCommand(interp,c->name, ++ c->objproc,c->data,exp_deleteObjProc); ++ else ++ Tcl_CreateCommand(interp,c->name,c->proc, ++ c->data,exp_deleteProc); ++ } + if (!(c->name[0] == 'e' && + c->name[1] == 'x' && + c->name[2] == 'p') +diff -Naur expect-5.43/exp_command.h expect-5.43-patched/exp_command.h +--- expect-5.43/exp_command.h 2008-01-12 11:44:11.000000000 -0500 ++++ expect-5.43-patched/exp_command.h 2008-01-12 11:26:05.000000000 -0500 +@@ -297,6 +297,8 @@ + Tcl_CmdProc *proc; + ClientData data; + int flags; ++ Tcl_CmdProc *old_proc; /* these store the procedure for the old command, */ ++ Tcl_ObjCmdProc *old_objProc; /* if any */ + }; + + EXTERN void exp_create_commands _ANSI_ARGS_((Tcl_Interp *, diff --git a/dev-tcltk/expect/files/expect-5.43.0-multilib.patch b/dev-tcltk/expect/files/expect-5.43.0-multilib.patch new file mode 100644 index 000000000000..9257537349d5 --- /dev/null +++ b/dev-tcltk/expect/files/expect-5.43.0-multilib.patch @@ -0,0 +1,11 @@ +--- expect-5.42/configure.in.orig 2004-12-21 03:02:36.095170881 -0800 ++++ expect-5.42/configure.in 2004-12-21 03:03:08.987170537 -0800 +@@ -1141,7 +1141,7 @@ + fi + + EXP_BUILD_LIB_SPEC="-L`pwd` -lexpect${EXP_LIB_VERSION}${DBGX}" +-EXP_LIB_SPEC="-L\${INSTALL_ROOT}\${exec_prefix}/lib -lexpect${EXP_LIB_VERSION}${DBGX}" ++EXP_LIB_SPEC="-L\${libdir} -lexpect${EXP_LIB_VERSION}${DBGX}" + EXP_UNSHARED_LIB_FILE=libexpect${EXP_LIB_VERSION}${DBGX}.a + + # The TCL_SHARED_LIB_SUFFIX macro below relies on the DBGX macro, |