diff options
3 files changed, 115 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/hplip/hplip-3.12.6/fix-libusb-paths.patch b/meta-oe/recipes-extended/hplip/hplip-3.12.6/fix-libusb-paths.patch new file mode 100644 index 0000000000..b347f831cb --- /dev/null +++ b/meta-oe/recipes-extended/hplip/hplip-3.12.6/fix-libusb-paths.patch | |||
| @@ -0,0 +1,35 @@ | |||
| 1 | Upstream-Status: Inappropriate [configuration] | ||
| 2 | |||
| 3 | diff -rupN hplip-3.12.6_orig/configure.in hplip-3.12.6/configure.in | ||
| 4 | --- hplip-3.12.6_orig/configure.in 2012-06-18 20:44:24.000000000 +1000 | ||
| 5 | +++ hplip-3.12.6/configure.in 2012-08-16 13:40:07.259927650 +1000 | ||
| 6 | @@ -524,6 +524,8 @@ if test "$hpijs_only_build" = "no"; then | ||
| 7 | AC_CHECK_HEADERS(usb.h, ,[AC_MSG_ERROR([cannot find libusb-devel support], 11)]) | ||
| 8 | else | ||
| 9 | AC_CHECK_LIB([usb-1.0], [libusb_init], [LIBS="$LIBS"], [AC_MSG_ERROR([cannot find libusb 1.0 support], 2)]) | ||
| 10 | + LIBUSBINCLUDEROOT?="/usr/include/" | ||
| 11 | + AC_ARG_VAR(LIBUSBINCLUDEROOT, [path to libusb-1.0 folder]) | ||
| 12 | AC_CHECK_HEADERS(libusb-1.0/libusb.h, ,[AC_MSG_ERROR([cannot find libusb-1.0-devel support], 11)]) | ||
| 13 | fi | ||
| 14 | fi | ||
| 15 | diff -rupN hplip-3.12.6_orig/Makefile.am hplip-3.12.6/Makefile.am | ||
| 16 | --- hplip-3.12.6_orig/Makefile.am 2012-06-18 20:44:13.000000000 +1000 | ||
| 17 | +++ hplip-3.12.6/Makefile.am 2012-08-16 13:41:12.307932822 +1000 | ||
| 18 | @@ -72,7 +72,7 @@ libhpmud_la_SOURCES = io/hpmud/hpmud.c i | ||
| 19 | io/hpmud/hpmud.h io/hpmud/hpmudi.h io/hpmud/list.h io/hpmud/mlc.h io/hpmud/pml.h io/hpmud/dot4.c \ | ||
| 20 | io/hpmud/dot4.h io/hpmud/jd.c io/hpmud/jd.h io/hpmud/pp.c io/hpmud/pp.h io/hpmud/musb.h io/hpmud/musb_libusb01.c | ||
| 21 | else | ||
| 22 | -libhpmud_la_CFLAGS = -I/usr/include/libusb-1.0 -DMUDNAME=\"$(MUDNAME)\" -DCONFDIR=\"$(hplip_confdir)\" | ||
| 23 | +libhpmud_la_CFLAGS = -I/$(LIBUSBINCLUDEROOT)/libusb-1.0 -DMUDNAME=\"$(MUDNAME)\" -DCONFDIR=\"$(hplip_confdir)\" | ||
| 24 | libhpmud_la_SOURCES = io/hpmud/hpmud.c io/hpmud/mlc.c io/hpmud/model.c io/hpmud/pml.c \ | ||
| 25 | io/hpmud/hpmud.h io/hpmud/hpmudi.h io/hpmud/list.h io/hpmud/mlc.h io/hpmud/pml.h io/hpmud/dot4.c \ | ||
| 26 | io/hpmud/dot4.h io/hpmud/jd.c io/hpmud/jd.h io/hpmud/pp.c io/hpmud/pp.h io/hpmud/musb.h io/hpmud/musb.c | ||
| 27 | @@ -286,7 +286,7 @@ hpmudext_la_LIBADD = libhpmud.la | ||
| 28 | if LIBUSB01_BUILD | ||
| 29 | hpmudext_la_CFLAGS = -I$(PYTHONINCLUDEDIR) | ||
| 30 | else | ||
| 31 | -hpmudext_la_CFLAGS =-I/usr/include/libusb-1.0 -I$(PYTHONINCLUDEDIR) | ||
| 32 | +hpmudext_la_CFLAGS =-I$(LIBUSBINCLUDEROOT)/libusb-1.0 -I$(PYTHONINCLUDEDIR) | ||
| 33 | endif | ||
| 34 | |||
| 35 | # ui (qt3) | ||
diff --git a/meta-oe/recipes-extended/hplip/hplip-3.12.6/setup-add-sleep-after-cups-reset.patch b/meta-oe/recipes-extended/hplip/hplip-3.12.6/setup-add-sleep-after-cups-reset.patch new file mode 100644 index 0000000000..0e1b6c4ed3 --- /dev/null +++ b/meta-oe/recipes-extended/hplip/hplip-3.12.6/setup-add-sleep-after-cups-reset.patch | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | Upstream-Status: Inappropriate [embedded specific] | ||
| 2 | |||
| 3 | --- hplip-3.11.10/setup.py.orig 2011-10-02 14:06:19.000000000 +1100 | ||
| 4 | +++ hplip-3.11.10/setup.py 2012-02-29 08:21:39.167999938 +1100 | ||
| 5 | @@ -573,6 +573,7 @@ | ||
| 6 | |||
| 7 | log.debug("Restarting CUPS...") | ||
| 8 | status, output = utils.run(restart_cups()) | ||
| 9 | + time.sleep(3) | ||
| 10 | log.debug("Restart CUPS returned: exit=%d output=%s" % (status, output)) | ||
| 11 | |||
| 12 | cups.setPasswordPrompt("You do not have permission to add a printer.") | ||
diff --git a/meta-oe/recipes-extended/hplip/hplip_3.12.6.bb b/meta-oe/recipes-extended/hplip/hplip_3.12.6.bb new file mode 100644 index 0000000000..2826a76ae1 --- /dev/null +++ b/meta-oe/recipes-extended/hplip/hplip_3.12.6.bb | |||
| @@ -0,0 +1,68 @@ | |||
| 1 | DESCRIPTION = "HP Linux Imaging and Printing" | ||
| 2 | LICENSE="GPLv2" | ||
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=442bb3cbbeeb60643a87325718b8a8ee" | ||
| 4 | |||
| 5 | SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}/${PN}-${PV}.tar.gz \ | ||
| 6 | file://setup-add-sleep-after-cups-reset.patch \ | ||
| 7 | file://fix-libusb-paths.patch \ | ||
| 8 | " | ||
| 9 | |||
| 10 | DEPENDS += "cups python libusb" | ||
| 11 | |||
| 12 | inherit autotools python-dir pythonnative | ||
| 13 | |||
| 14 | export BUILD_SYS | ||
| 15 | export HOST_SYS | ||
| 16 | export STAGING_INCDIR | ||
| 17 | export STAGING_LIBDIR | ||
| 18 | |||
| 19 | EXTRA_OECONF += "\ | ||
| 20 | LIBUSBINCLUDEROOT=${STAGING_INCDIR} \ | ||
| 21 | --disable-network-build \ | ||
| 22 | --disable-doc-build \ | ||
| 23 | --disable-pp-build \ | ||
| 24 | --disable-scan-build \ | ||
| 25 | --disable-gui-build \ | ||
| 26 | --disable-fax-build \ | ||
| 27 | --disable-policykit \ | ||
| 28 | --disable-qt4 \ | ||
| 29 | --disable-qt3 \ | ||
| 30 | --disable-dbus-build \ | ||
| 31 | --disable-foomatic-drv-install \ | ||
| 32 | --enable-foomatic-ppd-install \ | ||
| 33 | --enable-foomatic-rip-hplip-install \ | ||
| 34 | " | ||
| 35 | |||
| 36 | PACKAGES += "${PN}-ppd ${PN}-cups ${PN}-backend ${PN}-filter ${PN}-hal" | ||
| 37 | |||
| 38 | RDEPENDS_${PN} += " \ | ||
| 39 | python-syslog \ | ||
| 40 | python-pprint \ | ||
| 41 | python-compression \ | ||
| 42 | python-shell \ | ||
| 43 | python-xml \ | ||
| 44 | python-unixadmin \ | ||
| 45 | python-html \ | ||
| 46 | python-resource \ | ||
| 47 | python-terminal \ | ||
| 48 | python-subprocess\ | ||
| 49 | " | ||
| 50 | |||
| 51 | # need to snag the debug file or OE will fail on backend package | ||
| 52 | FILES_${PN}-dbg += "\ | ||
| 53 | ${libdir}/cups/backend/.debug \ | ||
| 54 | ${PYTHON_SITEPACKAGES_DIR}/.debug \ | ||
| 55 | ${libdir}/cups/filter/.debug " | ||
| 56 | |||
| 57 | FILES_${PN}-dev += "${PYTHON_SITEPACKAGES_DIR}/*.la" | ||
| 58 | FILES_${PN}-ppd = "${datadir}/ppd" | ||
| 59 | FILES_${PN}-cups = "${datadir}/cups" | ||
| 60 | FILES_${PN}-backend = "${libdir}/cups/backend" | ||
| 61 | FILES_${PN}-filter = "${libdir}/cups/filter" | ||
| 62 | FILES_${PN}-hal = "${datadir}/hal" | ||
| 63 | |||
| 64 | FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}/*.so" | ||
| 65 | |||
| 66 | SRC_URI[md5sum] = "5303938e8630775ea6fb383af85775e5" | ||
| 67 | SRC_URI[sha256sum] = "54578000792969adb583e75efeacb9c46ab69659ec7e9424de390613f3595775" | ||
| 68 | |||
