Welcome to Centmin Mod Community
Become a Member

Patching a file in linux

Discussion in 'System Administration' started by pamamolf, Feb 6, 2016.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    6:14 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi

    I had this exact problem with sphinx 2.0.4:

    #667378 - sphinxsearch: ftbfs with GCC-4.7 - Debian Bug report logs

    I know that in a new version is fixed but for a reason i must stay with this version.

    There is a patch there:
    Code:
    sphinxsearch+nmu.diff
    and i know that i can patch the file with the problem using :


    Code:
    patch filex.c < sphinxsearch+nmu.diff
    Is it a gcc 4.7 compiler patch? Damn don't know how to apply this patch on my Centos 7.2 :(
     
    Last edited: Feb 6, 2016