Re: Euphoria and apt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Alexander Toresson wrote:
> Here's the debian policy manual: <a
> href="http://www.debian.org/doc/debian-policy/index.html">http://www.debian.org/doc/debian-policy/index.html</a>
> 
> And yes, quite an important part of it is where to place files. This basically
> follows the FHS, the file hierarchy standard. And well, that applications from
> packages install themselved into /opt or /usr/local is prohibited.
> 
> But the policy does far from only consist of placing files in the right
> places.
> 
> In any case, yes, environment variables (EUDIR and EUINC) will have to be
> provided.
> And this might be a problem. I solved this in my packages version of 2.5 so
> that exu was a bash script that first set the env vars correctly and then
> called
> the real exu binary.
> 
> Regards, Alexander Toresson

I've read stuff saying /opt and /usr/local are practically the same but I would
definitely follow the Debian Policy Manual and put it under /opt (since I didn't
find anything against that -- it is an add-on package).

Here's how I would do it:
Create an install directory /opt/euphoria/[ver]/* (regular Euphoria hierarchy).
As with any other package, the user can override this.

Modify the interpreter source so if EUDIR and EUINC do not exist, then look in
/etc/euphoria.conf (or something) for the proper values and set them. The
installation scripts should create this file. A person will be able to override
these in his or her own startup files, though.

Create a soft link /usr/bin/exu that points to the exu binary.

Where do other languages like Python and Perl put their hierarchies? I'll have
to peek into one of their files.

--
A complex system that works is invariably found to have evolved from a simple
system that works.
--John Gall's 15th law of Systemantics.

"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare

j.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu