Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: bmarkus on September 25, 2010, 04:13:36 PM

Title: Private headers of Tcl and Tk are missing
Post by: bmarkus on September 25, 2010, 04:13:36 PM
There are no extension providing private headers of Tcl and Tk. These are required to compile an application against Tcl/Tk.

See make install-private-headers

BTW current package is more than one year old.
Title: Re: Private headers of Tcl and Tk are missing
Post by: Jason W on September 25, 2010, 04:19:13 PM
I will look to updating it in the coming days, and to include the private headers.
Title: Re: Private headers of Tcl and Tk are missing
Post by: andriscom on October 05, 2010, 05:39:43 PM
Great :) I'm planning to create a package from expect, and it also needs the private headers  ::)
Title: Re: Private headers of Tcl and Tk are missing
Post by: Jason W on October 05, 2010, 07:07:44 PM
This, as well as updating the gtk2 stack, the python 2.6 version renaming, not to mention daily extension uploading, are more than I can get done in a reasonable amount of time since my available TC time is currently scarce. 

I have posted it elsewhere, but there is always an open invitation for anyone to update any extension that has my name on it.  Usually I can keep them current, but when things get tight, extension auditing/uploading and general repo issues take priority and my own extensions take a back seat.   

Tcl_tk was made at a time when there was less factoring of extensions, so it could probably be separated into tcl and tk parts, as well as the -dev parts. 

So anyone needing this extension updated, feel free to do so.  Or I will get to it when I can, maybe this week.  But I don't want to hold up progress.
Title: Re: Private headers of Tcl and Tk are missing
Post by: Arslan S. on October 06, 2010, 07:10:09 AM
i remember tcl and tk are updated by someone for tc 2.x but it is not reflected to tc 3.x
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/tcz/tcl.tcz.info (http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/tcz/tcl.tcz.info)
http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/tcz/tk.tcz.info (http://distro.ibiblio.org/pub/linux/distributions/tinycorelinux/2.x/tcz/tk.tcz.info)
Title: Re: Private headers of Tcl and Tk are missing
Post by: Jason W on October 06, 2010, 10:17:55 AM
Hmm, I guess that was during the transition from 2.x to 3.x.

I will look today and see if the private headers are there and if so maybe copy them over.  At least for now until a version built on 3.x happens.
Title: Re: Private headers of Tcl and Tk are missing
Post by: Jason W on October 06, 2010, 06:13:58 PM
I am building the new 8.5.9 version of tcl and tk now with the private headers.
Title: Re: Private headers of Tcl and Tk are missing
Post by: Jason W on October 06, 2010, 07:47:23 PM
Uploading tcl.tcz, tcl-dev.tcz, tcl-doc.tcz, tk.tcz, tk-dev.tcz, tk-doc.tcz.

Please update your dep files as tcl_tk.tcz has been replaced by tk.tcz in the dep files.  Then delete tcl_tk.tcz from your tce directory.
Title: Re: Private headers of Tcl and Tk are missing
Post by: maro on October 07, 2010, 01:11:41 AM
Jason, thanks for putting in the effort in maintaing all those extensions and managing the repository. I realize that there is quite a lot of your time involved, so I hope you don't mind me asking this:

I was wondering whether you have changed the build parameters, as I noticed a certain increase in size. I did a comparison between the old 'tcl_tk.tcz' and a combination of the new 'tcl.tcz' and 'tk.tcz'. It appears the (uncompressed) size went up from 5167 kBytes to 9160, a delta of 3993. Sure there are several little differences, but what stands out is the fact that an additional directory (i.e. '/usr/local/lib/tcl8.5/tzdata') appears in 'tcl.tcz', which adds 3176 kBytes. I have the hunch that the inclusion of this might be optional. In the end I guess have we the Olson files via the 'tzdata.tcz' extension, no?

Mind you the 't(cl|k).tcz' files are not as large as the ones in the 2.x repository, which IIRC contain all the '-doc' and '-dev' parts that you have thankfully split off into their own files.
Title: Re: Private headers of Tcl and Tk are missing
Post by: bmarkus on October 07, 2010, 03:09:28 AM
Jason,

thanks for updating. Fast check with a Tkinter application on Python-2.7 shows it works fine.

tclConfig.sh and tkConfig.sh which are used by other programs to find configuration details for their own build process contain full absolute directoy path, like /mnt/hda2/... This prevents building application against. At the moment it is just for information, do nothing with. I will play with and see what is the best (or at least working) solution.
Title: Re: Private headers of Tcl and Tk are missing
Post by: Jason W on October 07, 2010, 07:47:55 AM
Thanks, I will look at how other distros deal with that and correct it.
Title: Re: Private headers of Tcl and Tk are missing
Post by: Jason W on October 07, 2010, 09:24:58 AM
From the Arch linux build file, I can't believe I missed it as I used it as a guide;

Code: [Select]
sed -i \
    -e "s,^TK_BUILD_LIB_SPEC='-L.*/unix,TK_BUILD_LIB_SPEC='-L/usr/lib," \
    -e "s,^TK_SRC_DIR='.*',TK_SRC_DIR='/usr/include'," \
    -e "s,^TK_BUILD_STUB_LIB_SPEC='-L.*/unix,TK_BUILD_STUB_LIB_SPEC='-L/usr/lib," \
    -e "s,^TK_BUILD_STUB_LIB_PATH='.*/unix,TK_BUILD_STUB_LIB_PATH='/usr/lib," \
    ${pkgdir}/usr/lib/tkConfig.sh

Title: Re: Private headers of Tcl and Tk are missing
Post by: Jason W on October 07, 2010, 09:21:28 PM
Uploading corrected tcl and tk, thanks for pointing out the error.
Title: Re: Private headers of Tcl and Tk are missing
Post by: bmarkus on October 08, 2010, 02:16:00 AM
Thanks, now it looks OK.