diff options
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/modules/files/modules-3.2.10-errorline.patch | 15 | ||||
-rw-r--r-- | sys-cluster/modules/modules-3.2.10.ebuild | 6 |
2 files changed, 18 insertions, 3 deletions
diff --git a/sys-cluster/modules/files/modules-3.2.10-errorline.patch b/sys-cluster/modules/files/modules-3.2.10-errorline.patch new file mode 100644 index 000000000..a319ac871 --- /dev/null +++ b/sys-cluster/modules/files/modules-3.2.10-errorline.patch @@ -0,0 +1,15 @@ +diff -ru modules-3.2.9-old/cmdModule.c modules-3.2.9/cmdModule.c +--- modules-3.2.9-old/cmdModule.c 2013-06-02 22:46:09.196302980 +0200 ++++ modules-3.2.9/cmdModule.c 2013-06-02 22:53:36.706298800 +0200 +@@ -640,8 +640,8 @@ + case TCL_OK: gotPartial = 0; + continue; /** while **/ + +- case TCL_ERROR: interp->errorLine = ((linenum-1)-gotPartial) + +- interp->errorLine; ++ case TCL_ERROR: Tcl_SetErrorLine(interp, ((linenum-1)-gotPartial) + ++ Tcl_GetErrorLine(interp)); + /* FALLTHROUGH */ + + case TCL_LEVEL0_RETURN: +Nur in modules-3.2.9: cmdModule.c~. diff --git a/sys-cluster/modules/modules-3.2.10.ebuild b/sys-cluster/modules/modules-3.2.10.ebuild index 8c5490302..8ec69c830 100644 --- a/sys-cluster/modules/modules-3.2.10.ebuild +++ b/sys-cluster/modules/modules-3.2.10.ebuild @@ -26,9 +26,9 @@ S="${WORKDIR}/${P%[a-z]}" DOCS=(ChangeLog README NEWS TODO) -#src_prepare() { -# epatch "${FILESDIR}/${P}-errorline.patch" -#} +src_prepare() { + has_version ">=dev-lang/tcl-8.6.0" && epatch "${FILESDIR}/${P}-errorline.patch" +} src_configure() { local myeconfargs=( |