Opened 6 months ago

Closed 2 months ago

#70039 closed defect (fixed)

asciidoc @10.2.0: <unknown>:1: SyntaxWarning: invalid escape sequence '\S'

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: haspatch Cc:
Port: asciidoc

Description

Using asciidoc—for example building MacPorts base—produces this output:

/opt/local/bin/asciidoc -f asciidoc.conf -a manversion=2.9.99 -a revdate=2.9.99 -d manpage -b docbook port-fetch.1.txt
/opt/local/bin/asciidoc -f asciidoc.conf -a manversion=2.9.99 -a revdate=2.9.99 -d manpage -b docbook port-install.1.txt
/opt/local/bin/asciidoc -f asciidoc.conf -a manversion=2.9.99 -a revdate=2.9.99 -d manpage -b docbook port.1.txt
gzip -c portfile.7 > portfile.7.gz
<unknown>:1: SyntaxWarning: invalid escape sequence '\S'
<unknown>:1: SyntaxWarning: invalid escape sequence '\S'
<unknown>:1: SyntaxWarning: invalid escape sequence '\S'
<unknown>:1: SyntaxWarning: invalid escape sequence '\S'
<unknown>:1: SyntaxWarning: invalid escape sequence '\S'
<unknown>:1: SyntaxWarning: invalid escape sequence '\S'

Here is the fix:

https://github.com/asciidoc-py/asciidoc-py/pull/267

Change History (3)

comment:1 Changed 2 months ago by christophecvr (christophecvr)

Hi solution is possible just upgrading asciidoc to version 10.2.1 I did by me by changing the port file from :

PortSystem          1.0

PortGroup           github 1.0
PortGroup           python 1.0

github.setup        asciidoc asciidoc-py3 10.2.0
revision            3
checksums           rmd160  e6369eddc6d72a4ea910f06f320881be105cd348 \
                    sha256  f830cb726d0b1448a451e916a7e60abfd27fce7f4dbce4c0c8f1ff856c1765ee \
                    size    1199960
name                asciidoc

to :

PortSystem          1.0

PortGroup           github 1.0
PortGroup           python 1.0

github.setup        asciidoc-py asciidoc-py 10.2.1
revision            0
checksums           rmd160  f7a190ae21ba4664cae18915038e0cdd9eccd15f \
                    sha256  c3d9df7d0150bd8431c44bcc85fb29bc953a76b86ad3b8ccb34272208bf7ab4c \
                    size    1200113
name                asciidoc

After this change doc files are build back. Before it was a deprecated warning since python 3.12 it is invalid sequence and some docs are wrongly or not build at all Despite the fact that general build is not broken.

Last edited 2 months ago by christophecvr (christophecvr) (previous) (diff)

comment:2 Changed 2 months ago by christophecvr (christophecvr)

@ryandesign @neverpanic

Send pull request :

https://github.com/macports/macports-ports/pull/25780

comment:3 Changed 2 months ago by christophecvr (christophecvr)

Resolution: fixed
Status: assignedclosed

In 145b7559780066b453415e79a8b3f7d210edba83/macports-ports (master):

asciidoc: update to version 10.2.1

  • update to version 10.2.1

Closes: #70039
Closes: https://github.com/macports/macports-ports/pull/25780

Note: See TracTickets for help on using tickets.