summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancesco Riosa <vivo@gentoo.org>2006-10-22 18:52:45 +0000
committerFrancesco Riosa <vivo@gentoo.org>2006-10-22 18:52:45 +0000
commit72bd9768c329411eb2fcb4601594d8939dba0208 (patch)
tree840f448edc3b7409fda0cfef9ef9bd652f5f17bf /net-dns/mydns
parentFixed my email address in ChangeLog for dev-dotnet/mono-fuse (diff)
downloadgentoo-2-72bd9768c329411eb2fcb4601594d8939dba0208.tar.gz
gentoo-2-72bd9768c329411eb2fcb4601594d8939dba0208.tar.bz2
gentoo-2-72bd9768c329411eb2fcb4601594d8939dba0208.zip
Added patch to build against gcc-4.1, the patch is currently #commented out in the ebuild
(Portage version: 2.1.1)
Diffstat (limited to 'net-dns/mydns')
-rw-r--r--net-dns/mydns/ChangeLog7
-rw-r--r--net-dns/mydns/files/mydns-1.1.0-gcc41.patch240
-rw-r--r--net-dns/mydns/mydns-1.1.0.ebuild3
3 files changed, 248 insertions, 2 deletions
diff --git a/net-dns/mydns/ChangeLog b/net-dns/mydns/ChangeLog
index f8ecadce3f71..5e332dbf7c11 100644
--- a/net-dns/mydns/ChangeLog
+++ b/net-dns/mydns/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-dns/mydns
# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/ChangeLog,v 1.19 2006/04/27 03:07:37 weeve Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/ChangeLog,v 1.20 2006/10/22 18:52:44 vivo Exp $
+
+ 22 Oct 2006; <vivo@gentoo.org> +files/mydns-1.1.0-gcc41.patch,
+ mydns-1.1.0.ebuild:
+ Added patch to build against gcc-4.1, the patch is currently #commented out
+ for testing. MATSUU please check it
27 Apr 2006; Jason Wever <weeve@gentoo.org> mydns-1.1.0.ebuild:
Stable on SPARC.
diff --git a/net-dns/mydns/files/mydns-1.1.0-gcc41.patch b/net-dns/mydns/files/mydns-1.1.0-gcc41.patch
new file mode 100644
index 000000000000..683630516002
--- /dev/null
+++ b/net-dns/mydns/files/mydns-1.1.0-gcc41.patch
@@ -0,0 +1,240 @@
+diff -Naur mydns-1.1.0.orig/src/lib/rr.c mydns-1.1.0.new/src/lib/rr.c
+--- mydns-1.1.0.orig/src/lib/rr.c 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/lib/rr.c 2006-10-22 18:20:59.000000000 +0000
+@@ -438,9 +438,9 @@
+ {
+ MYDNS_RR *first = NULL, *last = NULL;
+ size_t querylen;
+- uchar query[DNS_QUERYBUFSIZ],
++ char query[DNS_QUERYBUFSIZ],
+ namequery[DNS_MAXNAMELEN + DNS_MAXNAMELEN + DNS_MAXNAMELEN + 25] = "";
+- uchar *wheretype;
++ char *wheretype;
+ register char *c, *cp;
+ SQL_RES *res;
+ SQL_ROW row;
+diff -Naur mydns-1.1.0.orig/src/lib/sql.c mydns-1.1.0.new/src/lib/sql.c
+--- mydns-1.1.0.orig/src/lib/sql.c 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/lib/sql.c 2006-10-22 18:20:59.000000000 +0000
+@@ -155,7 +155,7 @@
+ int
+ sql_istable(SQL *sqlConn, const char *tablename)
+ {
+- unsigned char *xtablename;
++ char *xtablename;
+ #if !USE_PGSQL
+ SQL_RES *res;
+ #endif
+@@ -163,7 +163,7 @@
+
+ if (!(xtablename = calloc(strlen(tablename) * 2 + 1, sizeof(unsigned char))))
+ Err(_("out of memory"));
+- sql_escstr(sqlConn, xtablename, (uchar *)tablename, strlen(tablename));
++ sql_escstr(sqlConn, xtablename, (char *)tablename, strlen(tablename));
+
+ #if USE_PGSQL
+ if (sql_count(sqlConn, "SELECT COUNT(*) FROM pg_class"
+@@ -191,7 +191,7 @@
+ int
+ sql_iscolumn(SQL *sqlConn, const char *tablename, const char *columnname)
+ {
+- unsigned char *xtablename, *xcolumnname;
++ char *xtablename, *xcolumnname;
+ #if !USE_PGSQL
+ SQL_RES *res;
+ #endif
+@@ -201,8 +201,8 @@
+ Err(_("out of memory"));
+ if (!(xcolumnname = calloc(strlen(columnname) * 2 + 1, sizeof(unsigned char))))
+ Err(_("out of memory"));
+- sql_escstr(sqlConn, xtablename, (uchar *)tablename, strlen(tablename));
+- sql_escstr(sqlConn, xcolumnname, (uchar *)columnname, strlen(columnname));
++ sql_escstr(sqlConn, xtablename, (char *)tablename, strlen(tablename));
++ sql_escstr(sqlConn, xcolumnname, (char *)columnname, strlen(columnname));
+
+ #if USE_PGSQL
+ if (sql_count(sqlConn,
+diff -Naur mydns-1.1.0.orig/src/mydns/alias.c mydns-1.1.0.new/src/mydns/alias.c
+--- mydns-1.1.0.orig/src/mydns/alias.c 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/mydns/alias.c 2006-10-22 18:20:59.000000000 +0000
+@@ -67,7 +67,7 @@
+ of the label with `*' and check for wildcard matches. */
+ if (*label)
+ {
+- uchar wclabel[DNS_MAXNAMELEN+1], *c;
++ char wclabel[DNS_MAXNAMELEN+1], *c;
+
+ /* Generate wildcarded label, i.e. `*.example' or maybe just `*'. */
+ if (!(c = strchr(label, '.')))
+diff -Naur mydns-1.1.0.orig/src/mydns/listen.c mydns-1.1.0.new/src/mydns/listen.c
+--- mydns-1.1.0.orig/src/mydns/listen.c 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/mydns/listen.c 2006-10-22 18:20:59.000000000 +0000
+@@ -264,7 +264,7 @@
+ if (!(buf = malloc(buflen)))
+ Err(_("out of memory"));
+ ifc.ifc_len = buflen;
+- ifc.ifc_buf = buf;
++ ifc.ifc_buf = (char *)buf;
+
+ if ((n = ioctl(sockfd, SIOCGIFCONF, (char *)&ifc)) != -1)
+ {
+diff -Naur mydns-1.1.0.orig/src/mydns/named.h mydns-1.1.0.new/src/mydns/named.h
+--- mydns-1.1.0.orig/src/mydns/named.h 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/mydns/named.h 2006-10-22 18:20:59.000000000 +0000
+@@ -204,7 +204,7 @@
+
+
+ /* task.c */
+-extern int new_task(TASK *, unsigned char *, size_t);
++extern int new_task(TASK *, char *, size_t);
+ extern void task_init_header(TASK *);
+ extern char *clientaddr(TASK *);
+ extern char *desctask(TASK *);
+diff -Naur mydns-1.1.0.orig/src/mydns/recursive.c mydns-1.1.0.new/src/mydns/recursive.c
+--- mydns-1.1.0.orig/src/mydns/recursive.c 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/mydns/recursive.c 2006-10-22 18:20:59.000000000 +0000
+@@ -143,9 +143,10 @@
+ int
+ recursive_fwd_read(TASK *t)
+ {
+- char reply[DNS_MAXPACKETLEN_UDP + 2], *r;
+- int replylen, addrlen = sizeof(struct sockaddr_in);
+- uint16_t id, qdcount, ancount, nscount, arcount;
++ char reply[DNS_MAXPACKETLEN_UDP + 2], *r;
++ int replylen;
++ socklen_t addrlen = sizeof(struct sockaddr_in);
++ uint16_t id, qdcount, ancount, nscount, arcount;
+ DNS_HEADER hdr;
+
+ #if DEBUG_ENABLED && DEBUG_RECURSIVE
+diff -Naur mydns-1.1.0.orig/src/mydns/task.c mydns-1.1.0.new/src/mydns/task.c
+--- mydns-1.1.0.orig/src/mydns/task.c 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/mydns/task.c 2006-10-22 18:20:59.000000000 +0000
+@@ -35,9 +35,9 @@
+ Returns 0 on success, -1 on error, -2 if the task is now invalid.
+ **************************************************************************************************/
+ int
+-new_task(TASK *t, unsigned char *data, size_t len)
++new_task(TASK *t, char *data, size_t len)
+ {
+- unsigned char qname[DNS_MAXNAMELEN+1], *src, *qdtop;
++ char qname[DNS_MAXNAMELEN+1], *src, *qdtop;
+
+ #if DEBUG_ENABLED && DEBUG_TASK
+ Debug("new_task(%p, %p, %u)", t, data, len);
+diff -Naur mydns-1.1.0.orig/src/mydns/task.h mydns-1.1.0.new/src/mydns/task.h
+--- mydns-1.1.0.orig/src/mydns/task.h 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/mydns/task.h 2006-10-22 18:20:59.000000000 +0000
+@@ -44,7 +44,7 @@
+ {
+ dns_rrtype_t rrtype; /* Record type (what table this data came from) */
+ uint32_t id; /* ID associated with RR */
+- unsigned char name[DNS_MAXNAMELEN];/* Name to send with reply */
++ char name[DNS_MAXNAMELEN];/* Name to send with reply */
+ off_t offset; /* The offset within the reply data (t->rdata) */
+ size_t length; /* The length of data within the reply */
+ uint8_t sort_level; /* Primary sort order */
+@@ -104,7 +104,7 @@
+
+ uint32_t Cnames[MAX_CNAME_LEVEL]; /* Array of CNAMEs found */
+
+- unsigned char *qd; /* Question section data */
++ char *qd; /* Question section data */
+ size_t qdlen; /* Size of question section */
+ uint16_t qdcount; /* "qdcount", from header */
+ uint16_t ancount; /* "ancount", from header */
+diff -Naur mydns-1.1.0.orig/src/mydns/tcp.c mydns-1.1.0.new/src/mydns/tcp.c
+--- mydns-1.1.0.orig/src/mydns/tcp.c 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/mydns/tcp.c 2006-10-22 18:20:59.000000000 +0000
+@@ -118,7 +118,7 @@
+ int
+ read_tcp_query(TASK *t)
+ {
+- unsigned char *end;
++ char *end;
+ int rv;
+
+ /* Read packet length if we haven't already */
+diff -Naur mydns-1.1.0.orig/src/mydns/update.c mydns-1.1.0.new/src/mydns/update.c
+--- mydns-1.1.0.orig/src/mydns/update.c 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/mydns/update.c 2006-10-22 18:20:59.000000000 +0000
+@@ -34,7 +34,7 @@
+ dns_class_t class;
+ uint32_t ttl;
+ uint16_t rdlength;
+- unsigned char rdata[DNS_MAXPACKETLEN_UDP + 1];
++ char rdata[DNS_MAXPACKETLEN_UDP + 1];
+ } UQRR;
+
+
+diff -Naur mydns-1.1.0.orig/src/util/check.c mydns-1.1.0.new/src/util/check.c
+--- mydns-1.1.0.orig/src/util/check.c 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/util/check.c 2006-10-22 18:20:59.000000000 +0000
+@@ -386,16 +386,16 @@
+ static void
+ check_rr_cname(void)
+ {
+- unsigned char *xname;
++ char *xname;
+ int found = 0;
+
+ EXPAND_DATA(data);
+ check_name(data, "rr.data", 1);
+
+ /* A CNAME record can't have any other type of RR data for the same name */
+- if (!(xname = calloc(strlen(name) * 2 + 1, sizeof(unsigned char))))
++ if (!(xname = calloc(strlen(name) * 2 + 1, sizeof(char))))
+ Err(_("out of memory"));
+- sql_escstr(sql, xname, (unsigned char *)name, strlen(name));
++ sql_escstr(sql, xname, (char *)name, strlen(name));
+ found = sql_count(sql, "SELECT COUNT(*) FROM %s WHERE zone=%u AND name='%s' AND type != 'CNAME'",
+ mydns_rr_table_name, rr->zone, xname);
+
+@@ -404,9 +404,9 @@
+ {
+ Free(xname);
+ shortname(name, 1);
+- if (!(xname = calloc(strlen(name) * 2 + 1, sizeof(unsigned char))))
++ if (!(xname = calloc(strlen(name) * 2 + 1, sizeof(char))))
+ Err(_("out of memory"));
+- sql_escstr(sql, xname, (unsigned char *)name, strlen(name));
++ sql_escstr(sql, xname, (char *)name, strlen(name));
+ found = sql_count(sql, "SELECT COUNT(*) FROM %s WHERE zone=%u AND name='%s' AND type != 'CNAME'",
+ mydns_rr_table_name, rr->zone, xname);
+ EXPAND_DATA(name);
+diff -Naur mydns-1.1.0.orig/src/util/export.c mydns-1.1.0.new/src/util/export.c
+--- mydns-1.1.0.orig/src/util/export.c 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/util/export.c 2006-10-22 18:20:59.000000000 +0000
+@@ -270,7 +270,7 @@
+ printf("%s %s\n", rr->data, rr->rp_txt);
+ else if (rr->type == DNS_QTYPE_TXT)
+ {
+- register unsigned char *c;
++ register char *c;
+ putc('"', stdout);
+ for (c = rr->data; *c; c++)
+ {
+diff -Naur mydns-1.1.0.orig/src/util/import-axfr.c mydns-1.1.0.new/src/util/import-axfr.c
+--- mydns-1.1.0.orig/src/util/import-axfr.c 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/util/import-axfr.c 2006-10-22 18:20:59.000000000 +0000
+@@ -462,7 +462,7 @@
+ void
+ import_axfr(char *hostport, char *import_zone)
+ {
+- unsigned char *reply, len[2];
++ char *reply, len[2];
+ int fd;
+ size_t replylen;
+
+diff -Naur mydns-1.1.0.orig/src/util/ptrconvert.c mydns-1.1.0.new/src/util/ptrconvert.c
+--- mydns-1.1.0.orig/src/util/ptrconvert.c 2006-10-22 18:20:08.000000000 +0000
++++ mydns-1.1.0.new/src/util/ptrconvert.c 2006-10-22 18:20:59.000000000 +0000
+@@ -290,7 +290,7 @@
+ else /* Insert new record */
+ {
+ long id;
+- uchar query[DNS_QUERYBUFSIZ];
++ char query[DNS_QUERYBUFSIZ];
+ int querylen;
+ char esc_origin[DNS_MAXNAMELEN + DNS_MAXNAMELEN + 1];
+ char esc_ns[520], esc_mbox[520];
diff --git a/net-dns/mydns/mydns-1.1.0.ebuild b/net-dns/mydns/mydns-1.1.0.ebuild
index 209a602cb3e7..d30930ff1172 100644
--- a/net-dns/mydns/mydns-1.1.0.ebuild
+++ b/net-dns/mydns/mydns-1.1.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/mydns-1.1.0.ebuild,v 1.5 2006/04/27 03:07:37 weeve Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/mydns/mydns-1.1.0.ebuild,v 1.6 2006/10/22 18:52:44 vivo Exp $
inherit eutils
@@ -29,6 +29,7 @@ src_unpack() {
cd "${S}"
epatch "${FILESDIR}"/${P}-m4.patch
+ #epatch "${FILESDIR}"/${P}-gcc41.patch
autoconf || die
}