Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 543870

Summary: media-libs/libcaca-0.99_beta19 USE=doc with >=app-text/doxygen-1.8.8 - Makefile:6: recipe for target 'refman.pdf' failed
Product: Gentoo Linux Reporter: Juergen Rose <rose>
Component: Current packagesAssignee: Gentoo Media-video project <media-video>
Status: IN_PROGRESS ---    
Severity: normal CC: bircoph, deference, kripton, leonchik1976, nbowler, redblade7, sam, stillcompiling, Storklerk, tamiko, walch.martin
Priority: Normal Keywords: EBUILD, PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
failing build with doxygen-1.8.12
Patch needed to fix install phase. Otherwise doxygen.css will not be found.
Works-For-Me-Ebuild
libcaca-0.99_beta19-latex_hacks.patch

Description Juergen Rose 2015-03-20 09:51:26 UTC
Created attachment 399304 [details]
build.log

'emerge libcaca' fails with:
...
Output written on refman.pdf (91 pages, 358857 bytes).
PDF statistics:
 2330 PDF objects out of 2487 (max. 8388607)
 2203 compressed objects within 23 object streams
 771 named destinations out of 1000 (max. 500000)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)

Makefile:649: recipe for target 'stamp-latex' failed
make[2]: *** [stamp-latex] Error 1







root@caiman:/home/rose/Txt/projects/Boards/RaspberryPI/Linux(158)# emerge --info '=media-libs/libcaca-0.99_beta19::gentoo'
Portage 2.2.18 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.9.2, glibc-2.20-r2, 3.19.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.19.1-gentoo-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.2
KiB Mem:    16177284 total,   2686720 free
KiB Swap:  100663280 total, 100618616 free
Timestamp of repository gentoo: Fri, 20 Mar 2015 03:00:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.25 p1.0) 2.25
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r2::gentoo, 3.3.5-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage_caiman
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

g-cpan
    location: /var/lib/cpan
    masters: gentoo
    priority: 1

g-octave
    location: /var/lib/g-octave
    masters: gentoo
    priority: 2

sage-on-gentoo
    location: /var/lib/layman/sage-on-gentoo
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 50

x11
    location: /var/lib/layman/x11
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL Intel-SDP dlj-1.1 skype-eula skype-4.0.0.7-copyright googleearth AdobeFlash-11.x cadsoft Oracle-BCLA-JavaSE MakeMKV-EULA NVIDIA-CUDA Nero-AAC-EULA GIMPS"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext 64bit R X Xaw3d a52 aac acl acpi admin afs alsa amd64 ao apache2 apng applet archive armadillo arpack asf aspell assistant atlas audacious audiofile automap automount bash-completion berkdb blas blast bluetooth bluray boost bzip2 cairo cdda cddb cdf cdio cdparanoia cdr cgi chm cli cmake cracklib crypt css cups curl cxx daap db dbi dbm dbus declarative designer devhelp device-mapper dga dia dirac djvu doc dot dri ds2490 ds9097 ds9097u dts dv dvb dvd dvdr dvi dynamicplugin eds egl elf emacs emboss emf encode epiphany evo examples excel exif expat extensions extra extras faac faad fam ffmpeg fftw firefox fits flac fltk fontconfig foomaticdb fortran fortran95 fpm fpx fuse g3dvl gcj gd gdal gdbm gdu gedit geoip geolocation geos gfortran gif gimp git glade glib glpk gml gmp gnome gnome-keyring gnome-print gnuplot gnutls gold gphoto2 gpm grammar graphics graphtft graphviz grass gsl gsm gstreamer gtk gtk3 gudev guile hddtemp hdf hdf5 hdri html http httpd hvm hwdb iconv icq icu id3tag ide imagemagick imap inotify introspection ipod ipv6 irda ithreads jabber jadetex java java6 jbig jit john jpeg jpeg2k kate kdepim kdrive kerberos keymap kpathsea kvm ladspa lame lapack latex lcms ldap lensfun libffi libgda libkms libnotify libsamplerate live lm_sensors lua lzma lzo mad mail maildir mapnik math matroska media-library mercurial mikmod mkl mmx mmxext mng mod modules mono motif mozilla mp3 mp4 mpeg mpi mpi-threads mplayer mtp multilib multimedia musepack musicbrainz mysql mysqli nautilus ncurses netcdf netpbm network networking nfs nls nntp nptl nsplugin ntfs ntp numpy obex objc ocaml ocr octave odbc ofa ogdi ogg openexr opengl openmp openvg pam pango pcre pda pdf pdl2 perl plasma plotutils plugins png podcast policykit portaudio posix postgres postscript ppds preview-latex proj projectm pstricks pulseaudio python python-bindings q16 q32 qemu qhull qt3support qt4 qt5 quicktime raw readline reiserfs reports rle romio rpc rrdcgi rrdtool sage samba sasl schroedinger science sdk sdl secure-delete semantic-desktop server session shout sip slang slp smart smbclient smp sms sndfile snmp soap sockets sound soup sox speex spell sql sqlite sse sse2 sse3 sse4 sse4a ssl stlport subtitles subversion sudo suexec svg svm swig systemd szip t1lib tcl tcpd tex tex4ht texmacs theora thesaurus threads thunderbird tidy tiff tk toolbar tools truetype udev udisks unicode usb utempter v4l v4l2 vaapi vala valgrind vdpau video virt-network virtualbox visio vorbis vpx vtk wav webdav webdav-serf webkit wmf wxwidgets x264 xa xattr xcb xetex xext xft xine xml xmlreader xmlrpc xpm xv xvid xvmc yaml youtube zlib zvbi" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_core authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info lbmethod_byrequests log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif slotmem_shm so socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon fuji ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="nss" DRACUT_MODULES="caps lvm mdraid syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev void" KERNEL="linux" LCD_DEVICES="cfontz hd44780 mtxorb ncurses X lcd2usb lcdlinux png usblcd" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de fr ru" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy gsf harness ide identity j2ee java mobility nb php profiler websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeon displaylink" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON




root@caiman:/home/rose/Txt/projects/Boards/RaspberryPI/Linux(159)# emerge -pqv '=media-libs/libcaca-0.99_beta19::gentoo'
[ebuild     U ] media-libs/libcaca-0.99_beta19 [0.99_beta18-r2] USE="X cxx doc java mono ncurses opengl python slang truetype -imlib -ruby -static-libs {-test}" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby20%*"
Comment 1 Juergen Rose 2015-03-20 09:56:04 UTC
 'USE=-doc emerge -v1 libcaca' works.
Comment 2 Torsten Kaiser 2015-05-03 14:04:41 UTC
I believe this is cause by some change in latex. I have the same problem, but even if I just try to re-emerge the currently installed libcaca-0.99_beta18-r2 with USE=doc it will fail the same way.

Looking in libcacas Makefile, it seems it wants to rerun pdflatex multiple times to get the cross references correct.

And at the end of refman.log (This file also gets copied into build.log) there is:

Package rerunfilecheck Warning: File `refman.out' has changed.
(rerunfilecheck)                Rerun to get outlines right
(rerunfilecheck)                or use package `bookmark'.

Package rerunfilecheck Info: Checksums for `refman.out':
(rerunfilecheck)             Before: <no file>
(rerunfilecheck)             After:  57CDB1589E21B71A773FB27B6FDAF1D9;20679.

LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.


Do newer versions of latex return an error code in this case that makes make abort?


Last successfull build of libcaca on my system: Sat Nov  8 17:44:17 2014
All merges from dev-tex since then:
     Sat Nov 29 22:14:04 2014 <<< dev-tex/glossaries-4.11
     Sat Nov 29 22:14:11 2014 >>> dev-tex/glossaries-4.12
     Sat Dec  6 10:38:18 2014 <<< dev-tex/glossaries-4.12
     Sat Dec  6 10:38:23 2014 >>> dev-tex/glossaries-4.12-r1
     Sat Dec  6 10:39:47 2014 <<< dev-tex/dot2tex-2.8.7-r1
     Sat Dec  6 10:39:51 2014 >>> dev-tex/dot2tex-2.9.0
     Tue Jan  6 07:57:45 2015 <<< dev-tex/latexmk-439
     Tue Jan  6 07:57:49 2015 >>> dev-tex/latexmk-441
     Tue Feb  3 20:28:15 2015 <<< dev-tex/bibtexu-3.71_p20140525
     Tue Feb  3 20:28:19 2015 >>> dev-tex/bibtexu-3.71_p20140525
     Sun Feb  8 09:25:36 2015 <<< dev-tex/bibtexu-3.71_p20140525
     Sun Feb  8 09:25:39 2015 >>> dev-tex/bibtexu-3.71_p20140525
     Sun Mar  1 07:59:59 2015 <<< dev-tex/latexdiff-0.5
     Sun Mar  1 08:00:03 2015 >>> dev-tex/latexdiff-1.0.4

(I upgrade texlive from the 2013er versions to 2014 on Nov 4 2014, a few days bevor the last working libcaca merge. No other emerge in dev-texlive since then...)
Comment 3 Torsten Kaiser 2015-06-24 20:01:01 UTC
I don't know anything about latex, but I tried to find the cause of the abort anyway. What I found is, that debian seems to have it the same or a similar issue here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728069

At least the part about an error wrt. \\\cline can also be found the the attached build.log from Juergen and also in my local tries.

At that time, I still had app-doc/doxygen-1.8.5 installed, that has been upgraded since then.

Downgrading different parts of tex did not seem to help, so I will now try with an older doxygen. Or has someone a better suggestion?
Comment 4 Torsten Kaiser 2015-06-24 20:27:01 UTC
It is caused by newer doxygens.

app-doc/doxygen-1.8.5 + media-libs/libcaca-0.99_beta19 -> works
app-doc/doxygen-1.8.8 + media-libs/libcaca-0.99_beta18 -> fails as seen by Juergen, in Bug 550262 and by Debian.

I suggest changing the summary of this bug to ">=app-doc/doxygen-1.8.8 breaks media-libs/libcaca[doc] - recipe for target 'stamp-latex' failed".

And maybe reassigning it to the doxygen maintainer?
Comment 5 Michael Weber (RETIRED) gentoo-dev 2015-08-25 08:11:55 UTC
*** Bug 550262 has been marked as a duplicate of this bug. ***
Comment 6 Matthias Maier gentoo-dev 2015-10-23 15:47:47 UTC
Confirmed for 1.8.9.1 and 1.8.10-r1
Comment 7 Matthias Maier gentoo-dev 2016-02-28 04:16:48 UTC
Confirmed for app-doc/doxygen-1.8.11
Comment 8 Torsten Kaiser 2016-12-11 17:09:46 UTC
The recent upgrade of ncurses triggers an libcaca rebuild and that still fails.
Temporarily downgrading to doxygen-1.8.5 is no longer an option, because that version is no longer in the portage tree.

Testing with the newest versions still fails the same way, build.log with doxygen-1.8.12 and libcaca beta19 follows...

emerge --info doxygen libcaca:

Portage 2.3.0 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.22-r4, 4.3.0 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.3.0-x86_64-Intel-R-_Core-TM-_i5-6600_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:    16299884 total,   6419164 free
KiB Swap:   33554364 total,  33535792 free
Timestamp of repository gentoo: Sun, 11 Dec 2016 09:30:02 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /var/ebuilds
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=broadwell -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-pipe -march=broadwell -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --jobs=4 --load-average=6 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="7zip S3TC X a52 aac aalib ace acpi aff aften aio alisp alsa altenburgcards amarok amd64 amr amrnb amrr amrwb animgif ao ap apache2 apng aqua_theme archive async audacious audiofile autoipd avahi bash-completion bcel bcp bdf beagle berkdb bigpatch binfilter bittorrent bl blas blender-game bluetooth bonusscripts boost branding bzip2 c++ cairo calendar caps carbone_theme cblas-external cdda cdio cdparanoia cdr cgi chm chroot cifsupcall cisco classic cli client clucene cmdctrl cmdsubmenu compress connectionstatus conntrack consolekit contactnotes corefonts cpio cpufreq cracklib crypt cryptsetup cscope css ctype cups curl cutterlimit cutterqueue cuttime cvs cvsgraph cxx dar64 dbase dbm dbus dbx dc1394 declarative demo device-mapper dhcpcd divx djvu dlz dmi dmx dnotify doc domainkeys dot dpmod dri dts dv dvbplayer dvd dvdarchive dvdchapjump dvdr dvdread dvi ecc editor egl elf emboss emoticon encode enscript equalizer evdev ewf excel exif exiv2 expat extensions extra extra-algorithms extra-cardsets extraengine extras farstream fat fbcon festival ffmpeg fftw file file-icons firefox flac fluidsynth fmod font-server fontconfig fortran fping fpx ftp fts3 fuse g3dvl gbm gd gdbm gecko geoip gif gimp git gkrellm glamor gles gles1 gles2 glib glibc-omitfp glitz glsa glut gmedia gmp gopher gpac gpg gpgme gphoto2 gpm graphics graphviz gs gstreamer gtk gtk3 gudev gutenprint gzip hddtemp hdri highlight history html htmlhandbook http httpd hvm hwdb ical iceweasel iconv icq icu id3 id3tag ide idea ieee1394 image imagemagick imap infowidget inherit-graph inkjar innodb inotify ipfilter ipsec iptc ipv6 irc irrlicht ithreads jabber jack jad jadetex java java-external java6 jce jemalloc jingle jit jni john jpeg jpeg2k juju jumpplay kde kdecards kdepim kdrive kerberos kexi kipi kmid kpathsea ktts latex lcms ldap legacy-systray libcaca libkms libmpeg2 libnotify libsamplerate libsexy libssh2 libvisual libwww liemikuutio lights lirc lircsettings livebuffer llvm lm_sensors logrotate logviewer loop-playback lua lucene lyx lzma lzo mad magic mail mailwrapper mainmenuhooks maps masquerade math matroska maya-shaderlibrary mbox mbrola md5sum mdev mdnsresponder-compat meanwhile menu-plugin menubar menuorg metric mhash mikmod mime mimencode minizip mixer mjpeg mmap mmx mmxext mng modplug modules motif mounts-check mozdevelop mozdom mozilla mp2 mp3 mp4 mp4live mpd mpeg mpeg2 mpg123 mplayer mppe-mppc mpu401 mschap msn mtp multilib multiprocess musepack music mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh nat ncurses net netjack netlink netmeeting network network-cron networkmanager nfs nfsidmap nfsv4 nfsv41 nls nntp normalize nova nptl nsplugin nspr nss ntfs nuv odbc offensive ogg ogg123 ole openexr opengl openmp openssh openssl openvpn osmesa p2p pam pango pascal pcap pcre pcre16 pda pdf pdo perl phonon php physfs pim pixmaps pkcs11 plasma player plotutils pmu png policykit posix postfix postproc postscript povray ppds pptp pth pulseaudio python qemu qml qt3support qt4 qt5 query-browser quicktime radio rar raw rc5 rdesktop readline realmedia remix replaygain restrict-javascript rle rpc rss rtc rtmp rtsp samba sasl sbig scanner screen script scrypt sdk sdl sdl-image sdl-sound sdlaudio seamonkey search seccomp secure-delete semantic-desktop sensord server session shared-dricore shorten shout sid signatures simplexml skins smime smp smtp sndfile sockets socks5 solver songs soprano sortrecords sound soundex sounds sox speech speedo speex spell sql sqlite sqlite3 sse sse2 ssl startup-notification stats stemmer stlport stream submenu subtitles subversion suhosin svg svgz swat sylpheed sysfs syslog system-cairo system-harfbuzz system-icu system-jpeg system-libvncserver system-libvpx system-sqlite systray sysvipc szip t1lib taglib tagwriting tb4 tcpd teletext tetex tex texteffect textures tftp tga themes theora thesaurus threads threadsafe tidy tiff timercmd timerinfo tk tls toolbar tools tor-hardening tordns tracepath traceroute transcode trayicon truetype tta ttxtsubs twolame udev udisks ui unicode unlock-notify upower usb userfiles utils uudeview uuencode v4l v4l2 valgrind vamp vcd vcdx vdr video vim-syntax visualization vlm vnc vncviewer voice volctrl vorbis vorbis-psy vpx wav wavpack wayland web webdav webinterface webkit widgets wifi winpopup wireshark wma wmf wmp wxwidgets x264 xa xanim xattr xcb xcf xcomposite xephyr xetex xext xface xforms xfs xft xhtml xine xinerama xkb xml xmp xnest xorg xosd xplanet xpm xrandr xrender xscreensaver xsl xslt xv xvfb xvid xvmc xvnc yahoo yv12 zip zlib zrtp zvbi" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l vesa intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-doc/doxygen-1.8.12::gentoo was built with the following:
USE="doc dot latex qt5 -clang -debug -doxysearch (-sqlite)" ABI_X86="64" ELIBC="glibc" KERNEL="linux" USERLAND="GNU"
CFLAGS="-pipe -march=broadwell -O2 -fomit-frame-pointer -fweb -frename-registers -ftracer"
CXXFLAGS="-pipe -march=broadwell -O2 -fomit-frame-pointer -fweb -frename-registers -ftracer"


media-libs/libcaca-0.99_beta18-r2::gentoo was built with the following:
USE="X cxx doc ncurses opengl python truetype -imlib (-java) (-mono) (-ruby) -slang -static-libs -test" ABI_MIPS="(-n32) (-n64) -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="64 -32 -x32" ELIBC="glibc -FreeBSD" KERNEL="linux" PYTHON_TARGETS="python2_7" USERLAND="GNU"
Comment 9 Torsten Kaiser 2016-12-11 17:11:03 UTC
Created attachment 455870 [details]
failing build with doxygen-1.8.12
Comment 10 Torsten Kaiser 2016-12-22 12:52:10 UTC
I'm not able to fix the pdflatex problem, because I don't know enough about the changes in doxygen or why latex now fails.

But I was abled to find a simple way to disable the generation of the pdf docs, so at least the html docs can now be build.

Installing the docs needs an addition patch, because one @srcdir@ is missing in doxygen.cfg.in.

I will attach 2 files: First the patch for doxygen.cfg.in, and second a modified ebuild that works for me.
The ebuild adds ac_cv_path_LATEX=no onto the econf call and aplies the css patch fix.
Comment 11 Torsten Kaiser 2016-12-22 12:53:19 UTC
Created attachment 457104 [details, diff]
Patch needed to fix install phase. Otherwise doxygen.css will not be found.
Comment 12 Torsten Kaiser 2016-12-22 12:55:28 UTC
Created attachment 457106 [details]
Works-For-Me-Ebuild

It disables the pdf generation, so latex can no longer fail. And applies the install fix patch from the last attachment.

If nobody can fix the latex problem with newser doxygen the the DEPENDs wrt. latex should probably also be removed from the ebuild.
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2019-11-05 14:53:16 UTC
*** Bug 579798 has been marked as a duplicate of this bug. ***
Comment 14 Alexander Miller 2019-11-12 18:19:28 UTC
Created attachment 595912 [details, diff]
libcaca-0.99_beta19-latex_hacks.patch

There are several issues currently with media-libs/libcaca-0.99_beta19-r1[doc],
maybe not the same as in the original bug report, but since jer recently bumped
the bug I continue here.

First, pdflatex fails because the sed command modified by gentoo's
libcaca-0.99_beta18-latex_hacks.patch produces syntactically invalid latex,
probably due to formatting changes in doxygen (in two lines, a neede "}" gets
commented out). Now, this patch modifies a hack that was added more than
15 years ago as a workaround for issues in really ancient doxygen versions,
see <https://github.com/cacalabs/libcaca/commit/fe1ce81>. Just remove the
hack completely instead of trying to patcht it. The attached patch is intended
as a replacement for the current latex_hacks patch and allows pdflatex to
continue further.

Unfortionately this is not enough to fix pdf generation. Latex stops further
down the road due to <https://github.com/doxygen/doxygen/issues/6769> with
currently stable app-doc/doxygen-1.8.15 (and texlive-2019, the only version
available now). So libcaca needs >=app-doc/doxygen-1.8.16 to build pdf docs.
(With texlive-2019, all doxygen versions <1.8.16 can be considered broken,
and you can expect more failing packages, including doxygen itself, see e.g.
bug 688658, but that's off topic here.) You should update the dependency
(and stable-mask the doc flag for now) or disable pdf generation (at least
with older doxygen) in the ebuild.

As explained by Torsten Kaiser in comment #11, the css-path patch in
attachment 457104 [details, diff] should be added, too.

With doxygen-1.8.16, the updated latex_hacks patch attached here, and Torsten's
patch I could successfully build the docs. But there are further issues:

The ebuild doesn't apply user patches which makes it unneccessarily hard to
fix the issues locally. Please add a call to epatch_user or eapply_user.

Also I got the following warning:
 * The ebuild is installing to one or more unexpected paths:
 * 
 *   /usr/share/doc/libcaca-dev
 * 
 * Please fix the ebuild to use correct FHS/Gentoo policy paths.
(Html and pdf docs are installed into this path. The docs install path should
be fixed, replace "dev" with ${PVR}.)
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2020-09-22 11:00:24 UTC
*** Bug 744034 has been marked as a duplicate of this bug. ***
Comment 16 Leonid Kopylov 2020-12-23 14:33:41 UTC
same with media-libs/libcaca-0.99_beta19-r1
Comment 17 Larry the Git Cow gentoo-dev 2021-05-22 11:39:29 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e49df2222085dded48b58473bc2fd6347f8352f

commit 9e49df2222085dded48b58473bc2fd6347f8352f
Author:     Andrew Savchenko <bircoph@gentoo.org>
AuthorDate: 2021-05-22 11:36:04 +0000
Commit:     Andrew Savchenko <bircoph@gentoo.org>
CommitDate: 2021-05-22 11:39:14 +0000

    media-libs/libcaca: fix multiple CVEs and docs build failure
    
    CVE fixed (using Debian patchset):
    CVE-2018-20544, CVE-2018-20545, CVE-2018-20546,
    CVE-2018-20547, CVE-2018-20549, CVE-2021-3410.
    
    Fix docs build failure (doxygen and latex issues) using both Debian
    patch and patch from bug 543870#c11.
    
    Install docs into proper path.
    
    Bug: https://bugs.gentoo.org/543870
    Bug: https://bugs.gentoo.org/772317
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>

 media-libs/libcaca/files/100_doxygen.diff          | 170 +++++++++++++++++++
 media-libs/libcaca/files/CVE-2018-20544.patch      |  45 +++++
 .../libcaca/files/CVE-2018-20545+20547+20549.patch |  34 ++++
 .../libcaca/files/CVE-2018-20546+20547.patch       |  36 ++++
 ...em-in-the-caca_resize-overflow-detection-.patch | 135 +++++++++++++++
 ...as-fix-an-integer-overflow-in-caca_resize.patch | 141 ++++++++++++++++
 media-libs/libcaca/files/fix-css-path.patch        |  12 ++
 media-libs/libcaca/libcaca-0.99_beta19-r4.ebuild   | 182 +++++++++++++++++++++
 8 files changed, 755 insertions(+)