Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 418127 - systemd should depend on sys-apps/less
Summary: systemd should depend on sys-apps/less
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-29 12:59 UTC by Andreas Proschofsky (RETIRED)
Modified: 2013-04-14 09:04 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Proschofsky (RETIRED) gentoo-dev 2012-05-29 12:59:08 UTC
systemd uses less for text output in practically all of its tools, without less those simply don't work. So the ebuild should RDEPEND on it.

Reproducible: Always
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-29 14:29:52 UTC
They don't work? As in: don't fallback to simply printing the output?
Comment 2 Andreas Proschofsky (RETIRED) gentoo-dev 2012-05-29 20:04:54 UTC
(In reply to comment #1)
> They don't work? As in: don't fallback to simply printing the output?

Yep, all you get in this case from those tools is

'sh: /usr/bin/less: No such file or directory'
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-30 04:04:08 UTC
Do you have $PAGER set?
Comment 4 Andreas Proschofsky (RETIRED) gentoo-dev 2012-05-30 06:42:28 UTC
(In reply to comment #3)
> Do you have $PAGER set?

Yes, it's set to /usr/bin/less (no suprise as this is part of the default profile)

Still, there seems to be something fishy going on here (maybe on my local system): Earlier on virtual/pager and sys-apps/less was removed by depclean as nothing depended on it (which is still the case if I look at equery depends virtual/pager). Now after manually emerging and unmerging afterwards it somehow seems to get pulled in by a emerge -uDN world again. Interesting ;)
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-05-30 16:33:49 UTC
Well, honestly I think that after removing a pager provider, 'eselect pager' should switch to something sane. After removing the last provider, it should probably remove that file.

Considering the overall eselect ugliness, I don't know what to do, exactly. CC-ing people (supposedly) responsible for pager module with hope they'd state their opinion on the topic.

However I really don't mind adding virtual/pager dependency, it's unclear to me whether systemd is actually the correct place to set it. The tools will work fine with either '--no-pager' or 'PAGER' variable correctly set (or unset).
Comment 6 Ulrich Müller gentoo-dev 2012-05-30 20:13:41 UTC
(In reply to comment #5)
> Well, honestly I think that after removing a pager provider, 'eselect pager'
> should switch to something sane.

Hm, "eselect pager update" does this already.

> After removing the last provider, it should probably remove that file.

It will loudly complain if no valid provider can be found. (But how can this happen? virtual/pager is in the base profile.)
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-04-14 09:04:50 UTC
Quoting:

Lennart Poettering  2013-03-07 11:37:29 UTC 
Since a while now there's some "null pager" thingy in the paging logic that is used as fallback if no pager can be started.