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

Bug 426866

Summary: x11-misc/slimlock-0.11 fails to build with sys-devel/gcc-4.7
Product: Gentoo Linux Reporter: eroen <gentoo>
Component: [OLD] GCC PortingAssignee: Aaron W. Swenson <titanofold>
Severity: normal CC: gentoo, titanofold
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 390247    
Attachments: build.log
emerge --info =x11-misc/slimlock-0.11
patch for the ebuild

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]
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]
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 <>
  +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)