Discover Centmin Mod today
Register Now

Patching a file in linux

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

  1. pamamolf

    pamamolf Well-Known Member

    4,028
    421
    83
    May 31, 2014
    Ratings:
    +817
    Local Time:
    3:53 AM
    Nginx-1.17.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