Jump to content
funtoo forums
  • 0
cafaia

How to create localpatches?

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?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...