pppd: fix plugin search path
PATCH 1/1 pppd: fix plugin search path
Fix the plugin search path by passing a --prefix to configure. DESTDIR is used in the source code for the search path of plugins (DESTDIR/lib/pppd/VERSION).
Since DESTDIR defaults to /usr/local we get the search path wrong so the 'plugin' directive requires a full pathspec to the plugin rather than the .so name, which isn't nice or portable.
--- package/pppd/pppd.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
package/pppd/pppd.mk +1 -1
@@ -26,7 +26,7 @@ endif define PPPD_CONFIGURE_CMDS $(SED) 's/FILTER=y/#FILTER=y/' $(PPPD_DIR)/pppd/Makefile.linux $(SED) 's/ifneq ($$(wildcard \/usr\/include\/pcap-bpf.h),)/ifdef FILTER/' $(PPPD_DIR)/*/Makefile.linux - ( cd $(@D); ./configure ) + ( cd $(@D); ./configure --prefix=/usr ) endef define PPPD_BUILD_CMDS
Signature · 1 line
1.7.3.4
PATCH 1/1 pppd: fix plugin search path
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Fix the plugin search path by passing a --prefix to configure. Gustavo> DESTDIR is used in the source code for the search path of plugins Gustavo> (DESTDIR/lib/pppd/VERSION).
Gustavo> Since DESTDIR defaults to /usr/local we get the search path wrong so the Gustavo> 'plugin' directive requires a full pathspec to the plugin rather than Gustavo> the .so name, which isn't nice or portable.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard