RTEMS Source Builder | Draft: rtems/config/tools: Add checks to stdcxx.py install script (!48)

Suraj Kumar (@the.m3chanic) gitlab at rtems.org
Tue Aug 20 04:12:40 UTC 2024




Suraj  Kumar commented: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/48#note_111337


I think `rtems-install-stdcxx.cfg` is being run by the RSB before it has a chance to get included at the right time (via `gcc-common-1.cfg`). I tried to circumvent this by defining a variable like

```
%define gcc_installed %(if [ -x %{_bindir}/%{_target}-gcc ]; then echo 1; else echo 0; fi)
```

and then placing the rest of the script under this condition, i.e, the first time being run by the RSB it would not run, and we can define it inside the check within `gcc-common-1.cfg` (`gcc_pre_install`) before including `rtems-install-stdcxx.cfg` and it should have worked but didn't. Please let me know if this can be an approach as well

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/48#note_111337
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/20240820/2ce3d19a/attachment.htm>


More information about the bugs mailing list