[MacPorts] #58950: lirc @0.9.4d_4: docs won't build on < 10.7 due to TypeError: 'str' object does not support item assignment

MacPorts noreply at macports.org
Sat Sep 7 18:30:59 UTC 2019


#58950: lirc @0.9.4d_4: docs won't build on < 10.7 due to TypeError: 'str' object
does not support item assignment
-------------------------+------------------------
 Reporter:  kencu        |      Owner:  ctreleaven
     Type:  defect       |     Status:  assigned
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:
 Keywords:  snowleopard  |       Port:  lirc
-------------------------+------------------------
 {{{
 test -e lirc || ln -s ../tools/lirc-setup lirc || :
 PYTHONPATH=.:../tools \
         /opt/local/bin/python3.6 ./data2table ../configs ../configs \
                 | xsltproc --html docpage.xsl - > table.html
 test -e lirc || ln -s ../tools/lirc-setup lirc || :
 PYTHONPATH=.:../tools \
         /opt/local/bin/python3.6 ./data2hwdb ../configs ../configs \
             > lirc.hwdb
 xsltproc --html docpage.xsl \
             $(echo ./html/api-general.html | /opt/local/bin/gsed 's|html
 /|html-source/|') > html/api-general.html
 xsltproc --html docpage.xsl \
             $(echo ./html/configuration-guide.html | /opt/local/bin/gsed
 's|html/|html-source/|') > html/configuration-guide.html
 /opt/local/bin/gsed -i -e "s/@version@/0.9.4d/" html/api-general.html
 /opt/local/bin/gsed -i -e "s/@version@/0.9.4d/" html/configuration-
 guide.html
 xsltproc --html docpage.xsl \
             $(echo ./html/configure.html | /opt/local/bin/gsed 's|html
 /|html-source/|') > html/configure.html
 xsltproc --html docpage.xsl \
             $(echo ./html/driver-api.html | /opt/local/bin/gsed 's|html
 /|html-source/|') > html/driver-api.html
 /opt/local/bin/gsed -i -e "s/@version@/0.9.4d/" html/configure.html
 Traceback (most recent call last):
   File "./data2table", line 118, in <module>
     main()
   File "./data2table", line 101, in main
     db = database.Database(configdir, yamldir)
   File "/opt/local/var/macports/build/_opt_macports-
 ports_sysutils_lirc/lirc/work/lirc-0.9.4d/doc/lirc/database.py", line 124,
 in __init__
     d['id'] = key
 TypeError: 'str' object does not support item assignment
 -:1: HTML parser error : Document is empty

 ^
 xsltproc --html docpage.xsl \
             $(echo ./html/empty_toc.html | /opt/local/bin/gsed 's|html
 /|html-source/|') > html/empty_toc.html
 /opt/local/bin/gsed -i -e "s/@version@/0.9.4d/" html/driver-api.html
 xsltproc --html docpage.xsl \
             $(echo ./html/help.html | /opt/local/bin/gsed 's|html/|html-
 source/|') > html/help.html
 /opt/local/bin/gsed -i -e "s/@version@/0.9.4d/" html/empty_toc.html
 xsltproc --html docpage.xsl \
             $(echo ./html/index.html | /opt/local/bin/gsed 's|html/|html-
 source/|') > html/index.html
 /opt/local/bin/gsed -i -e "s/@version@/0.9.4d/" html/help.html
 xsltproc --html docpage.xsl \
             $(echo ./html/install.html | /opt/local/bin/gsed 's|html
 /|html-source/|') > html/install.html
 /opt/local/bin/gsed -i -e "s/@version@/0.9.4d/" html/index.html
 xsltproc --html docpage.xsl \
             $(echo ./html/lirc_client.html | /opt/local/bin/gsed 's|html
 /|html-source/|') > html/lirc_client.html
 Traceback (most recent call last):
   File "./data2hwdb", line 110, in <module>
     main()
   File "./data2hwdb", line 98, in main
     db = database.Database(configdir, yamldir)
   File "/opt/local/var/macports/build/_opt_macports-
 ports_sysutils_lirc/lirc/work/lirc-0.9.4d/doc/lirc/database.py", line 124,
 in __init__
     d['id'] = key
 TypeError: 'str' object does not support item assignment
 make[2]: *** [lirc.hwdb] Error 1
 }}}

 disabling the docs by patching `Makefile.am` works to fix the build.

 I haven't tried anything older than SnowLeopard as yet.

-- 
Ticket URL: <https://trac.macports.org/ticket/58950>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list