Since https://git.sr.ht/~martijnbraam/megapixels/commit/68bba0a8a5a03487def34292c8e3f3a91c65581c (ironically), it seems like glib schemas are not compiled anymore, breaking the nixpkgs package. It causes an error like: no schemas found for megapixels.
Is it intended that the schemas are not compiled anymore, or is that a regression? Is it up to the packagers to compile the schemas now, e.g. by running glib-compile-schemas ourselves, like shown in this comment: https://github.com/NixOS/nixpkgs/pull/132814#issuecomment-907863298?
I personally would expect this to be done by the package if needed, but we may differ on that opinion.
Before the update to 1.2.0 (version 1.1.0):
$ tree /nix/store/1ymv4l2is1vfja2zvl4wgf9c6f4m22x5-megapixels-1.1.0 /nix/store/1ymv4l2is1vfja2zvl4wgf9c6f4m22x5-megapixels-1.1.0 ├── bin │ ├── megapixels │ ├── megapixels-camera-test │ └── megapixels-list-devices └── share ├── applications │ └── org.postmarketos.Megapixels.desktop ├── glib-2.0 ├── gsettings-schemas │ └── megapixels-1.1.0 │ └── glib-2.0 │ └── schemas │ ├── gschemas.compiled │ └── org.postmarketos.Megapixels.gschema.xml ├── icons │ └── hicolor │ └── scalable │ └── apps │ └── org.postmarketos.Megapixels.svg ├── megapixels │ ├── config │ │ ├── pine64,pinephone-1.0.ini │ │ ├── pine64,pinephone-1.1.ini │ │ ├── pine64,pinephone-1.2.ini │ │ └── pine64,pinetab.ini │ └── postprocess.sh └── metainfo └── org.postmarketos.Megapixels.metainfo.xml
After the update to 1.2.0:
$ tree /nix/store/bywmw90r4ynbiv6lvk324fv5kmddss1n-megapixels-1.2.0 /nix/store/bywmw90r4ynbiv6lvk324fv5kmddss1n-megapixels-1.2.0 ├── bin │ ├── megapixels │ ├── megapixels-camera-test │ └── megapixels-list-devices └── share ├── applications │ └── org.postmarketos.Megapixels.desktop ├── glib-2.0 ├── gsettings-schemas │ └── megapixels-1.2.0 │ └── glib-2.0 │ └── schemas │ └── org.postmarketos.Megapixels.gschema.xml ├── icons │ └── hicolor │ └── scalable │ └── apps │ └── org.postmarketos.Megapixels.svg ├── megapixels │ ├── config │ │ ├── pine64,pinephone-1.0.ini │ │ ├── pine64,pinephone-1.1.ini │ │ ├── pine64,pinephone-1.2.ini │ │ └── pine64,pinetab.ini │ └── postprocess.sh └── metainfo └── org.postmarketos.Megapixels.metainfo.xml
Thanks for the camera app!
Hello Rick,
It seems most distro's have a hook in the glib package that automatically recompiles the schemas when a package pushes new schemas. It's certainly neater since it's not compiling the schema for megapixels, it's compiling it globally.
Greetings, Martijn
Op ma 30 aug. 2021 om 20:38 schreef Rick van Schijndel outgoing@sr.ht:
Since https://git.sr.ht/~martijnbraam/megapixels/commit/68bba0a8a5a03487def34292c8e3f3a91c65581c (ironically), it seems like glib schemas are not compiled anymore, breaking the nixpkgs package. It causes an error like: no schemas found for megapixels.
Is it intended that the schemas are not compiled anymore, or is that a regression? Is it up to the packagers to compile the schemas now, e.g. by running glib-compile-schemas ourselves, like shown in this comment: https://github.com/NixOS/nixpkgs/pull/132814#issuecomment-907863298?
I personally would expect this to be done by the package if needed, but we may differ on that opinion.
Before the update to 1.2.0 (version 1.1.0):
$ tree /nix/store/1ymv4l2is1vfja2zvl4wgf9c6f4m22x5-megapixels-1.1.0 /nix/store/1ymv4l2is1vfja2zvl4wgf9c6f4m22x5-megapixels-1.1.0 ├── bin │ ├── megapixels │ ├── megapixels-camera-test │ └── megapixels-list-devices └── share ├── applications │ └── org.postmarketos.Megapixels.desktop ├── glib-2.0 ├── gsettings-schemas │ └── megapixels-1.1.0 │ └── glib-2.0 │ └── schemas │ ├── gschemas.compiled │ └── org.postmarketos.Megapixels.gschema.xml ├── icons │ └── hicolor │ └── scalable │ └── apps │ └── org.postmarketos.Megapixels.svg ├── megapixels │ ├── config │ │ ├── pine64,pinephone-1.0.ini │ │ ├── pine64,pinephone-1.1.ini │ │ ├── pine64,pinephone-1.2.ini │ │ └── pine64,pinetab.ini │ └── postprocess.sh └── metainfo └── org.postmarketos.Megapixels.metainfo.xml
After the update to 1.2.0:
$ tree /nix/store/bywmw90r4ynbiv6lvk324fv5kmddss1n-megapixels-1.2.0 /nix/store/bywmw90r4ynbiv6lvk324fv5kmddss1n-megapixels-1.2.0 ├── bin │ ├── megapixels │ ├── megapixels-camera-test │ └── megapixels-list-devices └── share ├── applications │ └── org.postmarketos.Megapixels.desktop ├── glib-2.0 ├── gsettings-schemas │ └── megapixels-1.2.0 │ └── glib-2.0 │ └── schemas │ └── org.postmarketos.Megapixels.gschema.xml ├── icons │ └── hicolor │ └── scalable │ └── apps │ └── org.postmarketos.Megapixels.svg ├── megapixels │ ├── config │ │ ├── pine64,pinephone-1.0.ini │ │ ├── pine64,pinephone-1.1.ini │ │ ├── pine64,pinephone-1.2.ini │ │ └── pine64,pinetab.ini │ └── postprocess.sh └── metainfo └── org.postmarketos.Megapixels.metainfo.xml
Thanks for the camera app!
-- View on the web: https://todo.sr.ht/~martijnbraam/Megapixels/59
We'll change the package accordingly then. Thanks for the info!
30 aug. 2021 20:57:50 ~martijnbraam outgoing@sr.ht:
Hello Rick,
It seems most distro's have a hook in the glib package that automatically recompiles the schemas when a package pushes new
schemas. It's certainly neater since it's not compiling the schema for megapixels, it's compiling it globally.
Greetings, Martijn
Op ma 30 aug. 2021 om 20:38 schreef Rick van Schijndel outgoing@sr.ht:
Since
https://git.sr.ht/~martijnbraam/megapixels/commit/68bba0a8a5a0 3487def34292c8e3f3a91c65581c (ironically), it seems like glib schemas are not compiled anymore, breaking the nixpkgs package. It causes an error like: no schemas found for megapixels.
Is it intended that the schemas are not compiled anymore, or is that a regression? Is it up to the packagers to compile the schemas now, e.g. by running glib-compile-schemas ourselves, like shown in this comment:
https://github.com/NixOS/nixpkgs/pull/132814#issuecomment-907863298?
I personally would expect this to be done by the package if needed, but we may differ on that opinion.
Before the update to 1.2.0 (version 1.1.0):
$ tree /nix/store/1ymv4l2is1vfja2zvl4wgf9c6f4m22x5-megapixels-1.1.0
/nix/store/1ymv4l2is1vfja2zvl4wgf9c6f4m22x5-megapixels-1.1.0
├── bin
│ ├── megapixels │ ├── megapixels-camera-test │ └── megapixels-list-devices └── share ├── applications │ └── org.postmarketos.Megapixels.desktop ├── glib-2.0
├── gsettings-schemas
│ └── megapixels-1.1.0 │ └── glib-2.0 │ └── schemas │ ├── gschemas.compiled │ └── org.postmarketos.Megapixels.gschema.xml ├── icons │ └── hicolor │ └── scalable │ └── apps
│ └── org.postmarketos.Megapixels.svg
├── megapixels │ ├── config │ │ ├── pine64,pinephone-1.0.ini │ │ ├── pine64,pinephone-1.1.ini
│ │ ├── pine64,pinephone-1.2.ini
│ │ └── pine64,pinetab.ini │ └── postprocess.sh └── metainfo
└── org.postmarketos.Megapixels.metainfo.xml
After the update to 1.2.0:
$ tree /nix/store/bywmw90r4ynbiv6lvk324fv5kmddss1n-megapixels-1.2.0
/nix/store/bywmw90r4ynbiv6lvk324fv5kmddss1n-megapixels-1.2.0
├── bin
│ ├── megapixels │ ├── megapixels-camera-test │ └── megapixels-list-devices └── share ├── applications │ └── org.postmarketos.Megapixels.desktop ├── glib-2.0
├── gsettings-schemas
│ └── megapixels-1.2.0 │ └── glib-2.0 │ └── schemas │ └── org.postmarketos.Megapixels.gschema.xml ├── icons │ └── hicolor │ └── scalable │ └── apps
│ └── org.postmarketos.Megapixels.svg
├── megapixels │ ├── config │ │ ├── pine64,pinephone-1.0.ini │ │ ├── pine64,pinephone-1.1.ini
│ │ ├── pine64,pinephone-1.2.ini
│ │ └── pine64,pinetab.ini │ └── postprocess.sh └── metainfo
└── org.postmarketos.Megapixels.metainfo.xml
Thanks for the camera app!
-- View on the web: https://todo.sr.ht/~martijnbraam/Megapixels/59
-- View on the web: https://todo.sr.ht/~martijnbraam/Megapixels/59#event-96413