Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 875557 - sys-apps/openrc-0.45.2 generates "grep: stray \ before -" warning with >=sys-apps/grep-3.8 due to the hwclock init script
Summary: sys-apps/openrc-0.45.2 generates "grep: stray \ before -" warning with >=sys-...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial with 1 vote (vote)
Assignee: OpenRC Team
URL: https://github.com/OpenRC/openrc/issu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-06 05:17 UTC by Nathan Zachary
Modified: 2022-12-03 12:17 UTC (History)
3 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 Nathan Zachary 2022-10-06 05:17:43 UTC
During boot, a warning of:

* Setting system clock using the hardware clock [UTC] ...
grep: warning: stray \ before -

can be seen due to grep 3.8 syntax changes.

The warning has been suppressed by the following commit upstream:
https://github.com/OpenRC/openrc/commit/9380347f042f7d294317f4420b648422817eb75a

Cheers,
Nathan Zachary

Reproducible: Always

Steps to Reproduce:
1. Use OpenRC as the init system
2. Use >=sys-apps/grep-3.8
3. Boot the system
Actual Results:  
Warning is displayed

Expected Results:  
Warning should not be displayed
Comment 1 Emanuel Czirai 2022-10-22 15:34:39 UTC
it's fixed upstream https://github.com/OpenRC/openrc/commit/9380347f042f7d294317f4420b648422817eb75a

though I would've used grep -q -- "--noadjfile" myself.
Comment 2 Larry the Git Cow gentoo-dev 2022-12-03 12:17:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=09e6575b72d2b8bb8948feb0bbdcfd47eddb903b

commit 09e6575b72d2b8bb8948feb0bbdcfd47eddb903b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-03 12:16:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-03 12:16:46 +0000

    sys-apps/openrc: backport grep 3.8 warning fix
    
    Closes: https://bugs.gentoo.org/875557
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/openrc/files/openrc-0.45.2-grep-3.8.patch | 35 ++++++++++++++++++++++
 ...rc-0.45.2-r1.ebuild => openrc-0.45.2-r2.ebuild} |  8 +++--
 2 files changed, 41 insertions(+), 2 deletions(-)