Subject: bug#41760: ganv-1.5.4 fails at configure

From: Thorsten Wilms <[email-masked]>
Date: Mon, 8 Jun 2020 17:33:01 +0200

During ‘package -u’, ganv fails to build due to some python issue in the configure phase:

starting phase `configure'
running "python waf" with command "configure" and parameters ("--prefix=/gnu/store/lvvgxdx6fnmbya1bpyjhvzcvlbw7r3hi-ganv-1.5.4-1.12f7d6b04")
Traceback (most recent call last):
  File "/tmp/guix-build-ganv-1.5.4-1.12f7d6b04.drv-0/source/.waf3-1.8.22-cd01c337ef788738c16f5e03aaddf994/waflib/Node.py", line 312, in ant_iter
    raise StopIteration
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/tmp/guix-build-ganv-1.5.4-1.12f7d6b04.drv-0/source/.waf3-1.8.22-cd01c337ef788738c16f5e03aaddf994/waflib/Scripting.py", line 114, in waf_entry_point
    run_commands()
  File "/tmp/guix-build-ganv-1.5.4-1.12f7d6b04.drv-0/source/.waf3-1.8.22-cd01c337ef788738c16f5e03aaddf994/waflib/Scripting.py", line 171, in run_commands
    parse_options()
  File "/tmp/guix-build-ganv-1.5.4-1.12f7d6b04.drv-0/source/.waf3-1.8.22-cd01c337ef788738c16f5e03aaddf994/waflib/Scripting.py", line 144, in parse_options
    Context.create_context('options').execute()
  File "/tmp/guix-build-ganv-1.5.4-1.12f7d6b04.drv-0/source/.waf3-1.8.22-cd01c337ef788738c16f5e03aaddf994/waflib/Options.py", line 146, in execute
    super(OptionsContext,self).execute()
  File "/tmp/guix-build-ganv-1.5.4-1.12f7d6b04.drv-0/source/.waf3-1.8.22-cd01c337ef788738c16f5e03aaddf994/waflib/Context.py", line 93, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/tmp/guix-build-ganv-1.5.4-1.12f7d6b04.drv-0/source/.waf3-1.8.22-cd01c337ef788738c16f5e03aaddf994/waflib/Context.py", line 134, in recurse
    user_function(self)
  File "/tmp/guix-build-ganv-1.5.4-1.12f7d6b04.drv-0/source/wscript", line 21, in options
    opt.load('compiler_c')
  File "/tmp/guix-build-ganv-1.5.4-1.12f7d6b04.drv-0/source/.waf3-1.8.22-cd01c337ef788738c16f5e03aaddf994/waflib/Context.py", line 90, in load
    fun(self)
  File "/tmp/guix-build-ganv-1.5.4-1.12f7d6b04.drv-0/source/.waf3-1.8.22-cd01c337ef788738c16f5e03aaddf994/waflib/Tools/compiler_c.py", line 36, in options
    opt.load_special_tools('c_*.py',ban=['c_dumbpreproc.py'])
  File "/tmp/guix-build-ganv-1.5.4-1.12f7d6b04.drv-0/source/.waf3-1.8.22-cd01c337ef788738c16f5e03aaddf994/waflib/Context.py", line 321, in load_special_tools
    lst=self.root.find_node(waf_dir).find_node('waflib/extras').ant_glob(var)
  File "/tmp/guix-build-ganv-1.5.4-1.12f7d6b04.drv-0/source/.waf3-1.8.22-cd01c337ef788738c16f5e03aaddf994/waflib/Node.py", line 361, in ant_glob
    ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=kw.get('maxdepth',25),dir=dir,src=src,remove=kw.get('remove',True))]
  File "/tmp/guix-build-ganv-1.5.4-1.12f7d6b04.drv-0/source/.waf3-1.8.22-cd01c337ef788738c16f5e03aaddf994/waflib/Node.py", line 361, in <listcomp>
    ret=[x for x in self.ant_iter(accept=accept,pats=[to_pat(incl),to_pat(excl)],maxdepth=kw.get('maxdepth',25),dir=dir,src=src,remove=kw.get('remove',True))]
RuntimeError: generator raised StopIteration
command "python" "waf" "configure" "--prefix=/gnu/store/lvvgxdx6fnmbya1bpyjhvzcvlbw7r3hi-ganv-1.5.4-1.12f7d6b04" failed with status 2