[arch-commits] Commit in slop/trunk (PKGBUILD bugfix-add-missed-header.patch)

Evangelos Foutras foutrelis at gemini.archlinux.org
Sun Nov 21 22:10:53 UTC 2021


    Date: Sunday, November 21, 2021 @ 22:10:53
  Author: foutrelis
Revision: 1054052

Add missing header for XDestroyImage

Added:
  slop/trunk/bugfix-add-missed-header.patch
Modified:
  slop/trunk/PKGBUILD

--------------------------------+
 PKGBUILD                       |   11 +++++++++--
 bugfix-add-missed-header.patch |   22 ++++++++++++++++++++++
 2 files changed, 31 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-21 22:08:31 UTC (rev 1054051)
+++ PKGBUILD	2021-11-21 22:10:53 UTC (rev 1054052)
@@ -11,9 +11,16 @@
 license=('GPL3')
 depends=('libxext' 'libx11' 'mesa' 'glew' 'libxrender')
 makedepends=('cmake' 'glm')
-source=("${pkgname}-${pkgver}.tar.gz::$url/archive/v${pkgver}.tar.gz")
-md5sums=('d8ba3c332f801f19c2bd66014d79e988')
+source=("${pkgname}-${pkgver}.tar.gz::$url/archive/v${pkgver}.tar.gz"
+        bugfix-add-missed-header.patch)
+md5sums=('d8ba3c332f801f19c2bd66014d79e988'
+         'f2bb3f2760b8a128b13db80e1ee1377c')
 
+prepare() {
+	cd "$pkgname-$pkgver"
+	patch -Np1 -i ../bugfix-add-missed-header.patch
+}
+
 build() {
 	cd "$pkgname-$pkgver"
 	cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib .

Added: bugfix-add-missed-header.patch
===================================================================
--- bugfix-add-missed-header.patch	                        (rev 0)
+++ bugfix-add-missed-header.patch	2021-11-21 22:10:53 UTC (rev 1054052)
@@ -0,0 +1,22 @@
+From 5cbcb9e389a02d6288f90a790c6b547d9f9dcac7 Mon Sep 17 00:00:00 2001
+From: Drunkard Zhang <gongfan193 at gmail.com>
+Date: Tue, 28 Sep 2021 12:20:25 +0800
+Subject: [PATCH] bugfix: add missed header
+
+XDestroyImage is included in <X11/Xutil.h> which belongs to libX11.
+Build fails without include this header on Gentoo.
+
+Signed-off-by: Drunkard Zhang <gongfan193 at gmail.com>
+---
+ src/framebuffer.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/framebuffer.cpp b/src/framebuffer.cpp
+index 20909b3..da85a25 100644
+--- a/src/framebuffer.cpp
++++ b/src/framebuffer.cpp
+@@ -1,3 +1,4 @@
++#include <X11/Xutil.h>
+ #include "framebuffer.hpp"
+ 
+ slop::Framebuffer::Framebuffer( int w, int h ) {



More information about the arch-commits mailing list