Bug 9203 - Automatically paginate bitbake -e output
Summary: Automatically paginate bitbake -e output
Status: RESOLVED WONTFIX
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Low enhancement
Target Milestone: Future
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-03-03 09:36 UTC by Joshua Lock
Modified: 2021-06-17 15:23 UTC (History)
6 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Lock 2016-03-03 09:36:57 UTC
Git automatically uses a pager (less, by default) to paginate certain subcommands with long output  — we should consider adding this feature to bitbake and using it for -e and possibly -S
Comment 1 Diana Thayer 2017-06-19 21:58:26 UTC
If I understand correctly, this issue says that:

- `bitbake -e` should use a pager like less, such that it resembles `bitbake -e | less`
- make the pager configurable, so you can use something besides less.
- `bitbake -S` should also use a configurable pager?

What environment variables should be used to determine the pager?
Comment 2 Ross Burton 2017-06-20 10:06:38 UTC
The standard variable is "PAGER".
Comment 3 Diana Thayer 2017-06-26 23:39:14 UTC
There's been some pushback about building pager support into bitbake, in favor of retaining the current approach of allowing the user to pipe to a paginator themselves.

And there seems to be a precedent on pagination:

http://lists.openembedded.org/pipermail/bitbake-devel/2015-March/005545.html

Are we sure this is a feature we want?
Comment 4 Richard Purdie 2021-06-17 15:23:42 UTC
git is mostly a non-interactive command, bitbake is different in that it can be longer running and interactive (e.g. knotty). I think having the user use a pager as/when necessary isn't too much of a hardship and avoids a ton of potential pitfalls.