Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Assistance retrofitting a patch into chromium [SOLVED]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
41 posts
  • Previous
  • 1
  • 2
Author
Message
eyoung100
Veteran
Veteran
User avatar
Posts: 1428
Joined: Fri Jan 23, 2004 10:45 pm

  • Quote

Post by eyoung100 » Mon Nov 25, 2013 4:30 pm

dolohow wrote:You mean v30 and v31? Because v32 is not stable yet.
I did a merge from this two files provided by OP and that's it.
Oops, sorry yes v31
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Top
graysky
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 118
Joined: Sat Nov 25, 2006 12:46 pm
Location: above the flames and the ashes

  • Quote

Post by graysky » Mon Nov 25, 2013 8:32 pm

dolohow wrote:Try with this header file for v31:
http://pastebin.com/nyhDS1j1
Trying now, thanks... how did you preform the merge? Manually?
Zsh and other configs
Top
graysky
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 118
Joined: Sat Nov 25, 2006 12:46 pm
Location: above the flames and the ashes

  • Quote

Post by graysky » Mon Nov 25, 2013 9:04 pm

With the patch on github (latest commit) + the header file posted by dolohow, the compile ended in this error:

Code: Select all

...
  CXX(target) out/Release/obj.target/content_browser/content/browser/renderer_host/gtk_key_bindings_handler.o
  CXX(target) out/Release/obj.target/content_browser/content/browser/renderer_host/gtk_plugin_container.o
  CXX(target) out/Release/obj.target/content_browser/content/browser/renderer_host/gtk_plugin_container_manager.o
In file included from content/browser/renderer_host/gtk_im_context_wrapper.cc:17:0:./content/browser/renderer_host/render_widget_host_view_gtk.h:20:50: fatal error: ui/base/animation/animation_delegate.h: No such file or directory
 #include "ui/base/animation/animation_delegate.h"
                                                  ^
compilation terminated.
content/content_browser.target.mk:824: recipe for target 'out/Release/obj.target/content_browser/content/browser/renderer_host/gtk_im_context_wrapper.o' failed
make: *** [out/Release/obj.target/content_browser/content/browser/renderer_host/gtk_im_context_wrapper.o] Error 1
make: *** Waiting for unfinished jobs....
Looks like another missing header... copied over the one from v30 and trying again. Prognosis doesn't look good.

EDIT: actually, the entire ui/base/animation directory is missing from v31...
Zsh and other configs
Top
dolohow
Tux's lil' helper
Tux's lil' helper
Posts: 98
Joined: Sun Jan 17, 2010 9:53 am
Location: Poland

  • Quote

Post by dolohow » Mon Nov 25, 2013 9:59 pm

Yea, just copy the header ui/base/animation/animation_delegate.h from v30 to v31.
EDIT: actually, the entire ui/base/animation directory is missing from v31...
Maybe devs moved it somewhere else. If not, make a copy :)
Top
graysky
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 118
Joined: Sat Nov 25, 2006 12:46 pm
Location: above the flames and the ashes

  • Quote

Post by graysky » Mon Nov 25, 2013 10:02 pm

Code: Select all

% find . -name 'animation_del*'
./ui/gfx/animation/animation_delegate.h
./cc/animation/animation_delegate.h
Seems like the merged file you created will need to be edited....
Zsh and other configs
Top
dolohow
Tux's lil' helper
Tux's lil' helper
Posts: 98
Joined: Sun Jan 17, 2010 9:53 am
Location: Poland

  • Quote

Post by dolohow » Mon Nov 25, 2013 10:07 pm

Code: Select all

--- v31.txt     2013-11-25 11:13:18.490483672 +0100
+++ v31a.txt    2013-11-25 23:06:52.391767596 +0100
@@ -17,8 +17,8 @@
 #include "content/browser/renderer_host/render_widget_host_view_base.h"
 #include "content/common/content_export.h"
 #include "ipc/ipc_sender.h"
-#include "ui/base/animation/animation_delegate.h"
-#include "ui/base/animation/slide_animation.h"
+#include "ui/gfx/animation/animation_delegate.h"
+#include "ui/gfx/animation/slide_animation.h"
 #include "ui/base/gtk/gtk_signal.h"
 #include "ui/base/gtk/gtk_signal_registrar.h"
 #include "ui/base/gtk/owned_widget_gtk.h"
Try this one, I'm not sure wheter "#include "ui/gfx/animation/slide_animation.h" also changed
Top
graysky
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 118
Joined: Sat Nov 25, 2006 12:46 pm
Location: above the flames and the ashes

  • Quote

Post by graysky » Mon Nov 25, 2013 10:25 pm

Yes, thanks. I did it in vim already as a test... compiling now.

Code: Select all

:%s/ui\/base/ui\/gfx/gc
Last edited by graysky on Mon Nov 25, 2013 10:46 pm, edited 2 times in total.
Zsh and other configs
Top
dolohow
Tux's lil' helper
Tux's lil' helper
Posts: 98
Joined: Sun Jan 17, 2010 9:53 am
Location: Poland

  • Quote

Post by dolohow » Mon Nov 25, 2013 10:30 pm

OK, I think you shouldn't change all occurance of "base" and why you change "ui" to "us"?
Top
graysky
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 118
Joined: Sat Nov 25, 2006 12:46 pm
Location: above the flames and the ashes

  • Quote

Post by graysky » Mon Nov 25, 2013 10:46 pm

dolohow wrote:OK, I think you shouldn't change all occurance of "base" and why you change "ui" to "us"?
That was a typo in the post... I actually had a /gc and only hit the first two.
Zsh and other configs
Top
graysky
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 118
Joined: Sat Nov 25, 2006 12:46 pm
Location: above the flames and the ashes

  • Quote

Post by graysky » Mon Nov 25, 2013 11:20 pm

Still no go:

Code: Select all

...
  CXX(target) out/Release/obj.target/content_browser/content/browser/renderer_host/input/buffered_input_router.o
  CXX(target) out/Release/obj.target/content_browser/content/browser/renderer_host/input/gesture_event_filter.o
  CXX(target) out/Release/obj.target/content_browser/content/browser/renderer_host/input/immediate_input_router.o
  CXX(target) out/Release/obj.target/content_browser/content/browser/renderer_host/input/input_queue.o
In file included from content/browser/renderer_host/gtk_im_context_wrapper.cc:17:0:
./content/browser/renderer_host/render_widget_host_view_gtk.h:101:39: error: 'Range' in namespace 'ui' does not name a type
                                 const ui::Range& range,
                                       ^
./content/browser/renderer_host/render_widget_host_view_gtk.h:101:50: error: ISO C++ forbids declaration of 'range' with no type [-fpermissive]
                                 const ui::Range& range,
                                                  ^
./content/browser/renderer_host/render_widget_host_view_gtk.h:102:51: error: conflicting declaration 'const gfx::Range& range'
                                 const gfx::Range& range) OVERRIDE;
                                                   ^
./content/browser/renderer_host/render_widget_host_view_gtk.h:101:50: error: 'range' has a previous declaration as 'const int& range'
                                 const ui::Range& range,
                                                  ^
./content/browser/renderer_host/render_widget_host_view_gtk.h:136:25: error: 'AccessibilityHostMsg_NotificationParams' was not declared in this scope
       const std::vector<AccessibilityHostMsg_NotificationParams>& params)
                         ^
./content/browser/renderer_host/render_widget_host_view_gtk.h:136:64: error: template argument 1 is invalid
       const std::vector<AccessibilityHostMsg_NotificationParams>& params)
                                                                ^
./content/browser/renderer_host/render_widget_host_view_gtk.h:136:64: error: template argument 2 is invalid
content/content_browser.target.mk:824: recipe for target 'out/Release/obj.target/content_browser/content/browser/renderer_host/gtk_im_context_wrapper.o' failed
make: *** [out/Release/obj.target/content_browser/content/browser/renderer_host/gtk_im_context_wrapper.o] Error 1
make: *** Waiting for unfinished jobs....
Again, I used the patch from my unstable branch and modified your merged file with the two changes you posted.
Zsh and other configs
Top
dolohow
Tux's lil' helper
Tux's lil' helper
Posts: 98
Joined: Sun Jan 17, 2010 9:53 am
Location: Poland

  • Quote

Post by dolohow » Mon Nov 25, 2013 11:27 pm

Code: Select all

--- v31o.txt    2013-11-25 23:19:43.069804894 +0100
+++ v31a.txt    2013-11-26 00:26:11.409997919 +0100
@@ -17,6 +17,8 @@
 #include "content/browser/renderer_host/render_widget_host_view_base.h"
 #include "content/common/content_export.h"
 #include "ipc/ipc_sender.h"
+#include "ui/gfx/animation/animation_delegate.h"
+#include "ui/gfx/animation/slide_animation.h"
 #include "ui/base/gtk/gtk_signal.h"
 #include "ui/base/gtk/gtk_signal_registrar.h"
 #include "ui/base/gtk/owned_widget_gtk.h"
@@ -96,6 +98,7 @@
   virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE;
   virtual void SelectionChanged(const string16& text,
                                 size_t offset,
+                                //const ui::Range& range,
                                 const gfx::Range& range) OVERRIDE;
   virtual void SelectionBoundsChanged(
       const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE;
@@ -129,6 +132,9 @@
   virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE;
   virtual bool LockMouse() OVERRIDE;
   virtual void UnlockMouse() OVERRIDE;
+  virtual void OnAccessibilityNotifications(
+      const std::vector<AccessibilityHostMsg_NotificationParams>& params)
+      OVERRIDE;
   virtual void OnAccessibilityEvents(
       const std::vector<AccessibilityHostMsg_EventParams>& params)
       OVERRIDE;
Apply on clean v31

Yea, I've made declaration of the same variable twice

EDIT:
It won't work I see there is another mistake in code. Looks like not easy task. Gotta find some time and dig into code.

EDIT:
In previous error you have undeclared variable you can fix this with:

Code: Select all

const float kDefaultScrollPixelsPerTick = 160.0f / 3.0f;
I'll find some time in friday and I'll try to create the complete patch
Top
graysky
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 118
Joined: Sat Nov 25, 2006 12:46 pm
Location: above the flames and the ashes

  • Quote

Post by graysky » Tue Nov 26, 2013 7:04 pm

dolohow wrote:I'll find some time in friday and I'll try to create the complete patch
Thanks but I think maintaining this patchset long-term would be nightmarish since I have no OO experience and would need to rely on someone else to do the porting.
Zsh and other configs
Top
dolohow
Tux's lil' helper
Tux's lil' helper
Posts: 98
Joined: Sun Jan 17, 2010 9:53 am
Location: Poland

  • Quote

Post by dolohow » Tue Nov 26, 2013 10:41 pm

http://pastebin.kde.org/py3asemuu

OK, try this one on the clean source
Top
graysky
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 118
Joined: Sat Nov 25, 2006 12:46 pm
Location: above the flames and the ashes

  • Quote

Post by graysky » Wed Nov 27, 2013 11:44 pm

OK, dolohow solved it. Code on my github repo linked in previous posts. Thanks dolohow!
Zsh and other configs
Top
eyoung100
Veteran
Veteran
User avatar
Posts: 1428
Joined: Fri Jan 23, 2004 10:45 pm

  • Quote

Post by eyoung100 » Sun Dec 01, 2013 5:11 am

graysky wrote:OK, dolohow solved it. Code on my github repo linked in previous posts. Thanks dolohow!
In order to maintain compatibility with future versions, you will need to merge dhows header files with all future header files from upstream. I suggest you do some research on what a header is...
The Birth and Growth of Science is the Death and Atrophy of Art -- Unknown
Registerd Linux User #363735
Adopt a Post | Strip Comments| Emerge Wrapper
Top
dolohow
Tux's lil' helper
Tux's lil' helper
Posts: 98
Joined: Sun Jan 17, 2010 9:53 am
Location: Poland

  • Quote

Post by dolohow » Sun Dec 01, 2013 4:48 pm

Well there was no need to modify the header. First take a look on source code and then post.
Top
Post Reply

41 posts
  • Previous
  • 1
  • 2

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic