[PATCH] add 'modules path' and handle 'configure --with-configdir' right

Jelmer Vernooij jelmer at nl.linux.org
Sat Nov 23 20:53:00 GMT 2002


On Sat, Nov 23, 2002 at 05:19:43PM +0100, Stefan (metze) Metzmacher wrote about 'Re: [PATCH] add 'modules path' and handle 'configure --with-configdir' right':
> At 11:23 23.11.2002 +1100, Tim Potter wrote:
> >On Fri, Nov 22, 2002 at 01:21:21PM +0100, Jelmer Vernooij wrote:

> >> > here's a patch that added the 'modules path' parameter.

> >> > lp_modules_path() is prefixed to all lp_modules() witch are not start 
> >with
> >> > '/' (not absolute pathes)

> >> > the default for lp_modules_path() is selectable by ./configure
> >> > --with-modulesdir=/modules
> >> > or $(LIBDIR)/samba  (when  --with-fhs) or $(LIBDIR)

> >> > make installmodules install the modules to lp_modules_path()

> >> > make modules now makes proto_exist
> >> Thanks a lot! These were on my todo list.I'll take a look at it later 
> >today
> >> (when I get back home, I'm currently at school)

> >There's already a directory for architecture specific library files -
> >libexec.  We haven't needed to use this so much before so it probably
> >isn't supported in configure.in.  How about $(LIBEXECDIR)/modules as
> >a location for the vfs modules?
What's the exact difference between lib and libexec? The FHS doesn't seem to have 
libexec and some other OS'es seem to put executables that are not to
be called directly by users in libexec.

> --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]

> --libdir=DIR            object code libraries in DIR [EPREFIX/lib]

> I think modules are object code libaries

> I would preferr to use LIBDIR/samba  , LIBDIR/samba/modules , 
> LIBEXECDIR/samba or LIBEXEC/samba/modules (but I would like one of the 
> first two)
Most programs with modules put them in some directory in
/usr/lib/<name-of-program> - that would be the best place imho, since the
plugins are really just libraries that are only loaded 'manually'.

> I also don't like the valid.dat , upcase.dat, lowcase.dat installed to 
> LIBDIR they should go to LIBDIR/samba/ or CONFIGDIR/ (we should always use 
> the subdir samba, exept BINDIR and SBINDIR)
valid.dat, upcase.dat and lowcase.dat should be in $(PREFIX)/share/samba (for FHS at
least)

jelmer
-- 
Jelmer Vernooij <jelmer at nl.linux.org> - http://nl.linux.org/~jelmer/
 21:44:09 up 1 day,  5:55,  2 users,  load average: 0.51, 0.57, 0.53
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20021123/5883acb3/attachment.bin


More information about the samba-technical mailing list