ports/188737: fix for security/krb5 on -stable
Alfred Perlstein
alfred at freebsd.org
Thu Apr 17 17:20:00 UTC 2014
>Number: 188737
>Category: ports
>Synopsis: fix for security/krb5 on -stable
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 17 17:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator: Alfred Perlstein
>Release: FreeBSD 10.0-STABLE amd64
>Organization:
Norse Corp
>Environment:
FreeBSD 10.0-STABLE #1 07966b6(freebsd-local/stable_10): Tue Apr 15 13:41:12 UTC 2014
>Description:
Port fails because RTM_OLDADD and RTM_OLDDEL were removed from -stable.
Deal with RTM_OLDADD and RTM_OLDDEL removal.
FreeBSD removed those defines in the stable branch at commit:a25c3972
so work around it.
>How-To-Repeat:
>Fix:
commit 228525890c80395c46797ebcc022c02d739ff185
Author: Alfred Perlstein <ap at norse-corp.com>
Date: Thu Apr 17 08:20:56 2014 +0000
Deal with RTM_OLDADD and RTM_OLDDEL removal.
FreeBSD removed those defines in the stable branch at commit:a25c3972
so work around it.
diff --git a/security/krb5/files/patch-lib__apputils__net-server.c b/security/krb5/files/patch-lib__apputils__net-server.c
new file mode 100644
index 0000000..01d0298
--- /dev/null
+++ b/security/krb5/files/patch-lib__apputils__net-server.c
@@ -0,0 +1,28 @@
+--- ./lib/apputils/net-server.c.orig 2014-04-17 08:07:05.144912855 +0000
++++ ./lib/apputils/net-server.c 2014-04-17 08:07:59.603908167 +0000
+@@ -992,8 +992,12 @@
+ case RTM_NEWADDR: return "RTM_NEWADDR";
+ case RTM_DELADDR: return "RTM_DELADDR";
+ case RTM_IFINFO: return "RTM_IFINFO";
++#ifdef RTM_OLDADD
+ case RTM_OLDADD: return "RTM_OLDADD";
++#endif
++#ifdef RTM_OLDDEL
+ case RTM_OLDDEL: return "RTM_OLDDEL";
++#endif
+ case RTM_RESOLVE: return "RTM_RESOLVE";
+ #ifdef RTM_NEWMADDR
+ case RTM_NEWMADDR: return "RTM_NEWMADDR";
+@@ -1026,8 +1030,12 @@
+ case RTM_NEWADDR:
+ case RTM_DELADDR:
+ case RTM_IFINFO:
++#ifdef RTM_OLDADD
+ case RTM_OLDADD:
++#endif
++#ifdef RTM_OLDDEL
+ case RTM_OLDDEL:
++#endif
+ /*
+ * Some flags indicate routing table updates that don't
+ * indicate local address changes. They may come from
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list