Il giorno lun 4 feb 2019 alle ore 11:28 Amirouche Boubekki <
address@hidden> ha scritto:
Il giorno dom 3 feb 2019 alle ore 12:46 Catonano <
address@hidden> ha scritto:
Il giorno dom 3 feb 2019 alle ore 08:01 Catonano <
address@hidden> ha scritto:
I think this bug should be reopened
I tested it myself and I asked another person to test it and the symptom is still there
I think it only works on Guix
But on mainstream package management, it still doesn't work
I discussed this yesterday evening on the irc channel with amz3 but ng0 wasn't on line so maybe they haven't followed the discussion
Thanks
I managed to make it work, but I'd appreciate if someone else would test it
Thanks
Hi amz3
on saturday evening you suggested me an edit to the makefile to set the PYTHONPATH env variable before running
$(BABEL) extract -F locale/babel.map -o locale/messages.pot .
but you just sent me a link to a pastebin service
I can't find that anymore and that seems relevant, now
I'd as you to send a patch, even here on the mailing list
we are at a stage in which the building of the web site works ONLY IF the PYTONPATH env var is set manually before building
Here is the patch:
address@hidden:~/src/www/gnunet$ git diff
diff --git a/Makefile b/Makefile
index 617d526..909055e 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ locale: locale-update locale-compile
# Run the jinja2 templating engine to expand templates to HTML
# incorporating translations.
template: locale-compile
- $(PYTHON) ./template.py
+ PYTHONPATH=$(PYTHONPATH) $(PYTHON) ./template.py
it: template
Thank you ! 🙏
Well, I didn't remember correctly.
In this patch, you set the PYTHONPATH to run the template.py file
But the line where the problem arises is not the one running the template.py file
So I changed this line in the Makefile
# Extract translateable strings from jinja2 templates.
locale/messages.pot: *.j2 common/*.j2.inc
$(BABEL) extract -F locale/babel.map -o locale/messages.pot .
to
# Extract translateable strings from jinja2 templates.
locale/messages.pot: *.j2 common/*.j2.inc
PYTHONPATH=$(PYTHONPATH) $(BABEL) extract -F locale/babel.map -o locale/messages.pot .
that is, I am setting the PYTHONPATH before calling Babel
this seems to fix the problem
You can test this yourself.
Apply this edit, then change a file and try to build.
Then change it again and build again.
It should build in both cases
I would appreciate if anyone would confirm this
I wonder why his happens on some platforms and not on others