6 Star 0 Fork 7

src-openEuler/booth

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Build-Remove-build-time-support-for-running-splint.patch 1.76 KB
一键复制 编辑 原始数据 按行查看 历史
From 6f3dee6613da932062de3c2fad00e1e472601585 Mon Sep 17 00:00:00 2001
From: Chris Lumens <clumens@redhat.com>
Date: Wed, 26 Jun 2024 15:44:56 -0400
Subject: [PATCH 45/50] Build: Remove build-time support for running splint.
This is a C linter that sees commits only very seldomly, and there's no
references in the booth git log to any commits to fix problems by
splint. This leads me to believe that probably no one is actually
running it.
---
Makefile.am | 3 ---
configure.ac | 5 -----
src/Makefile.am | 3 ---
3 files changed, 11 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 1148203..1115043 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -119,9 +119,6 @@ uninstall-local:
test: check
-lint:
- for dir in src; do make -C $$dir lint; done
-
clean-local:
rm -rf test/*.pyc test/__pycache__ test/runtests.py test/boothtestenv.py cov* $(SPEC)
-rm -rf booth-*.rpm $(TARFILE)
diff --git a/configure.ac b/configure.ac
index 6b86bbe..3a8ebec 100644
--- a/configure.ac
+++ b/configure.ac
@@ -180,9 +180,6 @@ cc_supports_flag() {
## local defines
PACKAGE_FEATURES=""
-LINT_FLAGS="-weak -unrecog +posixlib +ignoresigns -fcnuse \
- -badflag -D__gnuc_va_list=va_list -D__attribute\(x\)="
-
# local options
AC_ARG_ENABLE([fatal-warnings],
@@ -475,8 +472,6 @@ LIBS="$LIBS $XML_LIBS $LIBGNUTLS_LIBS"
# substitute what we need:
AC_SUBST([INITDDIR])
-AC_SUBST([LINT_FLAGS])
-
BOOTH_LIB_DIR=${localstatedir}/lib/booth
BOOTH_CORE_DIR=${localstatedir}/lib/booth/cores
BOOTHSYSCONFDIR=${sysconfdir}/booth
diff --git a/src/Makefile.am b/src/Makefile.am
index 4023791..b3c35bb 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -53,6 +53,3 @@ endif
if COREDUMP_NURSING
boothd_LDADD += -lplumb
endif
-
-lint:
- -splint $(INCLUDES) $(LINT_FLAGS) $(CFLAGS) *.c
--
2.25.1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/booth.git
git@gitee.com:src-openeuler/booth.git
src-openeuler
booth
booth
master

搜索帮助