Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248247 - net-dns/djbdns - should have updated root servers list entry L
Summary: net-dns/djbdns - should have updated root servers list entry L
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Dane Smith (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-22 21:20 UTC by Mark Zhitomirski
Modified: 2012-06-02 07:46 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New version of files/dnsroots.patch (dnsroots.patch,362 bytes, patch)
2008-12-23 12:21 UTC, Gerben Vos
Details | Diff
updated djbdns-1.05-r23.ebuild (djbdns-1.05-r23.ebuild,3.85 KB, text/plain)
2010-03-14 13:55 UTC, Florian Steinel
Details
Updated dnsroots.patch with current root servers. (dnsroots.patch,356 bytes, patch)
2011-04-04 15:26 UTC, Michael Orlitzky
Details | Diff
Same as the previous dnsroots.patch, renamed. (dnsroots-r25.patch,356 bytes, patch)
2011-04-06 21:38 UTC, Michael Orlitzky
Details | Diff
Revbump utilizing the new patch. (djbdns-r24-to-r25.patch,443 bytes, patch)
2011-04-06 21:39 UTC, Michael Orlitzky
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Zhitomirski 2008-11-22 21:20:23 UTC
IP 198.32.64.12-OLD had changed to 199.7.83.42 in 2007.

files/dnsroots.patch needs updating.

See http://www.ripe.net/ripe/maillists/archives/dns-wg/2007/msg00171.html

Reproducible: Always
Comment 1 Gerben Vos 2008-12-23 12:21:11 UTC
Created attachment 176208 [details, diff]
New version of files/dnsroots.patch

Please apply this patch. It's trivial, and 198.32.64.12 stopped responding in May 2008.
Comment 2 Florian Steinel 2010-03-14 13:55:19 UTC
Created attachment 223529 [details]
updated djbdns-1.05-r23.ebuild

ported from http://aur.archlinux.org/packages/djbdns/djbdns/PKGBUILD :

--- djbdns-1.05-r23.ebuild.orig	2009-03-23 06:36:46.000000000 +0100
+++ djbdns-1.05-r23.ebuild	2010-03-14 14:55:58.000000000 +0100
@@ -12,6 +12,7 @@ IPV6_PATCH="test23"
 
 SRC_URI="
 	http://cr.yp.to/djbdns/${P}.tar.gz
+	http://www.internic.net/zones/named.root
 	ipv6? ( http://www.fefe.de/dns/${P}-${IPV6_PATCH}.diff.bz2 )
 "
 
@@ -69,6 +70,11 @@ src_unpack() {
 
 	epatch "${FILESDIR}/${PV}-errno.patch"
 
+	# Update dnsroots.global
+	awk --posix
+	'/\.ROOT-SERVERS\.NET.*[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/ {
+	print $4; }' < ${FILESDIR}/named.root > ${S}/dnsroots.global || die 'dnsroots.global failed'
+
 	if [[ -n "${DJBDNS_PATCH_DIR}" && -d "${DJBDNS_PATCH_DIR}" ]]
 	then
 		echo
Comment 3 Michael Orlitzky gentoo-dev 2011-03-30 00:50:24 UTC
(In reply to comment #2)
> Created attachment 223529 [details]
> updated djbdns-1.05-r23.ebuild
> 
> ported from http://aur.archlinux.org/packages/djbdns/djbdns/PKGBUILD :
> 

I think (correct me if I'm wrong) that this will fail in the long run, because portage keeps a hash of every file in the manifest. When named.root is updated, the maintainer would have to do some work anyway.

So, it might be easier to just update the dnsroots.global patch every time the root servers change.
Comment 4 Dane Smith (RETIRED) gentoo-dev 2011-04-04 13:56:20 UTC
@Michael Do we have an updated version that needs to make it into Portage to close this?
Comment 5 Michael Orlitzky gentoo-dev 2011-04-04 15:26:50 UTC
Created attachment 268479 [details, diff]
Updated dnsroots.patch with current root servers.

This dnsroots.patch updates to the latest list of root servers. Is it ok to just dump this in $FILESDIR (and affect past revisions)? I don't see a better option; it just feels a little dirty.
Comment 6 Michael Orlitzky gentoo-dev 2011-04-06 21:38:02 UTC
Created attachment 268771 [details, diff]
Same as the previous dnsroots.patch, renamed.
Comment 7 Michael Orlitzky gentoo-dev 2011-04-06 21:39:19 UTC
Created attachment 268773 [details, diff]
Revbump utilizing the new patch.

Nevermind, this is a better option. This should ensure that users get the new roots patch. I simply replaced the old dnsroots.patch rather than building upon it.
Comment 8 Dane Smith (RETIRED) gentoo-dev 2011-04-07 12:05:14 UTC
(In reply to comment #7)
> Created attachment 268773 [details, diff]
> Revbump utilizing the new patch.
> 
> Nevermind, this is a better option. This should ensure that users get the new
> roots patch. I simply replaced the old dnsroots.patch rather than building upon
> it.

Just to confirm, use the new dnsroots.patch but rename it to dnsroots-r25. patch and then revbump the ebuild to -r25 and have it and only that use the new patch?
Comment 9 Michael Orlitzky gentoo-dev 2011-04-07 14:02:19 UTC
(In reply to comment #8)

Yep.
Comment 10 Michael Orlitzky gentoo-dev 2012-03-05 01:10:53 UTC
I think I've changed my mind about this one. We should update dnsroots.global for old revisions of djbdns, too. So, the fix would be,

1. Replace dnsroots.patch with either of those 356-byte patches (they're the same).

2. Revbump djbdns (now at -r25) to -r26 to prompt a rebuild. No changes to the ebuild are needed.
Comment 11 Michael Weber (RETIRED) gentoo-dev 2012-06-02 07:46:57 UTC
+*djbdns-1.05-r26 (02 Jun 2012)
+
+  02 Jun 2012; Michael Weber <xmw@gentoo.org> +djbdns-1.05-r26.ebuild,
+  files/dnsroots.patch:
+  Revbump to install new root servers list (bug 248247)
+