/[smeserver]/rpms/djbdns/sme9/010-crosscompile.patch
ViewVC logotype

Contents of /rpms/djbdns/sme9/010-crosscompile.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Jul 12 04:56:17 2017 UTC (7 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: djbdns-1_05-11_el6_sme, djbdns-1_05-9_el6_sme, djbdns-1_05-10_el6_sme, HEAD
* Tue Jul 11 2017 Jean-Philipe Pialasse <tests@pialasse.com> 1.05-9.sme
-- backport SME10 fixes [SME: 10381]
--import patches from openwrt and rename already applied patches
--fix security issues [SME: 10374]
- 020-dnsroots-update.patch: update list of root DNS servers
- 070-dnscache-dpos-tcp-servfail.patch: SERVFAIL rename previous patch dns_transmit-bug.patch
- 210-dnscache-strict-forwardonly.patch: rename previous patch dnscache-strict-forwardonly.patch
- 270-dnscache-sigpipe-fix.patch: SIGPIPE
- 300-bugfix-dnscache-dempsky-poison.patch: CVE-2009-0858
- 310-bugfix-dnscache-merge-outgoing-requests.patch: CVE-2008-4392
- 320-bugfix-dnscache-cache-soa-records.patch: CVE-2008-4392
- 450-dnscache-ghost-domain-CVE-2012-1191.patch: CVE-2012-1191 http://marc.info/?l=djbdns&m=134190748729079&w=2
--bug fixes [SME: 10374]
- 060-dnscache-big-udp-packets.patch: accept and handle longer than 512 bytes UDP packets
- 230-tinydns-data-semantic-error.patch: handle semantic error to avoid publishing false dns records
- 240-tinydns-alias-chain-truncation.patch: rename previous patch tinydns-alias-chain-truncation.patch
--fix issue with short ttl cname like akamaid [SME: 8362]
- 200-dnscache-cname-handling.patch: rename previous patch dnscache-cname-handling.patch
- 330-fix-dnscache-cname-handling.patch: fix dnscache cname for short ttl
- 500-cutom-dnscache-maxloop.patch: set max loop to 200
--needed for previous patches to apply cleanly
- 030-srv-records-and-axfrget.patch: add SRV record type and axfr-get decompose SRC and PTR records (for 230-*.patch)
- 080-dnscache-cache-negatives.patch: rfc2308 ? (for 200-*.patch)
- 090-tinydns-one-second.patch: improve tinydns with 8 or more  concurent connections (for 240-*.patch)
- 120-compiler-temporary-filename.patch: change tmp filename to avoid conflicts (for 230-*.patch)
--not backported from SME10 branch
- 050-tinydns-mmap-leak.patch: report cdb leak

1 --- a/Makefile
2 +++ b/Makefile
3 @@ -29,10 +29,6 @@ auto-str.o: \
4 compile auto-str.c buffer.h exit.h
5 ./compile auto-str.c
6
7 -auto_home.c: \
8 -auto-str conf-home
9 - ./auto-str auto_home `head -1 conf-home` > auto_home.c
10 -
11 auto_home.o: \
12 compile auto_home.c
13 ./compile auto_home.c
14 @@ -221,10 +217,6 @@ compile dd.c dns.h stralloc.h gen_alloc.
15 uint64.h taia.h dd.h
16 ./compile dd.c
17
18 -direntry.h: \
19 -choose compile trydrent.c direntry.h1 direntry.h2
20 - ./choose c trydrent direntry.h1 direntry.h2 > direntry.h
21 -
22 dns.a: \
23 makelib dns_dfd.o dns_domain.o dns_dtda.o dns_ip.o dns_ipq.o dns_mx.o \
24 dns_name.o dns_nd.o dns_packet.o dns_random.o dns_rcip.o dns_rcrw.o \
25 @@ -508,12 +500,6 @@ systype hasdevtcp.h1 hasdevtcp.h2
26 *) cat hasdevtcp.h1 ;; \
27 esac ) > hasdevtcp.h
28
29 -hasshsgr.h: \
30 -choose compile load tryshsgr.c hasshsgr.h1 hasshsgr.h2 chkshsgr \
31 -warn-shsgr
32 - ./chkshsgr || ( cat warn-shsgr; exit 1 )
33 - ./choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h
34 -
35 hier.o: \
36 compile hier.c auto_home.h
37 ./compile hier.c
38 @@ -534,10 +520,6 @@ instcheck.o: \
39 compile instcheck.c strerr.h error.h exit.h
40 ./compile instcheck.c
41
42 -iopause.h: \
43 -choose compile load trypoll.c iopause.h1 iopause.h2
44 - ./choose clr trypoll iopause.h1 iopause.h2 > iopause.h
45 -
46 iopause.o: \
47 compile iopause.c taia.h tai.h uint64.h select.h iopause.h taia.h
48 ./compile iopause.c
49 @@ -590,7 +572,7 @@ warn-auto.sh systype
50 dgux-*) ;; \
51 hp-ux-*) ;; \
52 sco*) ;; \
53 - *) echo 'ranlib "$$main"' ;; \
54 + *) echo '$(if $(TARGET_RANLIB),$(TARGET_RANLIB),ranlib) "$$main"' ;; \
55 esac \
56 ) > makelib
57 chmod 755 makelib
58 @@ -766,10 +748,6 @@ seek_set.o: \
59 compile seek_set.c seek.h
60 ./compile seek_set.c
61
62 -select.h: \
63 -choose compile trysysel.c select.h1 select.h2
64 - ./choose c trysysel select.h1 select.h2 > select.h
65 -
66 server.o: \
67 compile server.c byte.h case.h env.h buffer.h strerr.h ip4.h uint16.h \
68 ndelay.h socket.h uint16.h droproot.h qlog.h uint16.h response.h \
69 @@ -1060,10 +1038,6 @@ uint32_unpack.o: \
70 compile uint32_unpack.c uint32.h
71 ./compile uint32_unpack.c
72
73 -uint64.h: \
74 -choose compile load tryulong64.c uint64.h1 uint64.h2
75 - ./choose clr tryulong64 uint64.h1 uint64.h2 > uint64.h
76 -
77 unix.a: \
78 makelib buffer_read.o buffer_write.o error.o error_str.o ndelay_off.o \
79 ndelay_on.o open_read.o open_trunc.o openreadclose.o readclose.o \
80 --- /dev/null
81 +++ b/auto_home.c
82 @@ -0,0 +1,3 @@
83 +const char auto_home[] = "\
84 +\057\165\163\162\
85 +";
86 --- a/conf-cc
87 +++ b/conf-cc
88 @@ -1,3 +1,3 @@
89 -gcc -O2 -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings
90 +$TARGET_CC $TARGET_CFLAGS -Wimplicit -Wunused -Wcomment -Wchar-subscripts -Wuninitialized -Wshadow -Wcast-qual -Wcast-align -Wwrite-strings -include errno.h
91
92 This will be used to compile .c files.
93 --- a/conf-home
94 +++ b/conf-home
95 @@ -1,4 +1,4 @@
96 -/usr/local
97 +/usr
98
99 This is the dnscache home directory. Programs will be installed in
100 .../bin.
101 --- a/conf-ld
102 +++ b/conf-ld
103 @@ -1,3 +1,3 @@
104 -gcc -s
105 +$TARGET_CC -s $TARGET_LDFLAGS
106
107 This will be used to link .o files into an executable.
108 --- /dev/null
109 +++ b/direntry.h
110 @@ -0,0 +1,10 @@
111 +#ifndef DIRENTRY_H
112 +#define DIRENTRY_H
113 +
114 +/* sysdep: +dirent */
115 +
116 +#include <sys/types.h>
117 +#include <dirent.h>
118 +#define direntry struct dirent
119 +
120 +#endif
121 --- /dev/null
122 +++ b/hasshsgr.h
123 @@ -0,0 +1 @@
124 +/* sysdep: -shortsetgroups */
125 --- /dev/null
126 +++ b/iopause.h
127 @@ -0,0 +1,18 @@
128 +#ifndef IOPAUSE_H
129 +#define IOPAUSE_H
130 +
131 +/* sysdep: +poll */
132 +#define IOPAUSE_POLL
133 +
134 +#include <sys/types.h>
135 +#include <poll.h>
136 +
137 +typedef struct pollfd iopause_fd;
138 +#define IOPAUSE_READ POLLIN
139 +#define IOPAUSE_WRITE POLLOUT
140 +
141 +#include "taia.h"
142 +
143 +extern void iopause(iopause_fd *,unsigned int,struct taia *,struct taia *);
144 +
145 +#endif
146 --- /dev/null
147 +++ b/select.h
148 @@ -0,0 +1,11 @@
149 +#ifndef SELECT_H
150 +#define SELECT_H
151 +
152 +/* sysdep: +sysselect */
153 +
154 +#include <sys/types.h>
155 +#include <sys/time.h>
156 +#include <sys/select.h>
157 +extern int select();
158 +
159 +#endif
160 --- /dev/null
161 +++ b/uint64.h
162 @@ -0,0 +1,8 @@
163 +#ifndef UINT64_H
164 +#define UINT64_H
165 +
166 +/* sysdep: -ulong64 */
167 +
168 +typedef unsigned long long uint64;
169 +
170 +#endif

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed