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

Re: [PATCH] merge-file: fix build warning with gcc 4.8.5

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jul 30, 2022, 01:46 UTC
Message-ID
<YuSNhhRVpg2oT6ry@tapette.crustytoothpaste.net>
In-Reply-To
<YuR5Jado2LrtZUjP@danh.dev>
On 2022-07-30 at 00:19:49, Đoàn Trần Công Danh wrote:
Show 9 quoted lines
> On 2022-07-29 15:53:53-0400, Jeff King <peff@peff.net> wrote:
> > Tested on a debian jessie chroot using gcc-4.8 and 4.9. Though note that
> > you also need to manually specify -std=gnu99 to get it to work at all
> > with those compilers these days! So I kind of wonder if it's even worth
> > catering to their warnings automatically.
> 
> Well, config.mak.uname automatically adds -std=c99 for RHEL 7 and
> CentOS7. Can we add the same things for Debian? Or should we just
> remove both?

I don't think we can do that, since Debian kernels don't include a distinguishing pattern like that[0]. Also, Debian jessie doesn't have a full set of security support, unlike CentOS 7, and thus I would argue we probably wouldn't want to support it anyway.

My guess is that Peff used jessie because he uses Debian and it's easier for him to set up than CentOS 7, not because we should use it as an intentional target.

Personally, although I don't use RHEL and company in either my personal or professional life anymore, I think it's probably worth providing a modicum of support to because they're very common, at least as long as there are freely available clones with security support (e.g., CentOS and Rocky Linux) that we can test against.

All that to say that I think we don't need to change config.mak.uname and can rely on folks just setting -std=c99 if need be.

[0] Okay, there is a pattern, but it doesn't include a fixed string and neither shell nor make are ideal for pattern matching on it.

-- 
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
Previous: Jeff KingNext: Jeff King
Message 10 of 11 in “merge-file: fix build warning with gcc 4.8.5”
  1. merge-file: fix build warning with gcc 4.8.5Đoàn Trần Công Danh, Jul 29, 2022
  2. Junio C HamanoJul 29, 2022
  3. Jeff KingJul 29, 2022
  4. Jeff KingJul 29, 2022
  5. Eric SunshineJul 29, 2022
  6. Jeff KingJul 29, 2022
  7. Junio C HamanoJul 29, 2022
  8. Đoàn Trần Công DanhJul 30, 2022
  9. Jeff KingJul 30, 2022
  10. brian m. carlsonJul 30, 2022
  11. Jeff KingJul 30, 2022

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.