GNOME Bugzilla – Bug 772334
should call xmllint with --nonet
Last modified: 2018-05-22 12:51:49 UTC
The YELP_HELP_RULES should call xmllint with the --nonet parameter to disallow any net access during build.
And same for the xsltproc invocations in yelp-build and yelp-check.
Created attachment 336755 [details] [review] patch
I often use network access with `yelp-check validate`. It's the only way to validate against draft schemas without building a local cache by hand. It certainly makes sense to do --nonet in yelp.m4. I'm curious what kinds of situations are leading to the network being touched in yelp-build and yelp-check, other than validation. We could add a --nonet option to those commands, if it's blocking people's automated builds.
I filed this because of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=839549 .
Shaun, I believe Debian Developer Adrian Bunk independently discovered the same fix as Christian in a patch he attached to the Debian bug. Could we at least merge the 2-line change to yelp.m4? It reduces the time it takes to build Aisleriot on Debian from hours to a few minutes.
I added the --nonet to yelp.m4 for 'make check', which is just intended to do well-formedness. If people feel strongly that yelp-check and yelp-build should have this, then it'll need to be added as an option to those commands, because there are very good use cases for allowing xmllint to hit the network.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/yelp-tools/issues/14.