Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 248069 - sci-mathematics/octave-3.0.3 doc building fails and it builds docs unconditionally
Summary: sci-mathematics/octave-3.0.3 doc building fails and it builds docs unconditio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-21 22:41 UTC by Andrew Savchenko
Modified: 2010-06-25 15:02 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,562.89 KB, text/plain)
2008-11-21 22:42 UTC, Andrew Savchenko
Details
environment (environment,116.20 KB, text/plain)
2008-11-21 22:42 UTC, Andrew Savchenko
Details
Q&D fix (octave-3.0.3-docs.patch,826 bytes, patch)
2009-03-17 03:44 UTC, Andrew Savchenko
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Savchenko gentoo-dev 2008-11-21 22:41:26 UTC
I can't build octave-3.0.3 on amd64 (but I suppouse architecture is irrelevant here). make process dies on building docs during TeX-processing of documentation.

Build log and environment files are attached.
My emerge --info is:
Portage 2.2_rc14 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27-sheryl x86_64)
=================================================================
System uname: Linux-2.6.27-sheryl-x86_64-Intel-R-_Celeron-R-_CPU_2.53GHz-with-glibc2.2.5
Timestamp of tree: Fri, 21 Nov 2008 14:46:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p48
dev-lang/python:     2.5.2-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.6.1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -fomit-frame-pointer -pipe -fstack-protector -fdirectives-only"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -fomit-frame-pointer -pipe -fstack-protector -fdirectives-only"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv"
FFLAGS="-march=nocona -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -fomit-frame-pointer -pipe -fstack-protector"
GENTOO_MIRRORS="ftp://ftp.chg.ru/pub/Linux/gentoo http://mirror.yandex.ru//gentoo-distfiles  http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="aalib acl acpi adns amd64 apache2 bash-completion berkdb blas bluetooth bzip2 caps cdb cli clisp cracklib crypt cscope ctype cups curl curlwrappers cvs cxx cyrillic djvu doc eap-tls editor encode enscript examples exif expat fftw foomaticdb fortran ftp gdbm geoip gif ginac git gmp gnutls gpgme gpm gsl hardened hdf5 iconv idn imap iproute2 ipv6 isdnlog javascript jpeg jpeg2k keyscrub kpathsea lapack latex libcaca libwww lm_sensors logrotate lzo maildir mailwrapper mbox mhash midi mime mmap mmx mng mppe-mppc mudflap multilib mysql mysqli ncurses netcdf nls nntp nocd nptl nptlonly objc objc++ offensive openexr openmp otr pam pch pcntl pcre pdf perl png pop posix ppds pppd python raw readline recode reflection samba scanner session sharedmem slang slp smtp sockets socks5 sparse spell spl sse sse2 sse3 ssl subversion supernodal sysfs syslog szip tcpd threads tiff unicode usb vim-syntax wifi xattr xorg xpm yaz zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authz_host dir mime" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Andrew Savchenko gentoo-dev 2008-11-21 22:42:14 UTC
Created attachment 172766 [details]
build.log
Comment 2 Andrew Savchenko gentoo-dev 2008-11-21 22:42:49 UTC
Created attachment 172768 [details]
environment
Comment 3 Andrew Savchenko gentoo-dev 2008-11-22 08:36:23 UTC
Currently used build approach is rather primitive:
if one disables docs creation, they will be build anyway, but will not be installed.

So there is no other way to work around except of masking version 3.0.3 8-(.
Comment 4 Andrew Savchenko gentoo-dev 2009-03-17 03:42:00 UTC
This problem also happens on x86.
Comment 5 Andrew Savchenko gentoo-dev 2009-03-17 03:44:39 UTC
Created attachment 185253 [details, diff]
Q&D fix

This patch allows to build a (significant) part of the documentation. But it isn't solution, just workaround.
Comment 6 Martin Väth 2009-03-20 09:40:04 UTC
IMHO the reason is a bug in a sanity test of munge-texi.cc.
The following patch works for me, although I did not examine its consequences
exactly:

sed -i -e 's/if (infile.get () != doc_delim)/if (0)/' \
  "${S}"/doc/interpreter/munge-texi.cc
Comment 7 Markus Dittrich (RETIRED) gentoo-dev 2009-07-08 02:00:01 UTC
Is this still an issue with the new octave-3.2.ebuild?

Thanks,
Markus
Comment 8 Martin Väth 2009-07-08 17:02:29 UTC
Yes, without the patch from comment #6, building with USE=doc still fails.
Here is the relevant part of the build.log
(note the message "invalid doc file format" which occurs only because
munge-texi is buggy...):

 [35] Chapter 6 [36] Chapter 7./munge-texi  -d ../../src/DOCSTRINGS  -d ../../scripts/DOCSTRINGS < arith.txi > arith.texi-t
invalid doc file format
 [37] Chapter 8 [38]texindex: liboctave.fn: not a texinfo index file

Chapter 9 [39] [40make[3]: *** [arith.texi] Error 1
make[3]: Leaving directory `/var/tmp/portage/sci-mathematics/octave-3.2.0/work/octave-3.2.0/doc/interpreter'
make[2]: *** [interpreter] Error 2
make[2]: *** Waiting for unfinished jobs....
Comment 9 Sébastien Fabbro (RETIRED) gentoo-dev 2010-06-24 18:06:53 UTC
i can't reproduce it with 3.2.4-r1. is this still valid?
Comment 10 Martin Väth 2010-06-24 18:18:24 UTC
(In reply to comment #9)
> i can't reproduce it with 3.2.4-r1. is this still valid?

No problems anymore here on my amd64 and x86.
Comment 11 Andrew Savchenko gentoo-dev 2010-06-25 07:32:15 UTC
octave 3.2.4-r1 with USE=doc builds without problems on ~x86.
Comment 12 Sébastien Fabbro (RETIRED) gentoo-dev 2010-06-25 15:02:12 UTC
closing then