[packages/flawfinder] Up to 2.0.20
arekm
arekm at pld-linux.org
Fri Nov 27 21:38:43 CET 2026
commit e5f2e4e2b8c18cbf337a914e87dc2ecf7359db73
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 15:07:58 2026 +0100
Up to 2.0.20
Fixes CVE-2026-48813.
flawfinder-python.patch | 16 ----------------
flawfinder.spec | 29 +++++++++++++++++++----------
2 files changed, 19 insertions(+), 26 deletions(-)
---
diff --git a/flawfinder.spec b/flawfinder.spec
index ac1db83..66e450f 100644
--- a/flawfinder.spec
+++ b/flawfinder.spec
@@ -1,18 +1,21 @@
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
Summary: Examines C/C++ source code for security flaws
Summary(pl.UTF-8): Wyszukiwarka zagrożeń bezpieczeństwa w kodzie C/C++
Name: flawfinder
-Version: 2.0.4
+Version: 2.0.20
Release: 1
-License: GPL
+License: GPL v2+
Group: Development/Tools
-Source0: http://www.dwheeler.com/flawfinder/%{name}-%{version}.tar.gz
-# Source0-md5: 60f3a87102de4acdb79116ad9a744bec
-Patch0: %{name}-python.patch
-URL: http://www.dwheeler.com/flawfinder/
+Source0: https://dwheeler.com/flawfinder/%{name}-%{version}.tar.gz
+# Source0-md5: f580d40c80a89a8dfcb19cd27061cc01
+URL: https://dwheeler.com/flawfinder/
BuildRequires: ghostscript
BuildRequires: ghostscript-fonts-std
BuildRequires: man-db
-Requires: python3
+%{?with_tests:BuildRequires: python3}
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -27,16 +30,22 @@ niebezpieczne fragmenty.
%prep
%setup -q
-%patch -P0 -p1
+
+# upstream uses "env python3"
+%{__sed} -i -e '1s,^#!.*python3,#!%{__python3},' flawfinder.py
%build
%{__make}
+%if %{with tests}
+%{__make} test
+%endif
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
-install flawfinder $RPM_BUILD_ROOT%{_bindir}
+install flawfinder.py $RPM_BUILD_ROOT%{_bindir}/flawfinder
install flawfinder.1 $RPM_BUILD_ROOT%{_mandir}/man1
%clean
@@ -44,6 +53,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc ChangeLog README flawfinder.pdf correct-results*
+%doc ChangeLog README.md flawfinder.pdf
%attr(755,root,root) %{_bindir}/flawfinder
%{_mandir}/man1/*
diff --git a/flawfinder-python.patch b/flawfinder-python.patch
deleted file mode 100644
index 2b5c762..0000000
--- a/flawfinder-python.patch
+++ /dev/null
@@ -1,16 +0,0 @@
---- flawfinder-1.27.orig/flawfinder 2026-05-21 01:35:24.902391709 +0200
-+++ flawfinder-1.27/flawfinder 2026-05-21 01:35:50.494559176 +0200
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/bin/python3
-
- """flawfinder: Find potential security flaws ("hits") in source code.
- Usage:
---- flawfinder-1.27.orig/setup.py 2026-05-21 01:35:24.902299908 +0200
-+++ flawfinder-1.27/setup.py 2026-05-21 01:35:50.494905114 +0200
-@@ -1,4 +1,4 @@
--#!/usr/bin/env python
-+#!/usr/bin/python3
-
- # This is the setup.py script for "flawfinder" by David A. Wheeler.
- # My thanks to Jon Nelson, who created the initial setup.py script.
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/flawfinder.git/commitdiff/e5f2e4e2b8c18cbf337a914e87dc2ecf7359db73
More information about the pld-cvs-commit
mailing list