Wednesday, December 30, 2015

La language de portage

Il est parfois difficile de décrypter le language de portage! Je voulais installer le designer de qt :

 # emerge -va designer

 * IMPORTANT: 24 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 section 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!

!!! The ebuild selected to satisfy ">=dev-qt/qtgui-5.4.2:5" has unmet requirements.
- dev-qt/qtgui-5.4.2-r1::gentoo USE="dbus gif harfbuzz jpeg png udev -accessibility -debug -egl -eglfs -evdev -gles2 -gtkstyle -ibus -test -xcb" ABI_X86="64"

  The following REQUIRED_USE flag constraints are unsatisfied:
    any-of ( eglfs xcb )

  The above constraints are a subset of the following complete expression:
    any-of ( eglfs xcb ) accessibility? ( dbus xcb ) egl? ( evdev ) eglfs? ( egl ) ibus? ( dbus )

Comment comprendre ce message? La ligne

  The following REQUIRED_USE flag constraints are unsatisfied:
    any-of ( eglfs xcb )

nous dis que eglfs et/ou xcb doit être activer. En guise de test, je peux lancer la commande :

 # USE="xcb" emerge -va designer

 * IMPORTANT: 24 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 section 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     ] x11-libs/libxkbcommon-0.5.0::gentoo  USE="X -doc -static-libs {-test}" ABI_X86="(64) -32 (-x32)" 602 KiB
[ebuild   R    ] dev-libs/libpcre-8.38:3::gentoo  USE="bzip2 cxx jit pcre16* readline recursion-limit (unicode) zlib -libedit -pcre32 -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild  NS    ] dev-qt/qtcore-5.4.2:5::gentoo [4.8.6-r2:4::gentoo] USE="-debug -icu -systemd {-test}" 45268 KiB
[ebuild  N     ] dev-qt/qtnetwork-5.4.2:5::gentoo  USE="bindist ssl -connman -debug -networkmanager {-test}" 0 KiB
[ebuild  N     ] dev-qt/qtxml-5.4.2:5::gentoo  USE="-debug {-test}" 0 KiB
[ebuild  NS    ] dev-qt/qtdbus-5.4.2:5::gentoo [4.8.6-r1:4::gentoo] USE="-debug {-test}" 0 KiB
[ebuild  NS    ] dev-qt/qtgui-5.4.2-r1:5::gentoo [4.8.6-r4:4::gentoo] USE="dbus gif harfbuzz jpeg png udev xcb -accessibility -debug -egl -eglfs -evdev -gles2 -gtkstyle -ibus {-test}" 0 KiB
[ebuild  N     ] dev-qt/qtwidgets-5.4.2:5::gentoo  USE="png xcb -debug -gles2 -gtkstyle {-test}" 0 KiB
[ebuild  N     ] dev-qt/qtprintsupport-5.4.2:5::gentoo  USE="cups -debug -gles2 {-test}" 0 KiB
[ebuild  N     ] dev-qt/designer-5.4.2:5::gentoo  USE="-debug -declarative {-test} -webkit" 9115 KiB

Total: 10 packages (6 new, 3 in new slots, 1 reinstall), Size of downloads: 54984 KiB

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by dev-qt/qtcore-5.4.2::gentoo
# required by dev-qt/designer-5.4.2::gentoo
# required by designer (argument)
>=dev-libs/libpcre-8.38 pcre16

Donc, tout peut fonctionner avec xcb d'activer. Je dois donc rendre cette modification permanente. J'ai deux choix, soit ajouter l'option dans /etc/portage/package.use pour activer cette fonctionnalité à ce package seulement ou l'ajouter dans /etc/portage/make.conf pour activer cette fonctionnalité globalement. J'ai choisi la première option et j'ajoute la ligne demander à la fin de la commande emerge. J'ajoute donc dans /etc/portage/package.use :

>=dev-qt/qtgui-5.4.2  xcb

# required by dev-qt/qtcore-5.4.2::gentoo
# required by dev-qt/designer-5.4.2::gentoo
# required by designer (argument)
>=dev-libs/libpcre-8.38 pcre16



Wednesday, December 16, 2015

Mise à jour du kernel



J en est profiter pour mettre mon kernel a jour, version Linux Kernel 4.3.2-gentoo

# eselect kernel list
Available kernel symlink targets:
  [1]   linux-3.14.14-gentoo
  [2]   linux-3.14.25-rt22
  [3]   linux-4.2.0-gentoo
  [4]   linux-4.2.0-gentoo-r1
  [5]   linux-4.2.1-gentoo *
  [6]   linux-4.3.2-gentoo


# eselect kernel set 6
# eselect kernel list
Available kernel symlink targets:
  [1]   linux-3.14.14-gentoo
  [2]   linux-3.14.25-rt22
  [3]   linux-4.2.0-gentoo
  [4]   linux-4.2.0-gentoo-r1
  [5]   linux-4.2.1-gentoo
  [6]   linux-4.3.2-gentoo *
# genkernel all
# grub2-mkconfig -o /boot/grub/grub.cfg

Par contre,j ai eu une surprise enm voulant ajouter les drivers nvidia ! la version 

x11-drivers/nvidia-drivers-355.11-r2 says kernel-4.3 or greater are not supported yet.
Gentoo supports kernels which are supported by NVIDIA"
"which are limited to the following kernels:"
" "
 Juste pour tester , je suis aller dans le répertoire

et /usr/portage/x11-drivers/nvidia-drivers et j ai emerger la derniere version :

emerge -va nvidia-drivers-358.16-r1.ebuild

la compilation a fonctionner

Tuesday, December 15, 2015

Mise à jour de Gentoo problématique

Apres avoir fait quelques mises à jour, j'ai eu des problèmes avec mon interface réseau. Mon interface, qui s'appelais jadis eth0 s'appelais maintenant enp0s25. De plus, il ne se connectais plus via dchpcd. Avec les lignes de commande suivante :

ifconfig enp0s25 192.168.2.100
route add default gw 192.168.2.1

Je retrouvais mon net ! J ai trouvé une solution sur internet (source) , il faut enlever le commentaire suivant dans le fichier /etc/default/grub :

GRUB_CMDLINE_LINUX="net.ifnames=0"


Donc ensuite, j'ai reconfigurer mon grub avec la commande :

grub2-mkconfig -o /boot/grub/grub.cfg

Après redémarrage, la commande ifconfig -a donne : 

franktoo francois # ifconfig
eth0: flags=4163  mtu 1500
        inet 192.168.2.100  netmask 255.255.255.0  broadcast 192.168.2.255
        inet6 fe80::ea40:f2ff:fe0b:dc2a  prefixlen 64  scopeid 0x20
        ether e8:40:f2:0b:dc:2a  txqueuelen 1000  (Ethernet)
        RX packets 939  bytes 588635 (574.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 903  bytes 166269 (162.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  memory 0xd2300000-d2320000 

lo: flags=73  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10
        loop  txqueuelen 0  (Local Loopback)
        RX packets 1308  bytes 102144 (99.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1308  bytes 102144 (99.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


Tout refonctionne :)