Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 131355
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Michael Hanselmann (hansmi) (RETIRED) <hansmi@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Kevin Korb <gentoobugs@sanitarium.net>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 131355 depends on: Show dependency tree
Bug 131355 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-04-26 09:00 0000
The /usr/bin/dnstracesort script installed by net-dns/djbdns (including the
latest masked ebuild) contains this line:

' | sort -t: +0 -2 +4 +3 -4 +2 -3 | uniq | awk -F: '

This syntax is no longer supported by the sort command from coreutils and needs
to be updated.

------- Comment #1 From Michael Hanselmann (hansmi) (RETIRED) 2006-04-26 11:26:31 0000 -------
Can you provide a patch, please?

------- Comment #2 From Kevin Korb 2006-04-26 12:55:22 0000 -------
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.

------- Comment #3 From Michael Hanselmann (hansmi) (RETIRED) 2006-04-26 12:58:59 0000 -------
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.

------- Comment #4 From Kevin Korb 2006-04-26 13:07:03 0000 -------
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.

------- Comment #5 From Michael Hanselmann (hansmi) (RETIRED) 2006-04-26 13:09:47 0000 -------
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.

------- Comment #6 From Kevin Korb 2006-04-26 13:13:14 0000 -------
Agreed.  This is a minor fix to a component that almost nobody uses anyways.

Thanks.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug