Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 675886 - x11-wm/dwm-6.1-r1: compilation failure in PREFIX
Summary: x11-wm/dwm-6.1-r1: compilation failure in PREFIX
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-01-20 05:37 UTC by Susan Wilson
Modified: 2019-02-19 14:59 UTC (History)
1 user (show)

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


Attachments
build.log (build-fail.log,4.89 KB, text/plain)
2019-01-20 05:38 UTC, Susan Wilson
Details
emerge --info (emerge.info,5.38 KB, text/plain)
2019-01-20 05:38 UTC, Susan Wilson
Details
ebuild patch (dwm-6.1-r1.ebuild.patch,457 bytes, patch)
2019-01-20 05:41 UTC, Susan Wilson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Susan Wilson 2019-01-20 05:37:03 UTC
Hi,

`dwm-6.1-r1` fails to compile on a gentoo-prefix
```
In file included from dwm.c:42:
/tmp/prefix-susanw/usr/include/X11/Xft/Xft.h:39:10: fatal error: ft2build.h: No such file or directory
 #include <ft2build.h>
          ^~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:18: dwm.o] Error 1
```

This happens because include path to freetype2 headers is missing prefix:
```
x86_64-pc-linux-gnu-gcc -c -std=c99 -pedantic -Wall
-Wno-deprecated-declarations -Os -I/tmp/prefix-susanw/usr/include/X11
-I/tmp/prefix-susanw/usr/include/X11 -I/usr/include/freetype2 -D_BSD_SOURCE
-D_POSIX_C_SOURCE=2 -DVERSION=\"6.1\"  util.c`
```

(here `-I/usr/include/freetype2` instead of `-I${PREFIX}/usr/include/freetype2`)

Attached patch fixes this issue.


Reproducible: Always

Steps to Reproduce:
1. emerge x11-wm/dwm on a gentoo-prefix
Actual Results:  
compilation failure

Expected Results:  
merge success
Comment 1 Susan Wilson 2019-01-20 05:38:02 UTC
Created attachment 562226 [details]
build.log
Comment 2 Susan Wilson 2019-01-20 05:38:24 UTC
Created attachment 562228 [details]
emerge --info
Comment 3 Susan Wilson 2019-01-20 05:41:03 UTC
Created attachment 562230 [details, diff]
ebuild patch

Patch for dwm-6.1-r1 that fixes given issue
Comment 4 Larry the Git Cow gentoo-dev 2019-02-19 14:59:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2f5a38fd7f9ece4299ae9a62b5336fa05c3b55e

commit d2f5a38fd7f9ece4299ae9a62b5336fa05c3b55e
Author:     Fabian Groffen <grobian@gentoo.org>
AuthorDate: 2019-02-19 14:58:54 +0000
Commit:     Fabian Groffen <grobian@gentoo.org>
CommitDate: 2019-02-19 14:58:54 +0000

    x11-wm/dwm: fix fontconfig path for Prefix by Susan Wilson
    
    Closes: https://bugs.gentoo.org/675886
    Signed-off-by: Fabian Groffen <grobian@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 x11-wm/dwm/dwm-6.1-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Comment 5 Fabian Groffen gentoo-dev 2019-02-19 14:59:46 UTC
noticed your mergereq too late, sorry, thanks for the patch though, pushed!