Re: problems with "gedit"

2023-02-12 Thread 宋文武
Gottfried  writes:

> Hi,
>
> gfp@Tuxedo ~$ guix upgrade gedit
> The following package will be upgraded:
>gedit 42.2 -> 44.1
>
> guix upgrade: error: profile contains conflicting entries for dconf
> guix upgrade: error:   first entry: dconf@0.40.0
> /gnu/store/gkr4pbmc7320zvrnl48mjacpb3km00j7-dconf-0.40.0
> guix upgrade: error:... propagated from gedit@44.1
> guix upgrade: error:   second entry: dconf@0.40.0
> /gnu/store/0fpkqzkbwl43apj6ls4sfggj17i3nvvv-dconf-0.40.0
> guix upgrade: error:... propagated from gedit@42.2
> hint: You cannot have two different versions or variants of `gedit' in
> the same profile.

Um, seems like a bug here that upgrade didn't exclude previous
propagated packages from conflicts checking, not very sure, need check
though..
>
>
> How can I solve this problem?
> Should I uninstall "gedit" and then reinstall it?
> or are there other possibilities?

I think uninstall should works, or maybe "guix upgrade gedit dconf"?



Declarative Guix Containers

2023-02-12 Thread Benton Edmondson
Hello,

I see under 
that it is possible to imperatively run programs in their own container. Is
it possible to do this declaratively? In other words, can I create a
derivation which generates a Guix Container, which I could then put in a
manifest? I read around but didn't see documentation on this.

Thanks,
Benton


Re: problems with "gedit"

2023-02-12 Thread Andreas Enge
Am Sun, Feb 12, 2023 at 04:32:05PM + schrieb Gottfried:
> When upgrading "gedit" this message below was shown.
> So upgrading didn’t help.

The suggestion was to upgrade *all* packages at once, not only gedit.
You may get a conflict if two different packages pull in two different
versions of the same library (via propagated-inputs). In particular if
you mix old and new packages. So please try
   guix upgrade
(not followed by any package name).

Andreas




Re: problems with "gedit"

2023-02-12 Thread Gottfried

Hi,


You can upgrade all of your packages, not just gedit.


When upgrading "gedit" this message below was shown.
So upgrading didn’t help.
Kind regards

Gottfried



Am 12.02.23 um 14:20 schrieb Leo Famulari:

On Sun, Feb 12, 2023 at 09:15:45AM +, Gottfried wrote:

guix upgrade: error:   first entry: dconf@0.40.0
/gnu/store/gkr4pbmc7320zvrnl48mjacpb3km00j7-dconf-0.40.0
guix upgrade: error:... propagated from gedit@44.1
guix upgrade: error:   second entry: dconf@0.40.0
/gnu/store/0fpkqzkbwl43apj6ls4sfggj17i3nvvv-dconf-0.40.0
guix upgrade: error:... propagated from gedit@42.2
hint: You cannot have two different versions or variants of `gedit' in the
same profile.


How can I solve this problem?
Should I uninstall "gedit" and then reinstall it?
or are there other possibilities?


You can upgrade all of your packages, not just gedit.


--


OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: open a package in the terminal

2023-02-12 Thread Tobias Geerinckx-Rice
Hi Gottfried,

The project (≈package) named 'musescore' distributes a binary (≈command) named 
'mscore':

  ~ λ ls $(guix build musescore)/bin
  mscore

Don't ask me why they didn't call it 'musescore', but in general package names 
do not map 1:1 to binary names.  That's why peeking in the /{s,}bin directories 
is helpful.

An obvious example is 'coreutils', which provides most of the commands you use 
daily, but none named 'coreutils'.

Kind regards,

T G-R

Sent on the go.  Excuse or enjoy my brevity.



Re: problems with "gedit"

2023-02-12 Thread Leo Famulari
On Sun, Feb 12, 2023 at 09:15:45AM +, Gottfried wrote:
> guix upgrade: error:   first entry: dconf@0.40.0
> /gnu/store/gkr4pbmc7320zvrnl48mjacpb3km00j7-dconf-0.40.0
> guix upgrade: error:... propagated from gedit@44.1
> guix upgrade: error:   second entry: dconf@0.40.0
> /gnu/store/0fpkqzkbwl43apj6ls4sfggj17i3nvvv-dconf-0.40.0
> guix upgrade: error:... propagated from gedit@42.2
> hint: You cannot have two different versions or variants of `gedit' in the
> same profile.
> 
> 
> How can I solve this problem?
> Should I uninstall "gedit" and then reinstall it?
> or are there other possibilities?

You can upgrade all of your packages, not just gedit.



open a package in the terminal

2023-02-12 Thread Gottfried

Hi,

it seems, I lost an email, which I wanted to write.

When using my MATE Terminal Emulator
I can enter the names of the packages like:

"gedit" or "pluma"(MATE) and so on

and it opens gedit or pluma and so on,

but the package "musescore" doesn’t open.

Why does bash not find this package?


--
Kind regards

Gottfried



OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: attempt to create a profile

2023-02-12 Thread Gottfried

Hi,


If you used guix shell then I'm pretty sure it should show someting.
Running `guix shell -p ~/.guix-profile -- bash` does show the [env]
prompt for me


you are right, this happend

guix shell showed the "env".



Did you open it from bash or from a desktop app launcher?
The environment variables are only changed locally in the bash process
you ran source from, or the bash process that guix shell spawned.
If you did run it from there and it launched the wrong one, then could
you post the output of

guix package -p /home/gfp/Projekte/Musescore/guix-profil --list-installed



I opened it from bash and not from a desktop app laucher.
But because both versions of Musescore are the same,(in my general 
profile and in my Musescore profile), I didn’t know if I was in the 
Musescore profile.


Kind regards

Gottfried



Gottfried  writes:

> [[PGP Signed Part:Undecided]]
> Hi,
>
> thanks for your help.
>
> I tried to open this profile,
>
> by
>
>> gfp@Tuxedo ~$  source 
/home/gfp/Projekte/Musescore/guix-profil/etc/profile

>>
> or
>
>> gfp@Tuxedo ~$ guix shell -p /home/gfp/Projekte/Musescore/guix-profil
>
> but it didn’t happen anything.

It's normal, it normally doesn't show anything.

> How can I know, that I am now in this profile?
>
> Shouldn’t bash show me something?

If you directly source the etc/profile script, GUIX_PROFILE does not get
defined, so bash doesn't know you loaded a profile.
Which is actually "correct", since sourcing it is not the same as
entering it using guix shell/environment.  Sourcing directly modifies
the running process's environment variables, so exiting bash would not
get you back to a default environment, it would most likely just close
the terminal emulator.  But if you are in a genuine `guix shell`,
running the exit builtin command gets you back to the process where guix
shell was run from.

If you used guix shell then I'm pretty sure it should show someting.
Running `guix shell -p ~/.guix-profile -- bash` does show the [env]
prompt for me, so either your bash is configured differently or your
login shell is not bash.  For example, my login shell is Zsh, which
doesn't have the same customization, I had to add a similar prompt hack
myself.

> And when I opened the package "musescore" it opened the package
> musescore in my other profile.
> So I guess I am not in this profile.

Did you open it from bash or from a desktop app launcher?
The environment variables are only changed locally in the bash process
you ran source from, or the bash process that guix shell spawned.
If you did run it from there and it launched the wrong one, then could
you post the output of

guix package -p /home/gfp/Projekte/Musescore/guix-profil --list-installed

?

Maybe you accidentally mixed up which version is installed in which
profile, it happens.



OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


problems with "gedit"

2023-02-12 Thread Gottfried

Hi,

gfp@Tuxedo ~$ guix upgrade gedit
The following package will be upgraded:
   gedit 42.2 -> 44.1

guix upgrade: error: profile contains conflicting entries for dconf
guix upgrade: error:   first entry: dconf@0.40.0 
/gnu/store/gkr4pbmc7320zvrnl48mjacpb3km00j7-dconf-0.40.0

guix upgrade: error:... propagated from gedit@44.1
guix upgrade: error:   second entry: dconf@0.40.0 
/gnu/store/0fpkqzkbwl43apj6ls4sfggj17i3nvvv-dconf-0.40.0

guix upgrade: error:... propagated from gedit@42.2
hint: You cannot have two different versions or variants of `gedit' in 
the same profile.



How can I solve this problem?
Should I uninstall "gedit" and then reinstall it?
or are there other possibilities?


--
Kind regards

Gottfried



OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Running shepherd as user: incompatible bytecode version

2023-02-12 Thread elaexuotee
Hello Léo,

> I get the same issue, the shepherd package uses GNU Guile 3.0.2 and GNU
> Guix provides GNU Guile 3.0.5 under the 'guile' package specification
> name.
> 
> I am not sure this is the cause, since shepherd is wrapped to use GNU
> Guile 3.0.2.
> 
> I am also still looking for a solution.
> 
> Léo

After guiving Shepherd user services a quick poke again, just now, I noticed
that the original issue isn't occurring. It looks the fix for
https://issues.guix.gnu.org/58631, introduced last November makes shepherd use
guile-3.0-latest, bringing it in line with guix.