Open gvancuts opened 5 years ago
You have a core problem in your packaging in that your release number appears to be entirely made up and not suiting RPM specs.
You have a core problem in your packaging in that your release number appears to be entirely made up and not suiting RPM specs.
Not disagreeing with you on the fundamental that we should use a better release number. For the sake of clarity, it's not random, it's based on the date/time (YYMMDDHHMM
): https://github.com/clearlinux-pkgs/linux-iot-lts2018/blob/master/linux-iot-lts2018.spec#L18-L20
I think that release number matches the tag that is used in the upstream repo: https://github.com/intel/linux-intel-lts/tags
@miguelinux should be able to provide further details.
Yeah looking again there I think that should be part of the version field tbqh. Our packages define our releases, upstream defines their versions.
@ikeyd I agree. In Clear Linux OS, the Release
field only has significance for the distro as an artifact of building and publishing rpms for every package. All bits needed to represent the upstream package version should be the value of Version
.
Release: is the build sequence number, and cannot be based on some upstream version thing... I'm fixing the package.
Steps to reproduce this issue:
sudo swupd bundle-add kernel-iot-lts2018
native
kernels)org.clearlinux.iot-lts2018.4.19.13-1901141831
kernel asIf you try to set the other
native
kernel, things work as expected (sudo clr-boot-manager set-kernel org.clearlinux.native.4.19.13-680
)I have slightly instrumented the code with
printf
in an attempt to troubleshoot this. Here is the patch I have applied to the latest master source:With that in the code, here is the output:
I don't understand at all why
k->meta.release
does not hold the correct value. Based on theprintf
outputs, it is parsed correctly from the command-line, the kernel detection function stores the right value in the array. Couldnc_array_get
possibly corrupt that data? Note that everything works fine with the other native kernels.