From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YHovHnr1W2O8OgAAbAwnHQ (envelope-from ) for ; Fri, 28 Oct 2022 17:30:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id GO70HXr1W2PK/AAAauVa8A (envelope-from ) for ; Fri, 28 Oct 2022 17:30:02 +0200 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 8809625B86 for ; Fri, 28 Oct 2022 17:30:01 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooRIj-0001mj-Bj; Fri, 28 Oct 2022 11:29:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooRIT-0001de-Or for help-guix@gnu.org; Fri, 28 Oct 2022 11:29:25 -0400 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooRIR-0007Cu-G9 for help-guix@gnu.org; Fri, 28 Oct 2022 11:29:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nOY6wVzOF5kDsLUh2Z4cuk2VJIvDwEC5OB9YeraMBXo=; b=LStzqqEKMnmy/J31fx+RQPVWIs CCcMdGZ5qxikpgWDZomgFspRs58wQ6zH+gD7SXcja5Yuiul+ivnje6aP0QbdOcPWfHpQf/tUMg4yt PWm1Wr8XFFoaqpZB/q+0h1WOizBPnUvAh9fsRER+Of9A1VorIUUR8rtx8I8+DamYDoaHFrPrQ7sNY Ggu2EDhIe62KhM/7CmrvUlitdNgGryAihMX2Jgh4vgJYyFk2SzyuRC4mLBz6gUBpEfHSZJCZKDxGS hkRJlmhybFWrQR1T1OiKedik5pRI/BYolM31SccMW5S50/4nFRaOJ8TmTCIwWDn8rEzgg7sTDrOyE pvzPhepTL2jm1lOGnoiHV6pI/DiKJE+WfXC7MJ/lhkKZV5HCe8Ce+ioqPQ6YtoHYuP594Alsd/m6/ UzLvv/kMyEgDzkYWKGlqgOKG51qn8+BLEJS0efTv9pAB8rollvtdrZwfMwfXbbytRPkmS7oR9nYaN Q5jQy58h9IHYvDYUlWE7CwMKnYJvRkGYjB3DeO4pZDrWbjzJJO3GqZXwUJR5Fx52Mxxuc2hVoFfEY XND98nrlwKXEC8G+uu0RwO4znyzJmL8H6IwWG3Lb89fdL43+XCI09aibq/NxXJoQC+IMQG9RLtz5c RS/1pRNITPBCvvdA9VRzJ2R8rZhsmqLR5r36JkNCw=; Received: from 77-252-46-225.static.ip.netia.com.pl ([77.252.46.225] helo=koszkonutek-tmp.pl.eu.org) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ooRIJ-00055o-AF; Fri, 28 Oct 2022 17:29:15 +0200 Date: Fri, 28 Oct 2022 17:29:12 +0200 To: Christian Gelinek Cc: help-guix@gnu.org Subject: Re: Package renpy broken? Message-ID: <20221028172912.6806f9e2@koszkonutek-tmp.pl.eu.org> In-Reply-To: <1b808a95-2a93-b3d1-00a5-4cf458d718c6@mailbox.org> References: <1b808a95-2a93-b3d1-00a5-4cf458d718c6@mailbox.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/pPiIYHWVA_Dfi91m+Vp=8H4"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Help-Guix" Reply-to: Wojtek Kosior From: Wojtek Kosior via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1666971002; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=nOY6wVzOF5kDsLUh2Z4cuk2VJIvDwEC5OB9YeraMBXo=; b=c+xoSRKNiRBUWehT4ASmBl10axggGKaBcYF+DTDMDMxY40i1JRqIrk/bOtUbyrR+rAqi+U SAlDKjhWAyT6xt2Yxop39dtUEhSiMvF2ArqoQWv3/8iMPFsdpCP/8u3yFsMK+RRkwrDJgO nB5boh3gX4IPm6xF47Fvabf2gBVzbPqGtyugeuiToBgNCu9wy1I2bgsg95bNEKrzXy34gh 2z5zvqN7maJYQNzxtvfFi/vfHxjGTs/7ukcDjyeG8Nm9IiIMGpyzx0JUsFYH8vkFviEdv9 u6t9e8NqP8o/H8DGKoUsqJP5ObnoIKbLP/xiNYF7xQcEhGTn9CpoSaDVVS/huw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666971002; a=rsa-sha256; cv=none; b=a4zA6AI4OiwNHsoD5T4uvLYdfZudi3JI6LhffRyOz5efue69oM2qopYl4J1X3jPr7aQdZw 7qskf4SgUeqpUZ0s2PQYTWsNt1NT+eTuWwfe8YN7Rh9+jPzjmW419axa3K6uzi6Zqqk46X FThiKZV1h8p5G14zGqXrh0A9ScZBEURzzPMfBklqFaHRVARaFDs8UHeVoOTfaZVM+PynZJ rYZGPGOGbGOHJFsMGByd0kNHp2cw7+JgWO0xzOsKXXa2/nUsX2RFhyIcVJa0YCFwfBsM2J D0MfhwfVSAjyCgV4SVJoL5+QA9spT4+6OnvhKPaSmDNGS1NWLbLB73ttF9fTyQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=LStzqqEK; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.82 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=LStzqqEK; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8809625B86 X-Spam-Score: -4.82 X-Migadu-Scanner: scn0.migadu.com X-TUID: +B1kC3j3dM/a --Sig_/pPiIYHWVA_Dfi91m+Vp=8H4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Christian, I know nothing about Ren'Py and TFD but it seems there's an approachable workaround - you can modify the package to patch launcher/game/choose_directory.rpy to have a suitable directory used. First, I'd suggest you look at how some existing packages use the `substitute*` macro[1]. Then, look at how packages are defined[2] and how to *inherit* from another package[3]. Once you grasp a bit of it, you should be able to define your own variant of the Ren'Py package. One without the bug. I realize it's probably a bit discouraging to come to a new distro and find out you need to learn packaging to utilize it. Indeed, I wish I had more time to prepare such modified package for you. Yet, honestly, Guix is a geeky package manager - you can only benefit from its super-powers once you're yourself Guix geek =C2=AF\_(=E3=83=84)_/=C2=AF Good luck :) Wojtek P.S. If TFD are really free as in freedom, it'd be cool to have the package fixed to actually use them. But that might be more involving than merely patching a path... [1] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/game-devel= opment.scm?id=3D779757047997d315d899b40c199be3709115cce4#n171 [2] https://guix.gnu.org/manual/en/html_node/Defining-Packages.html#Definin= g-Packages [3] https://guix.gnu.org/en/cookbook/en/guix-cookbook.html#Inheritance -- (sig_start) website: https://koszko.org/koszko.html PGP: https://koszko.org/key.gpg fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A Meet Krak=C3=B3w saints! #3: blessed Bernardyna Maria Jab=C5=82o= =C5=84ska Poznaj =C5=9Bwi=C4=99tych krakowskich! #3: b=C5=82ogos=C5=82awiona Bernard= yna Maria Jab=C5=82o=C5=84ska https://pl.wikipedia.org/wiki/Bernardyna_Maria_Jab=C5=82o=C5=84ska -- (sig_end) On Thu, 27 Oct 2022 06:58:58 +0000 Christian Gelinek wrote: > Dear Guix community, >=20 > I couldn't get the GUI `renpy-launcher` GUI to do anything useful.=C2=A0 = It=20 > says "The selected projects directory is not writable" for any=20 > meaningful action I attempted.=C2=A0 Under "preferences" -> General, ther= e is=20 > a Projects Directory setting which (for me) displays as "Not Set".=C2=A0= =20 > Clicking that again shows the above error. >=20 > I'm new to Ren'Py (and GuixSD), so there may be a way of specifying this= =20 > directory on the command line or via a config file somewhere, but I=20 > haven't found it. >=20 > Looking at the code at=20 > https://github.com/renpy/renpy/blob/master/launcher/game/choose_directory= .rpy=20 > it seems that it tries to import the `_renpytfd` Python package, which -= =20 > if successful - would be used to display a `selectFolderDialog`.=C2=A0=20 > Otherwise, it would try to use the parent directory and if that fails,=20 > the directory specified in config.renpy_base, which is set to the empty=20 > string. Interestingly the empty string should resolve to the current=20 > directory, but that doesn't seem to be the case in my `renpy-launcher`=20 > context. >=20 > Another thing I found is that `_renpytfd` is being removed from the=20 > renpy package in=20 > https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/game-develop= ment.scm#n1347=20 > which probably is the reason for why I can't set the path in the GUI.=C2= =A0=20 > The comment says "drop _renpytfd, as there are missing sources" but=20 > https://sourceforge.net/projects/tinyfiledialogs/files/ seems to=20 > disagree with that.=C2=A0 Additionally, there is a Guix package=20 > rust-tinyfiledialogs which I expect to also (at least indirectly) depend= =20 > on tinyfiledialogs, which is not a package. >=20 > Where to go from here? >=20 >=20 --Sig_/pPiIYHWVA_Dfi91m+Vp=8H4 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY1v1SAAKCRBLxSIcWnn9 GpHbAP91m61O5QcP8w6cGrevNndbJKw9sE7wDMFf7YsW1hGUSQD+MgQ44Yn5db/K 2KVMFgrDrI3w6vFlSGub7gGt4rWpWAo= =3F0m -----END PGP SIGNATURE----- --Sig_/pPiIYHWVA_Dfi91m+Vp=8H4--