Bug 1730532 - <standard input>:176: warning [p 3, 0.8i]: cannot adjust line
Summary: <standard input>:176: warning [p 3, 0.8i]: cannot adjust line
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: man-db
Version: 31
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nikola Forró
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-17 04:21 UTC by Chris Murphy
Modified: 2024-03-27 03:08 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-11-24 18:07:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Chris Murphy 2019-07-17 04:21:49 UTC
Description of problem:

If I filter a man page for a keyword that doesn't exist, I get an error.


Version-Release number of selected component (if applicable):
man-pages-4.16-4.fc30.noarch
man-db-2.8.4-4.fc30.x86_64

But it's reported to happen in Fedora 29, and I've also reproduced it in Fedora 30 and Rawhide.


How reproducible:
Always

Steps to Reproduce:

[chris@flap ~]$ man rpm | grep -C 10 rpmverbosity
<standard input>:176: warning [p 3, 0.8i]: cannot adjust line
[chris@flap mantest]$ man rpm >rpm.stdout 2>rpm.stderr
[chris@flap mantest]$ ll
-rw-rw-r--. 1 chris chris    62 Jul 16 14:24 rpm.stderr
-rw-rw-r--. 1 chris chris 28498 Jul 16 14:24 rpm.stdout

Actual results:

An error

Expected results:

Nothing

Additional info:

Posted this problem to devel@ and received this reply:


https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/HNFQL6MF3DC4SSIJZK273Q4J7NYWQ7KT/

(This also happens on Fedora 29, JFTR.)  The warning seems
to stem from this line in rpm.8:

| […]
|     175 The default \fIFILELIST\fR is
|     176 \fI/usr/\:lib/\:rpm/\:macros\fR:\:\fI/usr/\:lib/\:rpm/\:macros.d/\:macros.*\fR:\:\fI/usr/\:lib/\:rpm/\:platform/\:%{_target}/\:macros\fR:\:\fI/usr/\:lib/\:rpm/\
|     176 :fileattrs/\:*.attr\fR:\:\fI/usr/\:lib/\:rpm/\:redhat/\:macros\fR:\:\fI/etc/\:rpm/\:macros.*\fR:\:\fI/etc/\:rpm/\:macros\fR:\:\fI/etc/\:rpm/\:%{_target}/\:macro
|     176 s\fR:\:\fI~/.rpmmacros
|     177
| […]

This line is too long for the standard layout.  It already
has hints ("\:"; zero-width break points) where it should be
broken, but these seem to be ignored.  So prima facie RPM
has done everything right, and there is an error somewhere
in the groff/man ecosphere.

Comment 1 Ben Cotton 2019-08-13 17:12:47 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to '31'.

Comment 2 Ben Cotton 2019-08-13 19:01:05 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 31 development cycle.
Changing version to 31.

Comment 3 Ben Cotton 2020-11-03 15:20:15 UTC
This message is a reminder that Fedora 31 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 31 on 2020-11-24.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '31'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 31 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Ben Cotton 2020-11-24 18:07:22 UTC
Fedora 31 changed to end-of-life (EOL) status on 2020-11-24. Fedora 31 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 5 Tim Landscheidt 2024-03-27 03:08:34 UTC
(In reply to Chris Murphy from comment #0)
> […]
> Posted this problem to devel@ and received this reply:
> 
> 
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/
> message/HNFQL6MF3DC4SSIJZK273Q4J7NYWQ7KT/
> 
> (This also happens on Fedora 29, JFTR.)  The warning seems
> to stem from this line in rpm.8:
> 
> | […]
> |     175 The default \fIFILELIST\fR is
> |     176
> \fI/usr/\:lib/\:rpm/\:macros\fR:\:\fI/usr/\:lib/\:rpm/\:macros.d/\:macros.
> *\fR:\:\fI/usr/\:lib/\:rpm/\:platform/\:%{_target}/\:macros\fR:\:\fI/usr/\:
> lib/\:rpm/\
> |     176
> :fileattrs/\:*.attr\fR:\:\fI/usr/\:lib/\:rpm/\:redhat/\:macros\fR:\:\fI/etc/
> \:rpm/\:macros.*\fR:\:\fI/etc/\:rpm/\:macros\fR:\:\fI/etc/\:rpm/\:%{_target}/
> \:macro
> |     176 s\fR:\:\fI~/.rpmmacros
> |     177
> | […]
> 
> This line is too long for the standard layout.  It already
> has hints ("\:"; zero-width break points) where it should be
> broken, but these seem to be ignored.  So prima facie RPM
> has done everything right, and there is an error somewhere
> in the groff/man ecosphere.

(That was me replying.)  My analysis was wrong: The warning does not indicate that the line cannot be broken, but cannot be justified because there are no spaces between the "words".

On the groff mailing list (https://lists.gnu.org/archive/html/groff/2021-02/msg00084.html), a solution was proposed to format the default value as a code block instead, with one file/glob per line, and this has been merged upstream (https://github.com/rpm-software-management/rpm/commit/23c11c6f5d4e40a26d502b6af9980ace7fc61226).


Note You need to log in before you can comment on or make changes to this bug.