Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Dec 2024 15:03:24 GMT
From:      Matthias Andree <mandree@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: eedecabe7d2e - main - dns/dnsmasq-devel: update to 2.91test4.
Message-ID:  <202412311503.4BVF3Ovt074598@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mandree:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eedecabe7d2e815e474947829811f849f9208b71

commit eedecabe7d2e815e474947829811f849f9208b71
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2024-12-31 15:01:00 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2024-12-31 15:03:10 +0000

    dns/dnsmasq-devel: update to 2.91test4.
    
    Upstream Git history since our 2.91test3:
    
    * 5ef6c8c 2024-12-30 | Extend fcb40ee73d04e1ffd46f8c19e537f118526f57ea to cover "Make install-i18n" (tag: v2.91test4, origin/master, origin/HEAD) [Simon Kelley]
    * 7c348a0 2024-12-24 | Extend d578da0665c496ca709c25ae8d6963d1bff141c4 to Linux-only code. [Simon Kelley]
    * d578da0 2024-12-24 | Fix FTBFS when using -pedantic compiler flag. [Matthias Andree]
    * 8949ef4 2024-12-24 | Update DE translation. [Conrad Kostecki]
    
    The patches I shipped in earlier 2.91test2/test3 have been integrated
    upstream with d578da0 and are no longer needed.
    
    Let's swap FreeBSD's distcache in first place because the upstream
    master site is slow, let's relieve it a bit.
---
 dns/dnsmasq-devel/Makefile                    |  6 +-
 dns/dnsmasq-devel/distinfo                    |  6 +-
 dns/dnsmasq-devel/files/patch-src_arp.c       | 11 ----
 dns/dnsmasq-devel/files/patch-src_blockdata.c | 11 ----
 dns/dnsmasq-devel/files/patch-src_dnsmasq.h   | 20 -------
 dns/dnsmasq-devel/files/patch-src_edns0.c     | 11 ----
 dns/dnsmasq-devel/files/patch-src_forward.c   | 11 ----
 dns/dnsmasq-devel/files/patch-src_loop.c      | 11 ----
 dns/dnsmasq-devel/files/patch-src_network.c   | 11 ----
 dns/dnsmasq-devel/files/patch-src_outpacket.c | 52 ------------------
 dns/dnsmasq-devel/files/patch-src_rfc3315.c   | 79 ---------------------------
 dns/dnsmasq-devel/files/patch-src_util.c      | 11 ----
 12 files changed, 6 insertions(+), 234 deletions(-)

diff --git a/dns/dnsmasq-devel/Makefile b/dns/dnsmasq-devel/Makefile
index 090cd2659f87..e5f3f775ccbb 100644
--- a/dns/dnsmasq-devel/Makefile
+++ b/dns/dnsmasq-devel/Makefile
@@ -1,13 +1,13 @@
 PORTNAME=	dnsmasq
-DISTVERSION=	2.91test3 # remember to bump PORTEPOCH when going from test to rc!
+DISTVERSION=	2.91test4 # remember to bump PORTEPOCH when going from test to rc!
 # Leave the PORTREVISION in even if 0 to avoid accidental PORTEPOCH bumps:
 PORTREVISION=	0
 PORTEPOCH=	5
 CATEGORIES=	dns
 #MASTER_SITES=	https://www.thekelleys.org.uk/dnsmasq/release-candidates/ \
 #		LOCAL/mandree/
-MASTER_SITES=	https://www.thekelleys.org.uk/dnsmasq/test-releases/ \
-		LOCAL/mandree/
+MASTER_SITES=	LOCAL/mandree/ \
+		https://www.thekelleys.org.uk/dnsmasq/test-releases/
 PKGNAMESUFFIX=	-devel
 
 MAINTAINER=	mandree@FreeBSD.org
diff --git a/dns/dnsmasq-devel/distinfo b/dns/dnsmasq-devel/distinfo
index 1f0b33e2e251..fd36946323e3 100644
--- a/dns/dnsmasq-devel/distinfo
+++ b/dns/dnsmasq-devel/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1735506171
-SHA256 (dnsmasq-2.91test3.tar.xz) = 0a7a0acff58125177bcbfc0aa972018458486b1cf3dee0e8f29b94c11c276251
-SIZE (dnsmasq-2.91test3.tar.xz) = 571112
+TIMESTAMP = 1735656297
+SHA256 (dnsmasq-2.91test4.tar.xz) = 3766f12ed5c9e845f8bf110767d77585670779a9d8f7e0596e86c5836ec4cb88
+SIZE (dnsmasq-2.91test4.tar.xz) = 571648
diff --git a/dns/dnsmasq-devel/files/patch-src_arp.c b/dns/dnsmasq-devel/files/patch-src_arp.c
deleted file mode 100644
index bfdedbfa1d6f..000000000000
--- a/dns/dnsmasq-devel/files/patch-src_arp.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/arp.c.orig	2024-12-20 21:57:21 UTC
-+++ src/arp.c
-@@ -35,7 +35,7 @@ static time_t last = 0;
- static struct arp_record *arps = NULL, *old = NULL, *freelist = NULL;
- static time_t last = 0;
- 
--static int filter_mac(int family, char *addrp, char *mac, size_t maclen, void *parmv)
-+static int filter_mac(int family, void *addrp, char *mac, size_t maclen, void *parmv)
- {
-   struct arp_record *arp;
- 
diff --git a/dns/dnsmasq-devel/files/patch-src_blockdata.c b/dns/dnsmasq-devel/files/patch-src_blockdata.c
deleted file mode 100644
index 4c60efc7a2b5..000000000000
--- a/dns/dnsmasq-devel/files/patch-src_blockdata.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/blockdata.c.orig	2024-12-20 21:57:21 UTC
-+++ src/blockdata.c
-@@ -193,7 +193,7 @@ void *blockdata_retrieve(struct blockdata *block, size
- {
-   size_t blen;
-   struct  blockdata *b;
--  void *new, *d;
-+  uint8_t *new, *d;
-   
-   static unsigned int buff_len = 0;
-   static unsigned char *buff = NULL;
diff --git a/dns/dnsmasq-devel/files/patch-src_dnsmasq.h b/dns/dnsmasq-devel/files/patch-src_dnsmasq.h
deleted file mode 100644
index 6e03d92098e6..000000000000
--- a/dns/dnsmasq-devel/files/patch-src_dnsmasq.h
+++ /dev/null
@@ -1,20 +0,0 @@
---- src/dnsmasq.h.orig	2024-12-20 21:57:21 UTC
-+++ src/dnsmasq.h
-@@ -339,7 +339,7 @@ union all_addr {
-   struct datablock {
-     unsigned short rrtype;
-     unsigned char datalen; /* also length of SOA in negative records. */
--    char data[];
-+    char data[1];
-   } rrdata;
- };
- 
-@@ -1667,7 +1667,7 @@ typedef union {
- 
- /* bpf.c or netlink.c */
- typedef union {
--	int (*af_unspec)(int family, char *addrp, char *mac, size_t maclen, void *parmv);
-+	int (*af_unspec)(int family, void *addrp, char *mac, size_t maclen, void *parmv);
- 	int (*af_inet)(struct in_addr local, int if_index, char *label, struct in_addr netmask, struct in_addr broadcast, void *vparam);
- 	int (*af_inet6)(struct in6_addr *local, int prefix, int scope, int if_index, int flags, unsigned int preferred, unsigned int valid, void *vparam);
- 	int (*af_local)(int index, unsigned int type, char *mac, size_t maclen, void *parm);
diff --git a/dns/dnsmasq-devel/files/patch-src_edns0.c b/dns/dnsmasq-devel/files/patch-src_edns0.c
deleted file mode 100644
index 31b72a560d1f..000000000000
--- a/dns/dnsmasq-devel/files/patch-src_edns0.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/edns0.c.orig	2024-12-20 21:57:21 UTC
-+++ src/edns0.c
-@@ -491,7 +491,7 @@ static size_t add_umbrella_opt(struct dns_header *head
- {
-   *cacheable = 0;
- 
--  struct umbrella_opt opt = {{"ODNS"}, UMBRELLA_VERSION, 0, {}};
-+  struct umbrella_opt opt = {{"ODNS"}, UMBRELLA_VERSION, 0, {0}};
-   u8 *u = &opt.fields[0];
-   int family = source->sa.sa_family;
-   int size = family == AF_INET ? INADDRSZ : IN6ADDRSZ;
diff --git a/dns/dnsmasq-devel/files/patch-src_forward.c b/dns/dnsmasq-devel/files/patch-src_forward.c
deleted file mode 100644
index ba9671d8c8b4..000000000000
--- a/dns/dnsmasq-devel/files/patch-src_forward.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/forward.c.orig	2024-12-20 21:57:21 UTC
-+++ src/forward.c
-@@ -3054,7 +3054,7 @@ static struct frec *lookup_frec(char *target, int clas
- }
- 
- /* Send query packet again, if we can. */
--void resend_query()
-+void resend_query(void)
- {
-   if (daemon->srv_save)
-     server_send(daemon->srv_save, daemon->fd_save,
diff --git a/dns/dnsmasq-devel/files/patch-src_loop.c b/dns/dnsmasq-devel/files/patch-src_loop.c
deleted file mode 100644
index f071e430b996..000000000000
--- a/dns/dnsmasq-devel/files/patch-src_loop.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/loop.c.orig	2024-12-20 21:57:21 UTC
-+++ src/loop.c
-@@ -19,7 +19,7 @@ static ssize_t loop_make_probe(u32 uid);
- #ifdef HAVE_LOOP
- static ssize_t loop_make_probe(u32 uid);
- 
--void loop_send_probes()
-+void loop_send_probes(void)
- {
-    struct server *serv;
-    struct randfd_list *rfds = NULL;
diff --git a/dns/dnsmasq-devel/files/patch-src_network.c b/dns/dnsmasq-devel/files/patch-src_network.c
deleted file mode 100644
index 2aa5a005df7b..000000000000
--- a/dns/dnsmasq-devel/files/patch-src_network.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/network.c.orig	2024-12-20 21:57:21 UTC
-+++ src/network.c
-@@ -647,7 +647,7 @@ static int iface_allowed_v4(struct in_addr local, int 
- /*
-  * Clean old interfaces no longer found.
-  */
--static void clean_interfaces()
-+static void clean_interfaces(void)
- {
-   struct irec *iface;
-   struct irec **up = &daemon->interfaces;
diff --git a/dns/dnsmasq-devel/files/patch-src_outpacket.c b/dns/dnsmasq-devel/files/patch-src_outpacket.c
deleted file mode 100644
index f491fd1052b5..000000000000
--- a/dns/dnsmasq-devel/files/patch-src_outpacket.c
+++ /dev/null
@@ -1,52 +0,0 @@
---- src/outpacket.c.orig	2024-12-20 21:57:21 UTC
-+++ src/outpacket.c
-@@ -23,7 +23,7 @@ void end_opt6(int container)
- 
- void end_opt6(int container)
- {
--   void *p = daemon->outpacket.iov_base + container + 2;
-+   uint8_t *p = (uint8_t *)daemon->outpacket.iov_base + container + 2;
-    u16 len = outpacket_counter - container - 4 ;
-    
-    PUTSHORT(len, p);
-@@ -50,11 +50,11 @@ void *expand(size_t headroom)
- 
- void *expand(size_t headroom)
- {
--  void *ret;
-+  uint8_t *ret;
- 
-   if (expand_buf(&daemon->outpacket, outpacket_counter + headroom))
-     {
--      ret = daemon->outpacket.iov_base + outpacket_counter;
-+      ret = (uint8_t *)daemon->outpacket.iov_base + outpacket_counter;
-       outpacket_counter += headroom;
-       return ret;
-     }
-@@ -65,7 +65,7 @@ int new_opt6(int opt)
- int new_opt6(int opt)
- {
-   int ret = outpacket_counter;
--  void *p;
-+  unsigned char *p;
- 
-   if ((p = expand(4)))
-     {
-@@ -88,7 +88,7 @@ void put_opt6_long(unsigned int val)
-   
- void put_opt6_long(unsigned int val)
- {
--  void *p;
-+  unsigned char *p;
-   
-   if ((p = expand(4)))  
-     PUTLONG(val, p);
-@@ -96,7 +96,7 @@ void put_opt6_short(unsigned int val)
- 
- void put_opt6_short(unsigned int val)
- {
--  void *p;
-+  uint8_t *p;
- 
-   if ((p = expand(2)))
-     PUTSHORT(val, p);   
diff --git a/dns/dnsmasq-devel/files/patch-src_rfc3315.c b/dns/dnsmasq-devel/files/patch-src_rfc3315.c
deleted file mode 100644
index 27be9efa08d9..000000000000
--- a/dns/dnsmasq-devel/files/patch-src_rfc3315.c
+++ /dev/null
@@ -1,79 +0,0 @@
---- src/rfc3315.c.orig	2024-12-20 21:57:21 UTC
-+++ src/rfc3315.c
-@@ -39,8 +39,8 @@ static void log6_quiet(struct state *state, char *type
- static void log6_opts(int nest, unsigned int xid, void *start_opts, void *end_opts);
- static void log6_packet(struct state *state, char *type, struct in6_addr *addr, char *string);
- static void log6_quiet(struct state *state, char *type, struct in6_addr *addr, char *string);
--static void *opt6_find (void *opts, void *end, unsigned int search, unsigned int minsize);
--static void *opt6_next(void *opts, void *end);
-+static void *opt6_find (uint8_t *opts, uint8_t *end, unsigned int search, unsigned int minsize);
-+static void *opt6_next(uint8_t *opts, uint8_t *end);
- static unsigned int opt6_uint(unsigned char *opt, int offset, int size);
- static void get_context_tag(struct state *state, struct dhcp_context *context);
- static int check_ia(struct state *state, void *opt, void **endp, void **ia_option);
-@@ -61,11 +61,11 @@ static void calculate_times(struct dhcp_context *conte
- 
- #define opt6_len(opt) ((int)(opt6_uint(opt, -2, 2)))
- #define opt6_type(opt) (opt6_uint(opt, -4, 2))
--#define opt6_ptr(opt, i) ((void *)&(((unsigned char *)(opt))[4+(i)]))
-+#define opt6_ptr(opt, i) ((void *)&(((uint8_t *)(opt))[4+(i)]))
- 
--#define opt6_user_vendor_ptr(opt, i) ((void *)&(((unsigned char *)(opt))[2+(i)]))
-+#define opt6_user_vendor_ptr(opt, i) ((void *)&(((uint8_t *)(opt))[2+(i)]))
- #define opt6_user_vendor_len(opt) ((int)(opt6_uint(opt, -4, 2)))
--#define opt6_user_vendor_next(opt, end) (opt6_next(((void *) opt) - 2, end))
-+#define opt6_user_vendor_next(opt, end) (opt6_next(((uint8_t *) opt) - 2, end))
-  
- 
- unsigned short dhcp6_reply(struct dhcp_context *context, int interface, char *iface_name,
-@@ -107,11 +107,11 @@ static int dhcp6_maybe_relay(struct state *state, unsi
- static int dhcp6_maybe_relay(struct state *state, unsigned char *inbuff, size_t sz, 
- 			     struct in6_addr *client_addr, int is_unicast, time_t now)
- {
--  void *end = inbuff + sz;
--  void *opts = inbuff + 34;
-+  uint8_t *end = inbuff + sz;
-+  uint8_t *opts = inbuff + 34;
-   int msg_type = *inbuff;
-   unsigned char *outmsgtypep;
--  void *opt;
-+  uint8_t *opt;
-   struct dhcp_vendor *vendor;
- 
-   /* if not an encapsulated relayed message, just do the stuff */
-@@ -232,7 +232,7 @@ static int dhcp6_maybe_relay(struct state *state, unsi
-   
-   for (opt = opts; opt; opt = opt6_next(opt, end))
-     {
--      if (opt6_ptr(opt, 0) + opt6_len(opt) > end) 
-+      if ((uint8_t *)opt6_ptr(opt, 0) + opt6_len(opt) > end)
-         return 0;
-      
-       /* Don't copy MAC address into reply. */
-@@ -1307,7 +1307,7 @@ static int dhcp6_no_relay(struct state *state, int msg
-      reallocated. */
-   ((unsigned char *)(daemon->outpacket.iov_base))[start_msg] = outmsgtype;
- 
--  log6_opts(0, state->xid, daemon->outpacket.iov_base + start_opts, daemon->outpacket.iov_base + save_counter(-1));
-+  log6_opts(0, state->xid, (uint8_t *)daemon->outpacket.iov_base + start_opts, (uint8_t *)daemon->outpacket.iov_base + save_counter(-1));
-   
-   return 1;
- 
-@@ -2093,7 +2093,7 @@ static void log6_packet(struct state *state, char *typ
- 	      string ? string : "");
- }
- 
--static void *opt6_find (void *opts, void *end, unsigned int search, unsigned int minsize)
-+static void *opt6_find (uint8_t *opts, uint8_t *end, unsigned int search, unsigned int minsize)
- {
-   u16 opt, opt_len;
-   void *start;
-@@ -2120,7 +2120,7 @@ static void *opt6_find (void *opts, void *end, unsigne
-     }
- }
- 
--static void *opt6_next(void *opts, void *end)
-+static void *opt6_next(uint8_t *opts, uint8_t *end)
- {
-   u16 opt_len;
-   
diff --git a/dns/dnsmasq-devel/files/patch-src_util.c b/dns/dnsmasq-devel/files/patch-src_util.c
deleted file mode 100644
index b2fbf3f8ef79..000000000000
--- a/dns/dnsmasq-devel/files/patch-src_util.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/util.c.orig	2024-12-20 21:57:21 UTC
-+++ src/util.c
-@@ -41,7 +41,7 @@ static int outleft = 0;
- static u32 out[8];
- static int outleft = 0;
- 
--void rand_init()
-+void rand_init(void)
- {
-   int fd = open(RANDFILE, O_RDONLY);
-   



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202412311503.4BVF3Ovt074598>