LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-27-2021, 12:53 PM   #1
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
dig man page formatting broken 14.2


I am not sure when this was introduced but I have only noticed it after recent updates which included the 240 kernel.

/usr/man/man1/dig.1.gz formatting is badly broken. It appears to be related to this RedHat bug report from 2016. Here they lay blame on the version of docbook-style-xsl used to generate the man page.

A quick search did not turn up anything more recent, which is not to say there is none.

For anyone immediately affected, you can decompress and open the file, globally remove all leading spaces and tabs at beginning of lines and save it.

I suspect there must be a patch but my patch-foo is wanting, or perhaps Pat may adjust the dockbook version.

Apologies if this is already known here, the LQ search is not very useful these days.
 
Old 01-28-2021, 01:45 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269

Original Poster
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
Off zero reply list then...
 
Old 03-02-2021, 04:15 PM   #3
BernieK
LQ Newbie
 
Registered: Mar 2021
Posts: 21

Rep: Reputation: Disabled
The following is a command-line solution corresponding to astrogeek's English language solution.


1. From a directory other than /usr/man/man1 issue the following shell command:

gunzip -c /usr/man/man1/dig.1.gz | sed 's/^[[:space:]][[:space:]]*\././' | gzip > dig.1.gz


2. Check the results:

man ./dig.1.gz


3. If the results are satisfactory then - as root - overwrite the original bad file:

mv ./dig.1.gz /usr/man/man1/dig.1.gz


The "sed" argument above was plagarized from Michal Jaegermann's post at:

https://bugzilla.redhat.com/show_bug.cgi?id=1413395
 
3 members found this post helpful.
Old 03-04-2021, 07:44 AM   #4
baumei
Member
 
Registered: Feb 2019
Location: USA; North Carolina
Distribution: Slackware 15.0 (replacing 14.2)
Posts: 365

Rep: Reputation: 124Reputation: 124
Thank you for posting the sed command! The resulting manpage is immensely improved. :-)
 
Old 03-04-2021, 09:28 AM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,677

Rep: Reputation: Disabled
This upstream commit seems to be the culprit.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND9: dig <hostname> doesn't work, dig <hostname.domain.tld> does. jhwilliams Linux - Server 2 04-09-2010 01:01 PM
dig @ works, dig doesn't eelgueta Linux - Networking 6 07-09-2007 06:45 PM
Is there a man page on how to use man page? jdruin Linux - Software 2 10-30-2004 09:29 AM
Man Page Formatting nxny Linux - General 7 01-06-2003 07:59 PM
MAN page formatting incorrect via telnet/SSH pederslie Linux - Newbie 3 12-11-2002 02:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration