[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: update-profiles.sh
From: |
Gottfried |
Subject: |
Re: update-profiles.sh |
Date: |
Tue, 25 Apr 2023 15:51:30 +0000 |
Hi,
thanks for help
no problem, I make constantly mistakes...
Also, the script I prepared previously probably created some extraneous
profiles at the paths it was trying to use. Again, sorry if this
happened. You might want to remove the extra profiles you'll find.
I have e.g. in the directory /home/gfp/Projekte/Emacs/
the directories:
1. emacs (8 elements: bin, etc, include, lib, libexec, sbin, share,
manifest),
2. emacs-1-link (8 elements),
3. guix-profil (8 elements: bin, etc, include, lib, libexec, sbin share,
manifest),
4. guix-profil-2-link (8 elements),
5. guix-profil-3-link (8 elements)
and 6. emacs.scm
Do you mean the directories "emacs" and "guix-profil" because they have
the same subdirectories/8 elements
are now created, like double
and I have to remove the directory "emacs",
because the directory "guix-profil" should stay?
All the different profiles (I put them in the directory "Projekte
(engl. projects)
have now always like the example above "emacs"
subdirectories: like their "different package names" and also "guix-profil".
I understood you, that now the subdirectories (with the names of the
profiles) are now according to the update script additionally created.
and I should delete those directories with the name of the profile
I hope I could express myself clearly.
....................................................................
Kind regards
Gottfried
Am 24.04.23 um 20:11 schrieb Wojtek Kosior:
Hi,
thanks for help
I tried this script in the terminal.
1.
gfp@Tuxedo ~$ ./update-profiles.sh
it said
guix package: Error: Profile /home/gfp/Projects/Calibre/calibre is
locked by another process
I didn’t open calibre, so what could be the problem?
Oooops, there's probably been a mistake.
Looking at your emails from an older thread, it seems your profile
paths were like "/home/gfp/Projects/Calibre/guix-profil" and
"/home/gfp/Projects/Musik/guix-profil". Is that correct, is there
"guix-profil" at the end of every profile path? And here, with this
script, I erroneously assumed profile paths like
"/home/gfp/Projects/Calibre/calibre" and
"/home/gfp/Projects/Musik/musik". I apologize :(
We need to adapt the script to use the correct profile paths. I think
you could use something like
```
#!/bin/sh
GUIX_PROFILES=$HOME/Projekte
for dir in $GUIX_PROFILES/*
do
name="$(basename "$dir" | tr '[:upper:]' '[:lower:]')"
manifest="$dir"/"$name".scm
profile="$dir"/guix-profil
if [ -r $manifest ]
then
guix package --manifest="$manifest" --profile="$profile"
fi
done
```
Also, the script I prepared previously probably created some extraneous
profiles at the paths it was trying to use. Again, sorry if this
happened. You might want to remove the extra profiles you'll find.
Good luck,
Wojtek
-- (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
♥ R29kIGlzIHRoZXJlIGFuZCBsb3ZlcyBtZQ== | ÷ c2luIHNlcGFyYXRlZCBtZSBmcm9tIEhpbQ==
✝ YnV0IEplc3VzIGRpZWQgdG8gc2F2ZSBtZQ== | ? U2hhbGwgSSBiZWNvbWUgSGlzIGZyaWVuZD8=
-- (sig_end)
On Mon, 24 Apr 2023 15:42:38 +0000
Gottfried <gottfried@posteo.de> wrote:
Hi,
thanks for help
I tried this script in the terminal.
1.
gfp@Tuxedo ~$ ./update-profiles.sh
it said
guix package: Error: Profile /home/gfp/Projects/Calibre/calibre is
locked by another process
I didn’t open calibre, so what could be the problem?
2. it installed almost all packages from all profiles
without icecat, probably because I had it opened.
3. It did not install my "Musik" profile with several packages.
is locked by another process
I am not sure about that, because I haven't opened any of those packages.
So we have success.
Thank you very much.
You saved me a lot of time and headache.
Kind regards
Gottfried
#!/bin/sh
GUIX_PROFILES=$HOME/Projekte
for dir in $GUIX_PROFILES/*
do
name=$(basename "$dir" | tr '[:upper:]' '[:lower:]')
manifest="$dir"/$name.scm
profile=$dir/$name
if [ -r $manifest ]
then
guix package --manifest="$manifest" --profile="$profile"
fi
done
OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature