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 packages | Assignee: | Gentoo Media-video project <media-video> |
Status: | IN_PROGRESS --- | ||
Severity: | normal | CC: | bircoph, chall0+gentoo, 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
'USE=-doc emerge -v1 libcaca' works. 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...) 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? 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? *** Bug 550262 has been marked as a duplicate of this bug. *** Confirmed for 1.8.9.1 and 1.8.10-r1 Confirmed for app-doc/doxygen-1.8.11 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" Created attachment 455870 [details]
failing build with doxygen-1.8.12
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. Created attachment 457104 [details, diff]
Patch needed to fix install phase. Otherwise doxygen.css will not be found.
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.
*** Bug 579798 has been marked as a duplicate of this bug. *** 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}.) *** Bug 744034 has been marked as a duplicate of this bug. *** same with media-libs/libcaca-0.99_beta19-r1 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(+) |