Raghav Gururajan <r...@raghavgururajan.name> writes:
> Hello Guix! > >> With this email, I have attached the complete diff, which is to be >> applied on top of master. > > I have attached wrong file before. Here is the correct one attached. The error you posted is this: --8<---------------cut here---------------start------------->8--- Traceback (most recent call last): File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/python3.8/xml/etree/ElementTree.py", line 786, in _get_writer write = file_or_filename.write AttributeError: 'str' object has no attribute 'write' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/guix-build-tdesktop-2.5.1.drv-0/source/Telegram/build/changelog2appdata.py", line 73, in <module> main() File "/tmp/guix-build-tdesktop-2.5.1.drv-0/source/Telegram/build/changelog2appdata.py", line 68, in main update_appdata(args.appdata_path, File "/tmp/guix-build-tdesktop-2.5.1.drv-0/source/Telegram/build/changelog2appdata.py", line 60, in update_appdata appdata.write(appdata_path, encoding="utf-8", xml_declaration=True) File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/python3.8/xml/etree/ElementTree.py", line 756, in write with _get_writer(file_or_filename, enc_lower) as write: File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/python3.8/contextlib.py", line 113, in __enter__ return next(self.gen) File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/python3.8/xml/etree/ElementTree.py", line 792, in _get_writer file = open(file_or_filename, "w", encoding=encoding, PermissionError: [Errno 13] Permission denied: '/tmp/guix-build-tdesktop-2.5.1.drv-0/build/Telegram/telegramdesktop.appdata.xml' --8<---------------cut here---------------end--------------->8--- Because you are fetching from git and the git checkout is not writable You need a build phase like this: --8<---------------cut here---------------start------------->8--- (add-after 'unpack 'make-writable (lambda _ (map make-file-writable (find-files "." ".*")) #t)) --8<---------------cut here---------------end--------------->8--- -- Ricardo