gbranden pushed a commit to branch master
in repository groff.

commit e0ce5229720af12d210271a582e5a3de99aa8cbd
Author: Bruno Haible <[email protected]>
AuthorDate: Mon Aug 3 17:10:28 2026 +0200

    [eqn]: Fix Savannah #68601.
    
    Fix generation of 'neqn' script on Alpine Linux.
    
    * src/preproc/eqn/eqn.am (neqn): Use two separate 'sed' invocations, as
      BusyBox 'sed' ignores '-e' options if a '-f' option is present.
    
    Fixes <https://savannah.gnu.org/bugs/?68601>.
---
 ChangeLog              | 10 ++++++++++
 src/preproc/eqn/eqn.am |  4 ++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3d8ca2a92..708a1599b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2026-08-03  Bruno Haible <[email protected]>
+
+       [eqn]: Fix generation of 'neqn' script on Alpine Linux.
+
+       * src/preproc/eqn/eqn.am (neqn): Use two separate 'sed'
+       invocations, as BusyBox 'sed' ignores '-e' options if a '-f'
+       option is present.
+
+       Fixes <https://savannah.gnu.org/bugs/?68601>.
+
 2026-08-06  G. Branden Robinson <[email protected]>
 
        [grn]: Revise and parallelize usage message and command
diff --git a/src/preproc/eqn/eqn.am b/src/preproc/eqn/eqn.am
index 0c353c2a9..1f57443ef 100644
--- a/src/preproc/eqn/eqn.am
+++ b/src/preproc/eqn/eqn.am
@@ -59,9 +59,9 @@ src/preproc/eqn/eqn-lex.$(OBJEXT): src/preproc/eqn/eqn.hpp
 
 neqn: $(top_srcdir)/src/preproc/eqn/neqn.sh $(SH_DEPS_SED_SCRIPT)
        $(AM_V_GEN)sed -f $(SH_DEPS_SED_SCRIPT) \
-              -e 's/[@]g[@]/$(g)/g' \
-              -e $(SH_SCRIPT_SED_CMD) \
               $(top_srcdir)/src/preproc/eqn/neqn.sh \
+        | sed -e 's/[@]g[@]/$(g)/g' \
+              -e $(SH_SCRIPT_SED_CMD) \
               >[email protected] \
        && chmod +x [email protected] \
        && mv [email protected] $@

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to