x11-drivers/xf86-video-intel: Version bump to 2.99.917_p20190301
authorMatt Turner <mattst88@gentoo.org>
Fri, 26 Apr 2019 21:17:27 +0000 (14:17 -0700)
committerMatt Turner <mattst88@gentoo.org>
Fri, 26 Apr 2019 21:20:26 +0000 (14:20 -0700)
Closes: https://bugs.gentoo.org/653320
Closes: https://bugs.gentoo.org/673040
Signed-off-by: Matt Turner <mattst88@gentoo.org>
x11-drivers/xf86-video-intel/Manifest
x11-drivers/xf86-video-intel/files/xf86-video-intel-gcc-pr65873.patch [new file with mode: 0644]
x11-drivers/xf86-video-intel/xf86-video-intel-2.99.917_p20190301.ebuild [new file with mode: 0644]

index 057061291f1f58eb521ced4b7a26e88fe25710fc..65508b4a5281e5997e692aa35dd43c44e238aa2f 100644 (file)
@@ -1 +1,2 @@
 DIST xf86-video-intel-2.99.917_p20180214.tar.xz 951544 BLAKE2B 57df523168c6bf650ddf6ca27bbc799a8a9d183c9a6a4d2e232288124b57bfff7bb36a8fcc55e2845c4ece2653d39c0830c4ea2ecef4f1968a3ee7413506bae3 SHA512 afc8a4db550aa5567fa6f5eb9b480fac7c3e496eb62ae62a6a7b7e317515e24d21bf78bf1b03ba90cfd909dd37a5f65247c7aa2314234aec3d575e53db825912
+DIST xf86-video-intel-2.99.917_p20190301.tar.bz2 1247462 BLAKE2B 9047c7a05acaa2125db1527da58d6b4f18d1893e66413facf97b9136adf900cd2b806d149e484880a4361f4798ced52c03ef1b2054136e2896b60aefc3b5e319 SHA512 09ef78d002c6337a2b260999f07c70d9778aa7151f3252c7e2a186b0d1bf218192b616ac8363861e5285dec8fc8599b77eeb1a8195ca5029816f55189aee2b34
diff --git a/x11-drivers/xf86-video-intel/files/xf86-video-intel-gcc-pr65873.patch b/x11-drivers/xf86-video-intel/files/xf86-video-intel-gcc-pr65873.patch
new file mode 100644 (file)
index 0000000..ed05bce
--- /dev/null
@@ -0,0 +1,12 @@
+diff -up xf86-video-intel-20150520/src/sna/compiler.h.jx xf86-video-intel-20150520/src/sna/compiler.h
+--- xf86-video-intel-20150520/src/sna/compiler.h.jx    2015-05-19 07:44:26.000000000 -0400
++++ xf86-video-intel-20150520/src/sna/compiler.h       2015-05-20 12:53:54.797918726 -0400
+@@ -64,7 +64,7 @@
+ #endif
+ #if HAS_GCC(4, 6) && defined(__OPTIMIZE__)
+-#define fast __attribute__((optimize("Ofast")))
++#define fast __attribute__((optimize("O3")))
+ #else
+ #define fast
+ #endif
diff --git a/x11-drivers/xf86-video-intel/xf86-video-intel-2.99.917_p20190301.ebuild b/x11-drivers/xf86-video-intel/xf86-video-intel-2.99.917_p20190301.ebuild
new file mode 100644 (file)
index 0000000..2f4d89b
--- /dev/null
@@ -0,0 +1,91 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+XORG_DRI=dri
+XORG_EAUTORECONF=yes
+inherit linux-info xorg-3 flag-o-matic
+
+if [[ ${PV} == 9999* ]]; then
+       SRC_URI=""
+else
+       KEYWORDS="~amd64 ~x86"
+       COMMIT_ID="6afed33b2d673d88674f0c76efe500ae414e8e1b"
+       SRC_URI="https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/-/archive/${COMMIT_ID}/${P}.tar.bz2"
+       S="${WORKDIR}/${PN}-${COMMIT_ID}"
+fi
+
+DESCRIPTION="X.Org driver for Intel cards"
+
+IUSE="debug +sna tools +udev uxa xvmc"
+
+REQUIRED_USE="
+       || ( sna uxa )
+"
+RDEPEND="
+       x11-libs/libXext
+       x11-libs/libXfixes
+       x11-libs/libXScrnSaver
+       >=x11-libs/pixman-0.27.1
+       >=x11-libs/libdrm-2.4.52[video_cards_intel]
+       >=x11-base/xorg-server-1.18
+       !<=media-libs/mesa-12.0.4
+       tools? (
+               x11-libs/libX11
+               x11-libs/libxcb
+               x11-libs/libXcursor
+               x11-libs/libXdamage
+               x11-libs/libXinerama
+               x11-libs/libXrandr
+               x11-libs/libXrender
+               x11-libs/libxshmfence
+               x11-libs/libXtst
+       )
+       udev? (
+               virtual/libudev:=
+       )
+       xvmc? (
+               x11-libs/libXvMC
+               >=x11-libs/libxcb-1.5
+               x11-libs/xcb-util
+       )
+"
+DEPEND="${RDEPEND}
+       x11-base/xorg-proto"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-gcc-pr65873.patch
+)
+
+src_configure() {
+       replace-flags -Os -O2
+       XORG_CONFIGURE_OPTIONS=(
+               --disable-dri1
+               $(use_enable debug)
+               $(use_enable dri)
+               $(use_enable dri dri3)
+               $(usex dri "--with-default-dri=3")
+               $(use_enable sna)
+               $(use_enable tools)
+               $(use_enable udev)
+               $(use_enable uxa)
+               $(use_enable xvmc)
+       )
+       xorg-3_src_configure
+}
+
+pkg_postinst() {
+       if linux_config_exists && \
+               kernel_is -lt 4 3 && ! linux_chkconfig_present DRM_I915_KMS; then
+               echo
+               ewarn "This driver requires KMS support in your kernel"
+               ewarn "  Device Drivers --->"
+               ewarn "    Graphics support --->"
+               ewarn "      Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->"
+               ewarn "      <*>   Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver)  --->"
+               ewarn "       i915 driver"
+               ewarn "      [*]       Enable modesetting on intel by default"
+               echo
+       fi
+}