View previous topic :: View next topic |
Author |
Message |
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Thu Jan 14, 2016 8:57 pm Post subject: dependency hell? |
|
|
i came to gentoo to avoid dependency hell which was frustrating me in some other distros i have been using.
i haven't finished installing gentoo yet. i'm at the Filesystem tools section now.
Code: | # emerge --ask sys-fs/btrfs-progs
setlocale: unsupported locale setting
setlocale: unsupported locale setting
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] dev-libs/lzo-2.08 USE="-examples -static-libs"
[ebuild N ] app-text/asciidoc-8.6.9-r1 USE="-examples -graphviz -highlight {-test} -vim-syntax" PYTHON_SINGLE_TARGET="python2_7 (-pypy)" PYTHON_TARGETS="python2_7 (-pypy)"
[ebuild N ] dev-libs/libatomic_ops-7.4.2
[ebuild N ] x11-proto/xproto-7.0.28 USE="-doc"
[ebuild N ] x11-proto/xextproto-7.3.0 USE="-doc"
[ebuild N ] media-fonts/font-util-1.3.1
[ebuild N ] x11-misc/util-macros-1.19.0
[ebuild N ] dev-libs/boehm-gc-7.4.2 USE="cxx threads -static-libs"
[ebuild N ] x11-proto/kbproto-1.0.7
[ebuild N ] x11-proto/xf86bigfontproto-1.2.0-r1
[ebuild N ] x11-proto/inputproto-2.3.1
[ebuild N ] x11-libs/xtrans-1.3.5 USE="-doc"
[ebuild N ] dev-libs/libpthread-stubs-0.3-r1 USE="-static-libs"
[ebuild N ] x11-proto/xcb-proto-1.11 PYTHON_TARGETS="python2_7 python3_4 -python3_3"
[ebuild N ] x11-libs/libXdmcp-1.1.2 USE="-doc -static-libs"
[ebuild N ] x11-libs/libXau-1.0.8 USE="-static-libs"
[ebuild N ] x11-libs/libxcb-1.11.1 USE="(selinux) -doc -static-libs {-test} -xkb"
[ebuild N ] x11-libs/libX11-1.6.3 USE="-doc -ipv6 -static-libs {-test}"
[ebuild N ] x11-libs/libXext-1.3.3 USE="-doc -static-libs"
[ebuild N ] www-client/w3m-0.5.3-r5 USE="X nls ssl unicode -fbcon -gpm -gtk -imlib -lynxkeymap (-migemo) -nntp -vanilla -xface" LINGUAS="-ja"
[ebuild N ] virtual/w3m-0
[ebuild N ] app-text/xmlto-0.0.26-r1 USE="text -latex"
[ebuild N ] sys-fs/btrfs-progs-4.0.1 USE="convert"
Would you like to merge these packages? [Yes/No] |
ending with
Code: | >>> Installing (23 of 23) sys-fs/btrfs-progs-4.0.1::gentoo
!!! Unable to set SELinux security labels
>>> Recording sys-fs/btrfs-progs in "world" favorites file...
* Messages for package app-text/asciidoc-8.6.9-r1:
* prepcompress: ignoring nonexistent path '/usr/share/doc/asciidoc-8.6.9-r1/examples'
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date. |
i'm struggling to understand the gentoo dependency list for btrfs-progs!!
am i not doing something right?
is there someway i could selectively choose/reject only some dependencies? |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Thu Jan 14, 2016 9:18 pm Post subject: |
|
|
here's another one!
Code: | # emerge --ask wpa_supplicant
setlocale: unsupported locale setting
setlocale: unsupported locale setting
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] dev-libs/ustr-1.0.4-r5
[ebuild N ] net-wireless/wireless-regdb-20151022
[ebuild N ] dev-libs/gobject-introspection-common-1.44.0
[ebuild N ] sys-libs/libcap-ng-0.7.7 USE="-python -static-libs" PYTHON_TARGETS="python2_7 python3_4 -python3_3"
[ebuild N ] media-libs/libpng-1.6.19 USE="-apng (-neon) -static-libs"
[ebuild N ] dev-python/ipy-0.82a USE="-examples" PYTHON_TARGETS="python2_7 python3_4 (-pypy) -python3_3"
[ebuild N ] dev-db/sqlite-3.9.2 USE="readline -debug -doc -icu -secure-delete -static-libs -tcl {-test} -tools"
[ebuild N ] dev-lang/tcl-8.5.17 USE="threads -debug"
[ebuild N ] dev-libs/libnl-3.2.27 USE="-python -static-libs -utils" PYTHON_TARGETS="python2_7 python3_4 -python3_3"
[ebuild N ] dev-libs/vala-common-0.28.1
[ebuild N ] dev-python/m2crypto-0.22.3-r4 PYTHON_TARGETS="python2_7"
[ebuild N ] media-libs/freetype-2.5.5 USE="X adobe-cff bindist bzip2 -auto-hinter -debug -doc -fontforge -harfbuzz -infinality -png -static-libs -utils"
[ebuild N ] x11-proto/renderproto-0.11.1-r1
[ebuild N ] x11-libs/libICE-1.0.9 USE="-doc -ipv6 -static-libs"
[ebuild N ] x11-proto/damageproto-1.2.1-r1
[ebuild N ] x11-proto/randrproto-1.5.0
[ebuild N ] x11-proto/compositeproto-0.4.2-r1
[ebuild N ] x11-proto/fixesproto-5.0-r1
[ebuild N ] x11-libs/pixman-0.32.8 USE="(-altivec) (-iwmmxt) (-loongson2f) (-neon) -static-libs" CPU_FLAGS_X86="-mmxext -sse2 -ssse3"
[ebuild N ] sys-process/audit-2.2.2-r2 USE="-ldap (-prelude) -python" PYTHON_TARGETS="python2_7"
[ebuild N ] dev-util/desktop-file-utils-0.22 USE="-emacs"
[ebuild N ] net-wireless/crda-1.1.3-r1
[ebuild N ] net-misc/curl-7.45.0 USE="ssl threads -adns -http2 -idn -ipv6 -kerberos -ldap -metalink -rtmp -samba -ssh -static-libs {-test}" CURL_SSL="openssl -axtls -gnutls (-libressl) -nss -polarssl (-winssl)"
[ebuild N ] app-arch/libarchive-3.1.2-r1 USE="acl bzip2 e2fsprogs iconv lzma xattr zlib -expat -lzo -nettle -static-libs"
[ebuild N ] x11-libs/libfontenc-1.1.3 USE="-static-libs"
[ebuild N ] x11-libs/libXrender-0.9.9 USE="-static-libs"
[ebuild N ] dev-libs/gobject-introspection-1.44.0 USE="-cairo -doctool {-test}" PYTHON_TARGETS="python2_7"
[ebuild N ] x11-libs/libXfixes-5.0.1 USE="-static-libs"
[ebuild N ] sys-libs/libsemanage-2.4-r2 USE="(python)" PYTHON_TARGETS="python2_7 python3_4 -python3_3"
[ebuild N ] x11-libs/libSM-1.2.2-r1 USE="uuid -doc -ipv6 -static-libs"
[ebuild N ] dev-libs/libcroco-0.6.9 USE="{-test}"
[ebuild N ] x11-apps/mkfontscale-1.1.2
[ebuild N ] dev-util/cmake-3.3.1-r1 USE="ncurses -doc -emacs -qt4 (-qt5) -system-jsoncpp {-test}"
[ebuild N ] sys-apps/checkpolicy-2.4 USE="-debug"
[ebuild N ] x11-libs/gdk-pixbuf-2.32.1 USE="X introspection -debug -jpeg -jpeg2k {-test} -tiff"
[ebuild N ] dev-libs/atk-2.16.0-r1 USE="introspection nls {-test}"
[ebuild N ] x11-libs/libXt-1.1.5 USE="-static-libs"
[ebuild N ] x11-libs/libXcursor-1.1.14 USE="-static-libs"
[ebuild N ] x11-libs/libXdamage-1.1.4-r1 USE="-static-libs"
[ebuild N ] x11-libs/libXcomposite-0.4.4-r1 USE="-doc -static-libs"
[ebuild N ] x11-libs/libXrandr-1.5.0 USE="-static-libs"
[ebuild N ] x11-libs/libXi-1.7.5 USE="-doc -static-libs"
[ebuild N ] media-gfx/graphite2-1.2.4-r1 USE="-perl {-test}"
[ebuild N ] x11-apps/mkfontdir-1.0.7
[ebuild N ] media-fonts/encodings-1.0.4
[ebuild N ] dev-util/gtk-update-icon-cache-3.16.7
[ebuild N ] media-fonts/liberation-fonts-2.00.1-r1 USE="X -fontforge"
[ebuild N ] virtual/ttf-fonts-1
[ebuild N ] media-libs/fontconfig-2.11.1-r2 USE="-doc -static-libs"
[ebuild N ] app-eselect/eselect-fontconfig-1.1
[ebuild N ] x11-libs/cairo-1.14.2 USE="X glib svg (-aqua) -debug (-directfb) (-gles2) -opengl -static-libs -valgrind -xcb -xlib-xcb"
[ebuild N ] dev-lang/tk-8.5.17 USE="threads (-aqua) -debug {-test} -truetype -xscreensaver"
[ebuild N ] x11-libs/libXft-2.3.2 USE="-static-libs"
[ebuild N ] dev-tcltk/bwidget-1.9.8 USE="-doc {-test}"
[ebuild N ] media-libs/harfbuzz-0.9.41 USE="cairo glib graphite introspection truetype -fontconfig -icu -static-libs {-test}"
[ebuild N ] x11-libs/pango-1.36.8-r1 USE="X introspection -debug {-test}"
[ebuild N ] gnome-base/librsvg-2.40.11 USE="introspection -tools -vala"
[ebuild N ] x11-libs/gtk+-2.24.28-r1 USE="introspection (-aqua) -cups -debug -examples {-test} -vim-syntax -xinerama"
[ebuild N ] gnome-base/libglade-2.6.4-r2 USE="-static-libs {-test} -tools" PYTHON_SINGLE_TARGET="python2_7 (-pypy)" PYTHON_TARGETS="python2_7 (-pypy)"
[ebuild N ] app-admin/setools-3.3.8-r7 USE="X (python) -debug (-java)" PYTHON_TARGETS="python2_7 python3_4"
[ebuild N ] dev-python/sepolgen-1.2.2 PYTHON_TARGETS="python2_7"
[ebuild N ] sys-apps/policycoreutils-2.4-r2 USE="pam -audit -dbus" PYTHON_TARGETS="python2_7"
[ebuild N ] sec-policy/selinux-base-2.20141203-r10 USE="open_perms peer_perms ubac unconfined -doc (-systemd)"
[ebuild N ] sec-policy/selinux-base-policy-2.20141203-r10 USE="unconfined"
[ebuild N ] sec-policy/selinux-unconfined-2.20141203-r10
[ebuild N ] sec-policy/selinux-networkmanager-2.20141203-r10
[ebuild N ] net-wireless/wpa_supplicant-2.4-r3 USE="hs2-0 readline (selinux) ssl -ap -dbus -eap-sim -fasteap -gnutls -p2p (-ps3) -qt4 -smartcard -tdls -uncommon-eap-types -wimax -wps"
Would you like to merge these packages? [Yes/No] |
i definitely do not need all these dependencies for wpa_supplicant!! this is unbelievable.. |
|
Back to top |
|
|
kite14 Apprentice
Joined: 07 Nov 2006 Posts: 216 Location: Italy
|
Posted: Thu Jan 14, 2016 9:28 pm Post subject: |
|
|
Using the --tree option in emerge will shows the dependency tree for the given target by indenting dependencies.
This may help you selecting only the needed USE flags to obtain a more streamlined world file.
man emerge: | --tree (-t)
Shows the dependency tree for the given target by indenting dependencies. This is only really use‐
ful in combination with --emptytree or --update and --deep. |
|
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Thu Jan 14, 2016 9:44 pm Post subject: |
|
|
kite14 wrote: | Using the --tree option in emerge will shows the dependency tree for the given target by indenting dependencies. |
thank you. this is very useful, and i can clearly see why/what i definitely don't need to install.
here it is with --tree. how would i use this tree list to prune down the packages to be installed?
for eg, i don't want networkmanager, fonts, cairo, icons, etc. as a dependency for wpa_supplicant.. it seems wrong!
Code: | # emerge --tree --ask wpa_supplicant
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in reverse order:
Calculating dependencies... done!
[ebuild N ] net-wireless/wpa_supplicant-2.4-r3 USE="hs2-0 readline (selinux) ssl -ap -dbus -eap-sim -fasteap -gnutls -p2p (-ps3) -qt4 -smartcard -tdls -uncommon-eap-types -wimax -wps"
[ebuild N ] sec-policy/selinux-networkmanager-2.20141203-r10
[nomerge ] sec-policy/selinux-networkmanager-2.20141203-r10
[nomerge ] sec-policy/selinux-base-policy-2.20141203-r10 USE="unconfined"
[ebuild N ] sec-policy/selinux-unconfined-2.20141203-r10
[ebuild N ] sec-policy/selinux-base-policy-2.20141203-r10 USE="unconfined"
[ebuild N ] sec-policy/selinux-base-2.20141203-r10 USE="open_perms peer_perms ubac unconfined -doc (-systemd)"
[ebuild N ] sys-apps/policycoreutils-2.4-r2 USE="pam -audit -dbus" PYTHON_TARGETS="python2_7"
[ebuild N ] dev-python/sepolgen-1.2.2 PYTHON_TARGETS="python2_7"
[ebuild N ] app-admin/setools-3.3.8-r7 USE="X (python) -debug (-java)" PYTHON_TARGETS="python2_7 python3_4"
[ebuild N ] gnome-base/libglade-2.6.4-r2 USE="-static-libs {-test} -tools" PYTHON_SINGLE_TARGET="python2_7 (-pypy)" PYTHON_TARGETS="python2_7 (-pypy)"
[ebuild N ] x11-libs/gtk+-2.24.28-r1 USE="introspection (-aqua) -cups -debug -examples {-test} -vim-syntax -xinerama"
[ebuild N ] gnome-base/librsvg-2.40.11 USE="introspection -tools -vala"
[ebuild N ] x11-libs/pango-1.36.8-r1 USE="X introspection -debug {-test}"
[ebuild N ] media-libs/harfbuzz-0.9.41 USE="cairo glib graphite introspection truetype -fontconfig -icu -static-libs {-test}"
[ebuild N ] x11-libs/libXft-2.3.2 USE="-static-libs"
[ebuild N ] dev-tcltk/bwidget-1.9.8 USE="-doc {-test}"
[ebuild N ] dev-lang/tk-8.5.17 USE="threads (-aqua) -debug {-test} -truetype -xscreensaver"
[nomerge ] gnome-base/librsvg-2.40.11 USE="introspection -tools -vala"
[ebuild N ] x11-libs/cairo-1.14.2 USE="X glib svg (-aqua) -debug (-directfb) (-gles2) -opengl -static-libs -valgrind -xcb -xlib-xcb"
[nomerge ] x11-libs/libXft-2.3.2 USE="-static-libs"
[nomerge ] media-libs/fontconfig-2.11.1-r2 USE="-doc -static-libs"
[ebuild N ] app-eselect/eselect-fontconfig-1.1
[ebuild N ] media-libs/fontconfig-2.11.1-r2 USE="-doc -static-libs"
[ebuild N ] virtual/ttf-fonts-1
[ebuild N ] media-fonts/liberation-fonts-2.00.1-r1 USE="X -fontforge"
[ebuild N ] media-fonts/encodings-1.0.4
[ebuild N ] x11-apps/mkfontdir-1.0.7
[nomerge ] media-libs/harfbuzz-0.9.41 USE="cairo glib graphite introspection truetype -fontconfig -icu -static-libs {-test}"
[ebuild N ] media-gfx/graphite2-1.2.4-r1 USE="-perl {-test}"
[ebuild N ] dev-util/cmake-3.3.1-r1 USE="ncurses -doc -emacs -qt4 (-qt5) -system-jsoncpp {-test}"
[nomerge ] app-admin/setools-3.3.8-r7 USE="X (python) -debug (-java)" PYTHON_TARGETS="python2_7 python3_4"
[nomerge ] x11-libs/gtk+-2.24.28-r1 USE="introspection (-aqua) -cups -debug -examples {-test} -vim-syntax -xinerama"
[ebuild N ] dev-util/gtk-update-icon-cache-3.16.7
[ebuild N ] x11-libs/libXi-1.7.5 USE="-doc -static-libs"
[ebuild N ] x11-libs/libXrandr-1.5.0 USE="-static-libs"
[ebuild N ] x11-libs/libXcomposite-0.4.4-r1 USE="-doc -static-libs"
[ebuild N ] x11-libs/libXdamage-1.1.4-r1 USE="-static-libs"
[ebuild N ] x11-libs/libXcursor-1.1.14 USE="-static-libs"
[nomerge ] app-admin/setools-3.3.8-r7 USE="X (python) -debug (-java)" PYTHON_TARGETS="python2_7 python3_4"
[nomerge ] dev-lang/tk-8.5.17 USE="threads (-aqua) -debug {-test} -truetype -xscreensaver"
[ebuild N ] x11-libs/libXt-1.1.5 USE="-static-libs"
[nomerge ] gnome-base/libglade-2.6.4-r2 USE="-static-libs {-test} -tools" PYTHON_SINGLE_TARGET="python2_7 (-pypy)" PYTHON_TARGETS="python2_7 (-pypy)"
[ebuild N ] dev-libs/atk-2.16.0-r1 USE="introspection nls {-test}"
[nomerge ] dev-util/gtk-update-icon-cache-3.16.7
[ebuild N ] x11-libs/gdk-pixbuf-2.32.1 USE="X introspection -debug -jpeg -jpeg2k {-test} -tiff"
[nomerge ] sec-policy/selinux-base-2.20141203-r10 USE="open_perms peer_perms ubac unconfined -doc (-systemd)"
[ebuild N ] sys-apps/checkpolicy-2.4 USE="-debug"
Would you like to merge these packages? [Yes/No] |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Thu Jan 14, 2016 9:46 pm Post subject: |
|
|
josephg,
It looks like you have asked for wpa_supplicant with a GUI and you don't have X installed yet.
Are you really using SELinux? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Thu Jan 14, 2016 9:53 pm Post subject: |
|
|
NeddySeagoon wrote: | It looks like you have asked for wpa_supplicant with a GUI and you don't have X installed yet.
Are you really using SELinux? |
i haven't installed x. so i don't understand why it'd assume i asked for gui. am i using the wrong command to install?
no, i am not using selinux, or atleast i haven't knowingly installed/configured it. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Jan 14, 2016 9:57 pm Post subject: |
|
|
josephg wrote: | i definitely do not need all these dependencies for wpa_supplicant!! this is unbelievable.. |
josephg ... what is "unbelievable" is that you've made a judgement without really understanding what is happening, and *why* those packages are pulled in. So, adjust your useflags ... and/or change your profile.
Code: | # USE="-X -text" emerge -p =sys-fs/btrfs-progs-4.0.1
These are the packages that would be merged, in order:
Calculating dependencies ... done!
[ebuild NS ] app-text/docbook-xml-dtd-4.5-r1 [4.1.2-r6]
[ebuild NS ] app-text/docbook-xml-dtd-4.2-r2 [4.1.2-r6]
[ebuild N ] app-text/asciidoc-8.6.9-r1 USE="vim-syntax -examples -graphviz -highlight {-test}" PYTHON_SINGLE_TARGET="python2_7 (-pypy)" PYTHON_TARGETS="python2_7 (-pypy)"
[ebuild N ] app-text/xmlto-0.0.26-r1 USE="-latex -text"
[ebuild N ] sys-fs/btrfs-progs-4.0.1 USE="convert" |
... similarly with wpa_supplicant, your profile (I assume */selinux) has USE="X" and so this is enabled for app-admin/setools ... so all the dependencies needed to provide this are pulled in.
best ... khay
Last edited by khayyam on Thu Jan 14, 2016 9:59 pm; edited 1 time in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Thu Jan 14, 2016 9:58 pm Post subject: |
|
|
josephg,
I suspect you have selected the wrong profile.
Have a look at
Your profile sets a lot of default USE flags so a good choice saves a lot of pain later.
It also means that /etc/portage/make.conf is only used to fine tune settings in your profile.
Notice the [(selinux) in Code: | ebuild N ] net-wireless/wpa_supplicant-2.4-r3 USE="hs2-0 readline (selinux) ssl -ap -dbus -eap-sim -fasteap -gnutls -p2p (-ps3) -qt4 -smartcard -tdls -uncommon-eap-types -wimax -wps" | that means that (selinux) support is forced on for you. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Thu Jan 14, 2016 10:09 pm Post subject: |
|
|
thank you!!
Code: | # eselect profile list
Available profile symlink targets:
[1] default/linux/x86/13.0
[2] default/linux/x86/13.0/selinux *
[3] default/linux/x86/13.0/desktop
[4] default/linux/x86/13.0/desktop/gnome
[5] default/linux/x86/13.0/desktop/gnome/systemd
[6] default/linux/x86/13.0/desktop/kde
[7] default/linux/x86/13.0/desktop/kde/systemd
[8] default/linux/x86/13.0/desktop/plasma
[9] default/linux/x86/13.0/desktop/plasma/systemd
[10] default/linux/x86/13.0/developer
[11] hardened/linux/x86
[12] hardened/linux/x86/selinux
[13] hardened/linux/musl/x86
[14] default/linux/uclibc/x86
[15] hardened/linux/uclibc/x86 |
i'm pretty sure that i followed the handbook, and at that stage when i selected 2, it was desktop listed there, which seems to have now become selinux.
how can i undo this? is it sufficient for me now to set it to 3, or go back to 1?? i don't need/want selinux. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Thu Jan 14, 2016 10:16 pm Post subject: |
|
|
josephg,
Set it to 3 now, if that's what you want. All those SELinux things will go away.
When you run emerge use the -av options.
-a means --ask. If you like what you see, press y
-v means --verbose. Show you all the USE flags. Look at the USE flag settings and fix them if you don't like them.
To see your entire environment, use I say entire ... it does not include per package settings.
If you have run any emerges with the selinux profile, running them again with -N will fix them.
Homework: what does -N do? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Thu Jan 14, 2016 10:30 pm Post subject: |
|
|
NeddySeagoon wrote: | Set it to 3 now, if that's what you want. |
just changed to 3. what is the difference between 1 and 3?
NeddySeagoon wrote: | To see your entire environment, use I say entire ... it does not include per package settings. |
i just want a minimal system on my laptop. i haven't set any per package setting knowingly.
Code: | # emerge --info
Portage 2.2.26 (python 2.7.10-final-0, default/linux/x86/13.0/selinux, gcc-4.9.3, glibc-2.21-r1, 3.18.10-alt452-i586 i686)
=================================================================
System uname: Linux-3.18.10-alt452-i586-i686-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-2.2
KiB Mem: 3098872 total, 833308 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Thu, 14 Jan 2016 17:00:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash: 4.3_p42-r1::gentoo
dev-lang/perl: 5.20.2::gentoo
dev-lang/python: 2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake: 3.3.1-r1::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.2::gentoo
sys-apps/openrc: 0.18.4::gentoo
sys-apps/sandbox: 2.6-r1::gentoo
sys-devel/autoconf: 2.69::gentoo
sys-devel/automake: 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils: 2.25.1-r1::gentoo
sys-devel/gcc: 4.9.3::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6::gentoo
sys-devel/make: 4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc: 2.21-r1::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: git
sync-uri: https://github.com/gentoo-mirror/gentoo
priority: -1000
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://mirror.bytemark.co.uk/gentoo/ http://mirror.bytemark.co.uk/gentoo/ rsync://mirror.bytemark.co.uk/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/ rsync://rsync.mirrorservice.org/distfiles.gentoo.org/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X Xaw3d acl berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv modules ncurses nls nptl open_perms openmp pam pcre qt5 readline seccomp selinux session ssl tcpd threads unconfined unicode x86 xattr zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
|
NeddySeagoon wrote: | If you have run any emerges with the selinux profile, running them again with -N will fix them.
Homework: what does -N do? |
how would i know which emerges (with what options) ran with selinux profile? i could check bash history, but that wouldn't tell me where selinux was active
man emerge tells me
Code: | --newuse (-N)
Tells emerge to include installed packages where USE flags have changed since compilation. This option also implies the --selective option. |
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Thu Jan 14, 2016 10:43 pm Post subject: |
|
|
josephg,
10/10 for your homework :)
You have a log file /var/log/emerge.log
Its never pruned and several tools parse it for useful information.
It lists all the packages you have ever emerged and when.
emerge -uDNav @world will rebuild all the packages with changed USE flags that you have deliberately emerged together with their dependencies.
Think about adding --jobs= --keep-going --with-bdeps=y to that too.
Don't be in too much of a hurry to fix the damage. You will be using that command above at least monthly and it will do no harm lo leave things until a routine update. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Thu Jan 14, 2016 10:52 pm Post subject: |
|
|
josephg wrote: | just changed to 3. what is the difference between 1 and 3? |
josephg ... with 1 (default/linux/x86/13.0) you will get a more minimal profile ... 3 is a "desktop" profile, so things like consolekit, policykit, dbus, etc, useflags enabled. Ultimately it doesn't matter, because you can enable/disable via make.conf and/or package.use ... but if you want minimal then 1 would probably be a better starting place.
As for the selinux profile being selected, did you perhaps use a 'hardened' stage3?
best ... khay |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Thu Jan 14, 2016 10:53 pm Post subject: |
|
|
thanks again! i was just looking at the wiki 2.5 Adapting the entire system to the new USE flags, which tells me to do these
Code: | # emerge --update --deep --newuse @world |
Code: | # emerge -p --depclean |
wiki doesn't list those options you mentioned. but i do have -j3 in /etc/portage/make.conf
should i add the others you suggest in there too?
am i really going to be compiling my whole system every month?? |
|
Back to top |
|
|
Tony0945 Watchman
Joined: 25 Jul 2006 Posts: 5127 Location: Illinois, USA
|
Posted: Fri Jan 15, 2016 1:55 am Post subject: |
|
|
josephg wrote: | am i really going to be compiling my whole system every month?? |
Just the parts that change.
I really butted in to point out that in any eselect module the number you see is fairly unique to your system but the name next to it is universal. So when following a wiki example be sure to set the number on your system that corresponds to the name on the wiki. The numbers may or may not be the same. If you have multiple Gentoo installations you will see the same thing on "eselect news list" the item numbers probably won't be the same depending on when you built the systems.
I hope that was clear. On re-reading it sounds more complex to me than it is.
Welcome to Gentoo! |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Fri Jan 15, 2016 3:21 am Post subject: |
|
|
khayyam wrote: | josephg wrote: | just changed to 3. what is the difference between 1 and 3? |
josephg ... with 1 (default/linux/x86/13.0) you will get a more minimal profile ... 3 is a "desktop" profile, so things like consolekit, policykit, dbus, etc, useflags enabled. Ultimately it doesn't matter, because you can enable/disable via make.conf and/or package.use ... but if you want minimal then 1 would probably be a better starting place. |
that is exactly what i wanted i am a minimalist. i have set my profile to 1.
now do i need to recompile the world again? i want to get rid of all that spurious stuff.
khayyam wrote: | As for the selinux profile being selected, did you perhaps use a 'hardened' stage3? |
i used stage3-i686-20160112.tar.bz2 and followed the handbook, where i selected 2 desktop.
but later on, i made a mistake and blindly copied the use flags from somewhere which included selinux. i hadn't noticed and didn't understand, till neddy pointed out my selinux errors while compiling. i was pretty sure, i hadn't chosen it.. so i ignored it. then i found it listed in the use flags on my make.conf. doh! |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Fri Jan 15, 2016 4:26 am Post subject: |
|
|
khayyam wrote: | your profile (I assume */selinux) has USE="X" and so this is enabled for app-admin/setools ... so all the dependencies needed to provide this are pulled in. |
thanks again khay! you are indeed right, and that is exactly what had happened.
i changed my profile to 1, as you recommended and which is what i had wanted all along.
maybe i should let you look at my use flags too.
Code: | # cat make.conf | grep USE
## USE="X Xaw3d bindist selinux x86" ABI_X86="32" ELIBC="glibc" KERNEL="linux" USERLAND="GNU"
USE="unicode vaapi -altivec -apm -avahi -bluetooth -cups -debug -emacs -gnome -gnome-keyring -gpm -gps -ios -ipv6 -java -joystick -networkmanager -nouveau -pcmcia -policykit -pulseaudio -radeon -startup-notification -syslog -systemd -udev -wayland -xinerama -vmware" |
the commented line was what caused those initial problems. and i hadn't realised it all along. now i understand a bit better, thanks to you all.
does it look ok now? |
|
Back to top |
|
|
wjb l33t
Joined: 10 Jul 2005 Posts: 607 Location: Fife, Scotland
|
Posted: Fri Jan 15, 2016 2:22 pm Post subject: |
|
|
Packages also have options controlled by the USE flags.
Code: | # equery uses wpa_supplicant
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for net-wireless/wpa_supplicant-2.4-r3:
U I
- - ap : Add support for access point mode
+ + dbus : Enable dbus support for anything that needs it (gpsd,
gnomemeeting, etc)
- - eap-sim : Add support for EAP-SIM authentication algorithm
- - fasteap : Add support for FAST-EAP authentication algorithm
- - gnutls : Add support for net-libs/gnutls (TLS 1.0 and SSL 3.0 support)
+ - hs2-0 : Add support for 802.11u and Passpoint for HotSpot 2.0
- - p2p : Add support for Wi-Fi Direct mode
+ + qt4 : Add support for the Qt GUI/Application Toolkit version 4.x
+ + readline : Enable support for libreadline, a GNU line-editing library that
almost everyone wants
- - smartcard : Add support for smartcards
+ + ssl : Add support for Secure Socket Layer connections
- - tdls : Add support for Tunneled Direct Link Setup (802.11z)
- - uncommon-eap-types : Add support for GPSK, SAKE, GPSK_SHA256, IKEV2 and EKE
- - wimax : Add support for Wimax EAP-PEER authentication algorithm
- - wps : Add support for Wi-Fi Protected Setup
|
(equery is in gentoolkit) |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Fri Jan 15, 2016 3:31 pm Post subject: |
|
|
josephg wrote: | maybe i should let you look at my use flags too. |
You could check your actual USE flags by using Code: | $ emerge --info | grep -P USE=\".*?\" |
josephg wrote: | Code: | # cat make.conf | grep USE
## USE="X Xaw3d bindist selinux x86" ABI_X86="32" ELIBC="glibc" KERNEL="linux" USERLAND="GNU"
USE="unicode vaapi -altivec -apm -avahi -bluetooth -cups -debug -emacs -gnome -gnome-keyring -gpm -gps -ios -ipv6 -java -joystick -networkmanager -nouveau -pcmcia -policykit -pulseaudio -radeon -startup-notification -syslog -systemd -udev -wayland -xinerama -vmware" |
the commented line was what caused those initial problems. and i hadn't realised it all along. now i understand a bit better, thanks to you all.
does it look ok now? |
Depends on what you need or want. Be aware that changing the profile also activates another set of USE flags.
So you'd better start with am empty USE="" in /etc/portage/make.conf and check again 'emerge --info' for what's already enabled by the selected profile.
Then use /etc/portage/package.use for deactivating what hurts when emerging new packages. |
|
Back to top |
|
|
bstaletic Apprentice
Joined: 05 Apr 2014 Posts: 253
|
Posted: Fri Jan 15, 2016 7:57 pm Post subject: |
|
|
Be careful when setting -udev. If you do not know what would be the effects of that USE flag you may render your pc unusable. That is from my own experience from a few days back. That said I was determined to banish udev from my system, I made it segfault.
But after fixing it, the system is functioning flawlessly with no udev in sight. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Fri Jan 15, 2016 8:21 pm Post subject: |
|
|
bstaletic,
What are you using in place of udev? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Jan 15, 2016 8:33 pm Post subject: |
|
|
josephg wrote: | Code: | USE="[...] -udev [...]" |
|
josephg ... are you looking to build a udev (or eudev) free system? If so ask (probably best to start a seperate thread). If not, as bstaletic noted, you will break some functionality, explictly xorg/xf86-input-evdev. It can be worked around, but I thought I'd ask what your intentions are ITR.
best ... khay |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Sun Jan 17, 2016 3:01 pm Post subject: |
|
|
i have no problems re eudev.
i followed the wiki here: http://wiki.gentoo.org/wiki/Gentoo_Without_systemd
and made my use flags as you see above. i also masked systemd and udev.
wiki says "Masking udev will not result in a broken system; Portage is smart enough to automatically replace udev by sys-fs/eudev: the systemd-free fork of udev."
didn't happen automatically though. i had to manually make it happen.
back to op. i want to understand if i'm using use flags correctly, and i want to uninstall all/most stuff i've accidentally installed.
Last edited by josephg on Mon Jan 18, 2016 7:32 pm; edited 5 times in total |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Sun Jan 17, 2016 5:08 pm Post subject: |
|
|
josephg,
You don't need to do anything special to Gentoo to avoid systemd.
No systemd is the default.
udev can no longer be built without systemd, so udev users on the default Gentoo build both, then throw away systemd.
udev still works without systemd.
More paranoid users have systemd and friends hard masked. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
josephg l33t
Joined: 10 Jan 2016 Posts: 783 Location: usually offline
|
Posted: Sun Jan 17, 2016 5:16 pm Post subject: |
|
|
NeddySeagoon wrote: | udev can no longer be built without systemd, so udev users on the default Gentoo build both, then throw away systemd.
udev still works without systemd.
More paranoid users have systemd and friends hard masked. |
i'm not really paranoid. but i don't understand why we should build something we don't want, just to throw away. might as well mask all that lot out, before they get into the system.. why bother undoing everything later.
i skipped both of them during install itself, before the first reboot. eudev works fine for me.
Last edited by josephg on Mon Jan 18, 2016 7:38 pm; edited 2 times in total |
|
Back to top |
|
|
|