Re: Please drop the ^main^ thing Abdulaziz Ghuloum 26 Sep 2009 06:10 UTC

On Sep 26, 2009, at 5:18 AM, Shiro Kawai wrote:
> If the library is untarred somewhere else
> and 'make install'ed, auxiliary files can be left in the
> untarred site (or 'make install' puts them in different
> place).

If you have a package manager, then it's not a problem,
except that you cannot run files directly from the sources
directory.  You always have to install then run.  Right?

> But if we just want to untar directly under library
> path, then I'd prefer a library package expands into a single
> directory, under their library name's last symbol.  E.g.
> if a package provides (acme foo) (acme foo helper1) (acme foo
> helper2),
> everything is under acme/foo/, including README.

If you have a package "Acme Foo" that has the libraries you
listed above, there are two options:

With the implicit main, you get
(acme foo)         => acme/foo/main.sls
(acme foo helper1) => acme/foo/helper1.sls
...
E.g., everything under a single directory.

If we don't have an implicit main, you'd have to get:
(acme foo)         => acme/foo.sls
(acme foo helper1) => acme/foo/helper1.sls
...
E.g., there are files under "acme" and files under "acme/foo".

I think one option is cleaner in practice for managing the
library files while the other is cleaner in theory since it
removes the extra rule or exceptions.  I feel stronger
towards the second, leaving it to Andreas's package manager
to deal with the first.

Aziz,,,