Sunday, 2025-11-09

riniguslooks like a known bug: generated KS does not have releaseMajorMinor but lines like repo --name=adaptation-community-xqct54-@RELEASE@ --baseurl=https://repo.sailfishos.org/obs/nemo:/testing:/hw:/sony:/nagara:/latest/sailfishos_latest_@ARCH@/12:32
riniguswas wondering how to work around it (for few hours!) and found out that we just need to forget about generated KS. example: https://github.com/HelloVolla/droid-config-halium-mimir/tree/master/sparse/usr/share/kickstarts12:33
rinigusmaybe there is a better solution? apart from KS parsing and sed12:34
malwhich community-adaptation package do you have?12:49
malrinigus: ^12:54
rinigusmal: sorry for delay. I am using https://github.com/sailfishos-sony-nagara/community-adaptation14:15
rinigusbtw, same happens with adaptation-community-common14:23
rinigusand generated ssu feature files are correct14:23
malrinigus: local builds?15:03
malcheck which package you have installed in local target15:04
rinigusmal: no, OBS.15:04
rinigusand local packages are not used by create images script. it pulls generated KS15:04
malrinigus: I mean local mic build or some other way?15:04
rinigusmal: some other way. while on PC, basically pulling KS from https://build.sailfishos.org/package/binary/nemo:testing:hw:sony:nagara:5.0/droid-config-xqct54?arch=aarch64&filename=droid-config-xqct54-ssu-kickstarts-1%2Bmain.20251106194635.ea31dcd-1.1.1.bso.aarch64.rpm&repository=sailfishos_5.0_aarch64 and then using it to generate image15:05
riniguspersistent link: https://build.sailfishos.org/package/show/nemo:testing:hw:sony:nagara:5.0/droid-config-xqct54 , package ssu-kickstarts15:06
malwell since I have no idea how you really build the image it's difficult to debug15:07
rinigusmal: I have a script that generates image using kickstart file. the issue is not even in the script, but the fact that kickstart file is generated wrong. for some reason, instead of URLs used by me in https://github.com/sailfishos-sony-nagara/community-adaptation/blob/main/adaptation-community.testing.ini.in , they get processed and dumped into KS in a wrong way15:12
rinigusfrom https://repo.sailfishos.org/obs/nemo:/testing:/hw:/sony:/nagara:/%(releaseMajorMinor)/sailfishos_%(releaseMajorMinor)%(arch)/ I get https://repo.sailfishos.org/obs/nemo:/testing:/hw:/sony:/nagara:/latest/sailfishos_latest@ARCH@/15:13
riniguswhich is a bug either in my config or code generating this KS file15:13
rinigusmal: ^15:13
rinigus* from https://repo.sailfishos.org/obs/nemo:/testing:/hw:/sony:/nagara:/%(releaseMajorMinor)/sailfishos\_%(releaseMajorMinor)_%(arch)/ I get https://repo.sailfishos.org/obs/nemo:/testing:/hw:/sony:/nagara:/latest/sailfishos\_latest_@ARCH@/15:14
rinigus(even after editing my message some urls are incorrect, see github and generated ssu-kickstarts for proper urls)15:16
malrinigus: it seems releaseMajorMinor ends up being latest15:18
malin the .ks15:18
rinigusmal: exactly! no idea why15:18
rinigusand that seems to be for common as well15:19
malargh, how dumb are people doing search features, nice when searching for code and search just ignores special characters like @15:32
rinigusmal: I can try to search as well. unless I messed up configs, I guess it is somewhere in ssu code.15:34
malI see same for fp515:34
malI have used manual .ks for image builds so didn't notice it before15:35
rinigusI guess its a reason, or one of them, why we use manual KS files.15:35
malI suspect I know the reason, need to test15:37
malroot cause probably exists in two repos, problem is that one of them is a closed one15:40
malyeah, quite sure I know why that happens15:44
rinigusmal: ssu-kickstart-configuration-jolla? looks like it is missing releaseMajorMinor in its configs15:44
malrinigus: yes, 01-kickstart15:48
rinigusmal: maybe also in addition post/60_ssu. there is something extra going on there15:49
malrinigus: and second part that is missing is replacing what ever variable we set there back to proper variable15:49
rinigusI see. OK, for now then we will sed it away15:50
rinigusuntil the fix will land on this guarded proprietary code :)15:50
malI'll fix it in internal repo and make a PR to whatever is doing the replacing the other way15:51
rinigusthanks!15:52
malI think fix is needed also in mic repo and droid-hal-configs15:53
malhttps://github.com/mer-hybris/droid-hal-device/blob/master/helpers/build_packages.sh#L397 needs RELEASEMAJORMINOR or something like that but need to think a bit15:53
rinigusmal: yes, somehow we need to be able to replace it. don't think you need to touch mic as we give a map to it anyway when we start. otherwise it would have to be more clever about some specific var15:58
malyeah, not sure yet if mic needs changes or not16:01
malhttps://github.com/sailfishos/mic/blob/master/mic/utils/misc.py#L21016:01
malwe still might want some fallback for those majorminor things there16:02
malbut not sure if that is needed16:03
rinigusits probably not critical as nobody noticed earlier and didn't complain loudly. for now, there are workarounds at least16:06
malinternal PR created :)16:18
rinigusnice!16:28
malrinigus: https://github.com/mer-hybris/droid-hal-device/pull/34616:54
rinigus22 PRs in that repo. even mine :)16:56

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!