media-gfx/iscan: fixed x86 compilation failure
authorMatthew Schultz <mattsch@gmail.com>
Sun, 3 Mar 2019 06:31:26 +0000 (00:31 -0600)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 3 Apr 2019 22:59:25 +0000 (00:59 +0200)
Closes: https://bugs.gentoo.org/678046
Reported-by: Thomas Deutschmann <whissi@gentoo.org>
Signed-off-by: Matthew Schultz <mattsch@gmail.com>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Closes: https://github.com/gentoo/gentoo/pull/11226
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
media-gfx/iscan/files/iscan-2.30.3.1-fix-x86-unknown-types.patch [new file with mode: 0644]
media-gfx/iscan/iscan-2.30.3.1.ebuild

diff --git a/media-gfx/iscan/files/iscan-2.30.3.1-fix-x86-unknown-types.patch b/media-gfx/iscan/files/iscan-2.30.3.1-fix-x86-unknown-types.patch
new file mode 100644 (file)
index 0000000..265cdc7
--- /dev/null
@@ -0,0 +1,11 @@
+diff -ru a/sanei/sanei_pio.c b/sanei/sanei_pio.c
+--- a/sanei/sanei_pio.c        2019-03-01 10:44:36.723260142 -0600
++++ b/sanei/sanei_pio.c        2019-03-01 10:48:47.660693036 -0600
+@@ -73,6 +73,7 @@
+ #elif HAVE_SYS_HW_H
+ # include <sys/hw.h>
+ #elif defined(__i386__)  && defined (__GNUC__)
++#include <sys/types.h>
+ static __inline__ void
+ outb (u_char value, u_long port)
index 84029550db4e6a0c9a6f6e128bb2bebddcc7d234..66591b118f08cd38107e3c33a5b0ec47df163013 100644 (file)
@@ -69,6 +69,7 @@ PATCHES=(
        "${FILESDIR}"/iscan-2.29.1-png-libs.patch
        "${FILESDIR}"/iscan-2.30.1-fix-g++-test.patch
        "${FILESDIR}"/iscan-2.30.1.1-gcc6.patch
+       "${FILESDIR}"/iscan-2.30.3.1-fix-x86-unknown-types.patch
 )
 
 QA_PRESTRIPPED="usr/lib.*/libesmod.so.*"
@@ -115,7 +116,7 @@ src_install() {
        if use gimp; then
                local plugindir="$(gimptool-2.0 --gimpplugindir)/plug-ins"
                dodir "${plugindir}"
-               dosym /usr/bin/iscan "${plugindir}"/iscan
+               dosym "${ED}"/usr/bin/iscan "${plugindir}"/iscan
        fi
 
        use X && make_desktop_entry iscan "Image Scan! for Linux ${PV}" scanner