After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709951 - yelp build ignores conditionals when creating file copy list
yelp build ignores conditionals when creating file copy list
Status: RESOLVED FIXED
Product: yelp-tools
Classification: Core
Component: yelp-build
3.6.x
Other Linux
: Normal normal
: ---
Assigned To: Yelp maintainers
Yelp maintainers
Depends on:
Blocks:
 
 
Reported: 2013-10-11 23:12 UTC by Doug Smythies
Modified: 2013-11-02 18:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Doug Smythies 2013-10-11 23:12:01 UTC
In Ubuntu-docs, just the DeskTop help as the serverguide has no conditionals, there are "No such file or directory" errors in the copy step. Example:

cp: cannot stat ‘/home/doug/docs-1310/final/ubuntu-help/C/figures/display-dual-monitors.webm’: No such file or directory

However, that file should not be in the list of files to copy because it is inside conditional code that is NOT being compiled. Indeed, if one searches everywhere in the compiled HTML code that file is not referenced.

The desire is to only have error messages listed that are real.

Code segment area from display-dual-monitors.page (and we are compiling for unity):

<if:choose>
<if:when test="!platform:unity">
 <section id="video-demo">
   <title>Video Demo</title>
    <media type="video" width="500" mime="video/webm" src="figures/display-dual-monitors.webm">
    <p>Demo</p>
    <tt:tt xmlns:tt="http://www.w3.org/ns/ttml">
        <tt:body>

          <tt:div begin="1s" end="3s">
Comment 1 Shaun McCance 2013-11-02 15:10:53 UTC
Fixed in master. yelp-build now determines the file list in the primary stylesheet, using much more sophisticated templates that takes stuff like conditional processing into account.
Comment 2 Doug Smythies 2013-11-02 18:18:23 UTC
Shaun: Thanks very much. I had been meaning to contact you on ubuntu-doc IRC and ask for your help with this stuff. We will try it just as soon as possible.