Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Installation problems | Problèmes à l'installation Broken on Gentoo?
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Installation problems | Problèmes à l'installation

Subjects Author Language Messages Last message
Broken on Gentoo?
Page : 1 2 3
V10lator English 47 Guest [Read]
20 November 2017 à 08:50

V10lator, Friday 30 November 2012 à 22:29 | Quote


Subscription date : 21 October 2012
Messages : 39
@aCOSwt Could you give me a look?
in cores src_configure I do this:
src_configure() {
    if use gtk ; then
        mycmakeargs=("-Dforce-gtk2=yes")
    fi
    cmake-utils_src_configure
}

So you can switch between gtk2 and 3 with USE flags (there's a gtk and a gtk3 USE flag. One of it must be set but you can set one only. That's what the REQUIRED_USE line is for).
In src_unpack for plugins (3.1.1.1) I just correct the path, else building fails cause it looks into the wrong path. This is because the unpacked path is cairo-dock-plugins-3.1.1 while portage expects it to be in cairo-dock-plugins-3.1.1.1

in src_prepare I patch it. The first patch is for sandbox, the second changes the cmake file so we can use cmake-utils for mapping USE flags. How does yours handle USE flags?

aCOSwt, Friday 30 November 2012 à 23:15 | Quote


Subscription date : 07 October 2012
Messages : 22
@v10lator :

1/ Don't get gtk and gtk3 useflags.
Look how other Gentoo ebuilds do !
Either you choose to depend on gtk2 exclusive or gtk3 => A single use flag is necessary : gtk3
And then in your dependency list :

gtk3? ( x11-libs/gtk+:3 )
!gtk3? ( x11-libs/gtk+:2 )

And of course no need at all to force whatever REQUIRED_USE

I still do not understand the need for force_gtk2

2/ cmake-utils_src_configure...
Well... I cannot really understand why this is needed... anyway... this sort of instruction has nothing to do in an ebuild.
Check by running repoman full in your x11-misc/cairo-dock directory. I would be surprised it his happy.

3/ About the same things with plugins. PLUS :
- What the hell are you unpacking by yourself in src_unpack ? If you need to fiddle the extra .1, fiddle it elsewhere (in SRC_URI for example)
- I really doubt that the gtk dependency is needed you know. Plugins already depends on core and you launch core, so, you'll load gtk.

All this being very quickly said. There might be a little more.

V10lator, Friday 30 November 2012 à 23:42 | Quote


Subscription date : 21 October 2012
Messages : 39
aCOSwt :
@v10lator :

1/ Don't get gtk and gtk3 useflags.
Look how other Gentoo ebuilds do !
Either you choose to depend on gtk2 exclusive or gtk3 => A single use flag is necessary : gtk3
And then in your dependency list :

gtk3? ( x11-libs/gtk+:3 )
!gtk3? ( x11-libs/gtk+:2 )

And of course no need at all to force whatever REQUIRED_USE

I actually stole that part from other ebuilds that are in the official tree. Can't remember which through.

I still do not understand the need for force_gtk2

Simple: If you have both, gtk2 and gtk3 installed cmake will use gtk3 by default, no matter what your USE flags are. The force flag is in the cmake file for exactly that reason, so we use it.

2/ cmake-utils_src_configure...
Well... I cannot really understand why this is needed... anyway... this sort of instruction has nothing to do in an ebuild.
Check by running repoman full in your x11-misc/cairo-dock directory. I would be surprised it his happy.

Again: How do you handle USE flags? All other ebuilds for cairo-dock don't handle USE flags at all. They have some, but no matter to what you set them, cairo-dock will compile exactly the same (from what is installed, not what USE flags tell).

3/ About the same things with plugins. PLUS :
- What the hell are you unpacking by yourself in src_unpack ? If you need to fiddle the extra .1, fiddle it elsewhere (in SRC_URI for example)
- I really doubt that the gtk dependency is needed you know. Plugins already depends on core and you launch core, so, you'll load gtk.

- I'm unpacking there cause I'm not experienced with ebuilds and that seemed to be a good way to me. If I change SRC_URI I download a different file, which isn't what I want...
- Maybe, but it looks more nice and makes sure the user knows what he does/wants. [EDIT]Also other plugin ebuilds do the same. See media-plugins/audacious-plugins for example.[/EDIT]

aCOSwt, Saturday 01 December 2012 à 15:42 | Quote


Subscription date : 07 October 2012
Messages : 22
Fair enough V10lator. I do not want to argue about this.
What I wrote is not to be taken as more than "my 2cts"
If this works for you then great. That is indeed the best that could be written for you.

What I just wanted to highlight is :

1/ If what you make the ebuild do is what I read then : You should write these instructions as part of a bash script and get rid of an EAPI=4 ebuild specification. An EAPI=4 ebuild brings helpers. Either they help or they do not. If they do not (And, in your case, I even think that they add extra constraints you are trying to workaround) then it's better to completely get rid of helpers.

2/ The gtk story is... mmmm... like usual in the open world.
gtk devs want gtk3 to be the standard and default and to drop support for gtk2 as soon as possible.

Many Gentoo ebuilds are written gtk3 only.
Many famous apps remain gtk2.
So..., you want to offer the choice to make your app depend on gtk2 or gtk3.
Why, as an end user, would I want to build a gtk3 compatible app gtk2 ? (Providing no particular bug is noticed under gtk3)
Because I made so that all my apps depend on gtk2 and I do not want all the gtk3 stuff for the sole interest of a single package !

=> In the early days of gtk3, many things were broken... building gtk3 was a possible option and gtk2 the default.
Now things have changed. gtk3 is default and gtk2 an option.

So I mean that if one gets gtk3 installed on his system there is absolutely no sensible reason for him to force the cairo-docks dependency on gtk2. I would even say that it would be stupid.
Then if he decides he absolutely wants this package to depend on gtk2 it is because he does not get gtk3 installed on his system and does not want the ebuild to push it as a dependency.

V10lator, Saturday 01 December 2012 à 17:12 | Quote


Subscription date : 21 October 2012
Messages : 39
As told before: I am not that experienced with ebuilds. In fact these are the first ones I really worked with (other than making small changes like adding patches). Also my time is very limited, so I'm glad about any help. We shouldn't try to concurrent, we should try to work together by joining our ebuilds an then resolving errors / design flaws.

Well, my informations may be outdated but AFAIK even GTK devs want to get rid of GTK3 and develop GTK4 as soon as possible cause of various unresolvable flaws in GTK3. So I would bet that there are many people who try to build apps for GTK2 if possible and only use GTK3 for apps that don't support 2 anymore. AFAIK this is also the main reason why so many apps don't support GTK3 at all. Also I think if cairo-dock gives you the choice to choose we shouldn't take it away, choices are always a good thing.

aCOSwt, Saturday 01 December 2012 à 21:20 | Quote


Subscription date : 07 October 2012
Messages : 22
V10lator :
We shouldn't try to concurrent


I see a unique game in which we are indeed concurrent : The game of who understands the other one the less !

Guest, Friday 10 November 2017 à 10:47 | Quote

Video game Doodle Army 2 And Mini Militia Mod variation    minimilitiaa.in    it is obviously that the Pro Mod variation of the Mini Militia Hacks.    

Guest, Monday 20 November 2017 à 08:50 | Quote

Nike Air Jordan 13
Nike Air Jordan 11
Nike Air Jordan 16.5
nike free shoes mens
Nike Air Jordan 12
Nike Air Max Terra Ninety
Nike Air Jordan Aero Flight
nike air max 2015
Nike Air Max 90
Nike Free 6.0
Zapatillas Nike Air Force 1
Nike Air Jordan CDP
Nike Air Jordan Jumpman
Nike Shox R2
Nike Free 3.0 V2
Nike Dunk SB High
Nike Air Jordan 15
Nike Air Max 2010
Nike Air Jordan 28
Nike Free Running Shoes
Nike Air Max Lunar
Nike Air Max 2011
nike air force 1 womens
Nike Shox TR
Nike Air Jordan 18
Nike Air Jordan PRO CLASSIC
Nike Air Jordan 20
Nike Air Jordan 4
Nike Air Max Tailwind
Nike Air Force 1 Shoes
Nike Dunk SB Low
Nike Air Jordan 23 Degrees
Nike Air Max 95
Cheap Nike Free Running Shoes
Nike Shoes Outlet
Men's Air Force 1 Shoes
Nike Free 4.0 V2
Nike Air Jordan NEW SCHOOL
Nike Free 5.0 V4
nike air max womens
Nike Air Jordan 21
Cheap Nike Shoes
New Air Force 1 Shoes On Sale
Nike Free 3.0 V4
Nike Air Jordan Basketball Shoes
nike free training shoes
buy nike shoes online
Nike Shoes for cheap
Nike Shox R4
Nike Shoes Online Stroe
Nike Air Jordan Flight
Nike Air Jordan 6
Nike Shox R5
nike free rn running shoe
nike air max Waffle Trainer
Nike Air Jordan 23
Nike Shox NZ
nike air force one men
Nike Air Jordan Alpha Trunner
Discount Nike Shoes
Cheap Nike Air Max
Nike Shox OZ
Nike Air Jordan 2
Nike Air Max 2013
nike air force af1
Nike Air Jordan 8
Nike Air Jordan Shoes 2011
Nike Air Jordan 5
Nike Air Max 2009
Nike Air Jordan 10
Nike FREE Shoes
Nike Air Jordan 1
Nike Air Max 87
nike air max mens
Nike Air Force 1 Low
Nike Air Jordan 3.5
Nike Air Jordan 7
Nike Air Max 2012
Nike Air Jordan 13.5
Nike Air Jordan 9
Nike Air Jordan After Game
Nike Shox TL
Nike Air Max 89
Nike Air Force 1
Wholesale Air Force 1 Shoes For Cheap
free run nike shoes
Nike Air Jordan 3
nike free running shoes mens
Nike Air Jordan 19
Nike Jordan Air Yeezy
nike running shoes for men
Nike Air Jordan Big Ups
mens nike free shoes
Nike Dunk High Heels
Nike Free 3.0 V3
nike free tennis shoes
nike air max TN
Nike Air Jordan 14
Nike Air Force 1 High
Nike Air Max 91
Nike Air Max 180
Nike Air Jordan Fly
Nike Air Jordan Melo
nike women's free running shoe
cheap nike shoes online free shipping
nike free training shoes
Nike Air Max 97
Nike Air Max Griffey
Nike Shox R3
Nike Shox R6
nike shoes free
Nike Air Jordan 26
Nike Air Jordan Hydro
Nike Air Max Command
Nike Air Jordan CP3
Nike Air Jordan 29

Installation problems | Problèmes à l'installation

Subjects Author Language Messages Last message
Broken on Gentoo?
Page : 1 2 3
V10lator English 47 Guest [Read]
20 November 2017 à 08:50

Post a message

Anti-spam filter 4 (*) times (*) 9 =
            
Did you know ? The quote tag can display the author of the quote : [quote=author][/quote]


Glx-Dock / Cairo-Dock List of forums Installation problems | Problèmes à l'installation Broken on Gentoo? Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.