Jump to content
Forums in Read-Only Mode - Please use Reddit ×
  • 0

How to create localpatches?


cafaia

Question

How to create localpatches in '/etc/portage/localpatches'? I used the command 'diff -Naur', but I do not know how should be the structure the file '.patch'.

I want to apply an patch on a ebuild from portage, I have this with the command 'diff -Naur':

 

--- ftgl-2.1.3_rc5.ebuild.orig  2017-05-24 08:51:52.670657213 -0300
+++ ftgl-2.1.3_rc5.ebuild       2017-05-24 08:52:21.856042287 -0300
@@ -37,6 +37,7 @@
 
 src_configure() {
        strip-flags # ftgl is sensitive - bug #112820
+       append-cxxflags -std=c++14
        econf $(use_enable static-libs static)
 }
 
but it's not working in '/etc/portage/localpatches/media-libs/ftgl-2.1.3_rc5/std-14.patch'. What should I do?
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

×
×
  • Create New...