Alan McKinnon <alan.mckin...@gmail.com> writes:

> On 17/04/2017 19:12, lee wrote:
>> Hi,
>> 
>> mysql-workbench requires a USE flag of '>=x11-libs/cairo-9999 -X' while
>> lots of other packages apparently require cairo with X:
>
> no it doesn't. With a fresh tree:
>
> khamul mysql-workbench # grep cairo *ebuild
> mysql-workbench-6.3.3.ebuild:           >=x11-libs/cairo-1.5.12[glib,svg]
> mysql-workbench-6.3.4-r1.ebuild:
>>=x11-libs/cairo-1.5.12[glib,svg]
> mysql-workbench-6.3.4-r2.ebuild:
>>=x11-libs/cairo-1.5.12[glib,svg]
> mysql-workbench-6.3.4.ebuild:           >=x11-libs/cairo-1.5.12[glib,svg]
> # grep 9999 *ebuild
> #
>

Emerge said I need to make above use change.

There are some entries about cairo in package.use, yet commenting them
out didn't help.


,---- [ grep cairo /etc/portage/package.use ]
| =x11-libs/cairo-1.12.16 xcb
| =x11-libs/cairo-1.12.16 X
| =x11-libs/cairo-1.12.16 opengl
| =x11-libs/cairo-1.12.16-r4 X xcb
| =x11-libs/cairo-1.12.18-r1 xcb X
| >=x11-libs/cairo-1.14.2 xcb X
| >=app-text/poppler-0.42.0 cairo
| # required by dev-cpp/cairomm-1.12.0-r1::gentoo
| >=x11-libs/cairo-9999 X
| # required by dev-cpp/cairomm-1.12.0-r1::gentoo
| =x11-libs/cairo-1.14.8 -X
`----


> Are you using an overlay that provides someone's latest greatest
> mysql-workbench?
>
> This is what the tree has right now, what does your machine say?
>
> # eix mysql-workbench
> * dev-db/mysql-workbench
>      Available versions:  6.3.3 (~)6.3.4 6.3.4-r1 (~)6.3.4-r2 {debug doc
> gnome-keyring PYTHON_TARGETS="python2_7"}
>      Homepage:            http://dev.mysql.com/workbench/
>      Description:         MySQL Workbench
>

same here:

,---- [ eix mysql-workbench ]
| * dev-db/mysql-workbench
|      Verfügbare Versionen:   6.3.3 ~6.3.4 6.3.4-r1 ~6.3.4-r2 {debug doc 
gnome-keyring PYTHON_TARGETS="python2_7"}
|      Startseite:             http://dev.mysql.com/workbench/
|      Beschreibung:           MySQL Workbench
`----


,---- [ emerge -a mysql-workbench ]
| 
|  * IMPORTANT: 1 news items need reading for repository 'gentoo'.
|  * Use eselect news read to view new items.
| 
| 
|  * IMPORTANT: 3 config files in '/etc/portage' need updating.
|  * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
|  * sections of the emerge man page to learn how to update config files.
| 
| These are the packages that would be merged, in order:
| 
| Calculating dependencies... done!
| [ebuild  N     ] sci-libs/proj-4.8.0  USE="-java -static-libs" 
| [ebuild  N     ] sys-apps/baselayout-java-0.1.0 
| [ebuild  N     ] dev-python/pexpect-3.3  USE="-doc -examples {-test}" 
PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_5) (-python3_6)" 
| [ebuild  N     ] dev-java/java-config-2.2.0-r3  USE="{-test}" 
PYTHON_TARGETS="python2_7 python3_4 (-python3_5)" 
| [ebuild  N     ] dev-python/paramiko-2.1.2  USE="-doc -examples" 
PYTHON_TARGETS="python2_7 python3_4 (-python3_5) (-python3_6)" 
| [ebuild  N     ] app-eselect/eselect-java-0.3.0 
| [ebuild  N     ] dev-lang/lua-5.1.5-r4  USE="deprecated readline -emacs 
-static" 
| [ebuild  N     ] dev-cpp/ctemplate-2.3-r1  USE="-doc -emacs -static-libs 
{-test} -vim-syntax" 
| [ebuild  N     ] dev-db/vsqlite++-0.3.13-r1  USE="-static-libs" 
| [ebuild  N     ] dev-libs/libzip-1.0.1  USE="-static-libs" 
| [ebuild  N     ] sci-libs/libgeotiff-1.4.0  USE="-debug -doc -static-libs" 
| [ebuild  N     ] dev-libs/json-c-0.12  USE="-doc -static-libs" 
| [ebuild  N     ] sci-libs/gdal-2.0.2-r3  USE="aux_xml threads -armadillo 
-curl -debug -doc -fits -geos -gif -gml -hdf5 -java -jpeg -jpeg2k -mdb -mysql 
-netcdf -odbc -ogdi -opencl -pdf -perl -png -postgres -python -spatialite 
-sqlite -xls" PYTHON_TARGETS="python2_7 python3_4" 
| [ebuild  N     ] app-admin/sudo-1.8.18_p1  USE="nls pam sendmail -ldap 
-offensive (-selinux) -skey" 
| [ebuild  N     ] dev-db/mysql-connector-c++-1.1.6  USE="-debug -examples 
-gcov -static-libs" 
| [ebuild     U *] x11-libs/cairo-9999 [1.14.8] USE="-X* -utils%" 
| [ebuild  N     ] dev-cpp/atkmm-2.24.2  USE="-doc" 
| [ebuild  N     ] dev-cpp/cairomm-1.12.0-r1  USE="svg -X (-aqua) -doc" 
| [ebuild  N     ] dev-cpp/pangomm-2.40.1  USE="-doc" 
| [ebuild  N     ] dev-cpp/gtkmm-2.24.5  USE="-doc -examples {-test}" 
| [ebuild  N     ] dev-java/icedtea-bin-3.3.0  USE="alsa cups gtk webstart -doc 
-examples -headless-awt (-multilib) -nsplugin -pulseaudio (-selinux) -source" 
| [ebuild  N     ] virtual/jdk-1.8.0-r3 
| [ebuild  N     ] virtual/jre-1.8.0-r1 
| [ebuild  N     ] dev-java/icedtea-web-1.6.1-r1  USE="-doc -javascript 
-nsplugin -tagsoup {-test}" 
| [ebuild  N     ] dev-db/mysql-workbench-6.3.4-r1  USE="-debug -doc 
-gnome-keyring" PYTHON_TARGETS="python2_7" 
| 
| The following USE changes are necessary to proceed:
|  (see "package.use" in the portage(5) man page for more details)
| # required by dev-cpp/cairomm-1.12.0-r1::gentoo
| # required by dev-cpp/pangomm-2.40.1::gentoo
| # required by dev-db/mysql-workbench-6.3.4-r1::gentoo
| # required by mysql-workbench (argument)
| >=x11-libs/cairo-9999 -X
| 
| Would you like to add these changes to your config files? [Yes/No] 
`----


When I comment out all the cairo uses:

... Hm, there is in package.accept_keywords:


,----
| # required by x11-libs/gtk+-2.24.31-r1::gentoo
| # required by dev-cpp/gtkmm-2.24.5::gentoo
| # required by dev-db/mysql-workbench-6.3.4-r1::gentoo
| # required by dev-db/mysql-workbench (argument)
| =x11-libs/cairo-9999 **
`----


I'll comment that out, too.


,---- [ emerge -a  mysql-workbench ]
| 
|  * IMPORTANT: 1 news items need reading for repository 'gentoo'.
|  * Use eselect news read to view new items.
| 
| 
|  * IMPORTANT: 3 config files in '/etc/portage' need updating.
|  * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
|  * sections of the emerge man page to learn how to update config files.
| 
| These are the packages that would be merged, in order:
| 
| Calculating dependencies... done!
| [ebuild  N     ] sci-libs/proj-4.8.0  USE="-java -static-libs" 
| [ebuild  N     ] sys-apps/baselayout-java-0.1.0 
| [ebuild  N     ] dev-python/pexpect-3.3  USE="-doc -examples {-test}" 
PYTHON_TARGETS="python2_7 python3_4 (-pypy) (-pypy3) (-python3_5) (-python3_6)" 
| [ebuild  N     ] dev-java/java-config-2.2.0-r3  USE="{-test}" 
PYTHON_TARGETS="python2_7 python3_4 (-python3_5)" 
| [ebuild  N     ] dev-python/paramiko-2.1.2  USE="-doc -examples" 
PYTHON_TARGETS="python2_7 python3_4 (-python3_5) (-python3_6)" 
| [ebuild  N     ] app-admin/sudo-1.8.18_p1  USE="nls pam sendmail -ldap 
-offensive (-selinux) -skey" 
| [ebuild  N     ] app-eselect/eselect-java-0.3.0 
| [ebuild  N     ] dev-libs/libzip-1.0.1  USE="-static-libs" 
| [ebuild  N     ] dev-lang/lua-5.1.5-r4  USE="deprecated readline -emacs 
-static" 
| [ebuild  N     ] dev-db/vsqlite++-0.3.13-r1  USE="-static-libs" 
| [ebuild  N     ] dev-cpp/ctemplate-2.3-r1  USE="-doc -emacs -static-libs 
{-test} -vim-syntax" 
| [ebuild  N     ] dev-libs/json-c-0.12  USE="-doc -static-libs" 
| [ebuild  N     ] sci-libs/libgeotiff-1.4.0  USE="-debug -doc -static-libs" 
| [ebuild  N     ] sci-libs/gdal-2.0.2-r3  USE="aux_xml threads -armadillo 
-curl -debug -doc -fits -geos -gif -gml -hdf5 -java -jpeg -jpeg2k -mdb -mysql 
-netcdf -odbc -ogdi -opencl -pdf -perl -png -postgres -python -spatialite 
-sqlite -xls" PYTHON_TARGETS="python2_7 python3_4" 
| [ebuild   R    ] x11-libs/cairo-1.14.8  USE="-X* -xcb*" 
| [ebuild  N     ] dev-db/mysql-connector-c++-1.1.6  USE="-debug -examples 
-gcov -static-libs" 
| [ebuild  N     ] dev-java/icedtea-bin-3.3.0  USE="alsa cups gtk webstart -doc 
-examples -headless-awt (-multilib) -nsplugin -pulseaudio (-selinux) -source" 
| [ebuild  N     ] virtual/jdk-1.8.0-r3 
| [ebuild  N     ] virtual/jre-1.8.0-r1 
| [ebuild  N     ] dev-java/icedtea-web-1.6.1-r1  USE="-doc -javascript 
-nsplugin -tagsoup {-test}" 
| [ebuild  N     ] dev-cpp/atkmm-2.24.2  USE="-doc" 
| [ebuild  N     ] dev-cpp/cairomm-1.12.0-r1  USE="svg -X (-aqua) -doc" 
| [ebuild  N     ] dev-cpp/pangomm-2.40.1  USE="-doc" 
| [ebuild  N     ] dev-cpp/gtkmm-2.24.5  USE="-doc -examples {-test}" 
| [ebuild  N     ] dev-db/mysql-workbench-6.3.4-r1  USE="-debug -doc 
-gnome-keyring" PYTHON_TARGETS="python2_7" 
| 
| !!! Multiple package instances within a single package slot have been pulled
| !!! into the dependency graph, resulting in a slot conflict:
| 
| x11-libs/cairo:0
| 
|   (x11-libs/cairo-1.14.8:0/0::gentoo, installed) pulled in by
|     >=x11-libs/cairo-1.10:=[X] required by 
(net-libs/webkit-gtk-2.4.11-r200:2/2::gentoo, installed)
|                             ^                                                 
                                                         
|     >=x11-libs/cairo-1.8.4[X] required by 
(dev-dotnet/libgdiplus-4.2-r3:0/0::gentoo, installed)
|                            ^                                                  
                                                     
|     x11-libs/cairo[X,-xlib-xcb(-)] required by 
(app-office/libreoffice-5.2.3.3-r1:0/0::gentoo, installed)
|                    ^                                                          
                                                               
|     x11-libs/cairo[xcb] required by (x11-misc/i3lock-2.8:0/0::gentoo, 
installed)
|                    ^^^                                                        
                                      
|     >=x11-libs/cairo-1.10:0/0=[X] required by 
(net-libs/webkit-gtk-2.4.11-r200:2/2::gentoo, installed)
|                                ^                                              
                                                            
|     >=x11-libs/cairo-1.12.14-r4:0/0=[svg,X,abi_x86_64(-)] required by 
(x11-libs/gtk+-2.24.31-r1:2/2::gentoo, installed)
|                                          ^                                    
                                                                             
|     >=x11-libs/cairo-1.12.14-r4:0/0=[X,abi_x86_64(-)] required by 
(x11-libs/pango-1.40.4:0/0::gentoo, installed)
|                                      ^                                        
                                                                      
|     >=x11-libs/cairo-1.10[X] required by 
(www-client/seamonkey-2.46-r1:0/0::gentoo, installed)
|                           ^                                                   
                                                    
|     
>=x11-libs/cairo-1.12.14-r4:=[aqua?,svg,X,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]
 required by (x11-libs/gtk+-2.24.31-r1:2/2::gentoo, installed)
|                                             ^                                 
                                                                                
                                                                                
                                                                 
|     
>=x11-libs/cairo-1.14[aqua?,glib,svg,X?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]
 required by (x11-libs/gtk+-3.22.11:3/3::gentoo, installed)
|                                          ^^                                   
                                                                                
                                                                                
                                                            
|     
>=x11-libs/cairo-1.12.14-r4:=[X?,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]
 required by (x11-libs/pango-1.40.4:0/0::gentoo, installed)
|                                   ^^                                          
                                                                                
                                                                                
                                                     
| 
|   (x11-libs/cairo-1.14.8:0/0::gentoo, ebuild scheduled for merge) pulled in by
|     
>=x11-libs/cairo-1.12.10[aqua=,svg=,X=,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]
 required by (dev-cpp/cairomm-1.12.0-r1:0/0::gentoo, ebuild scheduled for merge)
|                                         ^^                                    
                                                                                
                                                                                
                                                                                
| 
| 
| It might be possible to solve this slot collision
| by applying all of the following changes:
|    - x11-libs/cairo-1.14.8 (Change USE: +xcb +X +aqua)
|    - dev-cpp/cairomm-1.12.0-r1 (Change USE: +X +aqua)
`----


This is just great.  Let's follow the suggestion:


,---- [ adding to package.use ]
| =x11-libs/cairo-1.14.8 xcb X aqua
| =dev-cpp/cairomm-1.12.0-r1 X aqua
`----


What is aqua?  Equery doesn't show it as USE flags for either of the
above.

Now there aren't any dependency problems showing up, but it doesn't
compile:


cd 
/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-6.3.4_build/library/forms
 && /usr/bin/x86_64-pc-linux-gnu-g++  -DHAVE_PRCTL_H 
-DMYSQLCPPCONN_VERSION_1_1_4 -DMYSQLCPPCONN_VERSION_1_1_5 
-D__STDC_FORMAT_MACROS -Dmfor
ms_EXPORTS 
-I/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/plugins/migration/copytable
 
-I/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/library/base
 -I
/usr/include/gtk-2.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include -I/usr/include/atk-1.0 
-I/usr/include/gdk-pixbuf-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 
-I/usr/lib64/gtk-2.0/include -I/usr/inc
lude/sigc++-2.0 -I/usr/lib64/sigc++-2.0/include -I/usr/include/glibmm-2.4 
-I/usr/lib64/glibmm-2.4/include -I/usr/include/giomm-2.4 
-I/usr/lib64/giomm-2.4/include -I/usr/include/atkmm-1.6 
-I/usr/include/cairomm-1.0 -I/usr/lib64/cairomm-1.$
/include -I/usr/include/pangomm-1.4 -I/usr/lib64/pangomm-1.4/include 
-I/usr/include/gdkmm-2.4 -I/usr/lib64/gdkmm-2.4/include 
-I/usr/include/gtkmm-2.4 -I/usr/lib64/gtkmm-2.4/include 
-I/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/$
ysql-workbench-community-6.3.4-src/library/forms/. -I/usr/include/pixman-1 
-I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/python2.7 
-I/usr/include/libxml2 
-I/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbe$
ch-community-6.3.4-src 
-I/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/library
 
-I/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/library/grt/src
 -I/var$
tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/library/mysql.canvas/src
 
-I/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/library/forms
 -I/var/tmp/portage/de$
-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/library/forms/mforms
 
-I/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/backend/wbpublic
 -I/var/tmp/portage/dev-db/mysql-workb$
nch-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/ext/scintilla/include 
-I/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/library/forms/if
 -I"/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/$
ork/mysql-workbench-community-6.3.4-src/library/forms/(" 
-I/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/library/forms/UNIX
 -I"/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbe$
ch-community-6.3.4-src/library/forms/)" 
-I/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/frontend/linux/linux_utilities
 -I/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-co$
munity-6.3.4-src/library/forms/endif   -DNDEBUG -O2 -pipe -march=westmere 
-mtune=westmere -fno-stack-protector -std=c++11 -fPIC   -DSCI_NAMESPACE -o 
CMakeFiles/mforms.dir/gtk/src/lf_popover.cpp.o -c 
/var/tmp/portage/dev-db/mysql-workbenc$
-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/library/forms/gtk/src/lf_popover.cpp
/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/library/forms/gtk/src/lf_popover.cpp:
 In member function ‘void {anonymous}::PopoverWidget::show_popover(int, int, 
mforms::StartPosition)’:
/var/tmp/portage/dev-db/mysql-workbench-6.3.4-r1/work/mysql-workbench-community-6.3.4-src/library/forms/gtk/src/lf_popover.cpp:383:13:
 error: no match for ‘operator!=’ (operand types are 
‘Glib::RefPtr<Gdk::Window>’ and ‘int’)
     if (wnd != 0)


Perhaps there's some version mismatch with some gtk library ...


>
>
>
>> 
>> 
>> x11-libs/cairo:0
>> 
>>   (x11-libs/cairo-9999:0/0::gentoo, ebuild scheduled for merge) conflicts 
>> with
>>     >=x11-libs/cairo-1.8.4[X] required by 
>> (dev-dotnet/libgdiplus-4.2-r3:0/0::gentoo, installed)
>>                            ^ 
>>     >=x11-libs/cairo-1.12.14-r4:0/0=[svg,X,abi_x86_64(-)] required by 
>> (x11-libs/gtk+-2.24.31-r1:2/2::gentoo, installed)
>>                                          ^               
>>     >=x11-libs/cairo-1.12.14-r4:0/0=[X,abi_x86_64(-)] required by 
>> (x11-libs/pango-1.40.4:0/0::gentoo, installed)
>>                                      ^               
>>     x11-libs/cairo[X,-xlib-xcb(-)] required by 
>> (app-office/libreoffice-5.2.3.3-r1:0/0::gentoo, installed)
>>                    ^              
>>     >=x11-libs/cairo-1.12.14-r4:=[X,abi_x86_64(-)] required by 
>> (x11-libs/pango-1.40.4:0/0::gentoo, installed)
>>                                   ^               
>>     >=x11-libs/cairo-1.10:0/0=[X] required by 
>> (net-libs/webkit-gtk-2.4.11-r200:2/2::gentoo, installed)
>>                                ^ 
>>     >=x11-libs/cairo-1.14[glib,svg,X,abi_x86_64(-)] required by 
>> (x11-libs/gtk+-3.22.11:3/3::gentoo, installed)
>>                                    ^               
>>     >=x11-libs/cairo-1.12.14-r4:=[svg,X,abi_x86_64(-)] required by 
>> (x11-libs/gtk+-2.24.31-r1:2/2::gentoo, installed)
>>                                       ^               
>>     >=x11-libs/cairo-1.10[X] required by 
>> (www-client/seamonkey-2.46-r1:0/0::gentoo, installed)
>>                           ^ 
>>     >=x11-libs/cairo-1.10:=[X] required by 
>> (net-libs/webkit-gtk-2.4.11-r200:2/2::gentoo, installed)
>> 
>> 
>> Is there a good way to get mysql-workbench installed without removing
>> the other packages?
>
> Find what you are installing exactly then take it from there

Reply via email to