[arch-commits] Commit in io/trunk (PKGBUILD build.patch)

Jelle van der Waa jelle at archlinux.org
Thu Nov 19 20:53:13 UTC 2020


    Date: Thursday, November 19, 2020 @ 20:53:13
  Author: jelle
Revision: 757746

Fix building of missing includes

sys/sysctl.h does not exists under glibc, you want linux/sysctl.h

Added:
  io/trunk/build.patch
Modified:
  io/trunk/PKGBUILD

-------------+
 PKGBUILD    |    8 ++++++--
 build.patch |   12 ++++++++++++
 2 files changed, 18 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-19 20:45:01 UTC (rev 757745)
+++ PKGBUILD	2020-11-19 20:53:13 UTC (rev 757746)
@@ -11,11 +11,15 @@
 depends=('pcre' 'libsndfile' 'libxmu' 'freetype2' 'libedit' 'libxml2' 'libtiff' 'libevent' 'yajl' 'mariadb-libs' 'lzo' 'libpng' 'util-linux' 'freeglut' 'libjpeg-turbo' 'libtheora' 'python')
 makedepends=('cmake' 'git')
 options=('!makeflags' '!buildflags')
-source=("git+https://github.com/stevedekorte/io#commit=5fffec7cbe9679632ff793befacedd92f79d7f0f")
-sha256sums=('SKIP')
+source=("git+https://github.com/stevedekorte/io#commit=5fffec7cbe9679632ff793befacedd92f79d7f0f" build.patch)
+sha256sums=('SKIP'
+            '67649900fba515520c934dcb24c4da475c11c84a7e83171418c742988304b80e')
 
 prepare() {
   sed -i "s:20151111:${pkgver//./}:" io/libs/iovm/source/IoVersion.h
+
+  cd io
+  patch -Np1 -i ${srcdir}/build.patch
 }
 
 build() {

Added: build.patch
===================================================================
--- build.patch	                        (rev 0)
+++ build.patch	2020-11-19 20:53:13 UTC (rev 757746)
@@ -0,0 +1,12 @@
+diff -aur io.new/libs/iovm/source/IoSystem.c io/libs/iovm/source/IoSystem.c
+--- io.new/libs/iovm/source/IoSystem.c	2020-11-19 21:41:26.624107265 +0100
++++ io/libs/iovm/source/IoSystem.c	2020-11-19 21:43:30.418113032 +0100
+@@ -23,7 +23,7 @@
+ # include <sys/param.h>
+ #endif
+ #ifndef __CYGWIN__
+-# include <sys/sysctl.h>
++# include <linux/sysctl.h>
+ #endif
+ #endif
+ 



More information about the arch-commits mailing list