FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CRUX > CRUX

 
 
LinkBack Thread Tools
 
Old 12-04-2010, 11:02 PM
Wawrzyniec Niewodniczański
 
Default expect and tcl port

Hi,

I'm trying to install expect and failing on configure. It seems that
expect configure expect tclInt.h file in /usr/lib and this file is
put into /usr/include by tcl package.

I have following hack in expect port:

if [ ! -d /usr/lib/generic ]
then
mkdir /usr/lib/generic
ln /usr/include/tclInt.h /usr/lib/generic
fi

What do you think about such situation? Should issue be address in tcl
port? Can it broke other ports...

Cheers,
Wawrzek

--
┬*Wawrzyniec Niewodnicza┼äski┬* ┬* ┬* vel Wawrzek Larry or LarryN
┬* ┬* Linux User #177124┬* ┬* ┬* ┬* ┬* ┬* ┬* E-MAIL: wawrzek@gmail.com
┬*PhD in Quantum Chemistry┬* ┬* ┬* ┬* ┬* ┬* WWW: http://wawrzek.name
┬*MSc in Molecular Engineering┬* ┬* ┬* ┬* ┬*┬* JID: wawrzek@jabber.wroc.pl
_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux
 
Old 12-05-2010, 09:12 AM
Juergen Daubert
 
Default expect and tcl port

On Sun, Dec 05, 2010 at 12:02:36AM +0000, Wawrzyniec Niewodniczański wrote:
> Hi,

Hello,

> I'm trying to install expect and failing on configure. It seems that
> expect configure expect tclInt.h file in /usr/lib and this file is
> put into /usr/include by tcl package.
>
> I have following hack in expect port:
>
> if [ ! -d /usr/lib/generic ]
> then
> mkdir /usr/lib/generic
> ln /usr/include/tclInt.h /usr/lib/generic
> fi
>
> What do you think about such situation? Should issue be address in tcl
> port? Can it broke other ports...

Yes, looks like a issue with our tcl port and should be fixed
there.
Attached a diff against the current port, with that expect builds
just fine. But, TBH, I have no idea if/how this might break other
tcl stuff, Danny?
The only tcl/tk software I'm using sometimes is tkgames and that
works with the modified port


regards
Juergen

--
Juergen Daubert | mailto:jue@jue.li
Korb, Germany | http://jue.li/crux

diff --git a/tcl/.footprint b/tcl/.footprint
index cca99f8..a156c96 100644
--- a/tcl/.footprint
+++ b/tcl/.footprint
@@ -3,25 +3,16 @@ drwxr-xr-x root/root usr/bin/
lrwxrwxrwx root/root usr/bin/tclsh -> tclsh8.5
-rwxr-xr-x root/root usr/bin/tclsh8.5
drwxr-xr-x root/root usr/include/
--rw-r--r-- root/root usr/include/regcustom.h
--rw-r--r-- root/root usr/include/regerrs.h
--rw-r--r-- root/root usr/include/regguts.h
-rw-r--r-- root/root usr/include/tcl.h
--rw-r--r-- root/root usr/include/tclCompile.h
-rw-r--r-- root/root usr/include/tclDecls.h
--rw-r--r-- root/root usr/include/tclFileSystem.h
--rw-r--r-- root/root usr/include/tclIO.h
-rw-r--r-- root/root usr/include/tclInt.h
-rw-r--r-- root/root usr/include/tclIntDecls.h
-rw-r--r-- root/root usr/include/tclIntPlatDecls.h
-rw-r--r-- root/root usr/include/tclPlatDecls.h
-rw-r--r-- root/root usr/include/tclPort.h
--rw-r--r-- root/root usr/include/tclRegexp.h
--rw-r--r-- root/root usr/include/tclThrd.h
-rw-r--r-- root/root usr/include/tclTomMath.h
-rw-r--r-- root/root usr/include/tclTomMathDecls.h
--rw-r--r-- root/root usr/include/tclTomMathInt.h
--rw-r--r-- root/root usr/include/tommath.h
+-rw-r--r-- root/root usr/include/tclUnixPort.h
drwxr-xr-x root/root usr/lib/
lrwxrwxrwx root/root usr/lib/libtcl.so -> libtcl8.5.so
-r-xr-xr-x root/root usr/lib/libtcl8.5.so
diff --git a/tcl/Pkgfile b/tcl/Pkgfile
index 88f0052..deae573 100644
--- a/tcl/Pkgfile
+++ b/tcl/Pkgfile
@@ -5,7 +5,7 @@

name=tcl
version=8.5.8
-release=1
+release=2
source=(http://downloads.sourceforge.net/project/$name/Tcl/$version/$name$version-src.tar.gz)

build() {
@@ -13,18 +13,13 @@ build() {

./configure --prefix=/usr
make
- make install MKLINKS_FLAGS="-s" INSTALL_ROOT=$PKG
-
- cp ../generic/*.h $PKG/usr/include/
- cp tclUnixPort.h $PKG/usr/include/tclPort.h
- cp tclUnixThrd.h $PKG/usr/include/tclThrd.h
+ make install install-private-headers INSTALL_ROOT=$PKG

sed -i
-e "s|TCL_SRC_DIR='.*'|TCL_SRC_DIR='/usr/lib'|"
-e "s|$SRC/tcl$version/unix|/usr/lib|"
$PKG/usr/lib/tclConfig.sh

- rm $PKG/usr/include/regex.h
ln -s tclsh${version%.*} $PKG/usr/bin/tclsh
ln -s libtcl${version%.*}.so $PKG/usr/lib/libtcl.so
chmod -R u+w $PKG/usr/man
_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux
 
Old 12-07-2010, 01:05 AM
Danny Rawlins
 
Default expect and tcl port

Juergen Daubert wrote:
> On Sun, Dec 05, 2010 at 12:02:36AM +0000, Wawrzyniec Niewodniczański wrote:
>
>> Hi,
>>
>
> Hello,
>
>
>> I'm trying to install expect and failing on configure. It seems that
>> expect configure expect tclInt.h file in /usr/lib and this file is
>> put into /usr/include by tcl package.
>>
>> I have following hack in expect port:
>>
>> if [ ! -d /usr/lib/generic ]
>> then
>> mkdir /usr/lib/generic
>> ln /usr/include/tclInt.h /usr/lib/generic
>> fi
>>
>> What do you think about such situation? Should issue be address in tcl
>> port? Can it broke other ports...
>>
>
> Yes, looks like a issue with our tcl port and should be fixed
> there.
> Attached a diff against the current port, with that expect builds
> just fine. But, TBH, I have no idea if/how this might break other
> tcl stuff, Danny?
> The only tcl/tk software I'm using sometimes is tkgames and that
> works with the modified port
>
>
> regards
> Juergen
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> CRUX mailing list
> CRUX@lists.crux.nu
> http://lists.crux.nu/mailman/listinfo/crux
I have pushed changes based partly on Jue's patch that should work with
expect and other tcl dependent ports but they may need to be all
recompiled for the recent changes to header locations.

/usr/lib/tclConfig.sh has been updated with the new locations.
_______________________________________________
CRUX mailing list
CRUX@lists.crux.nu
http://lists.crux.nu/mailman/listinfo/crux
 

Thread Tools




All times are GMT. The time now is 05:03 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ę2007 - 2008, www.linux-archive.org