supergfxctl

so, just for reference, this is what i suspected... the copr repo file is getting set to disabled before the install command runs, which we can see here
Installing: supergfxctl-5.1.1-0.x86_64 (copr:copr.fedorainfracloud.org:lukenukem:asus-linux)
+ cat /etc/yum.repos.d/jhyub-supergfxctl-plasmoid.repo
[copr:copr.fedorainfracloud.org:jhyub:supergfxctl-plasmoid]
name=Copr repo for supergfxctl-plasmoid owned by jhyub
baseurl=https://download.copr.fedorainfracloud.org/results/jhyub/supergfxctl-plasmoid/fedora-$releasever-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://download.copr.fedorainfracloud.org/results/jhyub/supergfxctl-plasmoid/pubkey.gpg
repo_gpgcheck=0
enabled=0
enabled_metadata=1
+ [[ 1 -gt 0 ]]
+ [[ 0 -eq 0 ]]
+ rpm-ostree install supergfxctl-plasmoid
Enabled rpm-md repositories: rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree-updates rpmfusion-nonfree fedora updates updates-archive

Importing rpm-md...done
rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2023-06-15T14:37:57Z solvables: 199
rpm-md repo 'rpmfusion-free' (cached); generated: 2022-11-11T16:54:42Z solvables: 496
rpm-md repo 'rpmfusion-nonfree-updates' (cached); generated: 2023-06-15T14:55:04Z solvables: 98
rpm-md repo 'rpmfusion-nonfree' (cached); generated: 2022-11-11T17:25:12Z solvables: 218
rpm-md repo 'fedora' (cached); generated: 2022-11-05T08:04:38Z solvables: 66822
rpm-md repo 'updates' (cached); generated: 2023-06-17T01:59:49Z solvables: 32395
rpm-md repo 'updates-archive' (cached); generated: 2023-06-16T02:43:09Z solvables: 47900
error: Packages not found: supergfxctl-plasmoid
Error: building at STEP "RUN /tmp/install.sh": while running runtime: exit status 1
Installing: supergfxctl-5.1.1-0.x86_64 (copr:copr.fedorainfracloud.org:lukenukem:asus-linux)
+ cat /etc/yum.repos.d/jhyub-supergfxctl-plasmoid.repo
[copr:copr.fedorainfracloud.org:jhyub:supergfxctl-plasmoid]
name=Copr repo for supergfxctl-plasmoid owned by jhyub
baseurl=https://download.copr.fedorainfracloud.org/results/jhyub/supergfxctl-plasmoid/fedora-$releasever-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://download.copr.fedorainfracloud.org/results/jhyub/supergfxctl-plasmoid/pubkey.gpg
repo_gpgcheck=0
enabled=0
enabled_metadata=1
+ [[ 1 -gt 0 ]]
+ [[ 0 -eq 0 ]]
+ rpm-ostree install supergfxctl-plasmoid
Enabled rpm-md repositories: rpmfusion-free-updates rpmfusion-free rpmfusion-nonfree-updates rpmfusion-nonfree fedora updates updates-archive

Importing rpm-md...done
rpm-md repo 'rpmfusion-free-updates' (cached); generated: 2023-06-15T14:37:57Z solvables: 199
rpm-md repo 'rpmfusion-free' (cached); generated: 2022-11-11T16:54:42Z solvables: 496
rpm-md repo 'rpmfusion-nonfree-updates' (cached); generated: 2023-06-15T14:55:04Z solvables: 98
rpm-md repo 'rpmfusion-nonfree' (cached); generated: 2022-11-11T17:25:12Z solvables: 218
rpm-md repo 'fedora' (cached); generated: 2022-11-05T08:04:38Z solvables: 66822
rpm-md repo 'updates' (cached); generated: 2023-06-17T01:59:49Z solvables: 32395
rpm-md repo 'updates-archive' (cached); generated: 2023-06-16T02:43:09Z solvables: 47900
error: Packages not found: supergfxctl-plasmoid
Error: building at STEP "RUN /tmp/install.sh": while running runtime: exit status 1
I'm still trying to sort out why and where though.
8 Replies
EyeCantCU
EyeCantCU•12mo ago
Yeah, I have no idea why that would be. All of the other repos stay enabled
bsherman
bsherman•12mo ago
OH! I see! so... you copied the pattern which was there already, which makes sense... but... the RPM spec for ublue-os-nvidia-addons*.rpm actually disables all it's included repo files before putting them into the archive for distribution... so this line adds an enabled repo file: https://github.com/ublue-os/nvidia/blob/main/install.sh#L22-L23 but this overwrites it with a disabled version: https://github.com/ublue-os/nvidia/blob/main/install.sh#L31 so i'm thinking of how to most simply do the right thing here if we want to use packages.json, i'd prefer to go all in, and put all package names in there, but we can't really, since several of them are kernel and nvidia driver version specific so, maybe we just don't use the packages.json pattern for this, and instead keep it simple i'm thinking the latter idea is cleanest.... so I'll PR this and ask you to approve
EyeCantCU
EyeCantCU•12mo ago
Hah SWEET. Nice job finding that. I wouldn't have noticed that in a million years
bsherman
bsherman•12mo ago
thanks, i've just worked with these repos and the scripts enough that i've faced this kind of problem before 🙂
EyeCantCU
EyeCantCU•12mo ago
Yeah, I really need to learn more about spec files considering they're used everywhere
bsherman
bsherman•12mo ago
it's not spec file specific, just happens that in the ublue-os-nvidia-addons.spec we run a sed command to disable all the extra repos https://github.com/ublue-os/nvidia/blob/main/ublue-os-nvidia-addons.spec#L35
bsherman
bsherman•12mo ago
GitHub
fix: install supergfxctl-plasmoid by bsherman · Pull Request #121 ·...
Corrects a problem where this was failing to install due to the ublue-os-nvidia-addons RPM disabling the required COPR repo. Fixes #99 again FYI @EyeCantCU
EyeCantCU
EyeCantCU•12mo ago
Oh, all right. That makes sense