From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-libs/gd/files: gd-2.1.1-headers.patch |
Date: | Sat, 28 Feb 2015 22:27:14 |
Message-Id: | 20150228222705.BA4F012C37@oystercatcher.gentoo.org |
1 | vapier 15/02/28 22:27:05 |
2 | |
3 | Added: gd-2.1.1-headers.patch |
4 | Log: |
5 | Fix out-of-tree test builds #540376 by tka. |
6 | |
7 | (Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key D2E96200) |
8 | |
9 | Revision Changes Path |
10 | 1.1 media-libs/gd/files/gd-2.1.1-headers.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/gd/files/gd-2.1.1-headers.patch?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/gd/files/gd-2.1.1-headers.patch?rev=1.1&content-type=text/plain |
14 | |
15 | Index: gd-2.1.1-headers.patch |
16 | =================================================================== |
17 | From 92f5a4b113deca14e80c218e6bcd06835c3e059f Mon Sep 17 00:00:00 2001 |
18 | From: Mike Frysinger <vapier@g.o> |
19 | Date: Sat, 28 Feb 2015 17:17:52 -0500 |
20 | Subject: [PATCH] tests: fix header inclusion |
21 | |
22 | gdnametest uses string funcs, so pull in string.h. It also can't pull |
23 | in test_config.h directly as it breaks when building out of tree. Use |
24 | the -I paths to find it. |
25 | |
26 | URL: https://bugs.gentoo.org/540376 |
27 | |
28 | diff --git a/tests/gdimagefile/gdnametest.c b/tests/gdimagefile/gdnametest.c |
29 | index dd8f019..f2bb8a6 100644 |
30 | --- a/tests/gdimagefile/gdnametest.c |
31 | +++ b/tests/gdimagefile/gdnametest.c |
32 | @@ -1,9 +1,10 @@ |
33 | #include <stdio.h> |
34 | #include <stdlib.h> |
35 | +#include <string.h> |
36 | |
37 | #include "gd.h" |
38 | #include "gdtest.h" |
39 | -#include "../test_config.h" |
40 | +#include "test_config.h" |
41 | |
42 | #define WIDTH 60 |
43 | #define HEIGHT 50 |
44 | -- |
45 | 2.3.1 |