>>>> "boku" == Stephen J Turnbull
<turnbull(a)sk.tsukuba.ac.jp> writes:
>>>> "ms" == Michael Sperber
<sperber(a)informatik.uni-tuebingen.de> writes:
ms> The package-admin-add-...-package functions do this to
ms> determine where to install:
ms> (setq pkg-dir (car (last late-packages)))
ms> So you should look at `late-packages'. I don't really feel
ms> comfortable with this, but there's generally not a good
ms> solution to the problem that packages are searched along a
ms> *path* but have to be installed into a *directory*.
boku> Here's a guess at the rationale for that choice. If the
boku> sysadmin has modified a standard package, then they install
boku> that up front in the late-packages path and the automated
boku> update procedures thus don't override the localized package
boku> with the latest released version. Close enough?
This turns out not to work as I thought because of the recursion into
directories that the sysadmin knows are irrelevant (but XEmacs does
not). Here's my late-packages:
("/playpen/gnu/xemacs/packages/"
"/playpen/gnu/xemacs/packages/TarFiles/"
"/playpen/gnu/xemacs/packages/sources/")
Since /playpen/gnu/xemacs/packages/ is fully populated, this means if
I use the automated mechanism to upgrade, the updated packages will
disappear into a black hole as far as XEmacs is concerned. There is
no excuse to remove those bogus trailing directories, since "an empty
package directory is a perfectly valid package directory".
I don't see how the administrative strategy described above can be
implemented unless administrators are strictly prohibited from
creating subdirectories of the package root that do not contain usable
package data. Doing `(setq pkg-dir (car late-packages))' is clearly
the wrong thing from that standpoint.
OK, I move those directories to /playpen/gnu/xemacs/TarFiles/packages/
and /playpen/gnu/xemacs/sources/packages/, respectively. (Ugh, but if
you insist....) If you're going to force me to do that, you may as
well go all the way to mandating The One True Package Hierarchy
Structure; it will make life a lot simpler. This makes the whole idea
of recursive search irrelevant, at first glance, anyway.