Skip to content

ffmpeg: Fails to build while applying patch 020-ffmpeg-fix-build-with-fdk-aac-2.0.patch and other fdkaac patches. #3

@dreirund

Description

@dreirund

Ahoj,

when I try to build libffmpeg-audio-dec from the HandsomeMod/packages feed, it fails while applying the patch 020-ffmpeg-fix-build-with-fdk-aac-2.0.patch:

[...]
Applying ./patches/020-ffmpeg-fix-build-with-fdk-aac-2.0.patch using plaintext: 
patching file libavcodec/libfdk-aacenc.c
Hunk #1 succeeded at 35 with fuzz 2 (offset 9 lines).
Hunk #2 FAILED at 291.
Hunk #3 FAILED at 324.
2 out of 3 hunks FAILED -- saving rejects to file libavcodec/libfdk-aacenc.c.rej
[...]

→ Here is the libavcodec/libfdk-aacenc.c.rej.

After a failing make -j6, → here is the terminal output of make -j1 V=sc package/feeds/packages/ffmpeg/compile.

Configuration:

  • grep -i ffmpeg .config:
    CONFIG_PACKAGE_libffmpeg-audio-dec=m
    # CONFIG_PACKAGE_libffmpeg-custom is not set
    # CONFIG_PACKAGE_libffmpeg-full is not set
    # CONFIG_PACKAGE_libffmpeg-mini is not set
    # CONFIG_PACKAGE_ffmpeg is not set
    
  • → Full .config.

After removing the offending patch, also the following patches fail to apply:

  • ./patches/030-fdkaac-version.patch:
    Applying ./patches/030-fdkaac-version.patch using plaintext: 
    patching file libavcodec/libfdk-aacdec.c
    Hunk #1 FAILED at 25.
    Hunk #2 FAILED at 72.
    Hunk #3 FAILED at 293.
    3 out of 3 hunks FAILED -- saving rejects to file libavcodec/libfdk-aacdec.c.rej
    patching file libavcodec/libfdk-aacenc.c
    Hunk #1 FAILED at 156.
    Hunk #2 FAILED at 291.
    Hunk #3 FAILED at 412.
    3 out of 3 hunks FAILED -- saving rejects to file libavcodec/libfdk-aacenc.c.rej
    Patch failed!  Please fix ./patches/030-fdkaac-version.patch!
    
  • ./patches/040-fdkaac-eld.patch:
    Applying ./patches/040-fdkaac-eld.patch using plaintext: 
    patching file libavcodec/libfdk-aacenc.c
    Hunk #1 FAILED at 36.
    Hunk #2 FAILED at 47.
    Hunk #3 FAILED at 149.
    3 out of 3 hunks FAILED -- saving rejects to file libavcodec/libfdk-aacenc.c.rej
    Patch failed!  Please fix ./patches/040-fdkaac-eld.patch!
    
  • ./patches/050-fdkaac-define.patch:
    Applying ./patches/050-fdkaac-define.patch using plaintext: 
    patching file libavcodec/libfdk-aacdec.c
    Hunk #1 FAILED at 25.
    1 out of 1 hunk FAILED -- saving rejects to file libavcodec/libfdk-aacdec.c.rej
    patching file libavcodec/libfdk-aacenc.c
    Hunk #1 FAILED at 26.
    1 out of 1 hunk FAILED -- saving rejects to file libavcodec/libfdk-aacenc.c.rej
    Patch failed!  Please fix ./patches/050-fdkaac-define.patch!
    

Removing all offending patches make libffmpeg-audio-dec compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions