I ran emerge gentoo-stats gentoo-stats --new it told me that it inserted the SYSTEM_ID to /etc/gentoo-stats/gentoo-stats.conf - I looked at that file anyway to see what settings are in there, and nano showed me the MAC, \r linebreak escape sequence right after my id (like: SYSTEM_ID="12345678-1234-1234-1234-123456789123^M"). I don't know if that would break the stats logging system, but i thought i mention that behaviour here. Reproducible: Didn't try Steps to Reproduce: 1. i have no idea how to reproduce this without creating a new ID? 2. 3. Actual Results: nothing Expected Results: not inserted the \r character gentoo-stats version 0.4 i'm sorry for not pasting `emerge info` here, but it think it wont help with that problem anyway.
IMO, Line 575: (/usr/sbin/gentoo-stat) $s =~ s/Your new system ID is: (.*)[\r\n].*/$1/s; should be $s =~ s/Your new system ID is: (.*)\r\n.*/$1/s; The server returns the $s with \r and \n (both embedded) not either one of them. Regex only checks for one of them. I don't know what kind of breakage the extra ^M in the SYSTEM_ID is causing. My guess would be that it is logging into the database with ^M embedded in the SYSTEM_ID. So if you manually remove the ^M, it'll treat your system id as a different one and log accordingly.
*** This bug has been marked as a duplicate of 30923 ***