Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 309201

Summary: net-dns/dlint - /usr/bin/dlint shell script is pretty much broken
Product: Gentoo Linux Reporter: Doktor Notor <notordoktor>
Component: New packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED WONTFIX    
Severity: major CC: mjo, treecleaner
Priority: High Keywords: PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: Pending Removal: 2012-03-12
Package list:
Runtime testing required: ---

Description Doktor Notor 2010-03-12 22:59:25 UTC
With stable one I get stuff like (non-faulty output snipped)

$ dlint root.cz.

sort: open failed: +0nr: No such file or directory

With ~arch one I get even more useless noise, such as:

$ dlint root.cz.

tail: cannot open `+1' for reading: No such file or directory
tail: cannot open `+2' for reading: No such file or directory
tail: cannot open `+3' for reading: No such file or directory
tail: cannot open `+4' for reading: No such file or director
tail: cannot open `+5' for reading: No such file or directory

Even more phun, this "random" storage file (grep TMPNS `which dlint`) location in /var/tmp is not really so random so if you run the thing as root and then as unpriviledged user, you get

/usr/bin/dlint: line 236: /var/tmp/dlintns.14602: Permission denied

On another note, this installs useless INSTALL and COPYRIGHT via dodoc.
Comment 1 Doktor Notor 2010-03-12 23:01:49 UTC
Oh, and it RDEPENDs on coreutils (eh?) and on bash #!/bin/sh doesn't look like it'd want bash to me, but then again the script is so messy I didn't bother to check whether is uses something bash-specific or not
Comment 2 Pacho Ramos gentoo-dev 2012-02-09 12:23:54 UTC
Maybe we should consider its removal is nobody wants to fix this
Comment 3 Kevin Bryan 2012-02-13 13:39:58 UTC
The issue is that the script is calling tail without the -n argument.  Placing that it on lines 386 and 477 of version 1.4.1 makes it work for me.  Strangely part of the diff from 1.4.0 to 1.4.1 fixed one call to tail, but not the others.
Comment 4 Pacho Ramos gentoo-dev 2012-02-13 19:04:57 UTC
Doesn't dlint have any replacement with an active upstream?
Comment 5 Michael Orlitzky gentoo-dev 2012-03-15 00:55:13 UTC
DNSSEC-tools (http://www.dnssec-tools.org/) offers a tool called "donuts" that seems to do something similar. They do actually have general, non-dnssec rules in there and would probably be interested in implementing any (correct) checks from dlint.
Comment 6 Pacho Ramos gentoo-dev 2012-03-18 12:21:04 UTC
dropped