public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: insight <insight@sourceware.org>
Subject: [PATCH/itcl] Fix running in builddir
Date: Fri, 23 Mar 2012 22:13:00 -0000	[thread overview]
Message-ID: <4F6CF56F.9080101@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 686 bytes --]

Hi,

I haven't been using built-in tcl et al for a while, but with the recent 
patch submissions, I decided to give it a whirl.

Turns out that insight would no longer run from the build directory. I 
tracked this down to a failure to instantiate an iwidgets::scrolledtext 
widget. This happens because the auto_path for iwidgets is set relative 
to the build directory, and that's not where the actual scripts files are.

To run from the build directory, we also need to add the source 
directory to the auto_path. This is what this patch does.

Keith

itcl/iwidgets/ChangeLog
2012-03-23  Keith Seitz  <keiths@redhat.com>

	* iwidgets.tcl.in: Add source directories to the auto_path.


[-- Attachment #2: run-from-builddir.patch --]
[-- Type: text/x-patch, Size: 944 bytes --]

Index: itcl/iwidgets/iwidgets.tcl.in
===================================================================
RCS file: /cvs/src/src/itcl/iwidgets/iwidgets.tcl.in,v
retrieving revision 1.2
diff -u -p -r1.2 iwidgets.tcl.in
--- itcl/iwidgets/iwidgets.tcl.in	22 Jul 2008 20:32:46 -0000	1.2
+++ itcl/iwidgets/iwidgets.tcl.in	23 Mar 2012 20:39:53 -0000
@@ -25,7 +25,13 @@ namespace eval ::iwidgets {
     variable version @VERSION@
 }
 
+set cvsSrcDir [file join $iwidgets::library .. .. .. src itcl iwidgets]
+set gitSrcDir [file join $iwidgets::library .. .. .. gdb itcl iwidgets]
 lappend auto_path $iwidgets::library \
 		  [file join $iwidgets::library generic] \
-		  [file join $iwidgets::library scripts]
+		  [file join $iwidgets::library scripts] \
+		  [file join $cvsSrcDir generic] \
+		  [file join $cvsSrcDir scripts] \
+		  [file join $gitSrcDir generic] \
+		  [file join $gitSrcDir scripts]
 package provide Iwidgets $iwidgets::version

                 reply	other threads:[~2012-03-23 22:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F6CF56F.9080101@redhat.com \
    --to=keiths@redhat.com \
    --cc=insight@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).