Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge -uDNv world broke my system.. badly [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
-=GGW=- $ol!d $n4>|e
Veteran
Veteran


Joined: 12 Apr 2004
Posts: 1598
Location: USA

PostPosted: Wed Aug 22, 2012 8:23 pm    Post subject: emerge -uDNv world broke my system.. badly [solved] Reply with quote

All of these fail to emerge
## emerge -uDaNv world

Code:


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

Calculating dependencies... done!
[ebuild    FU  ] dev-java/sun-jdk-1.6.0.33-r1 [1.6.0.31] USE="X alsa examples nsplugin source -derby -doc -jce" 82,190 kB
[ebuild    FU  ] app-emulation/emul-linux-x86-java-1.6.0.33-r1 [1.6.0.31] USE="X alsa nsplugin" 21,186 kB
[ebuild    FU  ] dev-java/sun-jre-bin-1.6.0.33-r1 [1.6.0.31] USE="X alsa nsplugin -jce" 20,802 kB
[ebuild   R    ] kde-base/cantor-4.8.3  USE="R handbook -analitza (-aqua) -debug -postscript% (-ps%)" 0 kB
[ebuild   R    ] kde-base/okular-4.8.3  USE="crypt handbook jpeg pdf postscript%* tiff (-aqua) -chm -debug -djvu -ebook (-ps%*)" 0 kB
[ebuild     U  ] media-sound/amarok-2.5.0-r4 [2.5.0-r2] USE="embedded lastfm opengl semantic-desktop utils -cdda -daap -debug -ipod -mp3tunes -mtp -ofa" LINGUAS="-af -ar -ast -be -bg -bs -ca -ca@valencia -cs -csb -da -de -el -en_GB -eo -es -et -eu -fa -fi -fr -ga -gl -he -hr -hu -is -it -ja -km -ko -ku -lt -lv -mai -ml -ms -nb -nds -ne -nl -nn -oc -pa -pl -pt -pt_BR -ro -ru -se -si -sk -sl -sq -sr -sr@Latn -sr@ijekavian -sr@ijekavianlatin -sv -tg -th -tr -ug -uk -wa -zh_CN -zh_TW" 0 kB                                                                             
[ebuild     U  ] dev-lang/php-5.3.15 [5.3.13] USE="apache2 berkdb bzip2 cgi cli crypt ctype exif fileinfo filter ftp gd gdbm gmp hash iconv imap ipv6 json mysql mysqli nls pcntl pdo phar posix postgres readline session simplexml snmp spell sqlite sqlite3 ssl threads tokenizer unicode xml xpm zlib -bcmath -calendar -cdb -cjk -curl -curlwrappers -debug -doc -embed -enchant -firebird -flatfile -fpm (-frontbase) -inifile -intl -iodbc -kerberos (-kolab) -ldap -ldap-sasl -libedit -mhash -mssql -mysqlnd -oci8-instant-client -odbc -pic -qdbm -recode -sharedmem -soap -sockets -suhosin (-sybase-ct) -sysvipc -tidy -truetype -wddx -xmlreader -xmlrpc -xmlwriter -xsl -zip" 0 kB                                                                                   
[ebuild     U  ] kde-base/kdepim-common-libs-4.8.3-r1 [4.8.3] USE="(-aqua) -debug" 0 kB
[ebuild     U  ] kde-base/kmail-4.8.3-r1 [4.8.3] USE="handbook kontact (-aqua) -debug -test" 0 kB
[ebuild     U  ] net-p2p/ktorrent-4.2.1 [4.2.0] USE="bwscheduler downloadorder handbook infowidget ipfilter kross logviewer magnetgenerator mediaplayer plasma rss scanfolder search shutdown stats upnp zeroconf (-aqua) -debug -webinterface" LINGUAS="-ar -ast -be -bg -ca -ca@valencia -cs -da -de -el -en_GB -eo -es -et -eu -fi -fr -ga -gl -hi -hne -hr -hu -is -it -ja -km -lt -lv -mai -ms -nb -nds -nl -nn -oc -pl -pt -pt_BR -ro -ru -se -si -sk -sl -sr -sr@ijekavian -sr@ijekavianlatin -sr@latin -sv -tr -uk -zh_CN -zh_TW" 0 kB
[ebuild     U  ] kde-misc/networkmanagement-0.9.0.4 [0.8_p20110714] USE="(-aqua) -debug (-consolekit%)" LINGUAS="-ar% -ca% -cs% -da% -de% -el% -es% -et% -fa% -fi% -ga% -hu% -it% -ja% -km% -lt% -nb% -nds% -nl% -nn% -pl% -pt% -pt_BR% -se% -sk% -sr% -sr@ijekavian% -sr@ijekavianlatin% -sr@latin% -sv% -tr% -uk% -zh_TW%" 0 kB       

## emerge --depclean
Code:

 * Depclean may break link level dependencies. Thus, it is
 * recommended to use a tool such as `revdep-rebuild` (from
 * app-portage/gentoolkit) in order to detect such breakage.
 *
 * Always study the list of packages to be cleaned for any obvious
 * mistakes. Packages that are part of the world set will always
 * be kept.  They can be manually added to this set with
 * `emerge --noreplace <atom>`.  Packages that are listed in
 * package.provided (see portage(5)) will be removed by
 * depclean, even if they are part of the world set.
 *
 * As a safety measure, depclean will not remove any packages
 * unless *all* required dependencies have been resolved.  As a
 * consequence, it is often necessary to run `emerge --update
 * --newuse --deep @world` prior to depclean.

Calculating dependencies... done!
 * Dependencies could not be completely resolved due to
 * the following required packages not being installed:
 *
 *   >=x11-libs/qt-qt3support-4.7.0:4[accessibility,kde] pulled in by:
 *     kde-misc/networkmanagement-0.8_p20110714
 *
 *   >=x11-libs/qt-webkit-4.7.0:4[kde] pulled in by:
 *     kde-misc/networkmanagement-0.8_p20110714
 *
 * Have you forgotten to do a complete update prior to depclean? The
 * most comprehensive command for this purpose is as follows:
 *
 *   emerge --update --newuse --deep --with-bdeps=y @world
 *
 * Note that the --with-bdeps=y option is not required in many
 * situations. Refer to the emerge manual page (run `man emerge`)
 * for more information about --with-bdeps.
 *
 * Also, note that it may be necessary to manually uninstall
 * packages that no longer exist in the portage tree, since it may
 * not be possible to satisfy their dependencies.

## revdep-rebuild
Code:


* Configuring search environment for revdep-rebuild

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 53% ]  *   broken /usr/lib64/kde4/kcm_attica.so (requires libattica.so.0.3)
[ 59% ]  *   broken /usr/lib64/kde4/rocs_transformedgesplugin.so (requires rocs_GraphStructure.so)
[ 64% ]  *   broken /usr/lib64/libkdeui.so.5.8.0 (requires libattica.so.0.3)
[ 65% ]  *   broken /usr/lib64/libknewstuff3.so.4.8.0 (requires libattica.so.0.3)
[ 75% ]  *   broken /usr/lib64/php5.3/apache2/libphp5.so (requires libnetsnmp.so.15)
 *   broken /usr/lib64/php5.3/bin/php (requires libnetsnmp.so.15)
 *   broken /usr/lib64/php5.3/bin/php-cgi (requires libnetsnmp.so.15)
[ 79% ]  *   broken /usr/lib64/python2.7/site-packages/_yaml.so (requires libyaml-0.so.1)
[ 96% ]  *   broken /usr/libexec/geoclue-localnet (requires libnm-glib.so.2
libnm-util.so.1)
 *   broken /usr/libexec/geoclue-master (requires libnm-glib.so.2
libnm-util.so.1)
[ 100% ]                 
 * Generated new 3_broken.rr
 * Assigning files to packages
 *   /usr/lib64/kde4/kcm_attica.so -> kde-base/attica
 *   /usr/lib64/kde4/rocs_transformedgesplugin.so -> kde-base/rocs
 *   /usr/lib64/libkdeui.so.5.8.0 -> kde-base/kdelibs
 *   /usr/lib64/libknewstuff3.so.4.8.0 -> kde-base/kdelibs
 *   /usr/lib64/php5.3/apache2/libphp5.so -> dev-lang/php
 *   /usr/lib64/php5.3/bin/php -> dev-lang/php
 *   /usr/lib64/php5.3/bin/php-cgi -> dev-lang/php
 *  !!! /usr/lib64/python2.7/site-packages/_yaml.so not owned by any package is broken !!!
 *   /usr/lib64/python2.7/site-packages/_yaml.so -> (none)
 *   /usr/libexec/geoclue-localnet -> app-misc/geoclue
 *   /usr/libexec/geoclue-master -> app-misc/geoclue
 * Generated new 4_raw.rr and 4_owners.rr
 * Cleaning list of packages to rebuild
 * Generated new 4_pkgs.rr
 * Assigning packages to ebuilds
 * Generated new 4_ebuilds.rr
 * Evaluating package order
 * Generated new 5_order.rr
 * All prepared. Starting rebuild
emerge --complete-graph=y --oneshot --autounmask-write  app-misc/geoclue:0 dev-lang/php:5.3 kde-base/attica:4 kde-base/kdelibs:4 kde-base/rocs:4
..........


Help! :cry:

here is what happens on php which is the first to build from revdep-rebuild

Code:


make -j9 INSTALL_ROOT=/var/tmp/portage/dev-lang/php-5.3.15/work/sapis/apache2/ install-sapi
Installing PHP SAPI module:       apache2handler
/usr/lib64/apache2/build/instdso.sh SH_LIBTOOL='/usr/bin/libtool' libphp5.la /var/tmp/portage/dev-lang/php-5.3.15/work/sapis/apache2//usr/lib64/apache2/modules
/usr/bin/libtool --mode=install cp libphp5.la /var/tmp/portage/dev-lang/php-5.3.15/work/sapis/apache2//usr/lib64/apache2/modules/
libtool: install: cp .libs/libphp5.so /var/tmp/portage/dev-lang/php-5.3.15/work/sapis/apache2//usr/lib64/apache2/modules/libphp5.so
libtool: install: cp .libs/libphp5.lai /var/tmp/portage/dev-lang/php-5.3.15/work/sapis/apache2//usr/lib64/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish /var/tmp/portage/dev-lang/php-5.3.15/work/sapis-build/apache2/libs'
chmod 755 /var/tmp/portage/dev-lang/php-5.3.15/work/sapis/apache2//usr/lib64/apache2/modules/libphp5.so
>>> Source compiled.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE "/var/log/sandbox/sandbox-29898.log"

VERSION 1.0
FORMAT: F - Function called
FORMAT: S - Access Status
FORMAT: P - Path as passed to function
FORMAT: A - Absolute Path (not canonical)
FORMAT: R - Canonical Path
FORMAT: C - Command Line

F: mkdir
S: deny
P: /var/lib/net-snmp/mib_indexes
A: /var/lib/net-snmp/mib_indexes
R: /var/lib/net-snmp/mib_indexes
C: /var/tmp/portage/dev-lang/php-5.3.15/work/sapis-build/cli/sapi/cli/php -n -d open_basedir= -d output_buffering=0 -d memory_limit=-1 -d phar.readonly=0 -d safe_mode=0 /var/tmp/portage/dev-lang/php-5.3.15/work/sapis-build/cli/ext/phar/build_precommand.php

F: mkdir
S: deny
P: /var/lib/net-snmp/mib_indexes
A: /var/lib/net-snmp/mib_indexes
R: /var/lib/net-snmp/mib_indexes
C: /var/tmp/portage/dev-lang/php-5.3.15/work/sapis-build/cli/sapi/cli/php -n -d open_basedir= -d output_buffering=0 -d memory_limit=-1 -d phar.readonly=0 -d safe_mode=0 ext/phar/phar.php pack -f ext/phar/phar.phar -a pharcommand -c auto -x \.svn -p 0 -s /var/tmp/portage/dev-lang/php-5.3.15/work/sapis-build/cli/ext/phar/phar/phar.php -h sha1 -b /usr/lib64/php5.3/bin/php /var/tmp/portage/dev-lang/php-5.3.15/work/sapis-build/cli/ext/phar/phar/
--------------------------------------------------------------------------------

>>> Failed to emerge dev-lang/php-5.3.15, Log file:


This leads me to believe maybe its related to this sugggestion i followed from a warnign on an ebuild?

Quote:


* Messages for package net-dns/bind-9.9.1_p2:

*
* NOTE: /var/bind/named.ca has been renamed to /var/bind/named.cache
* you may need to fix your named.conf!
*
* NOTE: If you upgrade from <net-dns/bind-9.4.3_p5-r1, you may encounter permission problems
* To fix the permissions do:
* chown root:named /{etc,var}/bind /var/{run,log}/named /var/bind/{sec,pri,dyn}
* chown root:named /var/bind/named.cache /var/bind/pri/{127,localhost}.zone /etc/bind/{bind.keys,named.conf}
* chmod 0640 /var/bind/named.cache /var/bind/pri/{127,localhost}.zone /etc/bind/{bind.keys,named.conf}
* chmod 0750 /etc/bind /var/bind/pri
* chmod 0770 /var/{run,log}/named /var/bind/{,sec,dyn}
*



I have not restarted since the update for fear of stepping into a non-working situation.
Back to top
View user's profile Send private message
-=GGW=- $ol!d $n4>|e
Veteran
Veteran


Joined: 12 Apr 2004
Posts: 1598
Location: USA

PostPosted: Wed Aug 22, 2012 10:05 pm    Post subject: Reply with quote

well, talk about sync-ing at a bad time

https://bugs.gentoo.org/show_bug.cgi?id=432248

emerge --sync solved the revdep-rebuild problem and after that went through i was back in buisness with finishing my update, assumign the depclean will go over well now as well.
Back to top
View user's profile Send private message
marens
Apprentice
Apprentice


Joined: 05 Aug 2004
Posts: 172

PostPosted: Wed Aug 22, 2012 11:10 pm    Post subject: Reply with quote

--keep-going skips a broken package, recalculates the dependencies and continues with the rest of the packages when possible.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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