components/hplip/patches/09_nonGNUlibc.patch
branchs11-update
changeset 3935 177c89f1f2cf
child 4923 b9e3f6b6a101
equal deleted inserted replaced
3931:2c8009f52a2b 3935:177c89f1f2cf
       
     1 Home brewed patch
       
     2 
       
     3 --- a/installer/dcheck.py	2014-06-02 23:31:24.000000000 -0700
       
     4 +++ hplip-3.14.6/installer/dcheck.py	2014-07-01 14:58:22.329268435 -0700
       
     5 @@ -365,8 +365,11 @@
       
     6              LIBC = ctypes.CDLL(ctypes.util.find_library('c'),ctypes.DEFAULT_MODE,None, True)
       
     7          except:
       
     8              LIBC = ctypes.CDLL(ctypes.util.find_library('c'),ctypes.DEFAULT_MODE,None) #python2.4 and below syntax
       
     9 -        LIBC.gnu_get_libc_version.restype = ctypes.c_char_p
       
    10 -        return LIBC.gnu_get_libc_version()
       
    11 +        try:
       
    12 +            LIBC.gnu_get_libc_version.restype = ctypes.c_char_p
       
    13 +            return LIBC.gnu_get_libc_version()
       
    14 +        except:
       
    15 +            return '-'
       
    16  
       
    17  def get_python_xml_version():
       
    18      try: