~ubuntu-branches/ubuntu/saucy/hplip/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/patches/try_libhpmud.so.0.dpatch

  • Committer: Package Import Robot
  • Author(s): Mark Purcell
  • Date: 2012-05-26 11:20:39 UTC
  • mfrom: (1.5.6) (31.1.3 precise)
  • Revision ID: package-import@ubuntu.com-20120526112039-bevxczegxnbyr5m7
Tags: 3.12.4-1
* New upstream release
* Switch to source/format 3.0 (quilt) - drop dpatch
* Refreshed debian/patches
* dh_autoreconf debian/autogen.sh & set local-options single-debian-patch
* Update to debian/compat -> 9
* Fix "hardened build flags" patch from Moritz - thanks (Closes: #667828)
* Fix "duplex descriptor uninitialized" patch from Matej (Closes: #583273)
* Fix "please migrate to kde-runtime" patch from Pino (Closes: #666544)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
@DPATCH@
8
8
 
9
 
diff --git a/scan/sane/marvell.c b/scan/sane/marvell.c
10
 
index c36caa7..465342e 100644
11
 
--- a/scan/sane/marvell.c
12
 
+++ b/scan/sane/marvell.c
13
 
@@ -63,8 +63,11 @@ static int bb_load(struct marvell_session *ps, const char *so)
14
 
    /* Load hpmud manually with symbols exported. Otherwise the plugin will not find it. */ 
15
 
    if ((ps->hpmud_handle = dlopen("libhpmud.so", RTLD_LAZY|RTLD_GLOBAL)) == NULL)
16
 
    {
17
 
-      BUG("unable to load restricted library: %s\n", dlerror());
18
 
-      goto bugout;
19
 
+      if ((ps->hpmud_handle = dlopen("libhpmud.so.0", RTLD_LAZY|RTLD_GLOBAL)) == NULL)
20
 
+      {
21
 
+         BUG("unable to load restricted library: %s\n", dlerror());
22
 
+         goto bugout;
23
 
+      }
24
 
    } 
25
 
 
26
 
    /* Load math library manually with symbols exported (Ubuntu 8.04). Otherwise the plugin will not find it. */ 
27
 
diff --git a/scan/sane/soap.c b/scan/sane/soap.c
28
 
index 28b83cc..698f58c 100644
29
 
--- a/scan/sane/soap.c
30
 
+++ b/scan/sane/soap.c
31
 
@@ -71,8 +71,11 @@ static int bb_load(struct soap_session *ps, const char *so)
32
 
    /* Load hpmud manually with symbols exported. Otherwise the plugin will not find it. */ 
33
 
    if ((ps->hpmud_handle = dlopen("libhpmud.so", RTLD_LAZY|RTLD_GLOBAL)) == NULL)
34
 
    {
35
 
-      BUG("unable to load restricted library: %s\n", dlerror());
36
 
-      goto bugout;
37
 
+      if ((ps->hpmud_handle = dlopen("libhpmud.so.0", RTLD_LAZY|RTLD_GLOBAL)) == NULL)
38
 
+      {
39
 
+         BUG("unable to load restricted library: %s\n", dlerror());
40
 
+         goto bugout;
41
 
+      }
42
 
    } 
43
 
 
44
 
    /* Load math library manually with symbols exported (Ubuntu 8.04). Otherwise the plugin will not find it. */ 
45
 
diff --git a/scan/sane/soapht.c b/scan/sane/soapht.c
46
 
index 5535245..e6039c1 100644
47
 
--- a/scan/sane/soapht.c
48
 
+++ b/scan/sane/soapht.c
49
 
@@ -62,10 +62,13 @@ static int bb_load(struct soap_session *ps, const char *so)
 
9
Index: hplip-3.12.4/scan/sane/marvell.c
 
10
===================================================================
 
11
--- hplip-3.12.4.orig/scan/sane/marvell.c       2012-04-10 18:34:05.000000000 +1000
 
12
+++ hplip-3.12.4/scan/sane/marvell.c    2012-05-26 10:21:29.000000000 +1000
 
13
@@ -63,8 +63,11 @@
 
14
    /* Load hpmud manually with symbols exported. Otherwise the plugin will not find it. */ 
 
15
    if ((ps->hpmud_handle = dlopen("libhpmud.so", RTLD_LAZY|RTLD_GLOBAL)) == NULL)
 
16
    {
 
17
-      BUG("unable to load restricted library: %s\n", dlerror());
 
18
-      goto bugout;
 
19
+      if ((ps->hpmud_handle = dlopen("libhpmud.so.0", RTLD_LAZY|RTLD_GLOBAL)) == NULL)
 
20
+      {
 
21
+         BUG("unable to load restricted library: %s\n", dlerror());
 
22
+         goto bugout;
 
23
+      }
 
24
    } 
 
25
 
 
26
    /* Load math library manually with symbols exported (Ubuntu 8.04). Otherwise the plugin will not find it. */ 
 
27
Index: hplip-3.12.4/scan/sane/soap.c
 
28
===================================================================
 
29
--- hplip-3.12.4.orig/scan/sane/soap.c  2012-04-10 18:34:05.000000000 +1000
 
30
+++ hplip-3.12.4/scan/sane/soap.c       2012-05-26 10:21:29.000000000 +1000
 
31
@@ -71,8 +71,11 @@
 
32
    /* Load hpmud manually with symbols exported. Otherwise the plugin will not find it. */ 
 
33
    if ((ps->hpmud_handle = dlopen("libhpmud.so", RTLD_LAZY|RTLD_GLOBAL)) == NULL)
 
34
    {
 
35
-      BUG("unable to load restricted library: %s\n", dlerror());
 
36
-      goto bugout;
 
37
+      if ((ps->hpmud_handle = dlopen("libhpmud.so.0", RTLD_LAZY|RTLD_GLOBAL)) == NULL)
 
38
+      {
 
39
+         BUG("unable to load restricted library: %s\n", dlerror());
 
40
+         goto bugout;
 
41
+      }
 
42
    } 
 
43
 
 
44
    /* Load math library manually with symbols exported (Ubuntu 8.04). Otherwise the plugin will not find it. */ 
 
45
Index: hplip-3.12.4/scan/sane/soapht.c
 
46
===================================================================
 
47
--- hplip-3.12.4.orig/scan/sane/soapht.c        2012-04-10 18:34:05.000000000 +1000
 
48
+++ hplip-3.12.4/scan/sane/soapht.c     2012-05-26 10:21:29.000000000 +1000
 
49
@@ -63,10 +63,13 @@
50
50
    int stat=1;
51
51
 
52
52
    /* Load hpmud manually with symbols exported. Otherwise the plugin will not find it. */