After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 685356 - Adjust egrep(1) usage to be more portable
Adjust egrep(1) usage to be more portable
Status: RESOLVED FIXED
Product: eog-plugins
Classification: Core
Component: general
3.6.x
Other OpenBSD
: Normal normal
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-10-03 06:46 UTC by Jasper Lievisse Adriaanse
Modified: 2019-02-22 03:17 UTC
See Also:
GNOME target: ---
GNOME version: 3.5/3.6


Attachments
Adjust egrep(1) usage to be more portable (438 bytes, patch)
2012-10-03 06:46 UTC, Jasper Lievisse Adriaanse
rejected Details | Review

Description Jasper Lievisse Adriaanse 2012-10-03 06:46:13 UTC
Created attachment 225666 [details] [review]
Adjust egrep(1) usage to be more portable

The egrep(1) usage in the configure script of eog-plugins currently the check_plugin_defined() function to always return 1. The attached patch makes the egrep(1) invocation a lot more portable across grep implementations (e.g. BSD).

Would it be OK to push this patch?
Comment 1 Felix Riemann 2012-10-03 10:21:10 UTC
Review of attachment 225666 [details] [review]:

Well, I am not sure I'd call the misusage "stupid", rather an oversight.

::: configure.ac.orig
@@ +176,2 @@
 check_plugin_defined() {
+	if echo "$2" | egrep "$1" > /dev/null;

That's not exactly the same. As it would accept partial matches as well (e.g. a plugin called "epostr" would match when searching for "postr").

How about grep -w "$1"? Would that work on BSD?
Comment 2 Jasper Lievisse Adriaanse 2012-10-03 10:39:34 UTC
Fair enough, that was quite a stupid oversight on my behalf ;-)

using grep -w "$1" works fine here; can I push that change?
Comment 3 Felix Riemann 2012-10-03 10:55:49 UTC
(In reply to comment #2)
> Fair enough, that was quite a stupid oversight on my behalf ;-)
> 
> using grep -w "$1" works fine here; can I push that change?

Very well then, feel free to push. Thanks for noticing. :)
Comment 4 Jasper Lievisse Adriaanse 2012-10-03 11:31:21 UTC
Thanks.