From: Antonio Ospite Date: Wed, 29 Jan 2014 13:49:26 +0000 (+0100) Subject: debian/patches: add 0004-Revert-am7xxx-use-the-symbolic-constant-for-libusb-l.patch X-Git-Tag: debian/0.1.4-3~1 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/ad51ed8d4881c24d35913e15de5c378dcc10aef2 debian/patches: add 0004-Revert-am7xxx-use-the-symbolic-constant-for-libusb-l.patch Some old libusb version without the LIBUSB_LOG_LEVEL_* defines is still around in Debian distros (like Raspbian). So add a patch to be able to build packages for them. --- diff --git a/debian/patches/0004-Revert-am7xxx-use-the-symbolic-constant-for-libusb-l.patch b/debian/patches/0004-Revert-am7xxx-use-the-symbolic-constant-for-libusb-l.patch new file mode 100644 index 0000000..18c507f --- /dev/null +++ b/debian/patches/0004-Revert-am7xxx-use-the-symbolic-constant-for-libusb-l.patch @@ -0,0 +1,30 @@ +From d33f5f7c7ff7087188054de13d47d6b9ba525804 Mon Sep 17 00:00:00 2001 +From: Antonio Ospite +Date: Sun, 5 Jan 2014 08:30:03 +0100 +Subject: [PATCH] Revert "am7xxx: use the symbolic constant for libusb log + level" +X-Face: z*RaLf`X<@C75u6Ig9}{oW$H;1_\2t5)({*|jhM/Vb;]yA5\I~93>J<_`<4)A{':UrE + +This reverts commit 6d960cf72946c2f05d60dfcf8fb21efbdb69c9c7. +--- + src/am7xxx.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/am7xxx.c b/src/am7xxx.c +index 4ac2461..5b25e96 100644 +--- a/src/am7xxx.c ++++ b/src/am7xxx.c +@@ -982,7 +982,7 @@ AM7XXX_PUBLIC int am7xxx_init(am7xxx_context **ctx) + if (ret < 0) + goto out_free_context; + +- libusb_set_debug((*ctx)->usb_context, LIBUSB_LOG_LEVEL_INFO); ++ libusb_set_debug((*ctx)->usb_context, 3); + + ret = scan_devices(*ctx, SCAN_OP_BUILD_DEVLIST , 0, NULL); + if (ret < 0) { +-- +1.8.5.2 + diff --git a/debian/patches/series b/debian/patches/series index b35cc3c..277215d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,3 +1,4 @@ 0001-Revert-am7xxx-play-switch-to-avcodec_encode_video2.patch 0002-am7xxx-add-quirks-for-Philips-Sagemcom-PicoPix-2055.patch 0003-CMakeLists.txt-define-DEBUG-1-only-when-CMAKE_BUILD_.patch +0004-Revert-am7xxx-use-the-symbolic-constant-for-libusb-l.patch