<i>Building problem in a chroot - build_data.py and genfrdic.py related</i>.
by
.
D 2019-11-02T21:36:46.491
J foundin 1.5.0
J icomment Hello,\r\n\r\nWhile\strying\sto\sbuild\sa\srpm\spackage\sfor\sFedora\sin\sa\smock\senvironment\r\n(chrooted\srpmbuild),\sI\sencountered\sthese\sproblems:\r\n\r\n-\sgc_lang/fr/build_data.py\stry\sto\slaunch\sgenfrdic.py,\swith\sos\ssystem\sshell,\r\nbut\sit\sis\snot\sin\sthe\sPATH.\sHad\sto\sreplace\sline:\r\n\r\nos.system("genfrdic.py\s-s\s-gl\s-v\s"+sVersion)\r\n\r\nwith:\r\n\r\nos.system("python3\s./genfrdic.py\s-s\s-gl\s-v\s"+sVersion)\r\n\r\nto\sget\sit\sworking.\sNot\ssure\sit\sis\sthe\sright\sway\sto\ssolve\sthis.\s\r\nAdding\spython3\shelps\sbecause\seven\sif\sthe\sshebang\sfile\sis\s"#!python3"\s\r\nthe\sgenfrdic.py\sfile\sis\snot\sexecutable,\sand\sjust\smodifying\sthe\sline\sto:\s\r\n\r\nos.system("./genfrdic.py\s-s\s-gl\s-v\s"+sVersion)\s\r\n\r\ndoesn't\shelp.\r\n\r\nThen,\swhile\sgenfrdic.py\sworks,\sit\stries\sto\saccess\sto\s\r\ngc_lang/fr/dictionnaire/lexique/French.tagset.txt\sfile,\sbut\sonly\s\r\ngc_lang/fr/dictionnaire/lexique/french.tagset.txt\sexists\s\r\n(with\sa\s"f"\snot\sa\s"F").\r\nRenaming\sgc_lang/fr/dictionnaire/lexique/french.tagset.txt\sto\r\n\sgc_lang/fr/dictionnaire/lexique/French.tagset.txt\sresolve\sthe\sproblem.\r\n\r\nOne\slast\sminor\sglitch\sthat\sis\snot\sprobably\sneeded\sto\sfix\sis\sthat\s\r\nall\sthe\spython\sfiles\sshebang\swere\smodified\sfrom\s"#!python3"\sto\s\r\n"#!/usr/bin/python3"\sto\sbe\sin\ssync\swith\sFedora\spackaging\sguidelines.\r\n\r\nHope\sthis\shelps.\sAny\scomments\sabout\sthis\ssubject\sare\swelcome.\r\n\r\nCordially,\r\n\r\n\r\n--\s\r\nNVieville
J login anonymous
J mimetype text/plain
J private_contact ca604a32dc58f709231a503cb64110ed1d3b69b1
J severity Important
J status Open
J title Building\sproblem\sin\sa\schroot\s-\sbuild_data.py\sand\sgenfrdic.py\srelated
J type Build_Problem
K 03b395cc4f5dab6131938b1f17065d0ba13f52ff
U anonymous
Z 7e17f426415b022e1c609e72ee4a073e