From aa48cd404a6a00f91c169155bd124edb73b9a557 Mon Sep 17 00:00:00 2001 From: Luiz Angelo Daros de Luca Date: Thu, 15 Oct 2015 00:35:49 -0300 Subject: [PATCH] sane-backends: select all backends when CONFIG_ALL sane-xxx backend packages are hidden packages with custom config and CONFIG_ALL does not select them alone. Now sane-backends depends on +ALL:sane-backends-all. No existing ipk is affected as the changed package/sane-backends does not exist as an ipk. 030-musl.patch was updated to be submitted upstream. However, the added preprocessor #if are always true for OpenWRT and will not change the resulting code. Signed-off-by: Luiz Angelo Daros de Luca --- utils/sane-backends/Makefile | 1 + utils/sane-backends/patches/030-musl.patch | 24 ++++++++++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/utils/sane-backends/Makefile b/utils/sane-backends/Makefile index 7c79db0acc..ffed673b02 100644 --- a/utils/sane-backends/Makefile +++ b/utils/sane-backends/Makefile @@ -41,6 +41,7 @@ $(call Package/sane-backends/Default) SECTION:=utils CATEGORY:=Utilities TITLE+= (drivers) + DEPENDS:=+ALL:sane-backends-all endef define Package/sane-backends/description diff --git a/utils/sane-backends/patches/030-musl.patch b/utils/sane-backends/patches/030-musl.patch index b8dd50ee68..7f0a5a2782 100644 --- a/utils/sane-backends/patches/030-musl.patch +++ b/utils/sane-backends/patches/030-musl.patch @@ -1,61 +1,73 @@ --- a/include/sane/sanei_udp.h +++ b/include/sane/sanei_udp.h -@@ -27,6 +27,7 @@ +@@ -27,6 +27,9 @@ #include #include #endif ++#ifdef HAVE_SYS_TYPES_H +#include ++#endif extern SANE_Status sanei_udp_open(const char *host, int port, int *fdp); extern SANE_Status sanei_udp_open_broadcast(int *fdp); --- a/backend/kvs20xx_cmd.h +++ b/backend/kvs20xx_cmd.h -@@ -9,6 +9,8 @@ +@@ -9,6 +9,10 @@ Panasonic KV-S20xx USB-SCSI scanners. */ ++#ifdef HAVE_SYS_TYPES_H +#include ++#endif + #define COMMAND_BLOCK 1 #define DATA_BLOCK 2 #define RESPONSE_BLOCK 3 --- a/backend/kvs40xx.h +++ b/backend/kvs40xx.h -@@ -10,6 +10,7 @@ +@@ -10,6 +10,9 @@ #include "../include/sane/config.h" #include ++#ifdef HAVE_SYS_TYPES_H +#include ++#endif #undef BACKEND_NAME #define BACKEND_NAME kvs40xx --- a/backend/hp5400.c +++ b/backend/hp5400.c -@@ -67,6 +67,7 @@ +@@ -67,6 +67,9 @@ #include /* malloc, free */ #include /* memcpy */ #include ++#ifdef HAVE_SYS_TYPES_H +#include ++#endif #define HP5400_CONFIG_FILE "hp5400.conf" --- a/backend/hp5590.c +++ b/backend/hp5590.c -@@ -48,6 +48,7 @@ +@@ -48,6 +48,9 @@ #include #include #include ++#ifdef HAVE_SYS_TYPES_H +#include ++#endif #include "../include/sane/sane.h" #define BACKEND_NAME hp5590 --- a/backend/epsonds-io.c +++ b/backend/epsonds-io.c -@@ -16,6 +16,7 @@ +@@ -16,6 +16,9 @@ #include "sane/config.h" #include #include /* sleep */ ++#ifdef HAVE_SYS_TYPES_H +#include ++#endif #include "epsonds.h" #include "epsonds-io.h" -- 2.30.2