Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need help with package.use
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
DanielC
n00b
n00b


Joined: 07 Sep 2015
Posts: 25
Location: Sweden

PostPosted: Sat Sep 12, 2015 5:21 pm    Post subject: Need help with package.use Reply with quote

Hello,

I think I already managed to break my Gentoo system. So I just figured out that I can have multiple files in /etc/portage/package.use so I assume that I am supposed to organize the USE flags into different files. So I started organizing my USE flags and deleting the ones I didn't need...

... So... it looks like I deleted a USE flag that I needed. It's something I added while installing LXDE. I decided that I don't like LXDE and removed it, and I thought it would be reasonable to remove the flag too. But now I have this:

Code:

# emerge --update --newuse --deep @world
Calculating dependencies... done!

WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict:

sys-fs/udev:0

   (sys-fs/udev-216:0/0::gentoo. ebuild scheduled for merge) conflicts with
     >=sys-fs-udev-208-r1:0/0[abi_x86_64(-),gudev(-)] required by virtual/libgudev-215-r3:0/0::gentoo,installed)


So... it looks like I messed something up. But I don't know how to produce the correct entry inside packages.use. Can anyone help me?

Cheers,
Daniel.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13845

PostPosted: Sat Sep 12, 2015 6:03 pm    Post subject: Reply with quote

Whenever you have a problem with Portage, there is a good chance someone will ask you for the output of emerge --info and/or emerge --pretend --verbose affected-packages. In this case, that someone is me. You can improve your chances of getting a solution in the first response if you volunteer that output without waiting for someone to request it.

Please post the output of emerge --info ; emerge --pretend --verbose sys-fs/udev virtual/libgudev.
Back to top
View user's profile Send private message
DanielC
n00b
n00b


Joined: 07 Sep 2015
Posts: 25
Location: Sweden

PostPosted: Sat Sep 12, 2015 7:05 pm    Post subject: Reply with quote

Hu wrote:
Whenever you have a problem with Portage, there is a good chance someone will ask you for the output of emerge --info and/or emerge --pretend --verbose affected-packages. In this case, that someone is me. You can improve your chances of getting a solution in the first response if you volunteer that output without waiting for someone to request it.

Please post the output of emerge --info ; emerge --pretend --verbose sys-fs/udev virtual/libgudev.


Thanks for being patient. I'm new here. Here is the output:

Code:

# emerge --pretend --verbose sys-fs/udev virtual/libgudev

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-fs/udev-216::gentoo  USE="acl firmware-loader gudev kmod -doc -introspection (-selinux) -static-libs" 0 KiB
[ebuild   R    ] virtual/libgudev-215-r3::gentoo  USE="-introspection -static-libs -systemd" 0 KiB

Total: 2 packages (2 reinstalls), Size of downloads: 0 KiB

The following USE changes are necessary to proceed:
 (see "package.use" in the portage(5) man page for more details)
# required by virtual/libgudev-215-r3::gentoo[-systemd]
# required by virtual/libgudev (argument)
>=sys-fs/udev-216 gudev


The output of emerge --info is included below, but it looks like emerge is already suggesting a solution. Should I just copy the last three lines and put them in package.use/foo?

Here is the rest:

Code:

# emerge --info
Portage 2.2.20.1 (python 3.4.1-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.8.5, glibc-2.20-r2, 4.0.5-gentoo x86_64)
=================================================================
System uname: Linux-4.0.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700MQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:     3604040 total,   2224060 free
KiB Swap:     917500 total,    902344 free
Timestamp of repository gentoo: Sat, 12 Sep 2015 06:45:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.8.5::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.20-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync11.us.gentoo.org/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.df.lth.se/pub/gentoo/ rsync://ftp.df.lth.se/pub/gentoo/ http://mirror.mdfnet.se/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
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 acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri dvd flac fortran gdbm gtk iconv ipv6 jpeg jpeg2k matroska mmx mmxext modules mp3 mpeg ncurses nls nptl ogg opengl openmp pam pcre png pulseaudio qt4 readline seccomp session sse sse2 ssl svg tcpd theora unicode vorbis xml xpm zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" CPU_FLAGS_X86="mmx sse sse2 mmxext" 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
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43194
Location: 56N 3W

PostPosted: Sat Sep 12, 2015 8:09 pm    Post subject: Reply with quote

DanielC,

Putting
Code:
# required by virtual/libgudev-215-r3::gentoo[-systemd]
# required by virtual/libgudev (argument)
>=sys-fs/udev-216 gudev
into package.use would work.

You can manage all your USE flags in package.use on a per package basis if you really want to but you will rebuild a lot of things that way.
Look at what else can USE=gudev and decide if it should go into package.use for a small number of packages or into make.conf, so it affects all packages.

My view is that if I mostly want a USE flag is that it belongs in make.conf, then, if there is a package or two where it annoys me, package.use can turn it off.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
DanielC
n00b
n00b


Joined: 07 Sep 2015
Posts: 25
Location: Sweden

PostPosted: Sat Sep 12, 2015 8:55 pm    Post subject: Reply with quote

NeddySeagoon wrote:

You can manage all your USE flags in package.use on a per package basis if you really want to but you will rebuild a lot of things that way.
Look at what else can USE=gudev and decide if it should go into package.use for a small number of packages or into make.conf, so it affects all packages.

My view is that if I mostly want a USE flag is that it belongs in make.conf, then, if there is a package or two where it annoys me, package.use can turn it off.


That makes sense. I moved it to make.conf.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3076
Location: Illinois, USA

PostPosted: Sat Sep 12, 2015 9:41 pm    Post subject: Reply with quote

NeddySeagoon wrote:

My view is that if I mostly want a USE flag is that it belongs in make.conf, then, if there is a package or two where it annoys me, package.use can turn it off.


I go by the rule of thumb that if four or more packages want the flag, it goes into make.conf. Anything that really annoys me, like, policykit, gets turned off in make.conf and turned on in package.use when another package demands it.

It's a matter of taste.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum