diff --git a/bugfix-fix-clang.patch b/bugfix-fix-clang.patch new file mode 100644 index 0000000000000000000000000000000000000000..6acadc45249e25c923fe907d6c96953693ccad1a --- /dev/null +++ b/bugfix-fix-clang.patch @@ -0,0 +1,13 @@ +diff -u -r dhcp-4.4.3/client/dhclient.c dhcp-4.4.3/client/dhclient.c +--- dhcp-4.4.3/client/dhclient.c 2023-06-28 13:24:44.000000000 +0800 ++++ dhcp-4.4.3/client/dhclient.c 2023-06-28 13:26:34.000000000 +0800 +@@ -49,6 +49,9 @@ + * Defined in stdio.h when _GNU_SOURCE is set, but we don't want to define + * that when building ISC code. + */ ++#ifdef asprintf ++#undef asprintf ++#endif + extern int asprintf(char **strp, const char *fmt, ...); + + TIME default_lease_time = 43200; /* 12 hours... */ diff --git a/dhcp.spec b/dhcp.spec index fa9ffb6a3fdb23889e01c25dc2eb86af68c38672..9304c99aabe39db57180fdeccb881d793e399881 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -3,7 +3,7 @@ Name: dhcp Version: 4.4.3 -Release: 2 +Release: 3 Summary: Dynamic host configuration protocol software #Please don't change the epoch on this package Epoch: 12 @@ -59,6 +59,7 @@ Patch38: backport-Fix-CVE-2021-25220.patch Patch39: backport-Fix-CVE-2022-2928.patch Patch40: backport-Fix-CVE-2022-2929.patch Patch41: Revert-correcting-the-logic-in-dhclient.patch +Patch42: bugfix-fix-clang.patch BuildRequires: gcc autoconf automake libtool openldap-devel krb5-devel libcap-ng-devel BuildRequires: systemd systemd-devel @@ -307,6 +308,12 @@ exit 0 %{_mandir}/man3/omapi.3.gz %changelog +* Fri Sep 08 2023 yoo - 12:4.4.3-3 +- Type:bugfix +- ID: +- SUG:restart +- DESC:fix clang build error + * Thu Jun 29 2023 renmingshuai - 12:4.4.3-2 - Type:bugfix - ID: