diff options
author | Pacho Ramos <pacho@gentoo.org> | 2015-11-09 10:12:18 +0100 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2015-11-09 10:12:37 +0100 |
commit | 71e559f8573dd979824059b71fdcf35b1a9fa42c (patch) | |
tree | 1646fafd9c8b12364aea825a7d0d4933621c5bee /sci-libs/linux-gpib | |
parent | dev-db/mysql: ppc stable wrt bug #564170 (diff) | |
download | gentoo-71e559f8573dd979824059b71fdcf35b1a9fa42c.tar.gz gentoo-71e559f8573dd979824059b71fdcf35b1a9fa42c.tar.bz2 gentoo-71e559f8573dd979824059b71fdcf35b1a9fa42c.zip |
sci-libs/linux-gpib: Fix build (#537508)
Package-Manager: portage-2.2.24
Diffstat (limited to 'sci-libs/linux-gpib')
-rw-r--r-- | sci-libs/linux-gpib/files/linux-gpib-3.2.21-build2.patch | 12 | ||||
-rw-r--r-- | sci-libs/linux-gpib/linux-gpib-3.2.21-r1.ebuild | 1 |
2 files changed, 13 insertions, 0 deletions
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 index 000000000000..ce28e188adbe --- /dev/null +++ b/sci-libs/linux-gpib/files/linux-gpib-3.2.21-build2.patch @@ -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; diff --git a/sci-libs/linux-gpib/linux-gpib-3.2.21-r1.ebuild b/sci-libs/linux-gpib/linux-gpib-3.2.21-r1.ebuild index 116d682c8166..e6b712283d93 100644 --- a/sci-libs/linux-gpib/linux-gpib-3.2.21-r1.ebuild +++ b/sci-libs/linux-gpib/linux-gpib-3.2.21-r1.ebuild @@ -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 () { |