{"thread":{"id":"2050","subject":"no \"uname -o\" on Mac OSX","startedAt":"2005-10-09T10:39:40Z","lastAt":"2005-10-09T19:34:35Z","messageCount":4,"participants":["Randal L. Schwartz","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"9854","messageId":"86k6gnm0sz.fsf@blue.stonehenge.com","threadId":"2050","inReplyTo":null,"subject":"no \"uname -o\" on Mac OSX","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2005-10-09T10:39:40Z","receivedAt":"2005-10-09T10:39:40Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":"\nRecently, a change was made to git/Makefile to invoke \"uname -o\".\nThis isn't portable to OSX/Darwin.  Is there a chance this information\ncan be obtained some other way, or not invoked on darwni?\n\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nPerl/Unix/security consulting, Technical writing, Comedy, etc. etc.\nSee PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!\n"},{"id":"9861","messageId":"7voe5yebjv.fsf@assigned-by-dhcp.cox.net","threadId":"2050","inReplyTo":"86k6gnm0sz.fsf@blue.stonehenge.com","subject":"Re: no \"uname -o\" on Mac OSX","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-10-09T19:27:00Z","receivedAt":"2005-10-09T19:27:00Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"merlyn@stonehenge.com (Randal L. Schwartz) writes:\n\n> Recently, a change was made to git/Makefile to invoke \"uname -o\".\n> This isn't portable to OSX/Darwin.  Is there a chance this information\n> can be obtained some other way, or not invoked on darwni?\n\nPeter, I noticed the same on Solaris recently.\n\nThe following seems to work but is quite yucky, and I prefer\nsomebody to come up with a better alternative.\n\n    ------------\nMakefile: 'uname -o' is not portable.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n---\ndiff --git a/Makefile b/Makefile\nindex 7ba3eeb..ba048cb 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -180,7 +180,7 @@ ifeq ($(shell uname -s),SunOS)\n \tTAR = gtar\n \tPLATFORM_DEFINES += -D__EXTENSIONS__\n endif\n-ifeq ($(shell uname -o),Cygwin)\n+ifeq ($(shell sh -c 'uname -o 2>/dev/null || echo not'),Cygwin)\n \tNO_STRCASESTR = YesPlease\n \tNEEDS_LIBICONV = YesPlease\n \tNO_IPV6 = YesPlease\n"},{"id":"9862","messageId":"864q7qlc77.fsf@blue.stonehenge.com","threadId":"2050","inReplyTo":"7voe5yebjv.fsf@assigned-by-dhcp.cox.net","subject":"Re: no \"uname -o\" on Mac OSX","fromName":"Randal L. Schwartz","fromEmail":"merlyn@stonehenge.com","sentAt":"2005-10-09T19:31:08Z","receivedAt":"2005-10-09T19:31:08Z","isPatch":false,"sender":{"key":"merlyn@stonehenge.com","avatar":"https://gravatar.com/avatar/dc528d210743ff0333e6213f9ee7b33b23f1b7bc1f3c5a8c2d819074ecd7ab19?d=mp&s=160"},"body":">>>>> \"Junio\" == Junio C Hamano <junkio@cox.net> writes:\n\nJunio> Peter, I noticed the same on Solaris recently.\n\nJunio> The following seems to work but is quite yucky, and I prefer\nJunio> somebody to come up with a better alternative.\n\nHow about a chain of elsif's?\n\nDoesn't make support that?\n\nI mean, when you know it's Darwin, no point in checking if it's OpenBSD. :)\n\n-- \nRandal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095\n<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>\nPerl/Unix/security consulting, Technical writing, Comedy, etc. etc.\nSee PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!\n"},{"id":"9864","messageId":"7vfyraeb78.fsf@assigned-by-dhcp.cox.net","threadId":"2050","inReplyTo":"864q7qlc77.fsf@blue.stonehenge.com","subject":"Re: no \"uname -o\" on Mac OSX","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-10-09T19:34:35Z","receivedAt":"2005-10-09T19:34:35Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"merlyn@stonehenge.com (Randal L. Schwartz) writes:\n\n> How about a chain of elsif's?\n\nMakes much more sense.  Thanks.\n"}]}