From 30911cd248847d56b6e819aea248587ee17227e3 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Dec 11 2022 19:39:29 +0000 Subject: Port to C99, run autoreconf Related to: --- diff --git a/ibus-fbterm-c99.patch b/ibus-fbterm-c99.patch new file mode 100644 index 0000000..7ed9f82 --- /dev/null +++ b/ibus-fbterm-c99.patch @@ -0,0 +1,90 @@ +configure.ac: Use AC_USE_SYSTEM_EXTENSIONS + +And to make it effective, include at the start of C files +(except those compiled from Vala). This is necessary to obtain a +declaration of ptsname in . + +Also declare the AS_* macros for autoconf 2.71 compatibility. + +Submitted upstream: + +diff --git a/backend/fbio.c b/backend/fbio.c +index 2593b6c73021381d..803c3efa061c4f16 100644 +--- a/backend/fbio.c ++++ b/backend/fbio.c +@@ -17,6 +17,8 @@ + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ ++#include ++ + #include + + #include +diff --git a/backend/fbshell.c b/backend/fbshell.c +index 12f55542f1c35029..809d013160c175fd 100644 +--- a/backend/fbshell.c ++++ b/backend/fbshell.c +@@ -17,6 +17,8 @@ + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ ++#include ++ + #include + + #define _XOPEN_SOURCE +diff --git a/backend/fbshellman.c b/backend/fbshellman.c +index e8bf34f083914a95..4d8a147ff7d90a93 100644 +--- a/backend/fbshellman.c ++++ b/backend/fbshellman.c +@@ -17,6 +17,8 @@ + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ ++#include ++ + #include + + #include +diff --git a/backend/fbterm.c b/backend/fbterm.c +index e313bd1c35f3ff2b..114b16dc7f39a221 100644 +--- a/backend/fbterm.c ++++ b/backend/fbterm.c +@@ -17,6 +17,8 @@ + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ ++#include ++ + #include + + #include /* MINOR() */ +diff --git a/backend/fbtty.c b/backend/fbtty.c +index e8fb601711667b54..6b3a5cb616723487 100644 +--- a/backend/fbtty.c ++++ b/backend/fbtty.c +@@ -17,6 +17,8 @@ + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ ++#include ++ + #include + + #include +diff --git a/configure.ac b/configure.ac +index 01d909891415ac91..ac1eb641ac1e382e 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -7,8 +7,10 @@ AC_INIT([ibus-fbterm], [1.0.1], + [ibus-fbterm]) + AM_INIT_AUTOMAKE + AC_CONFIG_HEADERS([config.h]) ++AC_USE_SYSTEM_EXTENSIONS + + # Checks for programs. ++m4_pattern_allow([^AS_(VERSION|NANO)$]) + AS_VERSION + AS_NANO + AC_PROG_CC diff --git a/ibus-fbterm.spec b/ibus-fbterm.spec index 3c37072..d6d5537 100644 --- a/ibus-fbterm.spec +++ b/ibus-fbterm.spec @@ -1,15 +1,17 @@ Name: ibus-fbterm Version: 1.0.1 -Release: 16%{?dist} +Release: 17%{?dist} Summary: IBus front-end for fbterm License: GPL-3.0-only URL: https://github.com/fujiwarat/ibus-fbterm Source0: https://github.com/fujiwarat/ibus-fbterm/releases/download/%{version}/%{name}-%{version}.tar.gz +Patch0: ibus-fbterm-c99.patch Requires: ibus >= 1.5, fbterm >= 1.6 BuildRequires: gcc BuildRequires: ibus >= 1.5, ibus-devel >= 1.5 BuildRequires: make +BuildRequires: autoconf automake %description ibus-fbterm is a input method for FbTerm based on IBus. @@ -18,9 +20,10 @@ ibus-fbterm is a input method for FbTerm based on IBus. fbterm-udevrules package. %prep -%setup -q +%autosetup -p1 %build +autoreconf -iv %configure \ --prefix=%{_prefix} %__make %{?_smp_mflags} @@ -35,6 +38,10 @@ ibus-fbterm is a input method for FbTerm based on IBus. %{_mandir}/man1/* %changelog +* Sun Dec 11 2022 Florian Weimer - 1.0.1-17 +- Port to C99 +- Run autoreconf during the build. + * Wed Nov 16 2022 Takao Fujiwara - 1.0.1-16 - Migrate license tag to SPDX