Patch xdg-open downstream to fix egrep warning

There are 4 upstream PRs to fix the usage of egrep in xdg-open, and the
first PR is 3 years old.

As it seems this issue will be around for still a long time, the propose
is to fix it dowstream, patching "xdg-open" to use 'grep -E' so no
warning is raised.

Fixes: https://bugzilla.redhat.com/2140197

Signed-off-by: Rafael Guterres Jeffman <rjeffman@redhat.com>
This commit is contained in:
Rafael Guterres Jeffman 2023-07-25 16:10:47 -03:00
parent aed569561d
commit b02ab31968
3 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@
/0014-xdg-mime-return-correct-exit-code-for-GNOME.patch /0014-xdg-mime-return-correct-exit-code-for-GNOME.patch
/0015-fixed-166-xdg-open-dose-not-search-correctly-in-dire.patch /0015-fixed-166-xdg-open-dose-not-search-correctly-in-dire.patch
/0016-Fix-xdg-settings-support-for-default-web-browser-for.patch /0016-Fix-xdg-settings-support-for-default-web-browser-for.patch
/0017-Use-grep-E-instead-of-the-obsoleted-egrep.patch

View File

@ -17,3 +17,4 @@ SHA512 (0013-support-digits-in-uri-scheme-regex.patch) = c4f6f2efb1dd8c884d452fc
SHA512 (0014-xdg-mime-return-correct-exit-code-for-GNOME.patch) = bb6c89009067db65fbfc9ffafcf8d329ad809bb7420358a1c20cb21a391f6916390c2f18134a3b5654e267583a036c5ec8ce1fc0cc4df9b221a0f572e6941627 SHA512 (0014-xdg-mime-return-correct-exit-code-for-GNOME.patch) = bb6c89009067db65fbfc9ffafcf8d329ad809bb7420358a1c20cb21a391f6916390c2f18134a3b5654e267583a036c5ec8ce1fc0cc4df9b221a0f572e6941627
SHA512 (0015-fixed-166-xdg-open-dose-not-search-correctly-in-dire.patch) = dd23d094e3db5c984617e577e56056e7ac168b2ab6b66ec0aaa4cca2c43709bff36671fe2681004e08bc0886c2efc12ece5fe10697b2fd9ea64ddb81c09c05ba SHA512 (0015-fixed-166-xdg-open-dose-not-search-correctly-in-dire.patch) = dd23d094e3db5c984617e577e56056e7ac168b2ab6b66ec0aaa4cca2c43709bff36671fe2681004e08bc0886c2efc12ece5fe10697b2fd9ea64ddb81c09c05ba
SHA512 (0016-Fix-xdg-settings-support-for-default-web-browser-for.patch) = 1f5841c4c46b62e3f6ae2ddb6bc0411d9105e23941e0c593a23a6731a8a4cc6946574d4f9c85b766ca4297303edb9f6a91cf2c435e74609936c86b89e5e190f2 SHA512 (0016-Fix-xdg-settings-support-for-default-web-browser-for.patch) = 1f5841c4c46b62e3f6ae2ddb6bc0411d9105e23941e0c593a23a6731a8a4cc6946574d4f9c85b766ca4297303edb9f6a91cf2c435e74609936c86b89e5e190f2
SHA512 (0017-Use-grep-E-instead-of-the-obsoleted-egrep.patch) = 94e8f391c51946a730d8b2a86f48b34e5e60a77b6b26af2be11c660e8493db2ac375f619d60ed21e8f9de84ec7c000ff497f076013e2028648dd84bd18229514

View File

@ -2,7 +2,7 @@
Summary: Basic desktop integration functions Summary: Basic desktop integration functions
Name: xdg-utils Name: xdg-utils
Version: 1.1.3 Version: 1.1.3
Release: 14%{?dist} Release: 15%{?dist}
URL: http://portland.freedesktop.org/ URL: http://portland.freedesktop.org/
%if 0%{?snap:1} %if 0%{?snap:1}
@ -32,6 +32,7 @@ Patch13: 0013-support-digits-in-uri-scheme-regex.patch
Patch14: 0014-xdg-mime-return-correct-exit-code-for-GNOME.patch Patch14: 0014-xdg-mime-return-correct-exit-code-for-GNOME.patch
Patch15: 0015-fixed-166-xdg-open-dose-not-search-correctly-in-dire.patch Patch15: 0015-fixed-166-xdg-open-dose-not-search-correctly-in-dire.patch
Patch16: 0016-Fix-xdg-settings-support-for-default-web-browser-for.patch Patch16: 0016-Fix-xdg-settings-support-for-default-web-browser-for.patch
Patch17: 0017-Use-grep-E-instead-of-the-obsoleted-egrep.patch
# make sure BuildArch comes *after* patches, to ensure %%autosetup works right # make sure BuildArch comes *after* patches, to ensure %%autosetup works right
# http://bugzilla.redhat.com/1084309 # http://bugzilla.redhat.com/1084309
@ -107,6 +108,10 @@ make install DESTDIR=%{buildroot}
%changelog %changelog
* Tue Jul 25 2023 Rafael Guterres Jeffman <rjeffman@redhat.com> - 1.1.3-15
- Use "grep -E" instead of the obsoleted "egrep"
Resolves: BZ#2140197
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-14 * Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild