On Mon, 2021-04-05 at 12:11 -0500, Douglas R. Reno via blfs-dev wrote:
> 
> On 4/3/21 12:02 PM, Pierre Labastie via blfs-dev wrote:
> > Trying to build doxygen docs by the book, I get:
> > -----------
> > [ 81%] Generating language.doc
> > Traceback (most recent call last):
> >    File "/sources/doxygen/doxygen-1.9.1/build/doc/translator.py", line 2018,
> > in
> > <module>
> >      trMan.generateTranslatorReport()
> >    File "/sources/doxygen/doxygen-1.9.1/build/doc/translator.py", line 1688,
> > in
> > generateTranslatorReport
> >      dic = self.__checkForNotUsedTrMethods()
> >    File "/sources/doxygen/doxygen-1.9.1/build/doc/translator.py", line 1491,
> > in
> > __checkForNotUsedTrMethods
> >      self.__removeUsedInFiles(fname, trdic)
> >    File "/sources/doxygen/doxygen-1.9.1/build/doc/translator.py", line 1458,
> > in
> > __removeUsedInFiles
> >      cont = f.read()
> >    File "/usr/lib/python3.9/codecs.py", line 322, in decode
> >      (result, consumed) = self._buffer_decode(data, self.errors, final)
> >    File "/usr/lib/python3.9/encodings/utf_8_sig.py", line 69, in
> > _buffer_decode
> >      return codecs.utf_8_decode(input, errors, final)
> > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 45:
> > invalid
> > start byte
> > make[3]: *** [doc/CMakeFiles/run_doxygen.dir/build.make:436:
> > doc/language.doc]
> > Error 1
> > make[3]: *** Deleting file 'doc/language.doc'
> > make[2]: *** [CMakeFiles/Makefile2:703: doc/CMakeFiles/run_doxygen.dir/all]
> > Error 2
> > make[1]: *** [CMakeFiles/Makefile2:657: doc/CMakeFiles/docs.dir/rule] Error
> > 2
> > make: *** [Makefile:369: docs] Error 2
> > -------------
> > I've found a patch in gentoo [1], but amazingly, there is nothing in arch.
> > 
> > Actually, there is an "AppleDouble encoded Macintosh file" (according to
> > "file")
> > named src/._xmlgen.cpp, which is a binary. Removing it does not prevent
> > building
> > doxygen, and allows building the doc...
> > Actually, according to [2], this file has been added in version 1.9.1, so it
> > looks like an oversight!
> > 
> > I propose to add a command to remove that file in the book. Gentoo patch is
> > too
> > complicated...
> > 
> > Pierre
> > 
> > [1]
> > https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b89f80cd9c20607ada13ec091a32cef4b44d29f3
> > [2] https://fossies.org/diffs/doxygen/1.9.0_vs_1.9.1/index.html
> 
> Adding a command to the book to remove that file sounds good to me. It 
> seems like that file is only compiled on Apple Mac systems.

Looks like the person doing the packaging did it from an Apple computer, and
that since it is a hidden file, nobody has seen it.

Will add the remove (sounds a little weird, I must admit).

Pierre

-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to