1 |
commit: 173decc405f9028ddab52ec3a6fd8fa21e0a51ae |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 7 14:38:38 2015 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 7 14:38:38 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=173decc4 |
7 |
|
8 |
x11-libs/libdrm: backport fix. |
9 |
|
10 |
Package-Manager: portage-2.2.20.1 |
11 |
RepoMan-Options: --force |
12 |
|
13 |
x11-libs/libdrm/Manifest | 4 ++ |
14 |
.../libdrm/files/libdrm-2.4.65-add-limits_h.patch | 26 +++++++++ |
15 |
x11-libs/libdrm/libdrm-2.4.65-r99.ebuild | 64 ++++++++++++++++++++++ |
16 |
x11-libs/libdrm/metadata.xml | 9 +++ |
17 |
4 files changed, 103 insertions(+) |
18 |
|
19 |
diff --git a/x11-libs/libdrm/Manifest b/x11-libs/libdrm/Manifest |
20 |
new file mode 100644 |
21 |
index 0000000..29cea56 |
22 |
--- /dev/null |
23 |
+++ b/x11-libs/libdrm/Manifest |
24 |
@@ -0,0 +1,4 @@ |
25 |
+AUX libdrm-2.4.65-add-limits_h.patch 716 SHA256 f3a9f8fee736d7981df9f887b37ff03c5f1b9397950c337e899623d7fa7c0dfc SHA512 07710c258c2b665c1a6c8d6cbd4bca1f0c9976f1065d55ba7e31be4c2dd961d88c8d12e0fb4a80d4cd2db8d7d6f98b16977b27e4657b49041df9141de15d9031 WHIRLPOOL 12b7f1ac5afe7b4aee1951627bbeb3bba76fe01bd8dca336736ba0ddf4fb5835b26fd056d8741761c4279fd37d6e171376843acb99d511ac56ec27b769069116 |
26 |
+DIST libdrm-2.4.65.tar.bz2 645877 SHA256 71960ac8bde7d710992b1bc8879935e8300a870c36bd06f22412d0447e3d96c4 SHA512 fabbb3ba163aa1307288472c11c6ce8f1e412cbd67ba3135a614f0e05bf4f881bf6ccc581e9cf05a7e2e965817bb71c0b5335263b5c0b0cb85829a0f29a6029d WHIRLPOOL b00d7aed0437ee0f64f60ed59becf41d165c101725cab700345203b2108a2adc9ed95d17acc0dff5706df86c87c13d058991417f42db40dfc523279cc5eb8547 |
27 |
+EBUILD libdrm-2.4.65-r99.ebuild 1860 SHA256 fafdb6f95fa8dbd183acf65db3152b635484b1a667d4cb3713ed424a26dc0f67 SHA512 5dc3856d63d7705e63d3a7377de4ed425cba8c9a96a397c9940a196580a80edad4a05cacd47e50bd2640004b8c8482343a9c0aca821f3028b97fd6913318889b WHIRLPOOL 43b98db86977ad8e79f6667cc91af59f3b057c3c5975cc05b7892fd346c98f72b13758066109002472755669c31c681ddd33411333c7d368bf3cb1796c60cad0 |
28 |
+MISC metadata.xml 334 SHA256 9d19c1397f594181749abef539a5ddd1d39fd5b9565a95de5788bc85231b68b2 SHA512 051cb32876b20b1c6d4dbe62dc3b1dabd268a6a26abb1e7b1d72d6fc7e2cb6c25751b1f56833d1c4f0773a563ce59a2cfb32bdfba6aaf75a019ad08a5c041601 WHIRLPOOL 7d9d0977b53fd1c058e9a2ebbed487528c40489b86eab6917ae06cd0c4ed64d14d9964d1ad93d73911e58b31c8a149a2c1c984b1b31012762de9319b6e793c46 |
29 |
|
30 |
diff --git a/x11-libs/libdrm/files/libdrm-2.4.65-add-limits_h.patch b/x11-libs/libdrm/files/libdrm-2.4.65-add-limits_h.patch |
31 |
new file mode 100644 |
32 |
index 0000000..f6821a5 |
33 |
--- /dev/null |
34 |
+++ b/x11-libs/libdrm/files/libdrm-2.4.65-add-limits_h.patch |
35 |
@@ -0,0 +1,26 @@ |
36 |
+From 4031dc17bb728850c9b079c8d5f9cc0a379b9d46 Mon Sep 17 00:00:00 2001 |
37 |
+From: Felix Janda <felix.janda@××××××.de> |
38 |
+Date: Sat, 26 Sep 2015 08:08:43 +0200 |
39 |
+Subject: xf86drm: include <limits.h> for PATH_MAX |
40 |
+ |
41 |
+fixes compilation error with musl libc and Solaris based platforms. |
42 |
+ |
43 |
+Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92082 |
44 |
+Signed-off-by: Felix Janda <felix.janda@××××××.de> |
45 |
+Reviewed-by: Emil Velikov <emil.l.velikov@×××××.com> |
46 |
+ |
47 |
+diff --git a/xf86drm.c b/xf86drm.c |
48 |
+index a9f5c29..c1cab1b 100644 |
49 |
+--- a/xf86drm.c |
50 |
++++ b/xf86drm.c |
51 |
+@@ -45,6 +45,7 @@ |
52 |
+ #include <stddef.h> |
53 |
+ #include <fcntl.h> |
54 |
+ #include <errno.h> |
55 |
++#include <limits.h> |
56 |
+ #include <signal.h> |
57 |
+ #include <time.h> |
58 |
+ #include <sys/types.h> |
59 |
+-- |
60 |
+cgit v0.10.2 |
61 |
+ |
62 |
|
63 |
diff --git a/x11-libs/libdrm/libdrm-2.4.65-r99.ebuild b/x11-libs/libdrm/libdrm-2.4.65-r99.ebuild |
64 |
new file mode 100644 |
65 |
index 0000000..33ccd34 |
66 |
--- /dev/null |
67 |
+++ b/x11-libs/libdrm/libdrm-2.4.65-r99.ebuild |
68 |
@@ -0,0 +1,64 @@ |
69 |
+# Copyright 1999-2015 Gentoo Foundation |
70 |
+# Distributed under the terms of the GNU General Public License v2 |
71 |
+# $Id$ |
72 |
+ |
73 |
+EAPI=5 |
74 |
+ |
75 |
+XORG_MULTILIB=yes |
76 |
+inherit xorg-2 |
77 |
+ |
78 |
+DESCRIPTION="X.Org libdrm library" |
79 |
+HOMEPAGE="http://dri.freedesktop.org/" |
80 |
+if [[ ${PV} = 9999* ]]; then |
81 |
+ EGIT_REPO_URI="git://anongit.freedesktop.org/git/mesa/drm" |
82 |
+else |
83 |
+ SRC_URI="http://dri.freedesktop.org/${PN}/${P}.tar.bz2" |
84 |
+fi |
85 |
+ |
86 |
+KEYWORDS="amd64 arm ~mips ppc x86" |
87 |
+VIDEO_CARDS="amdgpu exynos freedreno intel nouveau omap radeon tegra vmware" |
88 |
+for card in ${VIDEO_CARDS}; do |
89 |
+ IUSE_VIDEO_CARDS+=" video_cards_${card}" |
90 |
+done |
91 |
+ |
92 |
+IUSE="${IUSE_VIDEO_CARDS} libkms valgrind" |
93 |
+RESTRICT="test" # see bug #236845 |
94 |
+ |
95 |
+RDEPEND=">=dev-libs/libpthread-stubs-0.3-r1:=[${MULTILIB_USEDEP}] |
96 |
+ video_cards_intel? ( >=x11-libs/libpciaccess-0.13.1-r1:=[${MULTILIB_USEDEP}] ) |
97 |
+ abi_x86_32? ( !app-emulation/emul-linux-x86-opengl[-abi_x86_32(-)] )" |
98 |
+DEPEND="${RDEPEND} |
99 |
+ valgrind? ( dev-util/valgrind )" |
100 |
+ |
101 |
+src_prepare() { |
102 |
+ if [[ ${PV} = 9999* ]]; then |
103 |
+ # tests are restricted, no point in building them |
104 |
+ sed -ie 's/tests //' "${S}"/Makefile.am |
105 |
+ fi |
106 |
+ |
107 |
+ epatch "${FILESDIR}"/${P}-add-limits_h.patch |
108 |
+ |
109 |
+ xorg-2_src_prepare |
110 |
+} |
111 |
+ |
112 |
+src_configure() { |
113 |
+ XORG_CONFIGURE_OPTIONS=( |
114 |
+ # Udev is only used by tests now. |
115 |
+ --disable-udev |
116 |
+ --disable-cairo-tests |
117 |
+ $(use_enable video_cards_amdgpu amdgpu) |
118 |
+ $(use_enable video_cards_exynos exynos-experimental-api) |
119 |
+ $(use_enable video_cards_freedreno freedreno) |
120 |
+ $(use_enable video_cards_intel intel) |
121 |
+ $(use_enable video_cards_nouveau nouveau) |
122 |
+ $(use_enable video_cards_omap omap-experimental-api) |
123 |
+ $(use_enable video_cards_radeon radeon) |
124 |
+ $(use_enable video_cards_tegra tegra-experimental-api) |
125 |
+ $(use_enable video_cards_vmware vmwgfx) |
126 |
+ $(use_enable libkms) |
127 |
+ # valgrind installs its .pc file to the pkgconfig for the primary arch |
128 |
+ --enable-valgrind=$(usex valgrind auto no) |
129 |
+ ) |
130 |
+ |
131 |
+ xorg-2_src_configure |
132 |
+} |
133 |
|
134 |
diff --git a/x11-libs/libdrm/metadata.xml b/x11-libs/libdrm/metadata.xml |
135 |
new file mode 100644 |
136 |
index 0000000..92b2156 |
137 |
--- /dev/null |
138 |
+++ b/x11-libs/libdrm/metadata.xml |
139 |
@@ -0,0 +1,9 @@ |
140 |
+<?xml version="1.0" encoding="UTF-8"?> |
141 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
142 |
+<pkgmetadata> |
143 |
+<herd>x11</herd> |
144 |
+<use> |
145 |
+<flag name='libkms'>Enable building of libkms, a library for applications to interface with KMS</flag> |
146 |
+<flag name='valgrind'>Compile in valgrind memory hints</flag> |
147 |
+</use> |
148 |
+</pkgmetadata> |