git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Makefile: update defaults for modern Cygwin

From
Eric Blake <eblake@redhat.com>
Date
Apr 2, 2010, 14:03 UTC
Message-ID
<4BB5F94F.3090403@redhat.com>
In-Reply-To
<7vaatmmju9.fsf@alter.siamese.dyndns.org>
On 04/02/2010 12:47 AM, Junio C Hamano wrote:
> Thanks; as I lack Cygwin environment to test this myself, I'll apply this
> directly on 'master' and see if anybody screams ;-)
Thanks.
> 
>> +	ifneq ($(wordlist 1, 2, $(subst ., ,$(uname_R))),1 7)
> 
> Do we need to update this part when Cygwin 1.8 is released?

Odd numbers are public cygwin releases (1.5, 1.7), even numbers are Red Hat releases (1.6, 1.8), so cygwin 1.8 already does exist for Red Hat licensed customers. It will probably be years before cygwin 1.9/1.10 exists, at which point 1.5/1.6 will be such a distant memory that we could just delete this block altogether at that time.

>  Replacing
> this with "ifeq(... ,1 5)" may not be an improvement either, unless we are
> sure that nobody is using 1.4 or older, but I wonder if somebody else have
> better ideas?

Nothing short of using $(shell) and doing some actual computation on the string in $(uname_R). But that's not too hard, if people think it's worth it; speak up if you want me to rework it along those lines, otherwise I'll assume that things are good enough as-is.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org
Previous: Junio C HamanoNext: Jonathan Nieder
Message 3 of 11 in “Makefile: update defaults for modern Cygwin”
  1. Makefile: update defaults for modern CygwinEric Blake, Apr 1, 2010
  2. Junio C HamanoApr 2, 2010
  3. Eric BlakeApr 2, 2010
  4. Jonathan NiederApr 3, 2010
  5. Junio C HamanoApr 3, 2010
  6. Teach mailinfo %< as an alternative scissors markJonathan Nieder, Apr 3, 2010
  7. Eric BlakeApr 5, 2010
  8. Jonathan NiederApr 5, 2010
  9. Eric BlakeApr 5, 2010
  10. Makefile: avoid a fork in Cygwin version checkJonathan Nieder, Apr 5, 2010
  11. Andreas SchwabApr 5, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.