Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

"I am your density." -- George McFly in "Back to the Future"


devel / comp.lang.tcl / Problem using tkcon when procs are defined in pkgIndex.tcl from tkpath

SubjectAuthor
* Problem using tkcon when procs are defined in pkgIndex.tcl from tkpathclt.to.davebr
`* Re: Problem using tkcon when procs are defined in pkgIndex.tcl from tkpathgreg
 `- Re: Problem using tkcon when procs are defined in pkgIndex.tcl from tkpathgreg

1
Problem using tkcon when procs are defined in pkgIndex.tcl from tkpath

<94317125015531001@llp>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13630&group=comp.lang.tcl#13630

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: clt.to.davebr@dfgh.net
Newsgroups: comp.lang.tcl
Subject: Problem using tkcon when procs are defined in pkgIndex.tcl from tkpath
Date: Sun, 07 Apr 24 14:52:33 GMT
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <94317125015531001@llp>
Injection-Date: Sun, 07 Apr 2024 14:52:57 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6ed3c5bfa8340086ee30d11c3b49baed";
logging-data="2995716"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/LfDO7S0TX/j7KKP55zL7c"
Cancel-Lock: sha1:rlj8UGNLZ1W5riYlCmrOWpdOGfU=
 by: clt.to.davebr@dfgh.net - Sun, 7 Apr 2024 14:52 UTC

Installing tkpath from chiselapp.com into a Slackware Linux system with
the usual ./configure --with-tcl... make, make install seemed to work.
However executing

package require tkpath

in tkcon (version 2.7) gives proc not found errors. The package require worked fine in tclsh or wish.

The original pkgIndex.tcl is:

#pkgIndex.tcl. Generated from pkgIndex.tcl.in by configure.
# namespace eval ::tkpath {
proc load_package {dir} {
load [file join $dir libtkpath0.3.3.so]
# Allow optional redirect of library components.
# Only necessary for testing, but could be used elsewhere.
if {[info exists ::env(TKPATH_LIBRARY)]} {
set dir $::env(TKPATH_LIBRARY)
}
source $dir/tkpath.tcl
};# load_package
}

package ifneeded tkpath 0.3.3 [list ::tkpath::load_package $dir]

#*EOF*

When the load_package proc was implemented as an annonymous procedure in the package ifneeded command tkcon, tclsh and wish can all load the package.

package ifneeded tkpath 0.3.3 [list apply {{dir} {
load [file join $dir libtkpath0.3.3.so]
# Allow optional redirect of library components.
# Only necessary for testing, but could be used elsewhere.
if {[info exists ::env(TKPATH_LIBRARY)]} {
set dir $::env(TKPATH_LIBRARY)
}
source $dir/tkpath.tcl
}} $dir]

Is this a known problem in tkcon, something unique to the tkpath package, or just something wrong in my system configuration?

Dave B

Re: Problem using tkcon when procs are defined in pkgIndex.tcl from tkpath

<uuuhus$2spok$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13631&group=comp.lang.tcl#13631

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: gregor.ebbing@gmx.de (greg)
Newsgroups: comp.lang.tcl
Subject: Re: Problem using tkcon when procs are defined in pkgIndex.tcl from
tkpath
Date: Sun, 7 Apr 2024 18:34:35 +0200
Organization: A noiseless patient Spider
Lines: 81
Message-ID: <uuuhus$2spok$1@dont-email.me>
References: <94317125015531001@llp>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 07 Apr 2024 16:34:36 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7ae1b6ba3e4fd6c1606dda05800914f9";
logging-data="3041044"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+OvhdWhriYvPyBGQGpuwH9Cba7L1gDYco="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:6YuhJi9+9mQa+jJvyfvhPHRPZhM=
In-Reply-To: <94317125015531001@llp>
Content-Language: de-DE
 by: greg - Sun, 7 Apr 2024 16:34 UTC

Am 07.04.24 um 16:52 schrieb clt.to.davebr@dfgh.net:
> Installing tkpath from chiselapp.com into a Slackware Linux system with
> the usual ./configure --with-tcl... make, make install seemed to work.
> However executing
>
> package require tkpath
>
> in tkcon (version 2.7) gives proc not found errors. The package require worked fine in tclsh or wish.
>
> The original pkgIndex.tcl is:
>
> #pkgIndex.tcl. Generated from pkgIndex.tcl.in by configure.
> #
> namespace eval ::tkpath {
> proc load_package {dir} {
> load [file join $dir libtkpath0.3.3.so]
> # Allow optional redirect of library components.
> # Only necessary for testing, but could be used elsewhere.
> if {[info exists ::env(TKPATH_LIBRARY)]} {
> set dir $::env(TKPATH_LIBRARY)
> }
> source $dir/tkpath.tcl
> };# load_package
> }
>
> package ifneeded tkpath 0.3.3 [list ::tkpath::load_package $dir]
>
> #*EOF*
>
>
> When the load_package proc was implemented as an annonymous procedure in the package ifneeded command tkcon, tclsh and wish can all load the package.
>
>
> package ifneeded tkpath 0.3.3 [list apply {{dir} {
> load [file join $dir libtkpath0.3.3.so]
> # Allow optional redirect of library components.
> # Only necessary for testing, but could be used elsewhere.
> if {[info exists ::env(TKPATH_LIBRARY)]} {
> set dir $::env(TKPATH_LIBRARY)
> }
> source $dir/tkpath.tcl
> }} $dir]
>
>
> Is this a known problem in tkcon, something unique to the tkpath package, or just something wrong in my system configuration?
>
> Dave B
>
#The original pkgIndex.tcl see the same. Works with tclsh and tkcon
#Is it perhaps not included in the auto_path of tkcon?
#Compare the output in tclsh and tkcon.

#! /usr/bin/env tclsh

# https://wiki.tcl-lang.org/page/The+RC+File
proc lspackages {{pattern *}} {
# Force the package loader to do its thing:
# NOTE: this depends on a side effect of the
# built-in [package unknown]. Other [package unknown]
# handlers might not meet our expectations.
eval [package unknown] Tcl [package provide Tcl]
set rlist [list ]
foreach package [lsort [package names]] {
if {![string match $pattern $package]} { continue }
foreach version [package versions $package] {
set present [expr {[string compare $version [package
provide $package]] ? " " : "+" }]
set ifneeded [string replace [string trim [string map
{"\n" " " "\t" " "} [package ifneeded $package $version]]] 50 end "..."]
#puts [format "%1s%-35s %6s %-75s" $present $package
$version $ifneeded]
lappend rlist [list $present $package $version $ifneeded]
}
}
return $rlist
}

puts [lspackages tkpath]
puts [join $auto_path "\n"]

Re: Problem using tkcon when procs are defined in pkgIndex.tcl from tkpath

<uuvq0c$399mp$1@dont-email.me>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=13633&group=comp.lang.tcl#13633

  copy link   Newsgroups: comp.lang.tcl
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: gregor.ebbing@gmx.de (greg)
Newsgroups: comp.lang.tcl
Subject: Re: Problem using tkcon when procs are defined in pkgIndex.tcl from
tkpath
Date: Mon, 8 Apr 2024 05:58:04 +0200
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <uuvq0c$399mp$1@dont-email.me>
References: <94317125015531001@llp> <uuuhus$2spok$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 08 Apr 2024 03:58:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="3917c804a970ecfe10f00f2154fee760";
logging-data="3450585"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+id9SVevEh1klyRNC6cNTraU91i5ftAPA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2Z4tgQV2cAQwAeRDFQOo/CYjbKw=
In-Reply-To: <uuuhus$2spok$1@dont-email.me>
Content-Language: de-DE
 by: greg - Mon, 8 Apr 2024 03:58 UTC

Am 07.04.24 um 18:34 schrieb greg:

> #Is it perhaps not included in the auto_path of tkcon?
> #Compare the output in tclsh and tkcon.
> ..
>

My suggestion doesn't help.
It can't be a problem with auto_path, since package ifneeded ... works.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor