From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2FP/KXNWo2O91wAAbAwnHQ (envelope-from ) for ; Wed, 21 Dec 2022 19:54:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kMvtKXNWo2NVGgAAauVa8A (envelope-from ) for ; Wed, 21 Dec 2022 19:54:43 +0100 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 5E93232C14 for ; Wed, 21 Dec 2022 19:54:43 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p84ER-0000SF-PT; Wed, 21 Dec 2022 13:54:23 -0500 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 1p84EQ-0000QZ-0R for help-guix@gnu.org; Wed, 21 Dec 2022 13:54:22 -0500 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 1p84EM-0004Z1-Pj for help-guix@gnu.org; Wed, 21 Dec 2022 13:54:21 -0500 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=YnLxcQT9CpQka+om3VdxMwoo7bgxpE0wkVblfvUfviE=; b=DKuTGA+42hJtPvNRRFgz0YCw0s +SyKNw1fKCTNwjEeW9NcIjGLo/sWWqHY364YHiElHadAKmwJ2fJejkg1H4m3w4AfJh7AUktdCzmDi 1ay8Tp0mPqJR66aNZSP3kyAxZpdSQ9Y41mCIAjFsmWkHbB4AURrZ73lKku/LJdB+VhJswJ8emLlOp Sr2Idsj3bur/scjIQlF4UiXO7glexSGlna10OksDVbk2x6+9x65j9hHfFUPel7odxq12hUHKgaU9D PEDKeWARx3KbzJLQjNZjnjLFhG6sRyqCpSPeYYpTLUgLqyyKk/kceRYbLYlA+dgOchEngaPwzkj4Z 3n8Lz3kasmPFKwV6EQilh2ZV41KFx8C9Jl5KBBuwlzDeZ4fsIofTjQ8VldMWlpnXL2WhTRGZiju4O XbB3/BfzIVegRjOj0Tocwx8POPPyCLkAER524wSYFOqw3bn+xsPSMi6d2ypTy3YEHq1NE90KN55B/ Wi1ipECN7rEoQKZkI5LiRVcxBGgHXi3Ejq8NilsgvMkwwlH/ok8ODEMITz8hSKj0UoA+pO0Ubfb6u E7jap6obQPQhmtg6fNtlFIUxr5Ehbc4M7jCZTHBAa+RtpZB3kh6x7EwQ0wuaT7Nwc78r3DdxXa22I ssWoOnv/Okdh0cf8KBBYLQiPGyIrWyd2bn07+ScnI=; Received: from [77.252.47.216] (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 1p84E4-0003cv-7j; Wed, 21 Dec 2022 19:54:00 +0100 Date: Wed, 21 Dec 2022 19:53:57 +0100 To: Gottfried Cc: Csepp , help-guix@gnu.org Subject: Re: installing of two versions of package Musescore Message-ID: <20221221195357.22e6cc41.koszko@koszko.org> In-Reply-To: <22bd03bb-8de5-77b8-0a34-86486f6042b6@posteo.de> References: <89e84b0b-0e63-01c7-9d44-2e6e3fd30641@posteo.de> <87v8m7o5qv.fsf@riseup.net> <87mt7iugu7.fsf@riseup.net> <22bd03bb-8de5-77b8-0a34-86486f6042b6@posteo.de> 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_/wyDQie28VF3rEb6KwthcjYw"; 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: , Reply-to: Wojtek Kosior From: Wojtek Kosior via Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671648883; a=rsa-sha256; cv=none; b=uAU8bgIVcfcSUqgcbHa2RCmu8kQuE462ayiwcvSsBO6B7TI5Z8IehMcb+/AMgmUM1AczZk OlN92EkPscgXm2evU8PFlygPppvtJ1Yp/3MVkRbkrHjSs15FNkV0iHRfXxEsqhKPRwt76n gJ0U3c4d6sCD+J+iBtBuR+BOE8dE0H2jwuXIk1NeDCI/gJULzX5dOAmw6ODOg4Px51uInj GiNZpw9R3qNZGo4IE9B1z05qFYSDsBQ7ajD1jMX3vzqMepbrgszXXDdawosLtYOq86jLrK nc4EeqghA/Zh+Sceb8No/LHZuOLwPolTQIRMMxOcG26pLm8hhyiPEal7mOXVOg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=DKuTGA+4; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671648883; 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=YnLxcQT9CpQka+om3VdxMwoo7bgxpE0wkVblfvUfviE=; b=hNe9xf/4P/WmreUa1NtRDupet07n4X1JIedZyn7XGjcJHVxhGAMSl03LrBZVhyJYlDUBAH VakFiZBtAGe7woY6Pi4gnjpdNDRA5sPXX/Kpb9Gzr4IE2YQlqGk543dsJx5ucb50e6suYI WW/sAsyZ5/Mhkhi/QTHtq00TrgaFXWw+ol/qSA6t8iAqAyogDa2pDZnq/LoUSK/SdFTSrS ZkljwAtOciTgeSbbjOGncu26fmlD5EVCCwBGhgQDxoqfMpZTlCOohC+Nx8hpce4qZIo2C2 zyiRp7tHp80/IQ4z7uHRtKDpYoEhEHphzBE+D54IN2ogbdmLvW2VO43Py/of7A== X-Spam-Score: -5.90 X-Migadu-Queue-Id: 5E93232C14 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=DKuTGA+4; 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"; dmarc=pass (policy=none) header.from=gnu.org X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -5.90 X-TUID: 6KVPjVrzu4cP --Sig_/wyDQie28VF3rEb6KwthcjYw Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > I understood that the best would be to create a separate profile > and have Musescore in it. >=20 > But which version? > [...] > ................................................ > Or should I do it the other way round: > to put version 4.0 in a separate profile, > and keep version 3.6.2 in my main profile, > but AFAIU that would mean during updating > I will loose 3.6.2 for ever. > ................................................ You can still install 3.6.2 by using `guix time-machine`[1]. Nevertheless, I'm under impression we're missing something. Since I subscribed to the help-guix mailing list, I've seen at least 2 questions about `guix upgrade` giving some stupid errors. Experienced users then recommended using manifests instead. What has just been suggested to you and what we are considering now is - creating a profile using a manifest - and later updating that profile using `guix upgrade`. While this is possible, it seems we're missing the opportunity that manifests give us =E2=80=94 to manage the already-existing profiles declaratively, through code. This way we can ditch the `guix upgrade` altogether. I believe this is what some of those people actually meant. Let me quote part of the `-m` option description from the "Invoking guix package" section of the Guix manual > --manifest=3Dfile > -m file > Create a new generation of the profile from the manifest object returned= by the > Scheme code in file. This option can be repeated several times, in which = case > the manifests are concatenated. > This allows you to declare the profile=E2=80=99s contents rather than con= structing it > through a sequence of --install and similar commands. The advantage is th= at > file can be put under version control, copied to different machines to re= produce > the same profile, and so on. What does this mean? That instead of updating with shell commands like guix pull guix package --upgrade # optionally add `-p` option here you can update with guix pull guix package --manifest path/to/your/manifest.scm # optionally add `-p`= option here Also, instead of installing new packages with e.g. guix package --install guile-frobnicator # optionally add `-p` option h= ere you'd just include the desired package ("guile-frobnicator" in this case) in your manifest file and repeat the guix package --manifest path/to/your/manifest.scm # optionally add `-p`= option here Now, there's one more thing worth noting. In order to install an older version of the musescore package with manifests, you can't just use the `guix time-machine` command as I suggested before. Or, well, you could but then *all* packages in the profile would end up being taken from an older guix version. Instead, manifests allow you to use Inferiors (described here[2]) which provide an analogous feature to `guix time-machine` but through a Guile API. I hope I helped and not made it unbearably complex to grasp =F0=9F=98=85 Best luck, happy hacking, Wojtek [1] https://guix.gnu.org/en/manual/en/html_node/Invoking-guix-time_002dmach= ine.html#Invoking-guix-time_002dmachine [2] https://guix.gnu.org/manual/en/html_node/Inferiors.html -- (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! #43: saint Rafa=C5=82 Kalinowski Poznaj =C5=9Bwi=C4=99tych krakowskich! #43: =C5=9Bwi=C4=99ty Rafa=C5=82 Ka= linowski https://pl.wikipedia.org/wiki/Rafa=C5=82_Kalinowski -- (sig_end) On Wed, 21 Dec 2022 13:17:06 +0000 Gottfried wrote: > Thanks very much Csepp, >=20 > I am getting closer to it. > ................................................. > I want to have Musescore 3.6.2 for long time, > and additionally Musescore 4.0. >=20 > I understood that the best would be to create a separate profile > and have Musescore in it. >=20 > But which version? > Should I put the version 3.6.2 in my new profile to keep it, >=20 > and in my main profile during updating > it will eventually install version 4.0? > ................................................ > Or should I do it the other way round: > to put version 4.0 in a separate profile, > and keep version 3.6.2 in my main profile, > but AFAIU that would mean during updating > I will loose 3.6.2 for ever. > ................................................ >=20 > When using "Guix shell", AFAIU, I would have to do it on a daily basis, > because every time I switch off my laptop, > its lost. Is it like that? > ................................................ >=20 > Kind regards >=20 > Gottfried >=20 >=20 >=20 > Am 20.12.22 um 18:02 schrieb Csepp: > >=20 > > Gottfried writes: > > =20 > >> [[PGP Signed Part:Undecided]] > >> Hi Csepp, > >> > >> this was anyhow my question. > >> =20 > >>>> In general you do not need to install packages under development in = your =20 > >>>>> main profile. It would be better to either put it in a separate pr= ofile > >>>>> or use a temporary shell every time and put the package definition = in a > >>>>> manifest or script. =20 > >> > >> > >> Until now I installed everything in my main profile > >> > >> 1. I don't know yet how to create a profile/manifest. > >> > >> I was reading the cookbook and the manual already several times about > >> that, but it seems to me difficult. =20 > >=20 > > A simple way to do it is: > > ``` > > guix shell --export-manifest python python-sympy | tee guix.scm > > ``` > >=20 > > It even works with transforms, so let's say you were working on getting > > the newest version of Cutter running: > > ``` > > guix shell --export-manifest --with-latest=3Dcutter cutter | tee guix.s= cm > > ``` > > =20 > >> 2. If I create an other profile through a manifest > >> what is the benefit of it in my case? =20 > >=20 > > You can load the profile separately and it should be overlaid on top of > > your normal profile, shadowing the Musescore binary from it. > > The advantage of a persistent profile (as opposed to a manifest on its > > own) is that it will survive garbage collection, so you won't be > > building the same package again and again. > >=20 > > Another benefit is that you can upgrade them separately. This is why I > > have TeXlive installed in a separate profile, because it is a several > > gigabyte download, so I'd rather not have to wait for it every time I > > upgrade my default profile. > > =20 > >> 3. I would have to put all my 60 packages there (how?) and if I > >> download an other package, would I have to create the manifest again > >> and again? =20 > >=20 > > No. Profiles are not chroots, or containers, or VMs, or anything like > > that. Profiles can be composed. In fact, if you are using Guix System, > > you are already using two profiles stacked on top of each other: the > > system profile at /run/current-system and your default user profile at > > $HOME/.guix-profile. > > Packages installed in your system profile do not have to be installed in > > your user profile. You *can* install them in it, but it's not > > necessary. > > Similarly, if you install a different version of Musescore in a separate > > profile, that only has to contain Musescore and nothing else. > > I have a graphics profile and it only contains a few programs, like > > Blender, Inkscape, etc. But for example it does not have Emacs in it, > > because Emacs is loaded by my default user profile at > > $HOME/.guix-profile. > > =20 > >> 4. And if I want to update the packages, lets say every second week, > >> then I would have to create the manifest again every second week. =20 > >=20 > > No, the manifest file stays the same. It's just a list of packages. > > To upgrade a persistent profile you can just use the usual method: > > ``` > > guix package --upgrade --profile=3D/path/to/profile > > ``` > >=20 > > If you don't want to make a persistent profile, you can instead do: > > ``` > > guix shell --manifest=3Dguix.scm > > ``` > > =20 > >> 5. Would I then have to uninstall all my installed packages in the > >> main profile, in order not to have it twice? =20 > >=20 > > No, see above. > > Also having multiple version of a package installed is not a problem on > > Guix, only if they are in the same profile. You can have as many > > conflicting version as you want, they won't concflict if they are not in > > the same profile. > > =20 > >> 6. How could I then use my manifest? Which commands would I have to > >> use to open it and to use my packages? =20 > >=20 > > For a temporary shell (see above on how to create guix.scm): > > ``` > > guix shell --manifest=3Dguix.scm > > ``` > >=20 > > For a persistent profile: > > ``` > > # first create the profile > > guix package --profile=3D/path/to/profile > > # then load it > > export GUIX_PROFILE=3D/path/to/profile > > source "${GUIX_PROFILE}/etc/profile" > > # alternatively: > > source /path/to/profile/etc/profile > > # there are some subtle differences between the two > > ``` > >=20 > > Caveat for persistent profiles: > > if you modify the profile (for example by installing a new package in > > it) then you might have to load it again. > > More precisely: if the list of environment variables in the profile > > changes, you have to reload it. Otherwise if the GUIX_PROFILE > > environment variable was defined correctly when you first loaded it, > > then you don't have to reload it. =20 >=20 >=20 --Sig_/wyDQie28VF3rEb6KwthcjYw Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY6NWRQAKCRBLxSIcWnn9 GjERAQDvKg9ay0iX+kg22L5c7IoknVDZLRn4OHsh5Y/sBUPh4QEA/S3plOYazVWQ Eg7kuKOfcZkxjTqCaj/fIrre08Z0ZA0= =6tbf -----END PGP SIGNATURE----- --Sig_/wyDQie28VF3rEb6KwthcjYw--