Hi Adhemerval, > On 08/11/2021 13:59, Joseph Myers wrote: > > On Mon, 8 Nov 2021, Lukasz Majewski wrote: > > > >> The same approach (with using the 'distro' python module) can be > >> applied to Fedora or Suse. > > > > That module isn't part of the Python standard library. I don't > > think we should introduce a dependency on it; rather, any use of it > > should be appropriately conditional, so the code still runs > > (without these checks) if the module is unavailable (importing > > produces an ImportError). > > > > In particular, even if the OS Python installation includes that > > module, the script should work with a separately built copy of > > Python without any such modules from the OS. > > Maybe add a check without tying to any distribution (tool -v and some > version parsing). This would require some extra, work but then we would avoid 'distro' module as the dependency. > > > > >> +def check_os_requirements(): > >> + if distro.id() == "debian" and distro.version() == "10": > >> + # List 'Debian' specific packages requirements (different > >> than > >> + # vanila distro) to run this test without errors. > >> + debian_requirements = ['flex', 'bison', 'dnsutils', > >> 'texinfo'] > > > > Why is dnsutils needed? > > Also, strictly to build and check 'texinfo' is not required either. if makeinfo --split-size=5000000 --split-size=5000000 -I "/work/wd/glibc/glibc-many-build/src/binutils/binutils/doc" -I "/work/wd/glibc/glibc-many-build/src/binutils/binutils/../libiberty" -I "/work/wd/glibc/glibc-many-build/src/binutils/binutils/../bfd/doc" -I ../../bfd/doc --no-split -I /work/wd/glibc/glibc-many-build/src/binutils/binutils/doc \ -o binutils.info `test -f 'binutils.texi' || echo '/work/wd/glibc/glibc-many-build/src/binutils/binutils/doc/'`binutils.texi; \ then \ rc=0; \ else \ rc=$?; \ $restore $backupdir/* `echo "./binutils.info" | sed 's|[^/]*$||'`; \ fi; \ rm -rf $backupdir; exit $rc /work/wd/glibc/glibc-many-build/src/binutils/binutils/doc/binutils.texi:871: warning: @ref node name should not contain `.' /work/wd/glibc/glibc-many-build/src/binutils/binutils/doc/binutils.texi:1329: warning: @xref node name should not contain `.' make[4]: Leaving directory '/work/wd/glibc/glibc-many-build/build/compilers/powerpc64-linux-gnu/binutils/binutils/doc' Making info in po make[4]: Nothing to be done for 'info'. make[4]: Nothing to be done for 'info-am'. make[2]: *** [Makefile:3701: all-binutils] Error 2 make[2]: *** Waiting for unfinished jobs.... Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de