Jump to content

Photo

How to create localpatches?

- - - - - localpatches

Best Answer cardinal , 24 May 2017 - 01:57 PM

Local patches are applied to the source code only, not the ebuild.
Modified ebuilds go in the local overlay. Go to the full post »


2 replies to this topic

#1
cafaia

cafaia

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts

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?


#2
cardinal

cardinal

    Advanced Member

  • Members
  • PipPipPip
  • 252 posts
✓  Best Answer
Local patches are applied to the source code only, not the ebuild.
Modified ebuilds go in the local overlay.
  • cafaia likes this

#3
cafaia

cafaia

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts

Hello, cardinal!

 

Thank you very much for your attention.


  • cardinal likes this



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users