Hi Karel, On 4/20/22 20:38, Karel Gardas wrote: > Chris, Frank, > > I don't feel particularly comfortable with this patch. It works here on > Ubuntu 20.04 with python 3.3 and Ubuntu 22.04 with Python 3.10, but I > have to admit semantics of this cfg language is beyond my liking and a > lot is in complete darkness here. E.g. how &&, < operator are working > here. Delete both int conversions and it'll not work at all. Keep one > and it'll work well. > The problem is probably lack of time to go thorough all the docs on > docs.rtems.org to find relevant bits while working on the patch. > > Anyway, if you have time, please review and test on your platforms.
I am rather sorry to write this but your patch does not work for me. The before failing build on "Fedora Linux 35 (Container Image)" with Python 3.10.4 works fine with your patch. Yet, the "openSUSE Leap 15.3" container with Python 3.6.15 (which was building OK without this patch) fails now: 11:32:00 config: tools/rtems-gdb-11.2.cfg 11:32:00 error: shell macro failed: /home/minna/src/rtems-source-builder/source-builder/sb/rtems-build-dep -c gcc -l : 2: error: no library (-l) provided 11:32:00 Build FAILED 11:32:00 Build Set: Time 0:00:37.716473 Some notes: The "RTEMS User Manual" Section "14.5.8.21. %if" https://docs.rtems.org/branches/master/user/rsb/configuration.html#if states: "< The left hand side is numerically less than the right hand side." "<= The left hand side is numerically less than or equal to the right hand side." According to this, it is never a lexicographical comparison. 3.10 is 3.1 as floating number and thus 3.1 < 3.8 holds true. What I do not know is whether the tool uses integers or real numbers nor whether the documentation is up to date. The `&&` and the `int()` are _not_ documented there. The `&&` is actually used in .cfg-files but surprisingly seldom. Moreover, this command may help debugging: `%{echo message}` Print the following string as a message. Greetings, fk -- embedded brains GmbH Herr Frank KÜHNDEL Dornierstr. 4 82178 Puchheim Germany email: frank.kuehn...@embedded-brains.de phone: +49-89-18 94 741 - 23 fax: +49-89-18 94 741 - 08 Registergericht: Amtsgericht München Registernummer: HRB 157899 Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler Unsere Datenschutzerklärung finden Sie hier: https://embedded-brains.de/datenschutzerklaerung/ _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel