Help Compiling with a patch for Odroid C2

  • I've asked everywhere about this and i'm not getting any responses.. i'm hoping someone can either point me in the right direction or tell me i'm stupid.

    I've managed to compile 7.90.008 myself.. a feat in itself to be honest.. But i'm really struggling to apply some patches.

    Popcornmix has some CEC patches which completely resolve my Panasonic TV issues. Pogo1975 on the Odroid forums has compiled 7.90.008 with these patches and all is fantastic..

    The problem is, i can't rely on him to do this each time there is a new release so i'm trying to learn how to do it myself.

    The second problem is that i've no clue what i'm doing with github etc and I cannot get the patches applied...

    I'm following this guide :

    Compile - LibreELEC

    and i'm trying to patch using "git apply kodi-001-backpot.patch" but it keeps telling me it can't find the file / folder. I know i'm running this from the wrong place, but i've no clue where in the folder structure i should be running it and at what point in the instructions i should be doing it...

    I've attached the patch file to this thread.. If someone, anyone could just give me some guidance on this, i can hopefully stop litering all the related forums with my whinges :(
    [hr]
    I've found a folder called patches in projects/Odroid_c2/patches

    i've created a folder called "kodi" in there and put my patch file in and have started to compile... will see if it does anything.

  • After step 6 make sure your patch file is in this directory, too.
    type:
    patch -p0 < name.of.the.file.patch

    This should apply the patch. Once successful, you can carry on.

    BR


  • After step 6 make sure your patch file is in this directory, too.
    type:
    patch -p0 < name.of.the.file.patch

    This should apply the patch. Once successful, you can carry on.

    BR

    HI, I'm afraid this didn't work..i'm getting :

    Quote


    can't find file to patch at input line 26
    Perhaps you used the wrong -p or --strip option?

  • Try -p1 instead of -p0

    BR

    Same result.. thing is, looking in the patch file i can see the paths to the files it wants to change.. and i can confirm, they just do not exist..

    Have you compiled LibreELEC before? (note.. i've never compiled anything before this so i really have no clue how it's all meant to work)


  • No, I did not.
    I gave you the basics of applying the patches to the source code in general.

    BR

    Ah ok, I only ask because they have some download tool for the source, i just wonder if their make process is different and that's why i can't find anything on how to apply patches properly..

    This is extremely confusing.. thank you for your help though.


  • No worries. You made me curious, though.
    I will try to apply the patch when I get home ;)

    I'd really appreciate it if you found the time.. If i'm doing something blatently stupid i'd really like to know!
    [hr]
    Oooh.. i'm compiling right now and i saw something wiz past that said "Apply Patch" and then a path name.. i was too slwo to see it , but if it is applying patches during compilation then that would be cool!
    [hr]
    the further i let this build go, and the more i look at this patch file, i'm pretty sure where i've put it isn't going to work..

    it seems to include patches for multiple different things and as such i don't think putting it in "kodi" or "libcec" exclusively will work.. But to be honest, i'm just guessing at all of this at the moment.

    Finding it increasingly frustrating that no one can tell me how to do this even though people blatently do it every day.

    Edited once, last by danmed (November 10, 2016 at 2:33 PM).


  • patches need to go in their respective folders

    either
    projects/Odroid_C2/patches/kodi/
    or
    package/mediacenter/kodi/patches/

    Thank you, i'm currently compiling with that .patch file in the Odroid_C2/patches/kodi

    But how do i know which one is the correct one?


  • either works one is just project specific

    Ah fantastic, hopefully i'll wake up to a functional build then :)

    Edit : So the build finished in about 6.5 hours and it looks like it worked! Thank you!

    Just one last question.. If i'm running "git checkout 7.90.008" is that actually doing what i think? as once it's built, you lose the build number and it becomes like "dev-2016xxxxxx"

    Edited once, last by danmed (November 10, 2016 at 10:17 PM).