public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Florian Weimer <fweimer@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/bear] epel10: Port tests to C99
Date: Sat, 11 Jul 2026 02:31:36 GMT	[thread overview]
Message-ID: <178373709677.1.8514208459440032656.rpms-bear-bf990708b63a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/bear
Branch : epel10
Commit : bf990708b63adc649d8d9d170c00871a881ffa17
Author : Florian Weimer <fweimer@redhat.com>
Date   : 2023-04-15T19:39:22+02:00
Stats  : +34/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/bear/c/bf990708b63adc649d8d9d170c00871a881ffa17?branch=epel10

Log:
Port tests to C99

---
diff --git a/bear-c99.patch b/bear-c99.patch
new file mode 100644
index 0000000..a6405f6
--- /dev/null
+++ b/bear-c99.patch
@@ -0,0 +1,33 @@
+Avoid implicit function declarations in tests, for C99 compatibility
+
+Include <stdio.h> for printf and define _GNU_SOURCE for execvpe.
+
+Future compilers will not support implicit function declartions by
+default, causing these tests to fail to build.
+
+Submitted upstream: <https://github.com/rizsotto/Bear/pull/521>
+
+diff --git a/test/cases/intercept/preload/errno_reset.c b/test/cases/intercept/preload/errno_reset.c
+index c9c82bf6ef727864..82821f3ef0564cdb 100644
+--- a/test/cases/intercept/preload/errno_reset.c
++++ b/test/cases/intercept/preload/errno_reset.c
+@@ -5,6 +5,7 @@
+ #include <stdlib.h>
+ #include <errno.h>
+ #include <string.h>
++#include <stdio.h>
+ 
+ int main()
+ {
+diff --git a/test/cases/intercept/preload/posix/execvpe/success.c b/test/cases/intercept/preload/posix/execvpe/success.c
+index 0b4b66d0ce16587e..9017be6cfbcc8e3f 100644
+--- a/test/cases/intercept/preload/posix/execvpe/success.c
++++ b/test/cases/intercept/preload/posix/execvpe/success.c
+@@ -8,6 +8,7 @@
+ #include "config.h"
+ 
+ #if defined HAVE_UNISTD_H
++#define _GNU_SOURCE
+ #include <unistd.h>
+ #endif
+ 

diff --git a/bear.spec b/bear.spec
index c168d73..a89cdee 100644
--- a/bear.spec
+++ b/bear.spec
@@ -6,6 +6,7 @@ Summary:        Tool that generates a compilation database for clang tooling
 License:        GPL-3.0-or-later
 URL:            https://github.com/rizsotto/%{name}
 Source:         %{url}/archive/%{version}/%{name}-%{version}.tar.gz
+Patch0: bear-c99.patch
 
 BuildRequires:  cmake
 BuildRequires:  cmake(fmt)

                 reply	other threads:[~2026-07-11  2:31 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178373709677.1.8514208459440032656.rpms-bear-bf990708b63a@fedoraproject.org \
    --to=fweimer@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox