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

Bug 28414

Summary: graphviz-1.9 won't build with newer glibc as it uses severly deprecated sort options
Product: Gentoo Linux Reporter: Jason Rhinelander <gentoo>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: aknuds-1, brandy, mholzer, tberman
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 29834    
Attachments: Patch to fix deprecated sort options
Updated ebuild that applies patch

Description Jason Rhinelander 2003-09-10 22:21:06 UTC
graphviz-1.9 won't build for me, due to the sort +x -y options having become
obselete long ago (see http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?sort+1 - the
sort man page on my system doesn't even mention it), but it still uses them in
two places.  It's using sort +0 -1 in one place, and sort +2 in another place -
these are now handled by -k1,2 and -k3, respectively.

The deprecation only comes about with glibc-2.3.2-r2 or later as it updates
_POSIX2_VERSION in /usr/include/unistd.h - however, as this is bound to change
sooner or later for stable Gentoo systems, it's something that ought to be
addressed here, and possibly upstream as well.
Comment 1 Jason Rhinelander 2003-09-10 22:21:52 UTC
Created attachment 17478 [details, diff]
Patch to fix deprecated sort options
Comment 2 Jason Rhinelander 2003-09-10 22:22:47 UTC
Created attachment 17479 [details]
Updated ebuild that applies patch
Comment 3 James Harlow (RETIRED) gentoo-dev 2003-10-05 12:53:36 UTC
This patch works perfectly for me.
Comment 4 Caleb Shay 2003-10-19 08:27:41 UTC
This patched worked for me perfectly (after adding ~amd64 to KEYWORDS).
Comment 5 Caleb Shay 2003-10-19 08:47:22 UTC
Note on my last comment:  I only said it BUILDS with ~amd64 and the patch.
 It doesn't RUN on amd64, so don't go adding it to KEYWORDS.
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-10-28 06:22:21 UTC
so which patch is better, here or in #29434 ?
Comment 7 Jason Rhinelander 2003-10-28 08:52:19 UTC
I guess they are more-or-less equivelant, but I must say I like the idea
of applying a patch as this does better than sed'ing the Makefile from the
ebuild, as bug 29834 does.  Plus it may be useful to submit the patch on
to the graphviz maintainers.
Comment 8 Joshua Kinard gentoo-dev 2003-10-30 14:48:53 UTC
After reading the comments on this bug and Bug #29834, I think the patch
on this bug is more applicable.  I can add the patch to CVS in a few days
unless someone else wants to take care of this.  (Btw, I assume this will
apply to graphviz-1.10 as well as 1.9?)
Comment 9 Seemant Kulleen (RETIRED) gentoo-dev 2003-12-08 19:03:53 UTC
*** Bug 29834 has been marked as a duplicate of this bug. ***
Comment 10 SpanKY gentoo-dev 2004-01-25 15:08:11 UTC
glibc isnt what broke the sort, coreutils is

and graphiz-1.10 is in portage which doesnt suffer from this problem