Bug 2036327

Summary: etckeeper filter_ignore filter in 30store-metadata has a LANG issue related to use of grep
Product: [Fedora] Fedora Reporter: Peter Bieringer <pb>
Component: etckeeperAssignee: Thomas Moschny <thomas.moschny>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 35CC: thomas.moschny
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: etckeeper-1.18.17-1.fc34 etckeeper-1.18.17-1.fc35 etckeeper-1.18.17-1.el8 etckeeper-1.18.17-1.el7 etckeeper-1.18.17-1.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-17 14:42:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Peter Bieringer 2021-12-31 09:00:34 UTC
Description of problem:
From time to time on system with local language a strange warning caused by grep appears 


Version-Release number of selected component (if applicable):
etckeeper-1.18.16-3.fc35.noarch


How reproducible:
always

Steps to Reproduce:
1. echo $LANG
de_DE.utf8

2. etckeeper commit 'daily autocommit'


Actual results:

grep: (Standardeingabe): Übereinstimmungen in Binärdatei
grep: (Standardeingabe): Übereinstimmungen in Binärdatei
[master e7b2d0b] daily autocommit
 2 files changed, 1 insertion(+), 164 deletions(-)

(some output lines are missing also imho)

Expected results:
No such strange grep output and complete output, see below.


Additional info:

After tracing it looks like following extension will fix the issue:

--- 30store-metadata.orig	2021-12-31 09:41:41.553496765 +0100
+++ 30store-metadata	2021-12-31 09:51:46.456429281 +0100
@@ -7,6 +7,7 @@
 unset LC_ALL
 
 filter_ignore() {
+	export LC_ALL=C
 	case "$VCS" in
 		darcs) ignorefile=.darcsignore ;;
 		git)   ignorefile=.gitignore ;;



Afterwards it runs without any strange message:


etckeeper commit 'daily autocommit'
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
  (commit or discard the untracked or modified content in submodules)
	modified:   ****** (untracked content)

no changes added to commit (use "git add" and/or "git commit -a")

Comment 2 Fedora Update System 2022-03-08 23:05:25 UTC
FEDORA-2022-e807ff6933 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2022-e807ff6933

Comment 3 Fedora Update System 2022-03-08 23:05:28 UTC
FEDORA-2022-6ca441e78a has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2022-6ca441e78a

Comment 4 Fedora Update System 2022-03-08 23:05:30 UTC
FEDORA-EPEL-2022-61114e4dea has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-61114e4dea

Comment 5 Fedora Update System 2022-03-08 23:05:33 UTC
FEDORA-2022-b500914ffc has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-b500914ffc

Comment 6 Fedora Update System 2022-03-08 23:05:36 UTC
FEDORA-EPEL-2022-c28760ff69 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-c28760ff69

Comment 7 Fedora Update System 2022-03-09 15:46:06 UTC
FEDORA-2022-b500914ffc has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-b500914ffc`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-b500914ffc

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2022-03-09 19:51:39 UTC
FEDORA-2022-6ca441e78a has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-6ca441e78a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-6ca441e78a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2022-03-09 20:13:11 UTC
FEDORA-2022-e807ff6933 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2022-e807ff6933`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-e807ff6933

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2022-03-09 20:40:55 UTC
FEDORA-EPEL-2022-c28760ff69 has been pushed to the Fedora EPEL 7 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-c28760ff69

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2022-03-09 20:42:44 UTC
FEDORA-EPEL-2022-61114e4dea has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2022-61114e4dea

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2022-03-17 14:42:21 UTC
FEDORA-2022-e807ff6933 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2022-03-17 15:45:37 UTC
FEDORA-2022-6ca441e78a has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2022-03-17 16:11:26 UTC
FEDORA-EPEL-2022-61114e4dea has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2022-03-17 16:14:22 UTC
FEDORA-EPEL-2022-c28760ff69 has been pushed to the Fedora EPEL 7 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2022-03-26 15:15:27 UTC
FEDORA-2022-b500914ffc has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.