kmod: compiling with old sed version (!ERE support)
PATCH 1/1 kmod: compiling with old sed version (!ERE support)
From: Héctor Orón Martínez <[email protected]>
Makefile.am uses sed -E', which it is found on BSD sed; however a replacement on GNU sed would be sed -r'. Both intend to use extended regular expressions (ERE). However I have a system that does not support those, in benefit for portability could you consider replacing ERE by BRE.
--- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.am +1 -1
@@ -107,7 +107,7 @@ install-exec-hook: if test "$(libdir)" != "$(rootlibdir)"; then \ $(MKDIR_P) $(DESTDIR)$(rootlibdir) && \ so_img_name=$$(readlink $(DESTDIR)$(libdir)/libkmod.so) && \ - so_img_rel_target_prefix=$$(echo $(libdir) | sed -E 's,(^/|)[^/][^/]*,..,g') && \ + so_img_rel_target_prefix=$$(echo $(libdir) | sed 's,\(^/\|\)[^/][^/]*,..,g') && \ ln -sf $$so_img_rel_target_prefix$(rootlibdir)/$$so_img_name $(DESTDIR)$(libdir)/libkmod.so && \ mv $(DESTDIR)$(libdir)/libkmod.so.* $(DESTDIR)$(rootlibdir); \ fi
Signature · 1 line
2.8.0.rc3
Lucas De Marchi
AppliedQuoted 5 lines · On Mon, May 2, 2016 at 11:38 AM, <[email protected]> wrote:
From: H=C3=A9ctor Or=C3=B3n Mart=C3=ADnez <[email protected]>
Makefile.am uses
sed -E', which it is found on BSD sed; however a replacement on GNU sed would besed -r'. Both intend to use extended regular expressions (ERE). However I have a system that does not suppor=
t
Quoted 1 line
those, in benefit for portability could you consider replacing ERE by B=
RE.
Quoted 4 lines
Signed-off-by H=C3=A9ctor Or=C3=B3n Mart=C3=ADnez <[email protected]=---
Applied, thanks.
Lucas De Marchi