Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dreirund opened this issue Sep 29, 2022 · 0 comments

Comments

@dreirund
Copy link

dreirund commented Sep 29, 2022

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.

@dreirund dreirund changed the title ffmpeg: Fails to build while applying patch 020-ffmpeg-fix-build-with-fdk-aac-2.0.patch. ffmpeg: Fails to build while applying patch 020-ffmpeg-fix-build-with-fdk-aac-2.0.patch and other fdkaac patches. Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant