[arch-commits] Commit in vhba-module/repos (16 files)

Tobias Powalowski tpowa at archlinux.org
Tue May 23 14:12:57 UTC 2017


    Date: Tuesday, May 23, 2017 @ 14:12:56
  Author: tpowa
Revision: 229722

db-move: moved vhba-module from [community-testing] to [community] (i686, x86_64)

Added:
  vhba-module/repos/community-i686/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch
    (from rev 229721, vhba-module/repos/community-testing-i686/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch)
  vhba-module/repos/community-i686/60-vhba.rules
    (from rev 229721, vhba-module/repos/community-testing-i686/60-vhba.rules)
  vhba-module/repos/community-i686/PKGBUILD
    (from rev 229721, vhba-module/repos/community-testing-i686/PKGBUILD)
  vhba-module/repos/community-i686/vhba-module.install
    (from rev 229721, vhba-module/repos/community-testing-i686/vhba-module.install)
  vhba-module/repos/community-x86_64/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch
    (from rev 229721, vhba-module/repos/community-testing-x86_64/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch)
  vhba-module/repos/community-x86_64/60-vhba.rules
    (from rev 229721, vhba-module/repos/community-testing-x86_64/60-vhba.rules)
  vhba-module/repos/community-x86_64/PKGBUILD
    (from rev 229721, vhba-module/repos/community-testing-x86_64/PKGBUILD)
  vhba-module/repos/community-x86_64/vhba-module.install
    (from rev 229721, vhba-module/repos/community-testing-x86_64/vhba-module.install)
Deleted:
  vhba-module/repos/community-i686/60-vhba.rules
  vhba-module/repos/community-i686/PKGBUILD
  vhba-module/repos/community-i686/vhba-module.install
  vhba-module/repos/community-testing-i686/
  vhba-module/repos/community-testing-x86_64/
  vhba-module/repos/community-x86_64/60-vhba.rules
  vhba-module/repos/community-x86_64/PKGBUILD
  vhba-module/repos/community-x86_64/vhba-module.install

-----------------------------------------------------------------------------+
 /60-vhba.rules                                                              |    2 
 /PKGBUILD                                                                   |   94 ++++++++++
 /vhba-module.install                                                        |   42 ++++
 community-i686/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch   |   41 ++++
 community-i686/60-vhba.rules                                                |    1 
 community-i686/PKGBUILD                                                     |   44 ----
 community-i686/vhba-module.install                                          |   21 --
 community-x86_64/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch |   41 ++++
 community-x86_64/60-vhba.rules                                              |    1 
 community-x86_64/PKGBUILD                                                   |   44 ----
 community-x86_64/vhba-module.install                                        |   21 --
 11 files changed, 220 insertions(+), 132 deletions(-)

Copied: vhba-module/repos/community-i686/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch (from rev 229721, vhba-module/repos/community-testing-i686/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch)
===================================================================
--- community-i686/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch	                        (rev 0)
+++ community-i686/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch	2017-05-23 14:12:56 UTC (rev 229722)
@@ -0,0 +1,41 @@
+From 7dc0d29a3ef6e45455f537c8187791446ca7e1e5 Mon Sep 17 00:00:00 2001
+From: Rok Mandeljc <rok.mandeljc at gmail.com>
+Date: Sun, 26 Mar 2017 17:09:42 +0200
+Subject: [PATCH] VHBA: compatibility fix for upcoming kernel 4.11
+
+As per Bug #104, from 4.11-rc2 on, we need to include linux/sched/signal.h
+instead of linux/sched.h
+---
+ vhba-module/vhba.c | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/vhba-module/vhba.c b/vhba-module/vhba.c
+index 4a14a10e955000bb..ff30e4cb51b61ec6 100644
+--- a/vhba-module/vhba.c
++++ b/vhba-module/vhba.c
+@@ -18,16 +18,21 @@
+  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+  */
+ 
++#include <linux/version.h>
++
+ #include <linux/init.h>
+ #include <linux/module.h>
+ #include <linux/highmem.h>
+ #include <linux/fs.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
++#include <linux/sched/signal.h>
++#else
+ #include <linux/sched.h>
++#endif
+ #include <linux/platform_device.h>
+ #include <linux/miscdevice.h>
+ #include <linux/poll.h>
+ #include <linux/slab.h>
+-#include <linux/version.h>
+ #ifdef CONFIG_COMPAT
+ #include <linux/compat.h>
+ #endif
+-- 
+2.12.2
+

Deleted: community-i686/60-vhba.rules
===================================================================
--- community-i686/60-vhba.rules	2017-05-23 14:12:54 UTC (rev 229721)
+++ community-i686/60-vhba.rules	2017-05-23 14:12:56 UTC (rev 229722)
@@ -1 +0,0 @@
-ACTION=="add", KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="uaccess"

Copied: vhba-module/repos/community-i686/60-vhba.rules (from rev 229721, vhba-module/repos/community-testing-i686/60-vhba.rules)
===================================================================
--- community-i686/60-vhba.rules	                        (rev 0)
+++ community-i686/60-vhba.rules	2017-05-23 14:12:56 UTC (rev 229722)
@@ -0,0 +1 @@
+ACTION=="add", KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="uaccess"

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2017-05-23 14:12:54 UTC (rev 229721)
+++ community-i686/PKGBUILD	2017-05-23 14:12:56 UTC (rev 229722)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Ray Rashif <schiv at archlinux.org>
-# Contributor: Mateusz Herych <heniekk at gmail.com>
-# Contributor: Charles Lindsay <charles at chaoslizard.org>
-
-pkgname=vhba-module
-pkgver=20161009
-_extramodules=extramodules-4.10-ARCH
-pkgrel=12
-pkgdesc="Kernel module that emulates SCSI devices"
-arch=('i686' 'x86_64')
-url="http://cdemu.sourceforge.net/"
-license=('GPL')
-depends=('linux>=4.10' 'linux<4.11')
-makedepends=('linux-headers>=4.10' 'linux-headers<4.11')
-options=(!makeflags)
-install=$pkgname.install
-source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
-        '60-vhba.rules')
-sha256sums=('cd062d8bd61ccb8137622f837a0dadb771cc935981d8bccb2ad4de0bd11f33d9'
-            '3052cb1cadbdf4bfb0b588bb8ed80691940d8dd63dc5502943d597eaf9f40c3b')
-
-prepare() {
-  cd $pkgname-$pkgver
-}
-
-build() {
-  cd $pkgname-$pkgver
-  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
-  make KDIR=/usr/lib/modules/$_kernver/build
-}
-
-package() {
-  cd $pkgname-$pkgver
-  install -Dm644 vhba.ko "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko"
-  install -Dm644 ../60-vhba.rules "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
-
-  cd $startdir
-  cp -f $install ${install}.pkg
-  true && install=${install}.pkg
-  sed -i "s/EXTRAMODULES=.*/EXTRAMODULES=$_extramodules/" $install
-}
-
-# vim:set ts=2 sw=2 et:

Copied: vhba-module/repos/community-i686/PKGBUILD (from rev 229721, vhba-module/repos/community-testing-i686/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2017-05-23 14:12:56 UTC (rev 229722)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Ray Rashif <schiv at archlinux.org>
+# Contributor: Mateusz Herych <heniekk at gmail.com>
+# Contributor: Charles Lindsay <charles at chaoslizard.org>
+
+pkgname=vhba-module
+pkgver=20161009
+_extramodules=extramodules-4.11-ARCH
+pkgrel=13
+pkgdesc="Kernel module that emulates SCSI devices"
+arch=('i686' 'x86_64')
+url="http://cdemu.sourceforge.net/"
+license=('GPL')
+depends=('linux>=4.11' 'linux<4.12')
+makedepends=('linux-headers>=4.11' 'linux-headers<4.12')
+options=(!makeflags)
+install=$pkgname.install
+source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
+        0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch
+        '60-vhba.rules')
+sha256sums=('cd062d8bd61ccb8137622f837a0dadb771cc935981d8bccb2ad4de0bd11f33d9'
+            'a756b78865bfc1ea7eda447cd209035f9da7982174d03e643af3441d50ab3e08'
+            '3052cb1cadbdf4bfb0b588bb8ed80691940d8dd63dc5502943d597eaf9f40c3b')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np2 -i ../0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make KDIR=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dm644 vhba.ko "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko"
+  install -Dm644 ../60-vhba.rules "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
+
+  cd $startdir
+  cp -f $install ${install}.pkg
+  true && install=${install}.pkg
+  sed -i "s/EXTRAMODULES=.*/EXTRAMODULES=$_extramodules/" $install
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: community-i686/vhba-module.install
===================================================================
--- community-i686/vhba-module.install	2017-05-23 14:12:54 UTC (rev 229721)
+++ community-i686/vhba-module.install	2017-05-23 14:12:56 UTC (rev 229722)
@@ -1,21 +0,0 @@
-EXTRAMODULES=
-
-_updatemod() {
-  echo "  > Updating module dependencies..."
-  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
-}
-
-post_install() {
-  getent group cdemu &>/dev/null || groupadd -r cdemu
-  _updatemod
-}
-
-post_upgrade() {
-  _updatemod
-}
-
-post_remove() {
-  _updatemod
-}
-
-# vim:set ts=2 sw=2 et:

Copied: vhba-module/repos/community-i686/vhba-module.install (from rev 229721, vhba-module/repos/community-testing-i686/vhba-module.install)
===================================================================
--- community-i686/vhba-module.install	                        (rev 0)
+++ community-i686/vhba-module.install	2017-05-23 14:12:56 UTC (rev 229722)
@@ -0,0 +1,21 @@
+EXTRAMODULES=
+
+_updatemod() {
+  echo "  > Updating module dependencies..."
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  getent group cdemu &>/dev/null || groupadd -r cdemu
+  _updatemod
+}
+
+post_upgrade() {
+  _updatemod
+}
+
+post_remove() {
+  _updatemod
+}
+
+# vim:set ts=2 sw=2 et:

Copied: vhba-module/repos/community-x86_64/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch (from rev 229721, vhba-module/repos/community-testing-x86_64/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch)
===================================================================
--- community-x86_64/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch	                        (rev 0)
+++ community-x86_64/0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch	2017-05-23 14:12:56 UTC (rev 229722)
@@ -0,0 +1,41 @@
+From 7dc0d29a3ef6e45455f537c8187791446ca7e1e5 Mon Sep 17 00:00:00 2001
+From: Rok Mandeljc <rok.mandeljc at gmail.com>
+Date: Sun, 26 Mar 2017 17:09:42 +0200
+Subject: [PATCH] VHBA: compatibility fix for upcoming kernel 4.11
+
+As per Bug #104, from 4.11-rc2 on, we need to include linux/sched/signal.h
+instead of linux/sched.h
+---
+ vhba-module/vhba.c | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/vhba-module/vhba.c b/vhba-module/vhba.c
+index 4a14a10e955000bb..ff30e4cb51b61ec6 100644
+--- a/vhba-module/vhba.c
++++ b/vhba-module/vhba.c
+@@ -18,16 +18,21 @@
+  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+  */
+ 
++#include <linux/version.h>
++
+ #include <linux/init.h>
+ #include <linux/module.h>
+ #include <linux/highmem.h>
+ #include <linux/fs.h>
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
++#include <linux/sched/signal.h>
++#else
+ #include <linux/sched.h>
++#endif
+ #include <linux/platform_device.h>
+ #include <linux/miscdevice.h>
+ #include <linux/poll.h>
+ #include <linux/slab.h>
+-#include <linux/version.h>
+ #ifdef CONFIG_COMPAT
+ #include <linux/compat.h>
+ #endif
+-- 
+2.12.2
+

Deleted: community-x86_64/60-vhba.rules
===================================================================
--- community-x86_64/60-vhba.rules	2017-05-23 14:12:54 UTC (rev 229721)
+++ community-x86_64/60-vhba.rules	2017-05-23 14:12:56 UTC (rev 229722)
@@ -1 +0,0 @@
-ACTION=="add", KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="uaccess"

Copied: vhba-module/repos/community-x86_64/60-vhba.rules (from rev 229721, vhba-module/repos/community-testing-x86_64/60-vhba.rules)
===================================================================
--- community-x86_64/60-vhba.rules	                        (rev 0)
+++ community-x86_64/60-vhba.rules	2017-05-23 14:12:56 UTC (rev 229722)
@@ -0,0 +1 @@
+ACTION=="add", KERNEL=="vhba_ctl", NAME="vhba_ctl", MODE="0660", OWNER="root", GROUP="cdemu", TAG+="uaccess"

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2017-05-23 14:12:54 UTC (rev 229721)
+++ community-x86_64/PKGBUILD	2017-05-23 14:12:56 UTC (rev 229722)
@@ -1,44 +0,0 @@
-# $Id$
-# Maintainer: Ray Rashif <schiv at archlinux.org>
-# Contributor: Mateusz Herych <heniekk at gmail.com>
-# Contributor: Charles Lindsay <charles at chaoslizard.org>
-
-pkgname=vhba-module
-pkgver=20161009
-_extramodules=extramodules-4.10-ARCH
-pkgrel=12
-pkgdesc="Kernel module that emulates SCSI devices"
-arch=('i686' 'x86_64')
-url="http://cdemu.sourceforge.net/"
-license=('GPL')
-depends=('linux>=4.10' 'linux<4.11')
-makedepends=('linux-headers>=4.10' 'linux-headers<4.11')
-options=(!makeflags)
-install=$pkgname.install
-source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
-        '60-vhba.rules')
-sha256sums=('cd062d8bd61ccb8137622f837a0dadb771cc935981d8bccb2ad4de0bd11f33d9'
-            '3052cb1cadbdf4bfb0b588bb8ed80691940d8dd63dc5502943d597eaf9f40c3b')
-
-prepare() {
-  cd $pkgname-$pkgver
-}
-
-build() {
-  cd $pkgname-$pkgver
-  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
-  make KDIR=/usr/lib/modules/$_kernver/build
-}
-
-package() {
-  cd $pkgname-$pkgver
-  install -Dm644 vhba.ko "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko"
-  install -Dm644 ../60-vhba.rules "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
-
-  cd $startdir
-  cp -f $install ${install}.pkg
-  true && install=${install}.pkg
-  sed -i "s/EXTRAMODULES=.*/EXTRAMODULES=$_extramodules/" $install
-}
-
-# vim:set ts=2 sw=2 et:

Copied: vhba-module/repos/community-x86_64/PKGBUILD (from rev 229721, vhba-module/repos/community-testing-x86_64/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2017-05-23 14:12:56 UTC (rev 229722)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Ray Rashif <schiv at archlinux.org>
+# Contributor: Mateusz Herych <heniekk at gmail.com>
+# Contributor: Charles Lindsay <charles at chaoslizard.org>
+
+pkgname=vhba-module
+pkgver=20161009
+_extramodules=extramodules-4.11-ARCH
+pkgrel=13
+pkgdesc="Kernel module that emulates SCSI devices"
+arch=('i686' 'x86_64')
+url="http://cdemu.sourceforge.net/"
+license=('GPL')
+depends=('linux>=4.11' 'linux<4.12')
+makedepends=('linux-headers>=4.11' 'linux-headers<4.12')
+options=(!makeflags)
+install=$pkgname.install
+source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2"
+        0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch
+        '60-vhba.rules')
+sha256sums=('cd062d8bd61ccb8137622f837a0dadb771cc935981d8bccb2ad4de0bd11f33d9'
+            'a756b78865bfc1ea7eda447cd209035f9da7982174d03e643af3441d50ab3e08'
+            '3052cb1cadbdf4bfb0b588bb8ed80691940d8dd63dc5502943d597eaf9f40c3b')
+
+prepare() {
+  cd $pkgname-$pkgver
+  patch -Np2 -i ../0001-VHBA-compatibility-fix-for-upcoming-kernel-4.11.patch
+}
+
+build() {
+  cd $pkgname-$pkgver
+  _kernver="$(cat /usr/lib/modules/$_extramodules/version)"
+  make KDIR=/usr/lib/modules/$_kernver/build
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dm644 vhba.ko "$pkgdir/usr/lib/modules/$_extramodules/vhba.ko"
+  install -Dm644 ../60-vhba.rules "$pkgdir/usr/lib/udev/rules.d/60-vhba.rules"
+
+  cd $startdir
+  cp -f $install ${install}.pkg
+  true && install=${install}.pkg
+  sed -i "s/EXTRAMODULES=.*/EXTRAMODULES=$_extramodules/" $install
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: community-x86_64/vhba-module.install
===================================================================
--- community-x86_64/vhba-module.install	2017-05-23 14:12:54 UTC (rev 229721)
+++ community-x86_64/vhba-module.install	2017-05-23 14:12:56 UTC (rev 229722)
@@ -1,21 +0,0 @@
-EXTRAMODULES=
-
-_updatemod() {
-  echo "  > Updating module dependencies..."
-  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
-}
-
-post_install() {
-  getent group cdemu &>/dev/null || groupadd -r cdemu
-  _updatemod
-}
-
-post_upgrade() {
-  _updatemod
-}
-
-post_remove() {
-  _updatemod
-}
-
-# vim:set ts=2 sw=2 et:

Copied: vhba-module/repos/community-x86_64/vhba-module.install (from rev 229721, vhba-module/repos/community-testing-x86_64/vhba-module.install)
===================================================================
--- community-x86_64/vhba-module.install	                        (rev 0)
+++ community-x86_64/vhba-module.install	2017-05-23 14:12:56 UTC (rev 229722)
@@ -0,0 +1,21 @@
+EXTRAMODULES=
+
+_updatemod() {
+  echo "  > Updating module dependencies..."
+  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
+}
+
+post_install() {
+  getent group cdemu &>/dev/null || groupadd -r cdemu
+  _updatemod
+}
+
+post_upgrade() {
+  _updatemod
+}
+
+post_remove() {
+  _updatemod
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list