bugGNU roff - Bugs: bug #61265, macOS sed(1) warns during `make...

 
 

bug #61265: macOS sed(1) warns during `make install`

Submitter:  John Gardner <alhadis>
Submitted:  Sat 02 Oct 2021 07:34:41 PM UTC
   
 
Category:  General Severity:  3 - Normal
Item Group:  Build/Installation Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.23.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 28 Oct 2021 05:38:41 AM UTC, comment #2: 

This later got reported again to the groff mailing list and I forgot about this ticket (I knew I'd seen the problem reported somewhere before, but failed to search the ticket tracker).

I'll update the ChangeLog entry.


commit 2b3e0a672d426253025c32bff31fffe8439c47bc
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Wed Oct 27 14:51:39 2021 +1100

    doc/doc.am: Cope with Mac OS X.

    * doc/doc.am: Make sed-based insertion of `lf` requests more portable: a
      dance is required to embed a literal newline inside a sed expression
      inside a shell command executed as part of a Make target rule.  We
      assume that neither the POSIX shell $'' operator nor a working
      printf(1) is available.

      (DOC_GROFF): Define a shell variable containing a literal newline,
      evading make(1) and echo(1)'s valiant attempts to consume it.

      (doc/pic.html, doc/webpage.html): Repeat trick, slightly modified
      since the dependency needs to be manually identified.

    Solution adapted from the GNU Autoconf manual, "Newlines in Make
    Rules".


G. Branden Robinson <gbranden>
Group administrator
Sun 03 Oct 2021 08:49:35 PM UTC, comment #1: 

Commit feae77a4 added these sed commands to doc/doc.am.  In this file the sed lines are split exactly as you suggest, so something must be eating the backslash/newline combo during processing.

Dave <barx>
Group Member
Sat 02 Oct 2021 07:34:41 PM UTC, original submission:  

I've been seeing these warnings at the end of a `make install` for the past few weeks now. They seem to be trivial (although I'm basing that on my ability to smoke-test the compiled binaries from my local checkout…) and are of the form:


sed: 1: "1i .lf 1 doc/meintro.me
": command i expects \ followed by text


BSD sed(1) (or at least the version that ships with macOS) doesn't support same-line text insertion, so a portable alternative to the above would be:


1i\
.lf 1 doc/meintro.me


I've attached the output from the entire build run. Also attached—though I doubt it's relevant—is output from a failed `make install` which may or may not be expected to fail.

John Gardner <alhadis>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #52012:  build.log added by alhadis (56KiB - application/octet-stream)
file #52013:  install.log added by alhadis (24KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Posted a comment)
  • -email is unavailable- added by barx (Posted a comment)
  • -email is unavailable- added by alhadis (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-03-05 gbranden CategoryNone General
    2021-10-28 gbranden StatusNone Fixed
        Assigned toNone gbranden
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.23.0
    2021-10-02 alhadis Attached File- Added install.log, #52013
    2021-10-02 alhadis Attached File- Added build.log, #52012

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code