[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: base-files does not create /usr/local directories



I suggested this policy in Jan, and everyone thought it was
reasonable.

Christian - could you add it to your list of proposed policy changes?

The only allowed changes to /usr/local are creating directories as
placeholders on package installation and removing the directories, if
empty, on package removal.  The postinst and prerm scripts must NOT
fail if either of these operations fail.  For example, the emacs
package will contain
        mkdir -p /usr/local/lib/emacs/site-lisp || true
in the postinst, and
        rmdir /usr/local/lib/emacs/site-lisp && rmdir \
          /usr/local/lib/emacs || true
in the prerm.

You may not create any directories off of /usr/local besides those
listed in FSSTND 4.8.  You may not remove any of the directories
mentioned in 4.8, even if you created them.

If you do create a directory in /usr/local for local additions to a
package, you must ensure that the package searches that directory
before the equivalent directory in /usr.


Guy


Reply to: