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

Bug 203514

Summary: games-puzzle/tetrinet: Proper fix for IPv6 compilation error
Product: Gentoo Linux Reporter: Andrew Church <achurch+gentoo>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Proposed ebuild patch
Proposed patch without extra junk

Description Andrew Church 2007-12-27 20:51:26 UTC
Bug 32860 forces IPv6 support on regardless of the state of the ipv6 USE flag due to a compilation error (rather embarrassing, since the error was mine).  The proper fix is to patch the source:

--- ../tetrinet-0.11-orig/sockets.c     2003-09-10 04:15:04 +0900
+++ sockets.c   2007-12-28 05:35:49 +0900
@@ -188,7 +188,7 @@
        return -1;
     }
     if (ipbuf)
-       memcpy(retbuf, &sa.sin_addr, 4);
+       memcpy(ipbuf, &sa.sin_addr, 4);
 #endif
 
     return sock;
Comment 1 Andrew Church 2007-12-27 20:51:52 UTC
Created attachment 139461 [details, diff]
Proposed ebuild patch
Comment 2 Andrew Church 2007-12-27 20:55:05 UTC
Created attachment 139462 [details, diff]
Proposed patch without extra junk

Oops!  Didn't mean to include the Manifest junk in there...
Comment 3 Tristan Heaven (RETIRED) gentoo-dev 2008-01-15 10:27:25 UTC
Fixed, thanks.