From c1237925233134ea8c5b5338ebc1ad733f60976f Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Mon, 24 Feb 2020 12:16:50 +0100 Subject: [PATCH] asciidoc: Fix for python3 The two scripts a2x.py and asciidoc.py provided by this package use a shebang `#!/usr/bin/env python`. However, this package requires python2 and so fails after we changed the default from python2 to python3. Fix the shebang of the two scripts to explicitly call python2. The package is no longer maintained and the release notes of the final release suggest to replace it with "a supported release such as Asciidoctor". We can do that at a later time, however now we want to get things fixed quickly. --- asciidoc.be0 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/asciidoc.be0 b/asciidoc.be0 index d08e3064b..0386bf7c7 100755 --- a/asciidoc.be0 +++ b/asciidoc.be0 @@ -1,6 +1,6 @@ #!/usr/bin/env beesh -# BEE_VERSION asciidoc-8.6.9-1 +# BEE_VERSION asciidoc-8.6.9-2 # more info: https://foo.bar.com @@ -18,9 +18,10 @@ build_in_sourcedir # bee_extract "${@}" #} -#mee_patch() { -# bee_patch "${@}" -#} +mee_patch() { + bee_patch "${@}" + sed -i '1s/python$/python2/' asciidoc.py a2x.py +} #mee_configure() { # bee_configure