LibBSD | Python syntax warnings (#92)

Matteo Concas (@matteo.concas) gitlab at rtems.org
Thu Jun 4 08:04:20 UTC 2026



Matteo Concas created an issue: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/92



## Summary
Running waf on Python 3.12 will give warnings about invalid escape sequences:
```bash
$ python3 --version
Python 3.12.3
$ ./waf -p configure --prefix=/opt/rtems/7 --rtems-bsps=sparc/gr740
/home/matteo/dev/rtems-libbsd/rtems_waf/rtems.py:588: SyntaxWarning: invalid escape sequence '\.'
  tar_rule = "tar -cf ${TGT} --format=ustar -C ../.. $(echo "${SRC}" | sed -e \'s/\.\.\/\.\.\///g\')"
/home/matteo/dev/rtems-libbsd/rtems_waf/pkgconfig.py:70: SyntaxWarning: invalid escape sequence '\$'
  mre = re.compile('\$\{[^\}]+\}')
/home/matteo/dev/rtems-libbsd/builder.py:549: SyntaxWarning: invalid escape sequence '\/'
  for c in '\/-.':
/home/matteo/dev/rtems-libbsd/waf_libbsd.py:371: SyntaxWarning: invalid escape sequence '\:'
  transpose = [(':', '\:'), ('/', '\/')]
/home/matteo/dev/rtems-libbsd/waf_libbsd.py:371: SyntaxWarning: invalid escape sequence '\/'
  transpose = [(':', '\:'), ('/', '\/')]
```


<!-- Pre-set options
- milestone
-->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-libbsd/-/issues/92
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/20260604/c191f2b8/attachment.htm>


More information about the bugs mailing list