public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] emerge BUG?
@ 2013-12-20  8:24 Yuri K. Shatroff
  2013-12-20  9:30 ` Alexey Mishustin
  0 siblings, 1 reply; 12+ messages in thread
From: Yuri K. Shatroff @ 2013-12-20  8:24 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2151 bytes --]

Hi Gentoo users,

Looks like I've encountered a bug in emerge.
I do a sync, some updated packages are displayed, but emerge -avDu 
@world doesn't see some of them, though I don't have them masked.

A today's example:

=======

# eix-sync
[ ... ]
[U]   == net-misc/youtube-dl (2013.11.25.1@26.11.2013; (~)2013.12.11.2 
-> (~)2013.12.17.2): Download videos from YouTube.com (and mores sites...)
[U]   == sys-libs/timezone-data (2013h@20.11.2013; (~)2013h -> 
(~)2013i): Timezone data (/usr/share/zoneinfo) and utilities 
(tzselect/zic/zdump)
[ ... ]
# emerge -avDu @world

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

Calculating dependencies... done!
[ebuild     U  ] sys-libs/timezone-data-2013i [2013h] USE="-nls" 383 kB
[ebuild     U  ] dev-libs/libmemcached-1.0.17 [1.0.14] USE="libevent 
-debug -hsieh -static-libs" 0 kB

Total: 2 packages (2 upgrades), Size of downloads: 383 kB

Would you like to merge these packages? [Yes/No]
#

=====

There are I think over 100 packages to be updated in total, including 
the whole KDE.

When I specify a package instead of @world, it seems to work correctly:

=====
# emerge -avDu kdm

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

Calculating dependencies... done!
[ebuild     U  ] sys-libs/timezone-data-2013i [2013h] USE="-nls" 383 kB
[ebuild     U  ] kde-base/kcheckpass-4.11.4:4 [4.10.5:4] USE="pam 
(-aqua) -debug" 13,555 kB
[ebuild     U  ] kde-base/libkworkspace-4.11.4:4 [4.10.5:4] USE="(-aqua) 
-debug" 0 kB
[ebuild     U  ] kde-base/libkonq-4.12.0:4 [4.10.5:4] USE="(-aqua) 
-debug {-test}" 2,463 kB
[ebuild     U  ] kde-base/kdesu-4.12.0:4 [4.10.5:4] USE="(-aqua) -debug 
-handbook" 7,667 kB
[ebuild     U  ] kde-base/kdepasswd-4.12.0:4 [4.10.5:4] USE="(-aqua) 
-debug -handbook" 0 kB
[ebuild     U  ] kde-base/kdm-4.11.4:4 [4.10.5-r1:4] USE="consolekit pam 
(-aqua) -debug -handbook -kerberos -systemd%" 0 kB

Total: 7 packages (7 upgrades), Size of downloads: 24,067 kB

Would you like to merge these packages? [Yes/No]
=====

I rebuilt portage to no avail.
What can it be or should I file a bug?

The output of `emerge --info` is attached.

--
Regards,
Yuri K. Shatroff


[-- Attachment #2: emerge_info.txt --]
[-- Type: text/plain, Size: 4570 bytes --]

Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.17, 3.12.4-gentoo x86_64)
=================================================================
System uname: Linux-3.12.4-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:     8191336 total,   3943728 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 20 Dec 2013 07:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.6.8-r3, 2.7.6, 3.3.3
dev-util/cmake:           2.8.12.1-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/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://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/var/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"
PORTDIR="/var/portage/tree"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv lzma mmx modules mudflap multilib ncurses nptl opengl openmp pam pcre qt3support qt4 readline session sse sse2 sse3 sse4_1 ssl ssse3 tcpd unicode 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" APACHE2_MPMS="prefork" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_6 python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="vesa radeon" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] emerge BUG?
  2013-12-20  8:24 [gentoo-user] emerge BUG? Yuri K. Shatroff
@ 2013-12-20  9:30 ` Alexey Mishustin
  2013-12-20  9:47   ` Yuri K. Shatroff
  0 siblings, 1 reply; 12+ messages in thread
From: Alexey Mishustin @ 2013-12-20  9:30 UTC (permalink / raw
  To: gentoo-user

2013/12/20 Yuri K. Shatroff <yks-uno@yandex.ru>:
> Hi Gentoo users,
>
> Looks like I've encountered a bug in emerge.
> I do a sync, some updated packages are displayed, but emerge -avDu @world
> doesn't see some of them, though I don't have them masked.
>
> A today's example:
>
> =======
>
> # eix-sync
> [ ... ]
> [U]   == net-misc/youtube-dl (2013.11.25.1@26.11.2013; (~)2013.12.11.2 ->
> (~)2013.12.17.2): Download videos from YouTube.com (and mores sites...)
> [U]   == sys-libs/timezone-data (2013h@20.11.2013; (~)2013h -> (~)2013i):
> Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)
> [ ... ]
> # emerge -avDu @world
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> [ebuild     U  ] sys-libs/timezone-data-2013i [2013h] USE="-nls" 383 kB
> [ebuild     U  ] dev-libs/libmemcached-1.0.17 [1.0.14] USE="libevent -debug
> -hsieh -static-libs" 0 kB
>
> Total: 2 packages (2 upgrades), Size of downloads: 383 kB
>
> Would you like to merge these packages? [Yes/No]
> #
>
> =====
>
> There are I think over 100 packages to be updated in total, including the
> whole KDE.
>
> When I specify a package instead of @world, it seems to work correctly:
>
> =====
> # emerge -avDu kdm
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> [ebuild     U  ] sys-libs/timezone-data-2013i [2013h] USE="-nls" 383 kB
> [ebuild     U  ] kde-base/kcheckpass-4.11.4:4 [4.10.5:4] USE="pam (-aqua)
> -debug" 13,555 kB
> [ebuild     U  ] kde-base/libkworkspace-4.11.4:4 [4.10.5:4] USE="(-aqua)
> -debug" 0 kB
> [ebuild     U  ] kde-base/libkonq-4.12.0:4 [4.10.5:4] USE="(-aqua) -debug
> {-test}" 2,463 kB
> [ebuild     U  ] kde-base/kdesu-4.12.0:4 [4.10.5:4] USE="(-aqua) -debug
> -handbook" 7,667 kB
> [ebuild     U  ] kde-base/kdepasswd-4.12.0:4 [4.10.5:4] USE="(-aqua) -debug
> -handbook" 0 kB
> [ebuild     U  ] kde-base/kdm-4.11.4:4 [4.10.5-r1:4] USE="consolekit pam
> (-aqua) -debug -handbook -kerberos -systemd%" 0 kB
>
> Total: 7 packages (7 upgrades), Size of downloads: 24,067 kB
>
> Would you like to merge these packages? [Yes/No]
> =====
>
> I rebuilt portage to no avail.
> What can it be or should I file a bug?
>
> The output of `emerge --info` is attached.

What is the contents of /var/lib/portage/world?

-- 
Regards,
Alex


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] emerge BUG?
  2013-12-20  9:30 ` Alexey Mishustin
@ 2013-12-20  9:47   ` Yuri K. Shatroff
  2013-12-20  9:53     ` Neil Bothwick
  2013-12-20 10:35     ` Alexey Mishustin
  0 siblings, 2 replies; 12+ messages in thread
From: Yuri K. Shatroff @ 2013-12-20  9:47 UTC (permalink / raw
  To: gentoo-user

20.12.2013 13:30, Alexey Mishustin пишет:
> 2013/12/20 Yuri K. Shatroff <yks-uno@yandex.ru>:
>> Hi Gentoo users,
>>
>> Looks like I've encountered a bug in emerge.
>> I do a sync, some updated packages are displayed, but emerge -avDu @world
>> doesn't see some of them, though I don't have them masked.
>>
>> A today's example:
>>
>> =======
>>
>> # eix-sync
>> [ ... ]
>> [U]   == net-misc/youtube-dl (2013.11.25.1@26.11.2013; (~)2013.12.11.2 ->
>> (~)2013.12.17.2): Download videos from YouTube.com (and mores sites...)
>> [U]   == sys-libs/timezone-data (2013h@20.11.2013; (~)2013h -> (~)2013i):
>> Timezone data (/usr/share/zoneinfo) and utilities (tzselect/zic/zdump)
>> [ ... ]
>> # emerge -avDu @world
>>
>> These are the packages that would be merged, in order:
>>
>> Calculating dependencies... done!
>> [ebuild     U  ] sys-libs/timezone-data-2013i [2013h] USE="-nls" 383 kB
>> [ebuild     U  ] dev-libs/libmemcached-1.0.17 [1.0.14] USE="libevent -debug
>> -hsieh -static-libs" 0 kB
>>
>> Total: 2 packages (2 upgrades), Size of downloads: 383 kB
>>
>> Would you like to merge these packages? [Yes/No]
>> #
>>
>> =====
>>
>> There are I think over 100 packages to be updated in total, including the
>> whole KDE.
>>
>> When I specify a package instead of @world, it seems to work correctly:
>>
>> =====
>> # emerge -avDu kdm
>>
>> These are the packages that would be merged, in order:
>>
>> Calculating dependencies... done!
>> [ebuild     U  ] sys-libs/timezone-data-2013i [2013h] USE="-nls" 383 kB
>> [ebuild     U  ] kde-base/kcheckpass-4.11.4:4 [4.10.5:4] USE="pam (-aqua)
>> -debug" 13,555 kB
>> [ebuild     U  ] kde-base/libkworkspace-4.11.4:4 [4.10.5:4] USE="(-aqua)
>> -debug" 0 kB
>> [ebuild     U  ] kde-base/libkonq-4.12.0:4 [4.10.5:4] USE="(-aqua) -debug
>> {-test}" 2,463 kB
>> [ebuild     U  ] kde-base/kdesu-4.12.0:4 [4.10.5:4] USE="(-aqua) -debug
>> -handbook" 7,667 kB
>> [ebuild     U  ] kde-base/kdepasswd-4.12.0:4 [4.10.5:4] USE="(-aqua) -debug
>> -handbook" 0 kB
>> [ebuild     U  ] kde-base/kdm-4.11.4:4 [4.10.5-r1:4] USE="consolekit pam
>> (-aqua) -debug -handbook -kerberos -systemd%" 0 kB
>>
>> Total: 7 packages (7 upgrades), Size of downloads: 24,067 kB
>>
>> Would you like to merge these packages? [Yes/No]
>> =====
>>
>> I rebuilt portage to no avail.
>> What can it be or should I file a bug?
>>
>> The output of `emerge --info` is attached.
>
> What is the contents of /var/lib/portage/world?
>

Hm, really, it's almost empty except for the last packages I have added 
yesterday... So that's clearly not an emerge bug, but ... Could anything 
mess it up?
I have copied the system to a new HDD recently and done an `emerge 
@world`, too, and everything went OK.



-- 
Regards,
Yuri K. Shatroff


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] emerge BUG?
  2013-12-20  9:47   ` Yuri K. Shatroff
@ 2013-12-20  9:53     ` Neil Bothwick
  2013-12-20 10:41       ` Yuri K. Shatroff
  2013-12-20 10:35     ` Alexey Mishustin
  1 sibling, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2013-12-20  9:53 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 825 bytes --]

On Fri, 20 Dec 2013 13:47:25 +0400, Yuri K. Shatroff wrote:

> > What is the contents of /var/lib/portage/world?

> Hm, really, it's almost empty except for the last packages I have added 
> yesterday... So that's clearly not an emerge bug, but ... Could
> anything mess it up?

Plenty, with the favourite being user error. If the packages aren't in
world nor depended on by something n world, portage will not upgrade them.

> I have copied the system to a new HDD recently and done an `emerge 
> @world`, too, and everything went OK.

OK as in everything you expected to build built? Or OK as in no error
messages appeared? Your first step would be to restore the world file
from the old drive, adding the entries from the current version.


-- 
Neil Bothwick

Who messed with my anti-paranoia shot?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] emerge BUG?
  2013-12-20  9:47   ` Yuri K. Shatroff
  2013-12-20  9:53     ` Neil Bothwick
@ 2013-12-20 10:35     ` Alexey Mishustin
  2013-12-20 10:50       ` Yuri K. Shatroff
  1 sibling, 1 reply; 12+ messages in thread
From: Alexey Mishustin @ 2013-12-20 10:35 UTC (permalink / raw
  To: gentoo-user

2013/12/20 Yuri K. Shatroff <yks-uno@yandex.ru>:
> 20.12.2013 13:30, Alexey Mishustin пишет:

>> What is the contents of /var/lib/portage/world?
>>
>
> Hm, really, it's almost empty except for the last packages I have added
> yesterday... So that's clearly not an emerge bug, but ... Could anything
> mess it up?
> I have copied the system to a new HDD recently

Including /var?

> and done an `emerge @world`,
> too, and everything went OK.

If the correct version of the world file is lost, you may want to try
to regenerate it with `regenworld'. This utility will search old
emerge log files (did you copy it from old HDD?) If old emerge log
files are lost too, then the script from [1] could help to recover
some (major) part of the world file entries.

[1] http://forums.gentoo.org/viewtopic-t-869667.html

-- 
Regards,
Alex


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] emerge BUG?
  2013-12-20  9:53     ` Neil Bothwick
@ 2013-12-20 10:41       ` Yuri K. Shatroff
  2013-12-20 11:19         ` Neil Bothwick
  0 siblings, 1 reply; 12+ messages in thread
From: Yuri K. Shatroff @ 2013-12-20 10:41 UTC (permalink / raw
  To: gentoo-user

20.12.2013 13:53, Neil Bothwick пишет:
> On Fri, 20 Dec 2013 13:47:25 +0400, Yuri K. Shatroff wrote:
>
>>> What is the contents of /var/lib/portage/world?
>
>> Hm, really, it's almost empty except for the last packages I have added
>> yesterday... So that's clearly not an emerge bug, but ... Could
>> anything mess it up?
>
> Plenty, with the favourite being user error. If the packages aren't in
> world nor depended on by something n world, portage will not upgrade them.
>
>> I have copied the system to a new HDD recently and done an `emerge
>> @world`, too, and everything went OK.
>
> OK as in everything you expected to build built? Or OK as in no error
> messages appeared?

The former. When I do an eix-sync, I expect that emerge -Du @world 
updates every package listed with the U-mark.
There are no error messages anyway.

 > Your first step would be to restore the world file
> from the old drive, adding the entries from the current version.

I'll do this, but now I'm just wondering how I ended up with an empty 
world file.

-- 
Regards,
Yuri K. Shatroff


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] emerge BUG?
  2013-12-20 10:35     ` Alexey Mishustin
@ 2013-12-20 10:50       ` Yuri K. Shatroff
  2013-12-20 11:21         ` Neil Bothwick
  2013-12-20 18:21         ` [gentoo-user] " »Q«
  0 siblings, 2 replies; 12+ messages in thread
From: Yuri K. Shatroff @ 2013-12-20 10:50 UTC (permalink / raw
  To: gentoo-user



20.12.2013 14:35, Alexey Mishustin пишет:
> 2013/12/20 Yuri K. Shatroff <yks-uno@yandex.ru>:
>> 20.12.2013 13:30, Alexey Mishustin пишет:
>
>>> What is the contents of /var/lib/portage/world?
>>>
>>
>> Hm, really, it's almost empty except for the last packages I have added
>> yesterday... So that's clearly not an emerge bug, but ... Could anything
>> mess it up?
>> I have copied the system to a new HDD recently
>
> Including /var?

Yes, I have /var on root fs and just rsync'ed.

>> and done an `emerge @world`,
>> too, and everything went OK.
>
> If the correct version of the world file is lost, you may want to try
> to regenerate it with `regenworld'. This utility will search old
> emerge log files (did you copy it from old HDD?) If old emerge log
> files are lost too, then the script from [1] could help to recover
> some (major) part of the world file entries.
>
> [1] http://forums.gentoo.org/viewtopic-t-869667.html
>

Thanks, I think a pretty easy way to regenerate @world is to edit the 
output of `emerge -pv --deplean`. At least I'm going to try this.

-- 
Regards,
Yuri K. Shatroff


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] emerge BUG?
  2013-12-20 10:41       ` Yuri K. Shatroff
@ 2013-12-20 11:19         ` Neil Bothwick
  2013-12-20 11:57           ` Yuri K. Shatroff
  0 siblings, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2013-12-20 11:19 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1135 bytes --]

On Fri, 20 Dec 2013 14:41:39 +0400, Yuri K. Shatroff wrote:

> >> I have copied the system to a new HDD recently and done an `emerge
> >> @world`, too, and everything went OK.  
> >
> > OK as in everything you expected to build built? Or OK as in no error
> > messages appeared?  
> 
> The former. When I do an eix-sync, I expect that emerge -Du @world 
> updates every package listed with the U-mark.
> There are no error messages anyway.

That shows nothing, except that the packages it did update had no errors.
You haven't said whether it emerged everything it should have, which it
probably did not.

>  > Your first step would be to restore the world file
> > from the old drive, adding the entries from the current version.  
> 
> I'll do this, but now I'm just wondering how I ended up with an empty 
> world file.

Did you copy the original over in the first place? Did you try adding
something to it and used > instead of >> (you shouldn't do either, use
emerge -n, but people do).


-- 
Neil Bothwick

"If you can't explain it simply, you don't understand it well enough."
 (Albert Einstein)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] emerge BUG?
  2013-12-20 10:50       ` Yuri K. Shatroff
@ 2013-12-20 11:21         ` Neil Bothwick
  2013-12-20 12:09           ` Yuri K. Shatroff
  2013-12-20 18:21         ` [gentoo-user] " »Q«
  1 sibling, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2013-12-20 11:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

On Fri, 20 Dec 2013 14:50:47 +0400, Yuri K. Shatroff wrote:

> Thanks, I think a pretty easy way to regenerate @world is to edit the 
> output of `emerge -pv --deplean`. At least I'm going to try this.

That will add dependencies to world, which is a bad thing. You can use
depclean to produce a list and then remove everything but the software
you actually use. Then pass that list to emerge -n.


-- 
Neil Bothwick

Windows Error:01F Reserved for future mistakes.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] emerge BUG?
  2013-12-20 11:19         ` Neil Bothwick
@ 2013-12-20 11:57           ` Yuri K. Shatroff
  0 siblings, 0 replies; 12+ messages in thread
From: Yuri K. Shatroff @ 2013-12-20 11:57 UTC (permalink / raw
  To: gentoo-user



20.12.2013 15:19, Neil Bothwick пишет:
> On Fri, 20 Dec 2013 14:41:39 +0400, Yuri K. Shatroff wrote:
>
>>>> I have copied the system to a new HDD recently and done an `emerge
>>>> @world`, too, and everything went OK.
>>>
>>> OK as in everything you expected to build built? Or OK as in no error
>>> messages appeared?
>>
>> The former. When I do an eix-sync, I expect that emerge -Du @world
>> updates every package listed with the U-mark.
>> There are no error messages anyway.
>
> That shows nothing, except that the packages it did update had no errors.
> You haven't said whether it emerged everything it should have, which it
> probably did not.
>
>>   > Your first step would be to restore the world file
>>> from the old drive, adding the entries from the current version.
>>
>> I'll do this, but now I'm just wondering how I ended up with an empty
>> world file.
>
> Did you copy the original over in the first place? Did you try adding
> something to it and used > instead of >> (you shouldn't do either, use
> emerge -n, but people do).

No, I never had to touch the world file directly (until today), feeling 
that emerge {-n|-1} is enough. I've even forgotten that it exists :)


-- 
Regards,
Yuri K. Shatroff


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [gentoo-user] emerge BUG?
  2013-12-20 11:21         ` Neil Bothwick
@ 2013-12-20 12:09           ` Yuri K. Shatroff
  0 siblings, 0 replies; 12+ messages in thread
From: Yuri K. Shatroff @ 2013-12-20 12:09 UTC (permalink / raw
  To: gentoo-user

20.12.2013 15:21, Neil Bothwick пишет:
> On Fri, 20 Dec 2013 14:50:47 +0400, Yuri K. Shatroff wrote:
>
>> Thanks, I think a pretty easy way to regenerate @world is to edit the
>> output of `emerge -pv --deplean`. At least I'm going to try this.
>
> That will add dependencies to world, which is a bad thing. You can use
> depclean to produce a list and then remove everything but the software
> you actually use. Then pass that list to emerge -n.

Thank you, Neil. That's what I did. (Though I actually thought before 
that emerge --depclean shows only top-level packages i.e. those without 
any directly dependent packages. And in fact it shows the whole subtrees.)

I'll be more careful now.

-- 
Regards,
Yuri K. Shatroff


^ permalink raw reply	[flat|nested] 12+ messages in thread

* [gentoo-user] Re: emerge BUG?
  2013-12-20 10:50       ` Yuri K. Shatroff
  2013-12-20 11:21         ` Neil Bothwick
@ 2013-12-20 18:21         ` »Q«
  1 sibling, 0 replies; 12+ messages in thread
From: »Q« @ 2013-12-20 18:21 UTC (permalink / raw
  To: gentoo-user

On Fri, 20 Dec 2013 14:50:47 +0400
"Yuri K. Shatroff" <yks-uno@yandex.ru> wrote:

> 
> 
> 20.12.2013 14:35, Alexey Mishustin пишет:
> > 2013/12/20 Yuri K. Shatroff <yks-uno@yandex.ru>:
> >> 20.12.2013 13:30, Alexey Mishustin пишет:
> >
> >>> What is the contents of /var/lib/portage/world?
> >>>
> >>
> >> Hm, really, it's almost empty except for the last packages I have
> >> added yesterday... So that's clearly not an emerge bug, but ...
> >> Could anything mess it up?
> >> I have copied the system to a new HDD recently
> >
> > Including /var?
> 
> Yes, I have /var on root fs and just rsync'ed.
> 
> >> and done an `emerge @world`,
> >> too, and everything went OK.
> >
> > If the correct version of the world file is lost, you may want to
> > try to regenerate it with `regenworld'. This utility will search old
> > emerge log files (did you copy it from old HDD?) If old emerge log
> > files are lost too, then the script from [1] could help to recover
> > some (major) part of the world file entries.
> >
> > [1] http://forums.gentoo.org/viewtopic-t-869667.html
> >
> 
> Thanks, I think a pretty easy way to regenerate @world is to edit the 
> output of `emerge -pv --deplean`. At least I'm going to try this.

FWLIW, that's the way I handle this kind of thing.  Run `emerge -pv
--depclean`, then if portage wants to remove anything I want installed,
`emerge --noreplace [atom1] [atom2] [...]`




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-12-20 18:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-20  8:24 [gentoo-user] emerge BUG? Yuri K. Shatroff
2013-12-20  9:30 ` Alexey Mishustin
2013-12-20  9:47   ` Yuri K. Shatroff
2013-12-20  9:53     ` Neil Bothwick
2013-12-20 10:41       ` Yuri K. Shatroff
2013-12-20 11:19         ` Neil Bothwick
2013-12-20 11:57           ` Yuri K. Shatroff
2013-12-20 10:35     ` Alexey Mishustin
2013-12-20 10:50       ` Yuri K. Shatroff
2013-12-20 11:21         ` Neil Bothwick
2013-12-20 12:09           ` Yuri K. Shatroff
2013-12-20 18:21         ` [gentoo-user] " »Q«

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox