Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 426866 - x11-misc/slimlock-0.11 fails to build with sys-devel/gcc-4.7
Summary: x11-misc/slimlock-0.11 fails to build with sys-devel/gcc-4.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Aaron W. Swenson
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: gcc-4.7
  Show dependency tree
 
Reported: 2012-07-16 15:55 UTC by eroen
Modified: 2012-08-18 18:58 UTC (History)
2 users (show)

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


Attachments
build.log (file_426866.txt,2.91 KB, text/plain)
2012-07-16 15:59 UTC, eroen
Details
emerge --info =x11-misc/slimlock-0.11 (file_426866.txt,6.77 KB, text/plain)
2012-07-16 16:00 UTC, eroen
Details
slimlock-0.11-gcc47.patch (file_426866.txt,697 bytes, text/plain)
2012-07-16 16:02 UTC, eroen
Details
patch for the ebuild (file_426866.txt,519 bytes, text/plain)
2012-07-16 16:14 UTC, eroen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description eroen 2012-07-16 15:55:57 UTC
Slimlock fails to include the unistd.h headers, which results in a failed build with gcc 4.7.

Reproducible: Always

Steps to Reproduce:
1. emerge gcc:4.7, possibly requiring a bit of unmasking and keywording.
2. use gcc-config to select the newly emerged compiler.
3. emerge slimlock.
Actual Results:  
Failed build, see attached build.log.

Expected Results:  
successful build.

A patch solving the build issue is attached. I have quickly tested all functionality indicated by `slimlock -h`, and it seems correct.
Comment 1 eroen 2012-07-16 15:59:10 UTC
Created attachment 318330 [details]
build.log
Comment 2 eroen 2012-07-16 16:00:28 UTC
Created attachment 318332 [details]
emerge --info =x11-misc/slimlock-0.11
Comment 3 eroen 2012-07-16 16:02:34 UTC
Created attachment 318334 [details]
slimlock-0.11-gcc47.patch
Comment 4 eroen 2012-07-16 16:14:55 UTC
Created attachment 318338 [details]
patch for the ebuild
Comment 5 Aaron W. Swenson gentoo-dev 2012-08-18 18:58:18 UTC
*slimlock-0.11-r1 (18 Aug 2012)

  18 Aug 2012; Aaron W. Swenson <titanofold@gentoo.org>
  +slimlock-0.11-r1.ebuild, +files/slimlock-0.11-gcc47.patch:
  Add "X" USE flag dependency on imlib2. (Bug 427164) Add patch to fix building
  with GCC 4.7. (Bug 426866)