def METHOD_NAME(self):
    """
    Install  all the required dependencies
    Building source tarball requires packages specific to os
    that needs to be installed, if not installed test will stop.
    """
    smm = SoftwareManager()
    dist = distro.detect()
    dist_name = dist.name.lower()
    packages = ['gcc', 'wget', 'autoconf', 'automake',
                'dejagnu', 'binutils', 'patch']
    if dist_name == 'suse':
        packages.extend(['libdw-devel', 'libelf-devel', 'git-core',
                         'elfutils', 'binutils-devel', 'libtool',
                         'gcc-c++'])
    # FIXME: "redhat" as the distro name for RHEL is deprecated
    # on Avocado versions >= 50.0.  This is a temporary compatibility
    # enabler for older runners, but should be removed soon
    elif dist_name in ("rhel", "fedora", "redhat"):
        packages.extend(['elfutils-devel', 'elfutils-libelf-devel', 'git',
                         'elfutils-libelf', 'elfutils-libs',
                         'libtool-ltdl'])
    elif dist_name == 'ubuntu':
        packages.extend(['elfutils', 'libelf-dev', 'libtool', 'git',
                         'libelf1', 'librpmbuild3', 'binutils-dev'])
    else:
        self.cancel("Unsupported OS!")
    for package in packages:
        if not smm.check_installed(package) and not smm.install(package):
            self.cancel("Fail to install %s required for this test." %
                        package)
    run_type = self.params.get("type", default="upstream")
    if run_type == "upstream":
        source = self.params.get('url', default="https://gitlab.com/"
                                 "cespedes/ltrace.git")
        git.get_repo(source, destination_dir=os.path.join(
            self.workdir, 'ltrace'))
        self.src_lt = os.path.join(self.workdir, "ltrace")
        os.chdir(self.src_lt)
    elif run_type == "distro":
        self.src_lt = os.path.join(self.workdir, "ltrace-distro")
        if not os.path.exists(self.src_lt):
            self.src_lt = smm.get_source("ltrace", self.src_lt)
        os.chdir(self.src_lt)
    process.run('./autogen.sh')
    process.run('./configure')
    build.make(self.src_lt)