Hello Chris,

I tested to build the documentation on Arch Linux. I had to install some 
additional packages (see attached patch 2) and I had to work around a TypeError 
(see first part of attached error.log and patch 1) during the "waf configure".

While building there was another tool missing (pygmentize - see second part of 
error.log). Eventually it would be nice to add a check for this in the 
configure step?

Kind regards,

Christian Mauderer
-- 
--------------------------------------------
embedded brains GmbH
Christian Mauderer
Dornierstr. 4
D-82178 Puchheim
Germany
email: christian.maude...@embedded-brains.de
Phone: +49-89-18 94 741 - 18
Fax:   +49-89-18 94 741 - 08
PGP: Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
> python3 ./waf configure --pdf
Setting top to                           : /home/christian/archive/rtems-docs 
Setting out to                           : /home/christian/archive/rtems-docs/build 
Checking for program 'sphinx-build'      : /usr/bin/sphinx-build 
Checking for program 'aspell'            : /usr/bin/aspell 
Checking if Sphinx is at least 1.3       : yes (1.4.8) 
Sphinx Verbose:                          : quiet 
Checking for program 'tex'               : /usr/bin/tex 
Checking for program 'latex'             : /usr/bin/latex 
Checking for program 'pdflatex'          : /usr/bin/pdflatex 
Checking for program 'xelatex'           : /usr/bin/xelatex 
Checking for program 'bibtex'            : /usr/bin/bibtex 
Checking for program 'dvips'             : /usr/bin/dvips 
Checking for program 'dvipdf'            : /usr/bin/dvipdf 
Checking for program 'ps2pdf'            : /usr/bin/ps2pdf 
Checking for program 'makeindex'         : /usr/bin/makeindex 
Checking for program 'pdf2ps'            : /usr/bin/pdf2ps 
Checking for program 'makeglossaries'    : /usr/bin/makeglossaries 
Traceback (most recent call last):
  File "/home/christian/archive/rtems-docs/.waf3-1.9.5-e9e36ebc81cc860d8a25c4c34f0b27ec/waflib/Scripting.py", line 120, in waf_entry_point
    run_commands()
  File "/home/christian/archive/rtems-docs/.waf3-1.9.5-e9e36ebc81cc860d8a25c4c34f0b27ec/waflib/Scripting.py", line 181, in run_commands
    ctx=run_command(cmd_name)
  File "/home/christian/archive/rtems-docs/.waf3-1.9.5-e9e36ebc81cc860d8a25c4c34f0b27ec/waflib/Scripting.py", line 172, in run_command
    ctx.execute()
  File "/home/christian/archive/rtems-docs/.waf3-1.9.5-e9e36ebc81cc860d8a25c4c34f0b27ec/waflib/Configure.py", line 85, in execute
    super(ConfigurationContext,self).execute()
  File "/home/christian/archive/rtems-docs/.waf3-1.9.5-e9e36ebc81cc860d8a25c4c34f0b27ec/waflib/Context.py", line 88, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/home/christian/archive/rtems-docs/.waf3-1.9.5-e9e36ebc81cc860d8a25c4c34f0b27ec/waflib/Context.py", line 129, in recurse
    user_function(self)
  File "/home/christian/archive/rtems-docs/wscript", line 29, in configure
    conf.recurse(b)
  File "/home/christian/archive/rtems-docs/.waf3-1.9.5-e9e36ebc81cc860d8a25c4c34f0b27ec/waflib/Context.py", line 129, in recurse
    user_function(self)
  File "/home/christian/archive/rtems-docs/common/waf.py", line 160, in cmd_configure
    latex.configure_tests(ctx)
  File "/home/christian/archive/rtems-docs/common/latex.py", line 129, in configure_tests
    excludes = [p[:p.rfind('.')] for p in local_packages()]
TypeError: 'NoneType' object is not iterable

-------------------------------

> ./waf

[...]

[71/80] Compiling build/shell/latex/shell.tex
first pass on pdflatex
This is pdfTeX, Version 3.14159265-2.6-1.40.17 (TeX Live 2016/Arch Linux) (preloaded format=pdflatex)
 \write18 enabled.
entering extended mode
sh: pygmentize: Kommando nicht gefunden.
system returned with code 32512
which: no pygmentize in (/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/adobe-air-sdk/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/sbin:/usr/sbin:/home/christian/scripts:/opt/bin/:/opt/arm-gcc/current/bin)
system returned with code 256
sh: pygmentize: Kommando nicht gefunden.
system returned with code 32512

[...]
From 25ccc841d4836445b1c1ac887920ee8c5f82e389 Mon Sep 17 00:00:00 2001
From: Christian Mauderer <o...@c-mauderer.de>
Date: Sun, 6 Nov 2016 23:26:03 +0100
Subject: [PATCH 2/2] README: Add packages for building on Arch.

---
 README.txt | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/README.txt b/README.txt
index 35c938b..a8143ac 100644
--- a/README.txt
+++ b/README.txt
@@ -85,6 +85,18 @@ Single HTML:
   # yum install npm
   # npm install -g inliner
 
+Arch Linux
+~~~~~~~~~~
+
+Sphinx:
+
+  # pacman -S python-sphinx
+
+PDF:
+
+  # pacman -S texlive-bin texlive-core texlive-latexextra texlive-fontsextra \
+              pygmentize
+
 Latex Setup
 ~~~~~~~~~~~
 
-- 
2.10.2

From 2902c9f2e882f2006285f3a2091ed16b3d9bc1b3 Mon Sep 17 00:00:00 2001
From: Christian Mauderer <o...@c-mauderer.de>
Date: Sun, 6 Nov 2016 23:25:24 +0100
Subject: [PATCH 1/2] waf: Fix ''NoneType' object is not iterable'

---
 common/latex.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/common/latex.py b/common/latex.py
index b0cca19..acbd341 100644
--- a/common/latex.py
+++ b/common/latex.py
@@ -126,10 +126,12 @@ def configure_tests(conf):
         bld(features = 'tex', type = 'pdflatex', source = 'main.tex', prompt = 0)
 
     tests = sorted(package_tests.keys())
-    excludes = [p[:p.rfind('.')] for p in local_packages()]
-    for e in excludes:
-        if e in tests:
-            tests.remove(e)
+    local_packs = local_packages()
+    if local_packs is not None:
+        excludes = [p[:p.rfind('.')] for p in local_packs]
+        for e in excludes:
+            if e in tests:
+                tests.remove(e)
 
     fails = 0
     for t in tests:
-- 
2.10.2

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to