From 8c5931cdf6364127841c4bf3372eecbe246f0a83 Mon Sep 17 00:00:00 2001 From: luofeng14 Date: Mon, 11 Mar 2024 03:31:28 +0000 Subject: [PATCH] support clang build Signed-off-by: luofeng14 (cherry picked from commit f2213b660ec16746910d6e6ff9e813398b19b073) --- 0072-support-clang-build.patch | 23 +++++++++++++++++++++++ vsftpd.spec | 6 +++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 0072-support-clang-build.patch diff --git a/0072-support-clang-build.patch b/0072-support-clang-build.patch new file mode 100644 index 0000000..701c52f --- /dev/null +++ b/0072-support-clang-build.patch @@ -0,0 +1,23 @@ +From 82e326f7edba4ea35bf4d5488664947e36de5de7 Mon Sep 17 00:00:00 2001 +From: luofeng +Date: Mon, 11 Mar 2024 11:12:24 +0800 +Subject: [PATCH] support clang build + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 0f7411c..3f736e2 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,5 +1,5 @@ + # Makefile for systems with GNU tools +-CC = gcc ++CC ?= gcc + INSTALL = install + IFLAGS = -idirafter dummyinc + #CFLAGS = -g +-- +2.19.1 + diff --git a/vsftpd.spec b/vsftpd.spec index b1a9c7c..28877f6 100644 --- a/vsftpd.spec +++ b/vsftpd.spec @@ -2,7 +2,7 @@ Name: vsftpd Version: 3.0.5 -Release: 1 +Release: 2 Summary: It is a secure FTP server for Unix-like systems # OpenSSL link exception License: GPLv2 with exceptions @@ -87,6 +87,7 @@ Patch68: 0002-Drop-an-unused-global-variable.patch Patch69: 0001-Remove-a-hint-about-the-ftp_home_dir-SELinux-boolean.patch Patch70: fix-str_open.patch Patch71: vsftpd-3.0.5-enable_wc_logs-replace_unprintable_with_hex.patch +Patch72: 0072-support-clang-build.patch Patch9000: bugfix-change-the-default-value-of-tunable_reverse_lookup_e.patch @@ -153,6 +154,9 @@ cp -f %{SOURCE1} ./ %{_mandir}/man8/vsftpd.* %changelog +* Fri Mar 1 2024 luofeng - 3.0.5-2 +- support clang build + * Thu Nov 17 2022 zhouyihang - 3.0.5-1 - Type:requirement - ID:NA -- Gitee