Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/linux-gpib/, sci-libs/linux-gpib/files/
Date: Mon, 29 May 2017 14:29:12
Message-Id: 1496068138.776a9dcc768dddedf0731f964eb64d7cded4cadd.dilfridge@gentoo
1 commit: 776a9dcc768dddedf0731f964eb64d7cded4cadd
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 29 14:28:44 2017 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Mon May 29 14:28:58 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=776a9dcc
7
8 sci-libs/linux-gpib: Add patch for kernel 4.11 and check VMAP_STACK
9
10 https://sourceforge.net/p/linux-gpib/bugs/61/
11 https://sourceforge.net/p/linux-gpib/bugs/62/
12
13 Package-Manager: Portage-2.3.6, Repoman-2.3.2
14
15 .../linux-gpib/files/linux-gpib-4.0.4_rc2-kernel-4.11.0.patch | 10 ++++++++++
16 sci-libs/linux-gpib/linux-gpib-4.0.3-r1.ebuild | 11 +++++++++--
17 2 files changed, 19 insertions(+), 2 deletions(-)
18
19 diff --git a/sci-libs/linux-gpib/files/linux-gpib-4.0.4_rc2-kernel-4.11.0.patch b/sci-libs/linux-gpib/files/linux-gpib-4.0.4_rc2-kernel-4.11.0.patch
20 new file mode 100644
21 index 00000000000..c3a9764924c
22 --- /dev/null
23 +++ b/sci-libs/linux-gpib/files/linux-gpib-4.0.4_rc2-kernel-4.11.0.patch
24 @@ -0,0 +1,10 @@
25 +--- linux-gpib-4.0.4rc2.orig/drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c 2016-06-22 09:48:47.000000000 +0100
26 ++++ linux-gpib-4.0.4rc2/drivers/gpib/lpvo_usb_gpib/lpvo_usb_gpib.c 2017-05-02 00:59:04.509950834 +0100
27 +@@ -37,6 +37,7 @@
28 + #include <linux/file.h>
29 + #include <linux/timer.h>
30 + #include <linux/delay.h>
31 ++#include <linux/sched/signal.h>
32 + #include <asm/uaccess.h>
33 +
34 + #include "gpibP.h"
35
36 diff --git a/sci-libs/linux-gpib/linux-gpib-4.0.3-r1.ebuild b/sci-libs/linux-gpib/linux-gpib-4.0.3-r1.ebuild
37 index d7b9bcef43f..8e7b27438b4 100644
38 --- a/sci-libs/linux-gpib/linux-gpib-4.0.3-r1.ebuild
39 +++ b/sci-libs/linux-gpib/linux-gpib-4.0.3-r1.ebuild
40 @@ -5,11 +5,13 @@ EAPI=6
41
42 PYTHON_COMPAT=( python2_7 )
43
44 -inherit readme.gentoo-r1 versionator eutils linux-mod autotools perl-functions python-single-r1 toolchain-funcs udev user
45 +inherit linux-info readme.gentoo-r1 versionator eutils linux-mod autotools perl-functions python-single-r1 toolchain-funcs udev user
46 +
47 +MY_PV=${PV/_/}
48
49 DESCRIPTION="Kernel module and driver library for GPIB (IEEE 488.2) hardware"
50 HOMEPAGE="http://linux-gpib.sourceforge.net/"
51 -SRC_URI="mirror://sourceforge/linux-gpib/${P}.tar.gz
52 +SRC_URI="mirror://sourceforge/linux-gpib/${PN}-${MY_PV}.tar.gz
53 firmware? ( http://linux-gpib.sourceforge.net/firmware/gpib_firmware-2006-11-12.tar.gz )
54 "
55
56 @@ -39,9 +41,13 @@ PATCHES=(
57 "${FILESDIR}"/${PN}-4.0.3-reallydie.patch
58 )
59
60 +S=${WORKDIR}/${PN}-${MY_PV}
61 +
62 pkg_setup () {
63 use perl && perl_set_version
64 use python && python_setup
65 +
66 + CONFIG_CHECK="!VMAP_STACK"
67 linux-mod_pkg_setup
68
69 if kernel_is -lt 2 6 8; then
70 @@ -56,6 +62,7 @@ pkg_setup () {
71
72 src_prepare () {
73 default
74 + kernel_is ge 4 11 0 && eapply "${FILESDIR}"/${PN}-4.0.4_rc2-kernel-4.11.0.patch
75 eautoreconf
76 }