[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNUnet-developers] a bug about the web site

From: Catonano
Subject: Re: [GNUnet-developers] a bug about the web site
Date: Mon, 4 Feb 2019 12:10:44 +0100

Il giorno lun 4 feb 2019 alle ore 11:28 Amirouche Boubekki <address@hidden> ha scritto:

Le lun. 4 févr. 2019 à 10:02, Catonano <address@hidden> a écrit :

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


I managed to make it work, but I'd appreciate if someone else would test it 


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/ -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) ./
 it: template

Thank you ! 🙏

Well, I didn't remember correctly.

In this patch, you set the PYTHONPATH to run the file

But the line where the problem arises is not the one running the file

So I changed this line in the Makefile

# Extract translateable strings from jinja2 templates.
locale/messages.pot: *.j2 common/*
        $(BABEL) extract -F locale/ -o locale/messages.pot .


# Extract translateable strings from jinja2 templates.
locale/messages.pot: *.j2 common/*
        PYTHONPATH=$(PYTHONPATH) $(BABEL) extract -F locale/ -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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]