Changes between Initial Version and Version 1 of Ticket #69585, comment 21


Ignore:
Timestamp:
Jun 4, 2024, 1:24:45 PM (5 months ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #69585, comment 21

    initial v1  
    3737}}}
    3838
    39 I would guess that this was not intentional and it was simply not considered that a filename that we might want to test would contain the `+` character. The problem would also occur for any filenames we might test that contain other special regex characters—like `*`, `[`, `]`, `{`, `}`, `(`, `)`—but I don't think we've encountered those. `.` is also a special regex character meaning "any character" although that has not led to any problems.
     39I would guess that this was not intentional and it was simply not considered that a filename that we might want to test would contain the `+` character. The problem would also occur for any filenames we might test that contain other special regex characters—like `*`, `^`, `$`, `[`, `]`, `{`, `}`, `(`, `)`—but I don't think we've encountered those. `.` is also a special regex character meaning "any character" although that has not led to any problems.
    4040
    4141One solution is to change all depspecs and escape all special regex characters. For example, the depspec `path:lib/pkgconfig/gtk\\+-3\\.0\\.pc:gtk3` allows gtk3-devel to be used but this is ugly; we surely don't want to have to write that in every Portfile. The double backslash is needed because one level of escaping is interpreted by Tcl before it gets interpreted as a regex.