Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1611430 - Move lesspipe.sh to /usr/libexec, or (as a fallback) provide a man(1) lesspipe.sh
Summary: Move lesspipe.sh to /usr/libexec, or (as a fallback) provide a man(1) lesspip...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: less
Version: rawhide
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Matej Mužila
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: FedoraManpagescan
TreeView+ depends on / blocked
 
Reported: 2018-08-02 09:04 UTC by Maryna Nalbandian
Modified: 2022-06-28 11:27 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
Logs (deleted)
2018-08-02 09:04 UTC, Maryna Nalbandian
no flags Details

Description Maryna Nalbandian 2018-08-02 09:04:09 UTC
In order to improve usability of packages in Fedora, project Man Page Scan was created and its task is to provide consistency of man pages (and documentation in general). The results are now available for package maintainers to fix documentation issues.

If you need to re-run the check yourself, here is the simple process of man page check:

1. Download man-page-day from:

    https://pagure.io/ManualPageScan/blob/master/f/man-page-day.sh

2. Run the script:
    $ ./man-page-day.sh less

Comment 1 Maryna Nalbandian 2018-08-02 09:04:25 UTC
Created attachment 1472546 [details]
Logs

Comment 2 Jan Kurik 2018-08-14 10:43:23 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle.
Changing version to '29'.

Comment 3 "FeRD" (Frank Dana) 2021-10-04 21:42:35 UTC
/usr/libexec makes sense to me, my only concern is that it will break things for all of the existing users, who (if they followed the directions at the top of the file) have configured the environment variable LESSOPEN to reference the specific path /usr/bin/lesspipe.sh.

Perhaps what we should do instead, to future-proof a move to /usr/libexec/, is create a subpackage for lesspipe (an RPM Recommends or Suggests soft dependency), which includes not only /usr/libexec/lesspipe.sh, but also /etc/profile.d/lesspipe.[c]sh wrappers to define the LESSPIPE environment variable accordingly.

That way, users who wish to use lesspipe just have to install the subpackage, they don't need to manually modify their environment at all, and the packaging has control over the contents of that variable so that it can make any future modifications as necessary.

Comment 4 "FeRD" (Frank Dana) 2021-10-04 21:44:31 UTC
(In reply to "FeRD" (Frank Dana) from comment #3)
> /etc/profile.d/lesspipe.[c]sh wrappers to define the LESSPIPE environment

s/LESSPIPE/LESSOPEN/


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