| Summary: | net-dns/djbdns using obsolete sort parameters | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Kevin Korb <gentoobugs> |
| Component: | New packages | Assignee: | Michael Hanselmann (hansmi) (RETIRED) <hansmi> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Kevin Korb
2006-04-26 09:00:32 UTC
Can you provide a patch, please? I don't really feel like decoding the new sort syntax which is very ugly so here is a quick shortcut...
--- dnstracesort.orig 2006-04-26 15:52:53.000000000 -0400
+++ dnstracesort 2006-04-26 15:52:28.000000000 -0400
@@ -14,7 +14,7 @@
}
print
}
-' | sort -t: +0 -2 +4 +3 -4 +2 -3 | uniq | awk -F: '
+' | _POSIX2_VERSION=199209 sort -t: +0 -2 +4 +3 -4 +2 -3 | uniq | awk -F: '
{
type = $1
q = $2
Of course the GNU people can always break that again which they seem to like to do.
In the mean time, I came up with this: -' | sort -t: +0 -2 +4 +3 -4 +2 -3 | uniq | awk -F: ' +' | sort -t: -k 1,3 -k 5 -k 4,5 -k 3,4 | uniq | awk -F: ' Does this look better than yours? I can't test the old syntax, because I've no system such an old sort. It seems to work fine either way. Mine modifies less of DJB's code but I have no idea how long sort will maintain that compatibility feature so yours is probably a better idea. Your sort params were accepted by the sort on my OpenBSD system which is: # sort --version sort (GNU textutils) 2.0 Written by Mike Haertel. Thanks for the confirmation. I added my patch to the tree a few minutes ago. The ebuild will go stable in a few days. No need to stay in unstable because of this minor fix. Agreed. This is a minor fix to a component that almost nobody uses anyways. Thanks. |