site  contact  subhomenews

BaCon in T2

December 16, 2014 — BarryK
I am firing on all eight cylinders today!
What's left of it anyway -- it is now ten minutes to midnight.

I have been logging my work importing source packages into T2:
http://bkhome.org/news/201412/more-packages-into-t2.html

A major hurdle has now been jumped. I needed to compile BaCon in T2, as the BaCon compiler is needed for many utilities used in the puplets.

It was not that straightforward. I downloaded the latest version, 3.0.2, from the home site:
http://www.basic-converter.org/

...and compiled it in T2.

I then downloaded several individual files and created a tarball 'bacon_runtime-3.0.2.tar.bz2'.
As the name suggests, this mostly has runtime components, in particular the 'hug.so' shared library and 'bacon.lang' and 'bacon.vim' text editor syntax-highlighter files.

hug.so is a shared library that BaCon applications that use the HUG high-level GTK GUI can use to make their executable file smaller.
It has to be compiled and installed to /usr/lib/hug.so

So I imported 'bacon_runtime' into T2, and created custom compile and install code.

Then I had to create a package template in woofQ, to set things up properly, such as register the syntax-highlighters with their appropriate editors.

The great thing about all of this, is what has been in my brain, and documented in an ad-hoc manner, or in places you can't find, is now formalised in definite steps in T2.

Tags: linux