Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 663498 - xfce-extra/xfce4-datetime-plugin-0.7.0 with ABI_X86=x32 shows incorrect time and date
Summary: xfce-extra/xfce4-datetime-plugin-0.7.0 with ABI_X86=x32 shows incorrect time ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: x32
  Show dependency tree
 
Reported: 2018-08-13 10:07 UTC by camper
Modified: 2018-08-13 19:51 UTC (History)
1 user (show)

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


Attachments
xfce4-datetime-plugin-0.7.0-x32-fix-GTimeVal-time_t-conversion.patch (file_663498.txt,584 bytes, text/plain)
2018-08-13 10:07 UTC, camper
Details

Note You need to log in before you can comment on or make changes to this bug.
Description camper 2018-08-13 10:07:41 UTC
Created attachment 543242 [details]
xfce4-datetime-plugin-0.7.0-x32-fix-GTimeVal-time_t-conversion.patch

When converting values from a GTimeVal struct to time_t the plugin uses a pointer-cast assuming that time_t has the same size as long. This assumption does not hold for this ABI with glibc where time_t is still a 64-bit value but long has only 32 bit (default/linux/amd64/17.0/x32 profile). As a result the conversion pulls in the microseconds field from GTimeVal giving quasi-random date and time values.