On 2026/11/28 16:09, Paco Esteban wrote:
> Stuart Henderson <[email protected]> writes:
> 
> > does it work if you ln -fs ${LOCAL BASE}/bin/gmakeinfo
> > ${WRKDIR}/bin/makeinfo in pre-configure?
> 
> It does work.
> I thought about it, as I saw we're doing something similar on
> deve/meson/meson.port.mk for cmake but, for some reason, it did not feel
> "right".

Thanks, that's ok with me. Generally this is the easiest way when you
need to override - usually less ongoing maintenance than patches which
can get a bit fiddly sometimea.


> Anyway, diff updated with your simpler solution:
> 
> diff --git mail/mu/Makefile mail/mu/Makefile
> index cc75c086b1e..35756aecedf 100644
> --- mail/mu/Makefile
> +++ mail/mu/Makefile
> @@ -5,7 +5,7 @@ GUILE_V =     3.0
>  FLAVORS =    guile
>  FLAVOR ?=
>  
> -SHARED_LIBS =        guile-mu        0.1
> +SHARED_LIBS =        guile-mu        0.2
>  
>  CATEGORIES = mail
>  HOMEPAGE =   https://www.djcbsoftware.nl/code/mu/
> @@ -18,13 +18,14 @@ PERMIT_PACKAGE =  Yes
>  WANTLIB += ${COMPILER_LIBCXX} c gio-2.0 glib-2.0 gmime-3.0 gobject-2.0
>  WANTLIB += m xapian
>  
> -DIST_TUPLE = github djcb mu v1.12.7 .
> +DIST_TUPLE = github djcb mu v1.12.15 .
>  
>  EXTRACT_SUFX =       .tar.xz
>  
>  MODULES =    devel/meson
>  
> -BUILD_DEPENDS =      emacs->=26.3:editors/emacs
> +BUILD_DEPENDS =      emacs->=26.3:editors/emacs \
> +             print/texinfo
>  
>  LIB_DEPENDS =        databases/xapian-core \
>               devel/glib2 \
> @@ -46,6 +47,7 @@ CONFIGURE_ARGS +=   -Dreadline=disabled -Dcld2=disabled
>  pre-configure:
>       sed -e 's/exec guile/exec guile${GUILE_V}/' -i \
>               ${WRKDIST}/guile/*/*.scm
> +     ln -fs ${LOCALBASE}/bin/gmakeinfo ${WRKDIR}/bin/makeinfo
>  
>  post-install:
>       mv ${WRKINST}/${TRUEPREFIX}/share/info/*.info \
> diff --git mail/mu/distinfo mail/mu/distinfo
> index 5b04da1124c..edfa28e47e6 100644
> --- mail/mu/distinfo
> +++ mail/mu/distinfo
> @@ -1,2 +1,2 @@
> -SHA256 (djcb-mu-v1.12.7.tar.gz) = 
> khLPD507Y0LVoK6kCj1bURb+TaGYcZzMqx+Ppmg72LQ=
> -SIZE (djcb-mu-v1.12.7.tar.gz) = 966457
> +SHA256 (djcb-mu-v1.12.15.tar.gz) = 
> DBhAuoPLwMbu87EgytUphh0BCKAfK9wurBfAvxXrwqE=
> +SIZE (djcb-mu-v1.12.15.tar.gz) = 1039899
> diff --git mail/mu/patches/patch-mu_mu-cmd-server_cc 
> mail/mu/patches/patch-mu_mu-cmd-server_cc
> index 0d2050a65f3..21d83e4a793 100644
> --- mail/mu/patches/patch-mu_mu-cmd-server_cc
> +++ mail/mu/patches/patch-mu_mu-cmd-server_cc
> @@ -3,12 +3,12 @@
>  Index: mu/mu-cmd-server.cc
>  --- mu/mu-cmd-server.cc.orig
>  +++ mu/mu-cmd-server.cc
> -@@ -120,7 +120,7 @@ Mu::mu_cmd_server(const Mu::Options& opts) try {
> -                opts.debug ? "yes" : "no",
> -                have_readline() ? "yes" : "no");
> - 
> +@@ -111,7 +111,7 @@ report_error(const Mu::Error& err) noexcept
> + static void
> + maybe_setup_readline(const Mu::Options& opts)
> + {
>  -    tty = ::isatty(::fileno(stdout));
>  +    tty = ::isatty(fileno(stdout));
> -     const auto eval = std::string{opts.server.commands ? "(help :full t)" : 
> opts.server.eval};
> -     if (!eval.empty()) {
> -             server.invoke(eval);
> + 
> +     // Note, the readline stuff is inactive unless on a tty.
> +     const auto histpath{opts.runtime_path(RuntimePath::Cache) + "/history"};
> diff --git mail/mu/patches/patch-mu_mu-options_cc 
> mail/mu/patches/patch-mu_mu-options_cc
> index 7c5df7eb41b..39cc2917fc0 100644
> --- mail/mu/patches/patch-mu_mu-options_cc
> +++ mail/mu/patches/patch-mu_mu-options_cc
> @@ -2,7 +2,7 @@
>  Index: mu/mu-options.cc
>  --- mu/mu-options.cc.orig
>  +++ mu/mu-options.cc
> -@@ -747,8 +747,8 @@ bool
> +@@ -861,8 +861,8 @@ bool
>   Options::default_no_color()
>   {
>       static const auto no_color =
> diff --git mail/mu/pkg/PLIST mail/mu/pkg/PLIST
> index 0d605eccfc8..92657b97166 100644
> --- mail/mu/pkg/PLIST
> +++ mail/mu/pkg/PLIST
> @@ -8,9 +8,11 @@
>  @man man/man1/mu-index.1
>  @man man/man1/mu-info.1
>  @man man/man1/mu-init.1
> +@man man/man1/mu-labels.1
>  @man man/man1/mu-mkdir.1
>  @man man/man1/mu-move.1
>  @man man/man1/mu-remove.1
> +@man man/man1/mu-scm.1
>  @man man/man1/mu-server.1
>  @man man/man1/mu-verify.1
>  @man man/man1/mu-view.1
> @@ -20,6 +22,7 @@
>  @man man/man7/mu-query.7
>  %%guile%%
>  share/doc/mu/
> +share/doc/mu/IDEAS.org
>  share/doc/mu/NEWS.org
>  share/doc/mu/mu4e-about.org
>  share/emacs/
> @@ -39,6 +42,8 @@ share/emacs/site-lisp/mu4e/mu4e-context.el
>  share/emacs/site-lisp/mu4e/mu4e-context.elc
>  share/emacs/site-lisp/mu4e/mu4e-contrib.el
>  share/emacs/site-lisp/mu4e/mu4e-contrib.elc
> +share/emacs/site-lisp/mu4e/mu4e-dbus.el
> +share/emacs/site-lisp/mu4e/mu4e-dbus.elc
>  share/emacs/site-lisp/mu4e/mu4e-draft.el
>  share/emacs/site-lisp/mu4e/mu4e-draft.elc
>  share/emacs/site-lisp/mu4e/mu4e-folders.el
> @@ -49,6 +54,8 @@ share/emacs/site-lisp/mu4e/mu4e-helpers.el
>  share/emacs/site-lisp/mu4e/mu4e-helpers.elc
>  share/emacs/site-lisp/mu4e/mu4e-icalendar.el
>  share/emacs/site-lisp/mu4e/mu4e-icalendar.elc
> +share/emacs/site-lisp/mu4e/mu4e-labels.el
> +share/emacs/site-lisp/mu4e/mu4e-labels.elc
>  share/emacs/site-lisp/mu4e/mu4e-lists.el
>  share/emacs/site-lisp/mu4e/mu4e-lists.elc
>  share/emacs/site-lisp/mu4e/mu4e-main.el
> @@ -78,6 +85,8 @@ share/emacs/site-lisp/mu4e/mu4e-speedbar.el
>  share/emacs/site-lisp/mu4e/mu4e-speedbar.elc
>  share/emacs/site-lisp/mu4e/mu4e-thread.el
>  share/emacs/site-lisp/mu4e/mu4e-thread.elc
> +share/emacs/site-lisp/mu4e/mu4e-transient.el
> +share/emacs/site-lisp/mu4e/mu4e-transient.elc
>  share/emacs/site-lisp/mu4e/mu4e-update.el
>  share/emacs/site-lisp/mu4e/mu4e-update.elc
>  share/emacs/site-lisp/mu4e/mu4e-vars.el
> 
> 
> -- 
> Paco Esteban
> 0x5818130B8A6DBC03

Reply via email to