Uploaded image for project: 'Funtoo Linux'
  1. Funtoo Linux
  2. FL-3676 Funtoo Container: elibtoolize - Portage patch failed to apply
  3. FL-3682

media-libs/libpng-1.2.57 fails to emerge: failed to apply patch

    • Icon: Sub-task Sub-task
    • Resolution: Workaround
    • Icon: Normal Normal
    • None
    • None
    • emerge --info is attached as emerge-info.log.

      In my own attempts to fix FL-3678 I tried to reinstall the dependencies of games-rpg/runescape-launcher with:

      sudo emerge 'media-libs/libpng:1.2' '>=media-libs/libsdl2-2.0.2' '>=media-libs/glew-1.10.0:0/1.10' '>=media-libs/libvorbis-1.3.2' '>=net-libs/webkit-gtk-2.4.8:2' '>=net-misc/curl-7.35.0'
      

      and media-libs/libpng-1.2.57 failed to re-emerge, with the output:

      >>> Emerging (1 of 6) media-libs/libpng-1.2.57::gentoo
       * Fetching files in the background.
       * To view fetch progress, run in another terminal:
       * tail -f /var/log/emerge-fetch.log
       * libpng-1.2.57.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                            [ ok ]
      >>> Unpacking source...
      >>> Unpacking libpng-1.2.57.tar.xz to /var/tmp/portage/media-libs/libpng-1.2.57/work
      >>> Source unpacked in /var/tmp/portage/media-libs/libpng-1.2.57/work
      >>> Preparing source in /var/tmp/portage/media-libs/libpng-1.2.57/work/libpng-1.2.57 ...
       * Running elibtoolize in: libpng-1.2.57/
      
       * Portage patch failed to apply (ltmain.sh version 2.4.6)!
       * Please file a bug report to add a proper patch.
       * ERROR: media-libs/libpng-1.2.57::gentoo failed (prepare phase):
       *   Portage patch failed to apply!
       * 
       * Call stack:
       *     ebuild.sh, line  115:  Called src_prepare
       *   environment, line 1776:  Called elibtoolize
       *   environment, line  683:  Called die
       * The specific snippet of code:
       *                                   die "Portage patch failed to apply!";
       * 
       * If you need support, post the output of `emerge --info '=media-libs/libpng-1.2.57::gentoo'`,
       * the complete build log and the output of `emerge -pqv '=media-libs/libpng-1.2.57::gentoo'`.
       * The complete build log is located at '/var/tmp/portage/media-libs/libpng-1.2.57/temp/build.log'.
       * The ebuild environment file is located at '/var/tmp/portage/media-libs/libpng-1.2.57/temp/environment'.
       * Working directory: '/var/tmp/portage/media-libs/libpng-1.2.57/work/libpng-1.2.57'
       * S: '/var/tmp/portage/media-libs/libpng-1.2.57/work/libpng-1.2.57'
      
      >>> Failed to emerge media-libs/libpng-1.2.57, Log file:
      
      >>>  '/var/tmp/portage/media-libs/libpng-1.2.57/temp/build.log'
      
       * Messages for package media-libs/libpng-1.2.57:
      
       * Portage patch failed to apply (ltmain.sh version 2.4.6)!
       * Please file a bug report to add a proper patch.
       * ERROR: media-libs/libpng-1.2.57::gentoo failed (prepare phase):
       *   Portage patch failed to apply!
       * 
       * Call stack:
       *     ebuild.sh, line  115:  Called src_prepare
       *   environment, line 1776:  Called elibtoolize
       *   environment, line  683:  Called die
       * The specific snippet of code:
       *                                   die "Portage patch failed to apply!";
       * 
       * If you need support, post the output of `emerge --info '=media-libs/libpng-1.2.57::gentoo'`,
       * the complete build log and the output of `emerge -pqv '=media-libs/libpng-1.2.57::gentoo'`.
       * The complete build log is located at '/var/tmp/portage/media-libs/libpng-1.2.57/temp/build.log'.
       * The ebuild environment file is located at '/var/tmp/portage/media-libs/libpng-1.2.57/temp/environment'.
       * Working directory: '/var/tmp/portage/media-libs/libpng-1.2.57/work/libpng-1.2.57'
       * S: '/var/tmp/portage/media-libs/libpng-1.2.57/work/libpng-1.2.57'
      

      doubt the log is needed as it just contains this output... Emerge showed the packages to be emerged (mentioning it as a substitute for emerge -pqv):

      [ebuild   R    ] media-libs/libpng-1.2.57:1.2::gentoo  ABI_X86="32 (64) (-x32)" 642 KiB
      [ebuild   R    ] media-libs/libsdl2-2.0.5::gentoo  USE="X alsa dbus joystick opengl sound threads udev video xinerama xscreensaver (-altivec) (-custom-cflags) (-fusionsound) -gles -haptic -nas -oss -pulseaudio -static-libs -tslib -wayland" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="mmx sse sse2 -3dnow" 0 KiB
      [ebuild   R    ] media-libs/glew-1.10.0-r2:0/1.10::gentoo  USE="-doc -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
      [ebuild   R    ] media-libs/libvorbis-1.3.5::gentoo  USE="-static-libs" ABI_X86="(64) -32 (-x32)" 1,166 KiB
      [ebuild   R    ] net-libs/webkit-gtk-2.4.11-r200:2::gentoo  USE="X gstreamer introspection jit opengl webgl (-aqua) -coverage -debug -egl -geoloc -gles2 -gnome-keyring -spell {-test}" 0 KiB
      [ebuild   R    ] net-misc/curl-7.53.0::gentoo  USE="ipv6 ssl -adns -http2 -idn -kerberos -ldap -metalink -rtmp -samba -ssh -static-libs {-test} -threads" ABI_X86="(64) -32 (-x32)" CURL_SSL="openssl -axtls -gnutls -libressl -mbedtls -nss -polarssl (-winssl)" 2,552 KiB
      

            Unassigned Unassigned
            fusion809 fusion809 [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: