GNOME Bugzilla – Bug 651219
fix path to true(1) on OpenBSD
Last modified: 2011-06-06 00:48:31 UTC
Created attachment 188731 [details] [review] true(1) is under /usr/bin on OpenBSD All is in the subject :)
Review of attachment 188731 [details] [review]: You guys appear to have a default of simply inserting #ifdef __OpenBSD__, which is annoying. The default thought process should be "how can I fix this problem elegantly?" Where "elegantly" means we likely won't have to also take an #ifdef for NetBSD or whatever too. In this case - system() searches $PATH, so why don't we just take out the path prefix?
Sorry I didn't mean to upset you. It was hard-coded in the first place which was not "elegant" either. I was just trying to be consistent with the history of the code.
Created attachment 188769 [details] [review] Don't hardcode path to true(1).
Thanks. The following fix has been pushed: 2ee470a Don't hardcode path to true(1).
Created attachment 188772 [details] [review] Don't hardcode path to true(1). true(1) is not always installed under /bin so leave system() find it in the PATH.
Review of attachment 188769 [details] [review]: Not upset; I just take pride in good code =)
Thanks on behalf of MacPorts for fixing this. We've been having to patch it locally for years.