Get the most out of your Centmin Mod LEMP stack
Become a Member

Patching a file in linux

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

  1. pamamolf

    pamamolf Well-Known Member

    2,724
    243
    63
    May 31, 2014
    Ratings:
    +434
    Local Time:
    8:19 PM
    Nginx-1.13.x
    MariaDB 10.1.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