(self)
return patchelf_exec
Set patchelf executable
Set patchelf executable
Set patchelf executable
def select_patchelf(self):
        """Set patchelf executable"""
        arch = HostInfo().arch()
        image_list = list()
        if arch == "amd64":
            image_list = ["patchelf-x86_64", "patchelf"]
        elif arch == "i386":
            image_list = ["patchelf-x86", "patchelf"]
        elif arch == "arm64":
            image_list = ["patchelf-arm64", "patchelf"]
        elif arch == "arm":
            image_list = ["patchelf-arm", "patchelf"]

        f_util = FileUtil(self.localrepo.bindir)
        patchelf_exec = f_util.find_file_in_dir(image_list)
        if not os.path.exists(patchelf_exec):
            Msg().err("Error: patchelf executable not found")
            sys.exit(1)

        return patchelf_exec
def select_patchelf ( self ) : arch = HostInfo ( ) . arch ( ) image_list = list ( ) if arch == "amd64" : image_list = [ "patchelf-x86_64" , "patchelf" ] elif arch == "i386" : image_list = [ "patchelf-x86" , "patchelf" ] elif arch == "arm64" : image_list = [ "patchelf-arm64" , "patchelf" ] elif arch == "arm" : image_list = [ "patchelf-arm" , "patchelf" ] f_util = FileUtil ( self . localrepo . bindir ) patchelf_exec = f_util . find_file_in_dir ( image_list ) if not os . path . exists ( patchelf_exec ) : Msg ( ) . err ( "Error: patchelf executable not found" ) sys . exit ( 1 ) return patchelf_exec