diff options
Diffstat (limited to 'devel/libvirt')
-rw-r--r-- | devel/libvirt/Makefile | 2 | ||||
-rw-r--r-- | devel/libvirt/files/patch-build-aux_meson.build | 27 |
2 files changed, 28 insertions, 1 deletions
diff --git a/devel/libvirt/Makefile b/devel/libvirt/Makefile index 97f20f5b39ac..12c6bae430f8 100644 --- a/devel/libvirt/Makefile +++ b/devel/libvirt/Makefile @@ -13,7 +13,7 @@ LICENSE= LGPL3 LIB_DEPENDS= libcurl.so:ftp/curl \ libgnutls.so:security/gnutls BUILD_DEPENDS= dnsmasq:dns/dnsmasq \ - ${LOCALBASE}/bin/grep:textproc/gnugrep \ + ggrep:textproc/gnugrep \ gsed:textproc/gsed \ rst2html:textproc/py-docutils@${PY_FLAVOR} \ xsltproc:textproc/libxslt diff --git a/devel/libvirt/files/patch-build-aux_meson.build b/devel/libvirt/files/patch-build-aux_meson.build new file mode 100644 index 000000000000..63e689340bbc --- /dev/null +++ b/devel/libvirt/files/patch-build-aux_meson.build @@ -0,0 +1,27 @@ +--- build-aux/meson.build.orig 2025-05-02 07:25:45 UTC ++++ build-aux/meson.build +@@ -13,23 +13,10 @@ if git and tests_enabled[0] + if host_machine.system() == 'freebsd' or host_machine.system() == 'darwin' + make_prog = find_program('gmake') + sed_prog = find_program('gsed') ++ grep_prog = find_program('ggrep') + else + make_prog = find_program('make') + sed_prog = find_program('sed') +- endif +- +- if host_machine.system() == 'freebsd' +- grep_prog = find_program('grep') +- grep_cmd = run_command(grep_prog, '--version', check: true) +- if grep_cmd.stdout().startswith('grep (BSD grep') +- grep_prog = find_program('/usr/local/bin/grep', required: false) +- if not grep_prog.found() +- error('GNU grep not found') +- endif +- endif +- elif host_machine.system() == 'darwin' +- grep_prog = find_program('ggrep') +- else + grep_prog = find_program('grep') + endif + |