Unable to build - lirc patches won't apply

  • Hello,

    I'm trying to build LibreELEC for the RPi 2 and created a Docker-Image for this purpose. My problem is, when it comes to install "lirc" the build fails while applying the patches.

    Code
    APPLY PATCH (common)   /LibreELEC.tv/packages/sysutils/lirc/patches/lirc-0001-always-enable-uinput.patch
    patching file configure.ac
    Hunk #1 FAILED at 33.
    1 out of 1 hunk FAILED -- saving rejects to file configure.ac.rej
    Makefile:12: recipe for target 'image' failed
    make: *** [image] Error 1
    rm -rf build.*/* build.*/.stamps

    Just for completeness - this is the Dockerfile, which I use to build the Image:

    And this is the simple build_script.sh

    Maybe someone knows what I'm doing wrong and can point out my mistake :D

    Thanks
    S.

  • Lirc sources were silently updated with same version number. And now patches are not compatible anymore. Will be fixed.

    In the mean time you can change URL in file packages/sysutils/lirc/package.mk to

    Code
    PKG_URL="https://sourceforge.net/projects/lirc/files/LIRC/$PKG_VERSION/$PKG_NAME-$PKG_VERSION.tar.bz2"

    Edited once, last by vpeter (January 31, 2017 at 11:22 AM).

  • Thanks, looks to be a packaging cock up by lirc - the version of the 0.9.4c package now includes several post-0.9.4c commits which break the build. Obviously, these extra commits should not have been added to the 0.9.4c package.

    I've added PR1252 which will download the 0.9.4c package from a different url. This new URL is serving the original 0.9.4c package without the extra commits.

    Either manually change the URL in your local repo and restart the build, or wait until PR1252 is merged.