Example #1
0
        SEARCHPATH = [P.join(ISISROOT, 'lib'), P.join(ISISROOT, '3rdParty', 'lib'), INSTALLDIR.lib()]
        if opt.isisroot is not None:
            ISISROOT = opt.isisroot

        if opt.include == 'all':
            mgr.add_directory(INSTALLDIR, hardlink=True)
            mgr.make_tarball()
            sys.exit(0)
        else:
            print('Adding requested files')
            with file(opt.include, 'r') as f:
                for line in f:
                    mgr.add_glob(line.strip(), INSTALLDIR)

        print('Adding ISIS version check')
        with mgr.create_file('libexec/constants.sh') as f:
            print('BAKED_ISIS_VERSION="%s"' % isis_version(ISISROOT), file=f)

        print('Adding libraries')

        print('\tAdding forced-ship libraries')
        # Handle the shiplist separately
        for copy_lib in LIB_SHIP_PREFIX:
            found = None
            for soname in mgr.deplist.keys():
                if soname.startswith(copy_lib):
                    found = soname
                    break
            if found:
                mgr.add_library(mgr.deplist[found])
                mgr.remove_deps([found])
Example #2
0
            sys.stdout.flush()
            isis_secondary_set = set()
            for plugin in glob(P.join(INSTALLDIR,'lib','*.plugin')):
                with open(plugin,'r') as f:
                    for line in f:
                        line = line.split()
                        if not len( line ):
                            continue
                        if line[0] == 'Library':
                            isis_secondary_set.add("lib/lib"+line[2]+"*")
            for library in isis_secondary_set:
                mgr.add_glob( library, INSTALLDIR )

        print('Adding ISIS and GLIBC version check')
        sys.stdout.flush()
        with mgr.create_file('libexec/constants.sh') as f: # Create constants file
            if not opt.vw_build:
                print('BAKED_ISIS_VERSION="%s"' % isis_version(ISISROOT), file=f)
                print('\tFound ISIS version %s' % isis_version(ISISROOT))
            print('BAKED_LIBC_VERSION="%s"' % libc_version(), file=f)
            if get_platform().os == 'linux':
                # glibc is for Linux only
                print('\tFound GLIBC version %s' % libc_version())

        print('Adding libraries')

        for i in range(2,4):
            print('\tPass %i to get dependencies of libraries' % i)
            sys.stdout.flush()
            deplist_copy = copy.deepcopy(mgr.deplist)
            for lib in deplist_copy: