Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 605404 - app-text/dvisvgm-2.0.4 fails compilation
Summary: app-text/dvisvgm-2.0.4 fails compilation
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-11 19:29 UTC by Sebastian Pipping
Modified: 2017-01-16 22:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log, xz compressed (app-text:dvisvgm-2.0.4:20170111-191143.log.xz,5.59 KB, application/x-xz)
2017-01-11 19:29 UTC, Sebastian Pipping
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2017-01-11 19:29:38 UTC
Created attachment 459654 [details]
Build log, xz compressed

[..]
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..   -I/usr/lib64 -Wall   -I../libs/ff-woff/fontforge -I../libs/ff-woff/inc -march=core2 -msse4.1 --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=6144 -O2 -pipe -c -o ffwrapper.o ffwrapper.c
ffwrapper.c: In function ‘ff_autohint’:
ffwrapper.c:56:2: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
  for (int i=0; i < sf->glyphcnt; i++) {
  ^
ffwrapper.c:56:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
make[2]: *** [Makefile:687: ffwrapper.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/var/tmp/portage/app-text/dvisvgm-2.0.4/work/dvisvgm-2.0.4/src'
make[1]: *** [Makefile:396: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/app-text/dvisvgm-2.0.4/work/dvisvgm-2.0.4'
make: *** [Makefile:337: all] Error 2
[..]
Comment 1 Sebastian Pipping gentoo-dev 2017-01-11 19:30:35 UTC
# gcc-config -B
/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3
Comment 2 Sebastian Pipping gentoo-dev 2017-01-16 22:36:29 UTC
commit 5aa2ae5d812fea40ebf0e02d3f98be804488dc18
Author: Sebastian Pipping <sping@g.o>
Date:   Mon Jan 16 23:33:41 2017 +0100

    app-text/dvisvgm: Fix compilation (bug #605404)
    
    Patch is taken from upstream:
    https://github.com/mgieseki/dvisvgm/commit/4aaf49080cfc84c2aa4a271b8dd12e9e9fa8b7bd
    
    Homepage is updated as well.
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1

 app-text/dvisvgm/dvisvgm-2.0.4.ebuild              |  5 +++--
 .../dvisvgm/files/dvisvgm-2.0.4-c99-compile.patch  | 24 ++++++++++++++++++++++
 2 files changed, 27 insertions(+), 2 deletions(-)

https://github.com/gentoo/gentoo/commit/5aa2ae5d812fea40ebf0e02d3f98be804488dc18