Re: [PATCH] Compile and install the ifcfg plugin proper



On Tue, 2007-12-04 at 18:51 +0100, Michael Biebl wrote:
> Dan Williams schrieb:
> 
> > 
> > r3131; needed to update the ppp-manager's idea of where the pppd plugin
> > was though.  Where do most pppd plugins go?  Should the NM pppd plugin
> > go there, or in $(libdir)/NetworkManager/ ?
> > 
> 
> TBH, I didn't know that the ppp-manager lib was intended as a pppd
> plugin. It only seemed obvious to not install it into $(libdir)
> 
> So now, as a pppd plugin it shouldn't be $(libdir)/NetworManager, but
> the pppd plugin path.
> Unfortunately there is no convenient way to determine it (at least I
> don't know one). On Debian the pppd plugin path is /usr/lib/pppd/2.4.4,
> but given that a new pppd version is released, this path will obviously
> change.
> 
> A solution could be to write a configure check, which test-compiles and
> executes the following
> 
> #define PLUGIN
> #define DESTDIR "/usr"
> 
> #include <pppd/pppd.h>
> #include <pppd/pathnames.h>
> 
> int main()
> {
>         printf("%s\n", _PATH_PLUGIN);
>         return 0;
> }
> 
> I hardcoded DESTDIR to /usr. Maybe it would make sense to use $(prefix)
> instead (could be interesting for the *BSDs).
> 
> A completely different solution would be to provide a
> --with-pppd-plugindir configure option and rely on the distributor to
> correctly set it on compilation.
> 
> What would you prefer?

--with-pppd-plugindir; automatic detection is problematic in many cases
and using the automatic detection, packagers can't reliably ensure a
consistent build (gstreamer autodetecting which plugins to build based
on whether or not you have the deps is the worst case here).  In any
case, even if there was automatic detection, I'd like a manual override,
so the --with-* option has to be there in either case :)  Looking
forward to the patch...

Thanks!
Dan




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