Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] emerge asciidoc fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 167

PostPosted: Wed Dec 19, 2018 7:20 am    Post subject: [Solved] emerge asciidoc fails Reply with quote

While trying to merge btrfs-progs on RPi, its dependency, asciidoc fails to merge.

RPi1B2:~ Necktwi$ sudo emerge --info '=app-text/asciidoc-8.6.10::gentoo' | wgetpaste -u
http://tinyurl.com/y79o2nr5
RPi1B2:~ Necktwi$ sudo emerge -pqv '=app-text/asciidoc-8.6.10::gentoo' | wgetpaste -u
http://tinyurl.com/yata9xmh
RPi1B2:~ Necktwi$ wgetpaste -u /var/tmp/portage/app-text/asciidoc-8.6.10/temp/build.log
http://tinyurl.com/ybo8fs74

thanq!


Last edited by necktwi on Wed Dec 19, 2018 1:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30838
Location: here

PostPosted: Wed Dec 19, 2018 7:42 am    Post subject: Reply with quote

There is a open bug but without solution.
You can provide output of command
Code:
# ebuild /usr/portage/app-text/asciidoc/asciidoc-8.6.10.ebuild unpack
# cd /var/tmp/portage/app-text/asciidoc-8.6.10/work/asciidoc-8.6.10
# python ./a2x.py --verbose -f manpage doc/asciidoc.1.txt

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 167

PostPosted: Wed Dec 19, 2018 8:02 am    Post subject: Reply with quote

Code:
RPi1B2:asciidoc-8.6.10 Necktwi$ sudo python ./a2x.py --verbose -f manpage doc/asciidoc.1.txt
  File "./a2x.py", line 79
    print '%s: %s' % (PROG,msg)
                 ^
SyntaxError: invalid syntax
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30838
Location: here

PostPosted: Wed Dec 19, 2018 8:04 am    Post subject: Reply with quote

necktwi wrote:
Code:
RPi1B2:asciidoc-8.6.10 Necktwi$ sudo python ./a2x.py --verbose -f manpage doc/asciidoc.1.txt
  File "./a2x.py", line 79
    print '%s: %s' % (PROG,msg)
                 ^
SyntaxError: invalid syntax

Sorry my fault you should run command with python2.7
Code:
$ sudo python2.7 ./a2x.py --verbose -f manpage doc/asciidoc.1.txt

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 167

PostPosted: Wed Dec 19, 2018 8:10 am    Post subject: Reply with quote

No prob!

RPi1B2:asciidoc-8.6.10 Necktwi$ sudo python2.7 ./a2x.py --verbose -f manpage doc/asciidoc.1.txt 2>&1 | wgetpaste -u
http://tinyurl.com/yd69may4

thanq!
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30838
Location: here

PostPosted: Wed Dec 19, 2018 8:57 am    Post subject: Reply with quote

You have file /etc/xml/docbook?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 167

PostPosted: Wed Dec 19, 2018 8:59 am    Post subject: Reply with quote

Yes, I do.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30838
Location: here

PostPosted: Wed Dec 19, 2018 9:03 am    Post subject: Reply with quote

And command work fine if you set XML_CATALOG_FILES?
Code:
# XML_CATALOG_FILES=/etc/xml/docbook python2.7 a2x.py --verbose -f manpage doc/asciidoc.1.txt

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 167

PostPosted: Wed Dec 19, 2018 9:25 am    Post subject: Reply with quote

nop its the same error

Code:
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30838
Location: here

PostPosted: Wed Dec 19, 2018 9:53 am    Post subject: Reply with quote

You lanch command with sudo? You tried directy in a root console?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 167

PostPosted: Wed Dec 19, 2018 10:38 am    Post subject: Reply with quote

Code:
RPi1B2:asciidoc-8.6.10 Necktwi$ sudo XML_CATALOG_FILES=/etc/xml/docbook python2.7 ./a2x.py --verbose -f manpage doc/asciidoc.1.txt


and also i tried it in su - shell.
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 167

PostPosted: Wed Dec 19, 2018 12:17 pm    Post subject: Reply with quote

I think remerging app-text/docbook-xml-dtb fix the issue. here is the output after remerging it.

RPi1B2:asciidoc-8.6.10 Necktwi$ sudo XML_CATALOG_FILES=/etc/xml/docbook python2.7 ./a2x.py --verbose -f manpage doc/asciidoc.1.txt 2>&1 | wgetpaste -u
http://tinyurl.com/y892pmal
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30838
Location: here

PostPosted: Wed Dec 19, 2018 12:49 pm    Post subject: Reply with quote

Yes try command without XML_CATALOG_FILES and if the output is the same rebuild asciidoc
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
necktwi
Apprentice
Apprentice


Joined: 24 Aug 2018
Posts: 167

PostPosted: Wed Dec 19, 2018 1:40 pm    Post subject: Reply with quote

remerging app-text/docbook-xml-dtb fixed the issue.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum