source: packages/net/gpsd/patches/002-no_chrpath.patch @ 31621

Last change on this file since 31621 was 31621, checked in by nbd, 4 years ago

gpsd: update to version 3.5 from cerowrt + chrpath removal patch

File size: 1.7 KB
  • SConstruct

    a b def installdir(dir, add_destdir=True): 
    270270 
    271271# Honor the specified installation prefix in link paths. 
    272272env.Prepend(LIBPATH=[installdir('libdir')]) 
    273 if env["shared"]: 
    274     env.Prepend(RPATH=[installdir('libdir')]) 
    275273 
    276274# Give deheader a way to set compiler flags 
    277275if 'MORECFLAGS' in os.environ: 
    config = Configure(env, custom_tests = { 
    390388                                         'CheckXsltproc' : CheckXsltproc}) 
    391389 
    392390env.Prepend(LIBPATH=[os.path.realpath(os.curdir)]) 
    393 if config.CheckExecutable('$CHRPATH -v', 'chrpath'): 
    394     # Tell generated binaries to look in the current directory for 
    395     # shared libraries so we can run tests without hassle. Should be 
    396     # handled sanely by scons on all systems.  Not good to use '.' or 
    397     # a relative path here; it's a security risk.  At install time we 
    398     # use chrpath to edit this out of RPATH. 
    399     if env["shared"]: 
    400         env.Prepend(RPATH=[os.path.realpath(os.curdir)]) 
    401 else: 
    402     print "chrpath is not available, forcing static linking." 
    403     env["shared"] = False 
    404391 
    405392confdefs = ["/* gpsd_config.h.  Generated by scons, do not hand-hack.  */\n"] 
    406393 
    binaryinstall.append(LibraryInstall(env, 
    11471134if qt_env: 
    11481135    binaryinstall.append(LibraryInstall(qt_env, installdir('libdir'), compiled_qgpsmmlib)) 
    11491136 
    1150 # We don't use installdir here in order to avoid having DESTDIR affect the rpath 
    1151 if env["shared"]: 
    1152     env.AddPostAction(binaryinstall, '$CHRPATH -r "%s" "$TARGET"' \ 
    1153                       % (installdir('libdir', False), )) 
    1154  
    11551137if not env['debug'] and not env['profiling'] and env['strip']: 
    11561138    env.AddPostAction(binaryinstall, '$STRIP $TARGET') 
    11571139 
Note: See TracBrowser for help on using the repository browser.