Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65344 - tuxstat from www-servers/tux is not compatible with glibc 2.3.x
Summary: tuxstat from www-servers/tux is not compatible with glibc 2.3.x
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-25 13:15 UTC by Canal Vorfeed
Modified: 2004-09-27 01:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Simple fix for glibc 2.3.x (tux-3.2.14.diff,903 bytes, patch)
2004-09-25 13:16 UTC, Canal Vorfeed
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Canal Vorfeed 2004-09-25 13:15:37 UTC
Tuxstat sometimes tries to use scanf for "\0" string (that is: string with no body at all). Previous versions of glibc cleared all variables in such situations. Glibc 2.3.x correctly keep old value. Unfortunatelly this breaks tuxstst (old char* value is undefined at this point so it tries to scan random region of memeory). Patch is attached (I've sent it few times upstream and was ignored).
Comment 1 Canal Vorfeed 2004-09-25 13:16:59 UTC
Created attachment 40405 [details, diff]
Simple fix for glibc 2.3.x 

Patch is for tux 3.2.14 but can be applied to 3.2.16 as well...
Comment 2 SpanKY gentoo-dev 2004-09-25 23:30:34 UTC
added to 3.2.16-r1, thanks
Comment 3 Canal Vorfeed 2004-09-27 01:03:27 UTC
Oops. Now I've tried to upgrade and got stuck with try to put files outside of sandbox.

Investigation showed that .ebuild removes /var/tux directory:

-- cut --
rm -rf ${D}/etc/{rc.d,sysconfig} ${D}/var/tux
-- cut --

But since this directory is needed for tux I've restored it (mkdir /var/tux) - after that "emerge tux" tries to create some files there while doing make.

I've found that change from
-- cut --
emake || die
-- cut --
to
-- cut --
emake TOPDIR=${D}
-- cut --
will fix this behaviour. And of course I'd like to have
-- cut --
rm -rf ${D}/etc/{rc.d,sysconfig} ${D}/var/tux
-- cut --
replaced with 
-- cut --
rm -rf ${D}/etc/{rc.d,sysconfig}
-- cut --
This way you can use tux after first "emerge tux" without manual creation of /var/tux !

P.S. /var/tux should be empty after installation - it's Ok: tux daemon will create files in there but it WILL NOT create directory inself.
Comment 4 Canal Vorfeed 2004-09-27 01:04:48 UTC
Huh. I've mistyped. I've mean
-- cut --
emake TOPDIR=${D} || die
-- cut --
of course.