RTEMS Source Builder | Draft: RSB modifications to install stdcxx.py in gdb/python/rtems (!35)
Suraj Kumar (@the.m3chanic)
gitlab at rtems.org
Wed Aug 14 12:39:56 UTC 2024
Suraj Kumar commented on a discussion on source-builder/config/gcc-common-1.cfg: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/35#note_110983
> #
> %global _gcclibdir %{_prefix}/lib
>
> +#
> +# Path to source-builder/config. The _configdir macro contains
> +# 4 copies to the config inside source-builder/
> +#
> +%define sb_configdir %(echo %{_configdir} | cut -d':' -f1)
The thing is, I need a path specifically to `rsb/rtems/config/stdcxx-template.py`, in order to be able to cat it and filter it through `sed`\`.
If I try doing the following:
```
%define stdcxx_template %{_configdir}/stdcxx-template.py
```
It appends `stdcxx-template.py` to each path in the macro, and it is not in a form which I can `cat` (since it is 4 paths). This is why I decided to define a separate macro for I hope I was able to convey the problem clearly enough?
Your solution will work for the rest of the issues I think, since it is only a matter of including the files - but it is not working for the case of running `cat` on `stdcxx-template.py`. Would another approach be to grep the pattern of `rtems/config` instead of assuming a specific ordering within `_configdir`?
--
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/35#note_110983
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/20240814/52b1df35/attachment.htm>
More information about the bugs
mailing list