From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aHtRJVdN+F+3ZQAA0tVLHw (envelope-from ) for ; Fri, 08 Jan 2021 12:17:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id wAAFIVdN+F/2GwAAbx9fmQ (envelope-from ) for ; Fri, 08 Jan 2021 12:17:27 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0F5009402A0 for ; Fri, 8 Jan 2021 12:17:26 +0000 (UTC) Received: from localhost ([::1]:50262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxqhp-0004jM-Qs for larch@yhetil.org; Fri, 08 Jan 2021 07:17:25 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50982) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxqhR-0004hw-2L for guix-devel@gnu.org; Fri, 08 Jan 2021 07:17:01 -0500 Received: from sender4-of-o50.zoho.com ([136.143.188.50]:21039) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxqhN-0006fC-Uy for guix-devel@gnu.org; Fri, 08 Jan 2021 07:17:00 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1610108210; cv=none; d=zohomail.com; s=zohoarc; b=bYo0AknytObhTPi8cwPd0Ry0MwJdU2LSHgDIZrfIhC9KkUoMlL+EKmhDKbZ/WBXFpCKXCUts+fj63jKtfFtmjOLNqVLmVneJNAaSOUjcEHddBDTdBH9fRm0rniMKuTvXlya5zE9pBBX4OC7hGTqmfMlUncypYWwFvQkpE9WRl1E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610108210; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=ytCskt2vtE8E0Dv7iU6D3tLzv18Bnvct3oHZxQCEnLk=; b=jNX4DCW69J+5jieENYXxfG2xvDI4QaKnVwVWZ5xO+AA8DmPgeZPBNv9S5NU6dzK+RBH0doCxVtewCTUxh52iO+a5uLpPRLRLMBZCsYRl542oyhz4KssAlPca4nFZh7EPpIqSkR7VT3ST3OtL4nP4C6Z+RRux6N4QGd/UqjtDk34= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1610108210; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type; bh=ytCskt2vtE8E0Dv7iU6D3tLzv18Bnvct3oHZxQCEnLk=; b=bnqa1AZ9on6laZyp95YpGrMFEGPcamudsBUBGY0oMO+lFWkKzpcWYMm4aHSuE4aI br3P0Rkrbjl84bDtTei3Qt21blT34PJrYlSomfpsDfu/15ERmNz+QQuGULAWY92+ZXp 5n+4Ym3tRdL2wkTPT56r8snnyf4RmzpLbR1hMXp0= Received: from localhost (p54ad4ca5.dip0.t-ipconnect.de [84.173.76.165]) by mx.zohomail.com with SMTPS id 16101082080801003.134585270151; Fri, 8 Jan 2021 04:16:48 -0800 (PST) References: <671cd289-5c83-3673-34f9-8287ff7c30a8@raghavgururajan.name> <5a6392cd-b478-846a-beda-4f97e46cbdd0@raghavgururajan.name> User-agent: mu4e 1.4.13; emacs 27.1 From: Ricardo Wurmus To: Raghav Gururajan Subject: Re: [Telegram-Desktop]: Help with packaging In-reply-to: <5a6392cd-b478-846a-beda-4f97e46cbdd0@raghavgururajan.name> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Fri, 08 Jan 2021 13:16:43 +0100 Message-ID: <87sg7bfwt0.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.50; envelope-from=rekado@elephly.net; helo=sender4-of-o50.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=bnqa1AZ9; arc=pass (zohomail.com:s=zohoarc:i=1); dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 0F5009402A0 X-Spam-Score: -3.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7TPxzDzloYYX Raghav Gururajan 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 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