RTEMS | waf: Fix handling of the VERSION file in a release (!257)

Gedare Bloom (@gedare) gitlab at rtems.org
Sat Oct 26 00:26:05 UTC 2024




Gedare Bloom started a new discussion on wscript: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/257#note_113793

 > +                ctx.fatal("Invalid VERSION revision: too many dots")
 > +            if "-" in vs[0]:
 > +                value = vs[0]
 > +                vs = value.split("-", 1)
 > +                version_label = vs[1]
 > +            version_minor = vs[0]
 > +            prefix = "/opt/rtems/" + version_major
 > +        except configparser.NoOptionError:
 > +            pass
 > +    if version_major is not None:
 > +        version["__RTEMS_MAJOR__"] = version_major
 > +    if version_minor is not None:
 > +        version["__RTEMS_MINOR__"] = version_minor
 > +    if version_label is not None:
 > +        version["RTEMS_RELEASE_VERSION_LABEL"] = version_label
 > +    # Checking minor insures major and minor are valid

The "RTEMS_REVISION" is not being set/used. The documentation should be clear on this.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/257#note_113793
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241026/67ec7091/attachment-0001.htm>


More information about the bugs mailing list