-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Labels
Description
Problem description
@jfaltenbacher reported that issue in our internal Slack channel. The daps command fails with the following error message:
$ daps -v -d DC-opensuse-gnome-user validate
make: execvp: /bin/bash: Argument list too long
make: *** [/usr/share/daps/make/validate.mk:68: validate] Error 127
After further examination, it was a validation error. However, this error message was hidden behind the above bash line.
The first lines of the real error message looks like:
if [[ -n ".../SUSE/doc-sle/build/.profiled/x86_64_osuse/deployment_troubleshooting.xml:206:69: error: attribute "format" not allowed here; expected attribute "align", "annotations", ...
[... overly long line pruned ...]
@fsundermeyer Could you have a look?
Expected behavior
daps should report the validation error, not the bash line from above.
Steps to reproduce problem
- Preparation of GeekoDoc v2.1.0:
a. Clone the Geekodoc repository withgit clone git@github.com:openSUSE/geekodoc.git
b. Checkout tag v2.1.0:git checkout v2.1.0
c. Install the build requirements:sudo zypper install python3-rnginline trang
d. Build the Geekodoc schema with:./build.sh
. The schema can be found atdist/geekodoc/rng/2_5.2/geekodoc-v2-flat.rnc
.
e. Convert RNC to RNG:trang dist/geekodoc/rng/2_5.2/geekodoc-v2-flat.rnc dist/geekodoc/rng/2_5.2/geekodoc-v2-flat.rng
- Edit
~/.config/daps/dapsrc
and search for theDOCBOOK5_RNG_URI
line. Add the path to the RNG(!) file and prefix it withfile://
. - Build the openSUSE Gnome User guide as mentioned above.
The funny thing is, you only get the full error message if you use -vvv
or --debug
.