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 755066 - flex: build failure due to mismatched texi2dvi
flex: build failure due to mismatched texi2dvi
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: cerbero
unspecified
Other Mac OS
: Normal normal
: 1.6.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-09-15 14:22 UTC by Justin Kim
Modified: 2015-10-07 17:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
remove document under Mac OS X (2.20 KB, patch)
2015-09-15 14:23 UTC, Justin Kim
none Details | Review
[optional] arrange patches (8.45 KB, patch)
2015-09-15 14:25 UTC, Justin Kim
none Details | Review
do not generate doc for all platform (2.26 KB, patch)
2015-09-15 15:29 UTC, Justin Kim
committed Details | Review
[optional] arrange patches (8.33 KB, patch)
2015-09-15 15:30 UTC, Justin Kim
committed Details | Review

Description Justin Kim 2015-09-15 14:22:43 UTC
When trying to build cerbero bootstrap on MacOSX, flex cannot generate its document without a proper texi2dvi utility.

libtool: install: /usr/bin/install -c flex /Users/joy/cerbero/build-tools/bin/flex
/Applications/Xcode.app/Contents/Developer/usr/bin/make  install-exec-hook
cd /Users/joy/cerbero/build-tools/bin && \
                ln -s -f flex flex++
 ./install-sh -c -d '/Users/joy/cerbero/build-tools/share/doc/flex'
 /usr/bin/install -c -m 644 AUTHORS COPYING NEWS ONEWS README TODO '/Users/joy/cerbero/build-tools/share/doc/flex'
 ./install-sh -c -d '/Users/joy/cerbero/build-tools/include'
 /usr/bin/install -c -m 644 FlexLexer.h '/Users/joy/cerbero/build-tools/include'
Making install in doc
restore=: && backupdir=".am$$" && \
        am__cwd=`pwd` && CDPATH="${ZSH_VERSION+.}:" && cd . && \
        rm -rf $backupdir && mkdir $backupdir && \
        if (/bin/sh /Users/joy/cerbero/sources/build-tools/flex-2.5.39/missing makeinfo --version) >/dev/null 2>&1; then \
          for f in flex.info flex.info-[0-9] flex.info-[0-9][0-9] flex.i[0-9] flex.i[0-9][0-9]; do \
            if test -f $f; then mv $f $backupdir; restore=mv; else :; fi; \
          done; \
        else :; fi && \
        cd "$am__cwd"; \
        if /bin/sh /Users/joy/cerbero/sources/build-tools/flex-2.5.39/missing makeinfo   -I . \
         -o flex.info flex.texi; \
        then \
          rc=0; \
          CDPATH="${ZSH_VERSION+.}:" && cd .; \
        else \
          rc=$?; \
          CDPATH="${ZSH_VERSION+.}:" && cd . && \
          $restore $backupdir/* `echo "./flex.info" | sed 's|[^/]*$||'`; \
        fi; \
        rm -rf $backupdir; exit $rc
TEXINPUTS=".:$TEXINPUTS" \
        MAKEINFO='/bin/sh /Users/joy/cerbero/sources/build-tools/flex-2.5.39/missing makeinfo   -I .' \
        texi2dvi --pdf --batch  --build-dir=flex.t2p -o flex.pdf  \
        flex.texi
/usr/bin/texi2dvi: Can't use option `--output' with more than one argument.
make[2]: *** [flex.pdf] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
Running command 'make install'

Recipe 'flex' failed at the build step 'install'
Select an action to proceed:
[0] Enter the shell
[1] Rebuild the recipe from scratch
[2] Rebuild starting from the failed step
[3] Skip recipe
[4] Abort

We can avoid this error by installing MacTex (https://tug.org/mactex/), but it's not good due to huge size of image if someone don't use tex on Mac.

Another solution which I proposed is just to make disable doc building.
Comment 1 Justin Kim 2015-09-15 14:23:19 UTC
Created attachment 311375 [details] [review]
remove document under Mac OS X
Comment 2 Justin Kim 2015-09-15 14:25:03 UTC
Created attachment 311376 [details] [review]
[optional] arrange patches

I am not sure the exact rule to manage patch files, but if they are located in a directory, it will be easy to handle.
Comment 3 Sebastian Dröge (slomo) 2015-09-15 15:11:14 UTC
We should just stop building documentation on all platforms for flex then
Comment 4 Justin Kim 2015-09-15 15:29:34 UTC
Created attachment 311382 [details] [review]
do not generate doc for all platform
Comment 5 Justin Kim 2015-09-15 15:30:20 UTC
Created attachment 311383 [details] [review]
[optional] arrange patches
Comment 6 Justin Kim 2015-09-30 09:13:21 UTC
ping? I'm waiting for merging. thanks.
Comment 7 Sebastian Dröge (slomo) 2015-10-02 13:45:11 UTC
commit 32200e117d35f15e4012c5142ec5b1533c5a3f30
Author: Justin Kim <justin.kim@collabora.com>
Date:   Wed Sep 16 00:27:35 2015 +0900

    flex: arrange patches into one directory
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755066

commit 6d5091443a1bfce75af2f749ebde588855c54f31
Author: Justin Kim <justin.kim@collabora.com>
Date:   Tue Sep 15 23:18:12 2015 +0900

    flex: don't generate document for all platform
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755066