sci-libs/linux-gpib: Fix build (#537508)
authorPacho Ramos <pacho@gentoo.org>
Mon, 9 Nov 2015 09:12:18 +0000 (10:12 +0100)
committerPacho Ramos <pacho@gentoo.org>
Mon, 9 Nov 2015 09:12:37 +0000 (10:12 +0100)
Package-Manager: portage-2.2.24

sci-libs/linux-gpib/files/linux-gpib-3.2.21-build2.patch [new file with mode: 0644]
sci-libs/linux-gpib/linux-gpib-3.2.21-r1.ebuild

diff --git a/sci-libs/linux-gpib/files/linux-gpib-3.2.21-build2.patch b/sci-libs/linux-gpib/files/linux-gpib-3.2.21-build2.patch
new file mode 100644 (file)
index 0000000..ce28e18
--- /dev/null
@@ -0,0 +1,12 @@
+diff -Naur linux-gpib-3.2.21.orig/drivers/gpib/sys/osfuncs.c linux-gpib-3.2.21/drivers/gpib/sys/osfuncs.c
+--- linux-gpib-3.2.21/drivers/gpib/sys/osfuncs.c       2015-02-15 00:41:42.320008509 +0000
++++ linux-gpib-3.2.21/drivers/gpib/sys/osfuncs.c       2015-02-15 00:41:56.320008602 +0000
+@@ -178,7 +178,7 @@
+ 
+ long ibioctl(struct file *filep, unsigned int cmd, unsigned long arg)
+ {
+-      unsigned int minor = iminor(filep->f_dentry->d_inode);
++      unsigned int minor = iminor(file_inode(filep));
+       gpib_board_t *board;
+       gpib_file_private_t *file_priv = filep->private_data;
+       long retval = -ENOTTY;
index 116d682c8166753250722b9815844d4a7f9d1ce2..e6b712283d93a2a5190865314fc5596eb575f666 100644 (file)
@@ -42,6 +42,7 @@ PATCHES=(
        "${FILESDIR}"/${PN}-3.2.16-perl.patch
        "${FILESDIR}"/${PN}-3.2.16-reallydie.patch
        "${WORKDIR}"/${PN}-3.2.21-ctrl-c.patch
+       "${FILESDIR}"/${PN}-3.2.21-build2.patch
 )
 
 pkg_setup () {