blue-build/template

Updating the directory structure - 2024-07-21 -- Breaks `gschema-overrides`

Closed this issue · 8 comments

I followed the migration instructions, but am getting the following:

=========================================== Start 'gschema-overrides' Module ===========================================
Installing gschema-overrides module
Applying the following gschema-overrides:
ublue1.gschema.override
ublue2.gschema.override
cp: cannot stat '/tmp/files/gschema-overrides/ublue1.gschema.override': No such file or directory
Error: building at STEP "RUN --mount=type=bind,from=stage-files,src=/files,dst=/tmp/files,rw --mount=type=bind,from=stage-modules,src=/modules,dst=/tmp/modules,rw --mount=type=bind,from=ghcr.io/blue-build/cli:4f235be4f7ec2aa1a462565f4ba797554ac62edb-build-scripts,src=/scripts/,dst=/tmp/scripts/ --mount=type=cache,dst=/var/cache/rpm-ostree,id=rpm-ostree-cache-silver-ublue-40,sharing=locked /tmp/scripts/run_module.sh 'gschema-overrides' '{"type":"gschema-overrides","include":["ublue1.gschema.override","ublue2.gschema.override"]}'   && ostree container commit": while running runtime: exit status 1
[01:54:01 ERROR] => Failed to build ghcr.io/dperson/silver-ublue:40
Error: Process completed with exit code 1.

Prior to change results:

=========================================== Start 'gschema-overrides' Module ===========================================
Installing gschema-overrides module
Applying the following gschema-overrides:
ublue1.gschema.override
ublue2.gschema.override
Running error-checking test for your gschema-overrides. If test fails, build also fails.
Warning: Schema ?org.freedesktop.ibus? has path ?/desktop/ibus/?.  Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
Warning: Schema ?org.freedesktop.ibus.general? has path ?/desktop/ibus/general/?.  Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
Warning: Schema ?org.freedesktop.ibus.general.hotkey? has path ?/desktop/ibus/general/hotkey/?.  Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
Warning: Schema ?org.freedesktop.ibus.panel? has path ?/desktop/ibus/panel/?.  Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
Warning: Schema ?org.freedesktop.ibus.panel.emoji? has path ?/desktop/ibus/panel/emoji/?.  Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
Warning: Schema ?org.gnome.crypto.cache? has path ?/desktop/gnome/crypto/cache/?.  Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
Warning: Schema ?org.gnome.crypto.pgp? has path ?/desktop/gnome/crypto/pgp/?.  Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
Warning: Schema ?org.gnome.system.locale? has path ?/system/locale/?.  Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
Warning: Schema ?org.gnome.system.proxy? has path ?/system/proxy/?.  Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
Warning: Schema ?org.gnome.system.proxy.http? has path ?/system/proxy/http/?.  Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
Warning: Schema ?org.gnome.system.proxy.https? has path ?/system/proxy/https/?.  Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
Warning: Schema ?org.gnome.system.proxy.ftp? has path ?/system/proxy/ftp/?.  Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
Warning: Schema ?org.gnome.system.proxy.socks? has path ?/system/proxy/socks/?.  Paths starting with ?/apps/?, ?/desktop/? or ?/system/? are deprecated.
Compiling gschema to include your changes with gschema-override

@fiftydinar any idea?

@xynydev
It works for me in my repo.

I see that the build is successful in @dperson's repo with gschema overrides now.

But I can't see if it was the user error or module error, since it seems that @dperson generated the new repo from scratch.

I doubt it's the module error, since we changed hardcoded config/ to ${MODULE_DIRECTORY}.

Maybe he just forgot to migrate gschema-overrides files along with other stuff.

I actually disabled the gschema override, but it could have been a transitory issue. I'll try re-enabling it.

Nope, same error:

=========================================== Start 'gschema-overrides' Module ===========================================
Installing gschema-overrides module
Applying the following gschema-overrides:
ublue1.gschema.override
ublue2.gschema.override
cp: cannot stat '/tmp/files/gschema-overrides/ublue1.gschema.override': No such file or directory
Error: building at STEP "RUN --mount=type=bind,from=stage-files,src=/files,dst=/tmp/files,rw --mount=type=bind,from=stage-modules,src=/modules,dst=/tmp/modules,rw --mount=type=bind,from=ghcr.io/blue-build/cli:4f235be4f7ec2aa1a462565f4ba797554ac62edb-build-scripts,src=/scripts/,dst=/tmp/scripts/ --mount=type=cache,dst=/var/cache/rpm-ostree,id=rpm-ostree-cache-silver-ublue-40,sharing=locked /tmp/scripts/run_module.sh 'gschema-overrides' '{"type":"gschema-overrides","include":["ublue1.gschema.override","ublue2.gschema.override"]}'   && ostree container commit": while running runtime: exit status 1
[13:05:18 ERROR] => Failed to build ghcr.io/dperson/silver-ublue:40
Error: Process completed with exit code 1.

@dperson I notice that you use symlink on gschema-overrides to dconfs, which might be why you get the error.

Will test this more.

@dperson Your symlink points out to

../files/usr/etc/dconf/db/local.d/01-ublue

which is invalid.

it should point out to:

../system/usr/etc/dconf/db/local.d/01-ublue

I bet that's it... They were already in the /usr/etc/dconf/db/local.d anyway really, so I didn't want to have to manage them twice...

Doh! Sorry, should have thought of that with the path changes 😅

I was converting them to hard links to get past the issue (after a quick check that git supported them).

Thanks so much, and sorry about my SNAFU!