bugDatabase-driven manual pager suite - Bugs: bug #56254, When “groff -me -Tps man_db.pp...

 
 

bug #56254: When “groff -me -Tps man_db.pp > man_db.ps” fails during $(make -C manual), then the file man_db.ps must be deleted

Submitter:  Дилян Палаузов <dilyanpalauzov>
Submitted:  Thu 02 May 2019 10:57:08 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  cjwatson
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 03 Aug 2019 11:16:42 AM UTC, comment #2: 

Fixed in man-db 2.8.6.

Colin Watson <cjwatson>
Group administrator
Thu 02 May 2019 11:24:17 AM UTC, comment #1: 

Thanks for the report.  I assume you've already worked out that you need to install the full groff package in order to build this, as opposed to merely groff-base or similar.

I've fixed the build robustness problem you point out for the next release:

  https://git.savannah.gnu.org/cgit/man-db.git/commit/?id=56c355e8a29fff0adbb6e72c95a37ba8ccac2e12

Colin Watson <cjwatson>
Group administrator
Thu 02 May 2019 10:57:08 AM UTC, original submission:  

With man-db-2.8.5 when I do $(make -C manual)  I get:

make: Entering directory '/src/man-db-2.8.5/manual'
echo '.ds V 2.8.5' > version
soelim -I. man_db.me | tbl > man_db.pp
LC_ALL=C nroff -me man_db.pp > man_db.cat
troff: fatal error: can't find macro file e
make: * [Makefile:1609: man_db.cat] Error 1
make: Leaving directory '/src/man-db-2.8.5/manual'


When I repeat $(make -C manual)  I get:
make: Entering directory '/src/man-db-2.8.5/manual'
groff -me -Tps man_db.pp > man_db.ps
troff: fatal error: can't find macro file e
make: * [Makefile:1600: man_db.ps] Error 1
make: Leaving directory '/src/man-db-2.8.5/manual'

When I type it once again I get:
make: Entering directory '/src/man-db-2.8.5/manual'
make: Nothing to be done for 'all'.
make: Leaving directory '/src/man-db-2.8.5/manual'

Repeating $(make) shall not make errors disappear.

A possible approach would be to replace
groff -me -Tps man_db.pp > man_db.ps

with
groff -me -Tps man_db.pp > temp_man_db.ps && mv temp_man_db.ps man_db.ps
(or groff -me -Tps man_db.pp > man_db.ps || rm man_db.ps)
so that man_dp.ps is not created, when groff fails.

Дилян Палаузов <dilyanpalauzov>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by cjwatson (Posted a comment)
  • -email is unavailable- added by dilyanpalauzov (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-08-03 cjwatson StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2019-05-02 cjwatson StatusNone Ready For Test
        Assigned toNone cjwatson

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code