Jump to content
Read the Funtoo Newsletter: Summer 2023 ×
  • 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 an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...