Compilation fails because of a missing freetype header. > x86_64-pc-linux-gnu-gcc -mtune=native -march=x86-64 -O2 -pipe -I/usr/include/freetype2 -c -o ttf.o ttf.c > x86_64-pc-linux-gnu-gcc -mtune=native -march=x86-64 -O2 -pipe -I/usr/include/freetype2 -c -o luxisri.o luxisri.c > ttf.c:16:30: fatal error: freetype/ftoutln.h: No such file or directory #include <freetype/ftoutln.h> > ^ > compilation terminated. > <builtin>: recipe for target 'ttf.o' failed > make[1]: *** [ttf.o] Error 1 > make[1]: Leaving directory '/var/tmp/portage/media-gfx/splashutils-1.5.4.4-r4/work/miscsplashutils-0.1.8/fbtruetype' > Makefile:16: recipe for target 'all' failed > make: *** [all] Error 2
$ emerge --info Portage 2.2.10 (default/linux/amd64/13.0/desktop/kde, gcc-4.8.2, glibc-2.18-r1, 3.13.5-ck.6 x86_64) ================================================================= System uname: Linux-3.13.5-ck.6-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.2 KiB Mem: 8179700 total, 573248 free KiB Swap: 4194296 total, 4169756 free Timestamp of tree: Fri, 28 Mar 2014 16:00:01 +0000 ld GNU ld (GNU Binutils) 2.24 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 3.1.9 [enabled] app-shells/bash: 4.2_p45-r1 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.6, 3.3.5 dev-util/ccache: 3.1.9-r3 dev-util/cmake: 2.8.12.2 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.4_p6-r1, 1.11.6, 1.14.1 sys-devel/binutils: 2.24-r2 sys-devel/gcc: 4.8.2 sys-devel/gcc-config: 1.8 sys-devel/libtool: 2.4.2 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.13 (virtual/os-headers) sys-libs/glibc: 2.18-r1 Repositories: gentoo x-portage Folding-Home x-hawkthorne x-hdhomerun partclone sage-on-gentoo steam-overlay kernels ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA dlj-1.1 PUEL AdobeFlash-11.x skype-4.0.0.7-copyright google-chrome Oracle-BCLA-JavaSE FAH-EULA-2009" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-mtune=native -march=x86-64 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /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.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-mtune=native -march=x86-64 -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--nospinner --keep-going" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs ccache 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://gentoo.llarian.net/ http://lug.mtu.edu/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j4" 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" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/fah /usr/local/overlays/hawkthorne /usr/local/overlays/hdhomerun /usr/local/overlays/partclone /usr/local/overlays/sage-on-gentoo /usr/local/overlays/steam-overlay /usr/local/overlays/kernels" USE="X a52 aac aacs acl acpi alsa amd64 amr amrnb amrwb avahi bash-completion berkdb bluray bzip2 cairo cdda cdr cec cli consolekit cracklib crypt cxx dbus declarative dirac dri dts dvb dvd dvdr emboss encode exif fam fbcondecor ffmpeg fftw flac fltk fortran gdbm gif gphoto2 gpm gstreamer gtk htmlhandbook iconv ieee1394 inotify ios ipv6 java jpeg kde kerberos kipi kvm lapack lcms libass libnotify libv4l2 lirc live lm_sensors lzma lzo mad matroska mdadm mmap mmx mmxext mng modules mp3 mp4 mpeg multilib musicbrainz mythtv ncurses nls nptl ntfs ogg opencl openexr opengl openmp openssl opus pam pango pcre pdf phonon plasma png policykit ppds qt3support qt4 qwt rar readline real redland rtmp samba schroedinger sdl semantic-desktop session spell sqlite sqlite3 srt sse sse2 sse3 sse4 sse4_1 ssl ssse3 startup-notification subversion svg tcpd theora threads thumbnail tiff truetype udev udisks unicode upower usb v4l2 vaapi vdpau vnc vorbis vpx webkit wxwidgets x264 xattr xcb xcomposite xinerama xml xscreensaver xulrunner xv xvid xvmc zeroconf zip zlib" 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 cgi 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" 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" 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" LIRC_DEVICES="inputlirc" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i915 i965 nvidia" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Created attachment 373786 [details] splashutils-1.5.4.4-r4.log Compile log
I've tried rebuilding splashutils-1.5.4.4-r1 and got same problem.
Created attachment 374078 [details, diff] splashutils-1.5.4.4-freetype251.patch Test patch. Dunno if this patch is sufficient as I don't wanna recompile all necessary dependencies with static-libs being enabled so please test and report back.
Added : if has_version ">=media-libs/freetype-2.5.1" ; then epatch "${FILESDIR}/splashutils-1.5.4.4-freetype251.patch" fi In the "if use truetype" of the ebuild. Tried compiling normally and with USE="-* png truetype" Both ended up with the same output: http://bpaste.net/show/196645/
Created attachment 374106 [details, diff] Patch for remaining freetype entries There were additional references to freetype headers that needed changing.
Created attachment 374108 [details, diff] splashutils-1.5.4.4-r5.ebuild.patch changes to ebuild to apply additional patch as well as original. splashutils compiles fine for me once I made these changes.
2 patches and patched ebuild built fine for me. But why are patches applied only with newer freetype? AFAIK freetype docs state that header macros must always be used for inclusion, not header names directly. Some people using freetype either don't read docs or just ignore it, that's why we get such errors on upgrading freetype when freetype changes headers locations. If macros would always be used, there would be no such breakage of builds.
Can this be integrated into the Portage repository?
Attached two patches work for me. Can we add these patches to the tree?
*** Bug 517680 has been marked as a duplicate of this bug. ***
Forwarding infromation from the duplicated bug 517680 to here: Alon Bar-Lev said 2014-07-21 17:31:51 EEST: Created attachment 381242 [details, diff] [details, diff] splashutils-1.5.4.4-miscsplashutils-build.patch http://bugs.gentoo.org/attachment.cgi?id=381242 No more /usr/include/freetype but /usr/include/freetype2 Attached a simple patch that can be squashed with splashutils-1.5.4.4-freetype-bz2.patch Another issue is bug 517678
asaf, I can commit the fix if ok
Alon, Darragh Bailey's patch uses header macros rather than direct includes, which is better, since according to freetype's documentation that is the way header files should be included. I suggest using his patches.
I've applied the provided patches for this bug, yet I get errors. Please see my attachment for additional information. mark@localhost ~ $ emerge --info Portage 2.2.8-r1 (default/linux/x86/13.0/desktop/kde, gcc-4.7.3, glibc-2.17, 3.12.21-gentoo-r1 i686) ================================================================= System uname: Linux-3.12.21-gentoo-r1-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6700_@_2.66GHz-with-gentoo-2.2 KiB Mem: 2037468 total, 363280 free KiB Swap: 4194300 total, 3903020 free Timestamp of tree: Mon, 21 Jul 2014 01:45:01 +0000 ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2 distcc 3.1 i686-pc-linux-gnu [disabled] ccache version 3.1.9 [disabled] app-shells/bash: 4.2_p45 dev-java/java-config: 2.2.0 dev-lang/python: 2.7.6, 3.3.3 dev-util/ccache: 3.1.9-r3 dev-util/cmake: 2.8.12.2 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.12.6, 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 3.82-r4 sys-kernel/linux-headers: 3.13 (virtual/os-headers) sys-libs/glibc: 2.17 Repositories: gentoo steam-overlay zugaina gamerlay rmzelnick ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -pipe" DISTDIR="/usr/portage/distfiles" FCFLAGS="-O2 -march=i686 -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" FFLAGS="-O2 -march=i686 -pipe" GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j5" 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" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/steam /var/lib/layman/zugaina /var/lib/layman/gamerlay /usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg kde kipi lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qt3support qt4 readline sdl semantic-desktop session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vdpau vorbis wxwidgets x264 x86 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 cgi 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" 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" 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 joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Created attachment 381316 [details] splashutils failed build log Failed splashutils build log after applying patches: * splashutils-1.5.4.4-freetype251.patch * splashutils-1.5.4.4-r5.ebuild.patch * Patch for remaining freetype entries
hi, the modified ebuild from https://bugs.gentoo.org/499654?id=499654 with the patches from here will work.
@rmzelnick - the error you're seeing is due to another bug. Once applying the patches, another bug is uncovered. @motorsense - could you create an ebuild that combines both?
Created attachment 381320 [details] patched ebuild
Created attachment 381322 [details, diff] patch for -llcms2
@ Asaf Gery I have uploaded it you need patched ebuild splashutils-1.5.4.4-freetype251.patch Patch for remaining freetype entries patch for -llcms2 It works for me :-)
Don't forget to set +static-libs use flag for BOTH lcms slots!
Has this patch gone into the tree yet? I could manually use a local overlay, but it would be nice if this was integrated into Portage's main tree...
*** Bug 518606 has been marked as a duplicate of this bug. ***
We can profit of that bug to remove old patches that aren't anymore used in the tree: - initrd.splash-cmp-str-instead-of-int.patch - splashutils-1.5.4.3-daemon-exit-signal.patch - splashutils-1.5.4.3-fix_rc_var.patch - splashutils-1.5.4.3-libjpeg.patch - splashutils-1.5.4.3-libpng15_compat.patch - splashutils-1.5.4.3-makefile.patch - splashutils-1.5.4.3-nondefault-runlevel.patch - splashutils-1.5.4.3-openrc-effects.patch - splashutils-1.5.4.3-openrc-umount-fix.patch - splashutils-1.5.4.3-splash-functions.patch - splashutils-1.5.4.3-splash_geninitramfs.patch - splashutils-1.5.4.3-splash_util.patch - splashutils-openrc-0.4.3-runlevel-fix.patch - splashutils-openrc-0.4-fix.patch Thanks
*** Bug 519188 has been marked as a duplicate of this bug. ***
+1 for the r5 patch and the freetype patches. I had to add "LDFLAGS=''" to my ebuild when it calls emake in src_compile. Other than that this has compiled.
Excuse me, I have a question about applying proposed patch. Should I patch ebuild by hands and put it to local overlay, or should I put this patch somewhere so that portage will patch ebuild himself?
(In reply to protserovsd from comment #28) > Excuse me, I have a question about applying proposed patch. Should I patch > ebuild by hands and put it to local overlay, or should I put this patch > somewhere so that portage will patch ebuild himself? For now you should create your own local overlay. Once we release a new version, "emerge --update @world" should do the job for you...
Any update on when a new version is expected? There haven't been any changes to this bug for three weeks...
(In reply to Randall Wald from comment #30) > Any update on when a new version is expected? There haven't been any changes > to this bug for three weeks... The patches are fine, but there is another problem I would like to solve before I release an update, bug 434368 (https://bugs.gentoo.org/show_bug.cgi?id=434368). I recall someone posted a patch to that bug or to a similar one, but I am having difficulties finding it. If any of you guys find/know how to fix that bug, it would be greatly appreciated. Once that bug is solved, I will create a new ebuild and ask the guys to release (I am not authorized to release on my own yet :-))
I have created local overlay with splashutils, downloaded patched ebuild, copied all patches from standard portage tree to splashutils/files and added patches downloaded from here. Now build fails with "/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -llcms2" and I could only build the package after disabling "mng" USE-flag.
Pushed freetype fix as trivial: > 26 Aug 2014; Sergei Trofimovich <slyfox@gentoo.org> > +files/splashutils-1.5.4.4-ft25.patch, splashutils-1.5.4.4-r4.ebuild: > Fix build failure against stable freetype (bug #506124 by Nathan Caldwell and > others, fix by Lars Wendler).
(In reply to protserovsd from comment #32) > I have created local overlay with splashutils, downloaded patched ebuild, > copied all patches from standard portage tree to splashutils/files and added > patches downloaded from here. Now build fails with > "/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ > ld: cannot find -llcms2" > and I could only build the package after disabling "mng" USE-flag. same here do I missed something: https://github.com/emcek/gentoo.mipl/tree/master/media-gfx/splashutils
For me, -r4 still doesn't build, although the patch applies: [...] * Applying splashutils-1.5.4.4-ft25.patch ... [ ok ] [...] Making all in . In file included from render.h:98:0, from parse.c:18: ttf.h:4:30: fatal error: freetype/ftoutln.h: No such file or directory compilation terminated.
Same here: -r4 doesn't build. It looks like the new patch only fixed ttf.c But according to previous comments, ttf.h should also be patched (attachment 374106 [details, diff]).
The following ebuild works great for me: http://pastebin.com/iargM7hZ, please use.
(In reply to protserovsd from comment #37) > The following ebuild works great for me: http://pastebin.com/iargM7hZ, > please use. I have exactly same ebuild and have the same problem like you in #32. Did you -mng?
Yes, I have mng disabled.
Using this pastebin ebuild fails here for missing splashutils-1.5.4.4-freetype251-splashutils.patch. Where do I get that it is not mentioned in the bug? I already have the attached splashutils-1.5.4.4-freetype251.patch. I this going to be fixed in the tree?
Until today the bug is not fixed with a fresh amd64 install und the newest portage tree splashutils ebuild. Please update it. The bug was reported half year ago. Please fix it. Thanks.
Hello! This problem has long existed. Please add fixes branch.
Still the same problem and even with the new ebuild provided beside patches I cannot emerge splashutils. The only way is to remove truetype and mng USE flags.
(In reply to Michal Plichta from comment #34) > (In reply to protserovsd from comment #32) > > I have created local overlay with splashutils, downloaded patched ebuild, > > copied all patches from standard portage tree to splashutils/files and added > > patches downloaded from here. Now build fails with > > "/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ > > ld: cannot find -llcms2" > > and I could only build the package after disabling "mng" USE-flag. > > same here do I missed something: > https://github.com/emcek/gentoo.mipl/tree/master/media-gfx/splashutils your ebuild is ok except for lcms dependency, just be sure to rebuild lcms2 with static-libs use flags, otherwise liblcms2.so* only from (media-libs/lcms:2) and (liblcsm.so*,liblcms.a from media-libs/lcms:0) and splashutils requires media-libs/lcms:2 static-libs. Indeed in your ebuild there is still a dependency on old lcms whereas your patch force lcms:2 mng? ( media-libs/lcms:0[static-libs] <= force lcms:2 here? media-libs/libmng[static-libs(+)] )
(In reply to Michal Plichta from comment #34) > (In reply to protserovsd from comment #32) > > I have created local overlay with splashutils, downloaded patched ebuild, > > copied all patches from standard portage tree to splashutils/files and added > > patches downloaded from here. Now build fails with > > "/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ > > ld: cannot find -llcms2" > > and I could only build the package after disabling "mng" USE-flag. > > same here do I missed something: > https://github.com/emcek/gentoo.mipl/tree/master/media-gfx/splashutils I've tried this ebuild an patches. But I can't still build splashutils. It now fails on a different entry: http://pastebin.com/ZPuMb46x Anybody some idea?
Created attachment 390678 [details, diff] splashutils-1.5.4.4-r5_sys_queueh.patch
(In reply to Conrad Kostecki from comment #45) > I've tried this ebuild an patches. But I can't still build splashutils. It > now fails on a different entry: > > http://pastebin.com/ZPuMb46x > > Anybody some idea? I make patch to fix this compilation error: splashutils-1.5.4.4-r5_sys_queueh.patch --- splashutils-1.5.4.4-r5.ebuild 2014-10-26 13:00:01.000000000 +0600 +++ splashutils-1.5.4.4-r5.ebuild 2014-11-14 19:11:03.000000000 +0600 @@ -85,4 +85,5 @@ cd "${SG}" epatch "${FILESDIR}/splashutils-1.5.4.4-gentoo-typo-fix.patch" + epatch "${FILESDIR}/splashutils-1.5.4.4-r5_sys_queueh.patch" if use truetype ; then
(In reply to Viktor Yu. Kovalskii from comment #47) > (In reply to Conrad Kostecki from comment #45) > > > I've tried this ebuild an patches. But I can't still build splashutils. It > > now fails on a different entry: > > > > http://pastebin.com/ZPuMb46x > > > > Anybody some idea? > > I make patch to fix this compilation error: > > splashutils-1.5.4.4-r5_sys_queueh.patch > > --- splashutils-1.5.4.4-r5.ebuild 2014-10-26 13:00:01.000000000 +0600 > +++ splashutils-1.5.4.4-r5.ebuild 2014-11-14 19:11:03.000000000 +0600 > @@ -85,4 +85,5 @@ > cd "${SG}" > epatch "${FILESDIR}/splashutils-1.5.4.4-gentoo-typo-fix.patch" > + epatch "${FILESDIR}/splashutils-1.5.4.4-r5_sys_queueh.patch" > > if use truetype ; then Thank you! :) I was now able to compile splashutils.
Now we just need to get this into Portage. :/
or ;) https://github.com/emcek/gentoo.mipl/blob/master/media-gfx/splashutils/splashutils-1.5.4.4-r7.ebuild
(In reply to Michal Plichta from comment #50) > https://github.com/emcek/gentoo.mipl/blob/master/media-gfx/splashutils/ > splashutils-1.5.4.4-r7.ebuild Unless you plan on completely replacing the main Portage repository, please don’t be an enabler.
Do we really have to wait a year until this is fixed in main tree, especially since it's fully patched now? I hate relying on /etc/portage/patches that much.
Created attachment 392134 [details, diff] Patch against splashutils-1.5.4.4 Required patch for one more unpatched file.
Happy new year! I tested the latest patch, works fine. Thanks!
Still not working, missing -lz at freetype2 I guess. g86_64-pc-linux-gnu-gcc -O2 -march=native -fomit-frame-pointer -pipe -I/usr/include/freetype2 -Wl,-O1 -Wl,--as-needed -L/usr/lib64 -static -o fbtruetype.static -Wl,-O1 -Wl,--as-needed -L/usr/lib64 fbtruetype.o messages.o console.o ttf.o luxisri.o -lfreetype -lz -lbz2 -lpng16 -lm /usr/lib64/libpng16.a(pngwrite.o): In function `png_destroy_write_struct': (.text+0x2178): undefined reference to `deflateEnd' /usr/lib64/libpng16.a(pngwutil.o): In function `png_deflate_claim': (.text+0x346): undefined reference to `deflateInit2_' /usr/lib64/libpng16.a(pngwutil.o): In function `png_deflate_claim': (.text+0x3c4): undefined reference to `deflateEnd' /usr/lib64/libpng16.a(pngwutil.o): In function `png_deflate_claim': (
@Asaf Gery: Apparently this package is assigned to you. You have not said one word. Do you plan on doing something about that, or shall we call this package unmaintained? Because you don’t have to do this, you know? You can say that you don’t want to. What you have to do though, is keep a commitment, if you make it. And this limbo is getting silly. By now I don’t even know which magical combination of patches I’m supposed to apply to the potion, and/or what *I* would have to do to fix it. @Alon Bar-Lev: Does that mean freetype2 needs patching? I want to take over and get this done with. But I’m not sure I’m up to the task. I’m desperate enough though, as you can see above. ;)
Yes, please someone do something about this bug and package. It's been reported almost a year ago, and it would be really great to have slpashutils working again.
Created attachment 393300 [details] splashutils.tar.bz2 (In reply to Small_Penguin from comment #57) > Yes, please someone do something about this bug and package. It's been > reported almost a year ago, and it would be really great to have slpashutils > working again. It's a copy from my local overlay, it includes all patches from bugzilla I needed to build splashutils. I've tested it once again yesterday, worked for me. media-gfx/splashutils-1.5.4.4-r5 was built with the following: USE="fbcondecor gpm mng png truetype -hardened" ABI_X86="64" See also https://bugs.gentoo.org/show_bug.cgi?id=534784 Patch from that bug might be required too to ensure that all dependencies are present.
(In reply to i.Dark_Templar from comment #58) Okay, I tested it, and I can confirm that everything built and installed. (Some patches in your tar already were in portage though, and it fails without regenerating the Manifest.) I found the following build message a bit weird: > MAKE libfreetype.a > /usr/bin/x86_64-pc-linux-gnu-ld: error in /usr/lib64/klibc/lib/libc.so(.eh_frame); no .eh_frame_hdr table will be created. > /usr/bin/x86_64-pc-linux-gnu-ld: warning: cannot find entry symbol main; defaulting to 00000000004001c0 It doesn’t seem to use the static libs, but unpacks and compiles things itself, or something like that… and later during installation, with “warning” in red: > libtool: warning: relinking 'libfbsplashrender.la' > libtool: warning: remember to run 'libtool --finish /usr/lib64' Since it build anyway, I must assume those aren’t problems. I can’t test it right now though. And the other thing I can’t do, is put it in the official repository… Devs? Anyone?
I have put the supplied tar'd ebuild/patch in a local overlay and can confirm that it works for me as well. I did clean up some filenames though (and updated the ebuild to reflect the renames) but didn't make any other changes to the patches: libmng2-lcms2.patch => splashutils-1.5.4.4-libmng2-lcms2.patch splashutils-1.5.4.4-r5_sys_queueh.patch => splashutils-1.5.4.4-sys_queueh.patch splashutils-1.5.4.4-r5.ebuild => splashutils-1.5.4.4-r4.ebuild The reason I renamed the ebuild to -r4 is so that when an official -r5 is released it isn't overruled by my local overlay. I can upload the tarball with my changed filenames, but I don't want to get in the way so I won't upload it unless its considered useful by others :).
as of media-gfx/splashutils-1.5.4.4-r4: the only way to have it successfuly built was to do the following: $ cd /usr/include/ ; ln -s freetype2 freetype before this, it complains about a file not found; here's the important part of the log: (after all checks have been done) >> Source configured. >>> Compiling source in /var/tmp/portage/media-gfx/splashutils-1.5.4.4-r4/work/splashutils-1.5.4.4 ... make -j2 CC=x86_64-pc-linux-gnu-gcc STRIP=true (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /var/tmp/portage/media-gfx/splashutils-1.5.4.4-r4/work/splashutils-1.5.4.4/missing autoheader) rm -f stamp-h1 touch config.h.in cd . && /bin/sh ./config.status config.h config.status: creating config.h config.status: config.h is unchanged make --silent all-recursive Making all in libs CONF libz.a CONF libjpeg.a MAKE zlib.a CONF libfreetype.a MAKE libjpeg.a MAKE libfreetype.a /usr/bin/ld: warning: cannot find entry symbol main; defaulting to 00000000004001c0 CONF libpng.a MAKE libpng.a Making all in src CREATE fbsplash.h Making all in . In file included from render.h:98:0, from libfbsplashrender.c:28: ttf.h:4:30: fatal error: freetype/ftoutln.h: No such file or directory #include <freetype/ftoutln.h> ^ compilation terminated. There are a few more lines, but this is the core of the problem. In short, it seems to me that the build looks for media-libs/freetype < 2.0 After creating the link to the expected directory, it works! Great job!!
(In reply to Francisco Ares from comment #61) > as of media-gfx/splashutils-1.5.4.4-r4: > the only way to have it successfuly built was to do the following: > > $ cd /usr/include/ ; ln -s freetype2 freetype > > before this, it complains about a file not found; here's the important part > of the log: > > > (after all checks have been done) > > >> Source configured. > >>> Compiling source in /var/tmp/portage/media-gfx/splashutils-1.5.4.4-r4/work/splashutils-1.5.4.4 ... > make -j2 CC=x86_64-pc-linux-gnu-gcc STRIP=true > (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh > /var/tmp/portage/media-gfx/splashutils-1.5.4.4-r4/work/splashutils-1.5.4.4/ > missing autoheader) > rm -f stamp-h1 > touch config.h.in > cd . && /bin/sh ./config.status config.h > config.status: creating config.h > config.status: config.h is unchanged > make --silent all-recursive > Making all in libs > CONF libz.a > CONF libjpeg.a > MAKE zlib.a > CONF libfreetype.a > MAKE libjpeg.a > MAKE libfreetype.a > /usr/bin/ld: warning: cannot find entry symbol main; defaulting to > 00000000004001c0 > CONF libpng.a > MAKE libpng.a > Making all in src > CREATE fbsplash.h > Making all in . > In file included from render.h:98:0, > from libfbsplashrender.c:28: > ttf.h:4:30: fatal error: freetype/ftoutln.h: No such file or directory > #include <freetype/ftoutln.h> > ^ > compilation terminated. > > > > > There are a few more lines, but this is the core of the problem. > > In short, it seems to me that the build looks for media-libs/freetype < 2.0 > > After creating the link to the expected directory, it works! Great job!! Is that symlinking will broke something?
+*splashutils-1.5.4.4-r5 (01 Feb 2015) + + 01 Feb 2015; Sergey Popov <pinkbyte@gentoo.org> + +splashutils-1.5.4.4-r5.ebuild, files/splashutils-1.5.4.4-ft25.patch, + +files/splashutils-1.5.4.4-sys-queue.patch: + Revision bump: correct freetype 2.5 patch, wrt bug #506124. Add support for + user patches, add include for queue.h kernel header explicitly, prune + unnecessary libtool files I will request stabilization of this revision immediatly, cause current stable is broken for a long time.
*** Bug 520898 has been marked as a duplicate of this bug. ***