Re: [gentoo-user] emerge -ef world and eclean --destructive distfiles do not agree

2008-02-23 Thread Alan McKinnon
On Saturday 23 February 2008, Erik wrote:
 Alan McKinnon skrev:
  On Saturday 23 February 2008, Erik wrote:
  I am running
  emerge -ef world
  eclean --destructive distfiles'
  emerge -ef world
  eclean --destructive distfiles
  ...
 
  Each time eclean removes the following files:
   * Building file list for distfiles cleaning...
   * Cleaning distfiles...
   [ 258.9 K ] XML-LibXML-1.65.tar.gz
   [ 478.6 K ] klibc-1.5.8.tar.bz2
   [ 290.2 K ] libassuan-1.0.4.tar.bz2
   [  67.7 K ] mftrace-1.2.9.tar.gz
   [   9.2 M ] patch-2.6.24-rc7.bz2
   [ 243.4 K ] setuptools-0.6c7.tar.gz
   * Total space that has been freed in distfiles directory: 10.5 M
 
  Then emerge downloads them again. I had expected that those 2
  programs should agree on which files belong in the set of
  distfiles.
 
  What happens if you use 'emerge -uNDf world instead of 'emerge -ef
  world'
 
  -e is a special case and does not equate to the same thing as -uND

 emerge -uNDf world does nothing because the system is up to date.
 Even if all distfiles are missing, it does nothing (try to move the
 distfiles directory away while executing it). That command is
 supposed to download everything that is missing to update the
 system. And since the system is up to date, nothing is needed to
 update it and it will therefore not download anything.

 What I wanted was download everything that is missing to reinstall
 everything that is currently installed. That is what emerge -ef
 world should do. Then I wanted to remove everything that is not
 needed to reinstall everything that is currently installed. That is
 what eclean --destructive distfiles should do. Doing both should
 result in a set of distfiles that is what is needed and only what is
 needed to reinstall everything that is currently installed (assuming
 that the system is up to date). But since the 2 commands do not
 agree, something is broken somewhere.

from man emerge:

  --emptytree (-e)
  Reinstalls all world packages and their dependencies to 
the current USE specifications while dif-
  fering  from  the installed set of packages as little as 
possible.  You should run with --pretend
  first to make sure the result is what you expect.

There's that little bit about differing from the installed set of 
packages as little as possible. So obviously an --update 
and --emptytree can produce an (unstated) different list of actions to 
be taken, and emerge and eclean are both working correctly according to 
their design specs.

I think you are taking the wrong approach, and should be using -uNDF 
instead. -F fetches everything in src_uri
-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] emerge -ef world and eclean --destructive distfiles do not agree

2008-02-23 Thread Erik

forgottenwizard skrev:

On 02:41 Sat 23 Feb , Erik wrote:
  

Alan McKinnon skrev:

emerge -uNDf world does nothing because the system is up to date. Even if 
all distfiles are missing, it does nothing (try to move the distfiles 
directory away while executing it). That command is supposed to download 
everything that is missing to update the system. And since the system is 
up to date, nothing is needed to update it and it will therefore not 
download anything.


What I wanted was download everything that is missing to reinstall 
everything that is currently installed. That is what emerge -ef world 
should do. Then I wanted to remove everything that is not needed to 
reinstall everything that is currently installed. That is what eclean 
--destructive distfiles should do. Doing both should result in a set of 
distfiles that is what is needed and only what is needed to reinstall 
everything that is currently installed (assuming that the system is up to 
date). But since the 2 commands do not agree, something is broken 
somewhere.

Have you checked to see if the files deleted by eclean are the current
versions, or are they old? If they are the most recent you have
installed, then there is a problem with eclean. If not, then the problem
is with --fetchonly
  

I check with the file klibc-1.5.8.tar.bz2.
# emerge -up klibc

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

Calculating dependencies... done!
[ebuild U ] dev-libs/klibc-1.5.8 [1.5]

So it seems like klibc is outdated but emerge -uDNav world does not 
want want to update it!

# equery d klibc
[ Searching for packages depending on klibc... ]
sys-apps/v86d-0.1.3 (dev-libs/klibc)
localhost ~ # grep sys-apps/v86d /var/lib/portage/world
sys-apps/v86d

So sys-apps/v86d is in world and depends dev-libs/klibc, but yet emerge 
-uDNp world does not want to update dev-libs/klibc, like emerge -up 
dev-libs/klibc wants to!

--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] emerge -ef world and eclean --destructive distfiles do not agree

2008-02-23 Thread Alan McKinnon
On Saturday 23 February 2008, Erik wrote:

 I check with the file klibc-1.5.8.tar.bz2.
 # emerge -up klibc

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

 Calculating dependencies... done!
 [ebuild U ] dev-libs/klibc-1.5.8 [1.5]

 So it seems like klibc is outdated but emerge -uDNav world does not
 want want to update it!
 # equery d klibc
 [ Searching for packages depending on klibc... ]
 sys-apps/v86d-0.1.3 (dev-libs/klibc)
 localhost ~ # grep sys-apps/v86d /var/lib/portage/world
 sys-apps/v86d

 So sys-apps/v86d is in world and depends dev-libs/klibc, but yet
 emerge -uDNp world does not want to update dev-libs/klibc, like
 emerge -up dev-libs/klibc wants to!


This looks like a --bdeps situation. v86D DEPENDS on klibc, it does not 
RDEPEND on it, meaning that klibc does not need to be updated to 
*build* a new v86d.

v86d is in world so it will be updated because you told portage to 
always keep it up to date. klibc is not in world and a new updated 
klibc is not required to accomplish what you have asked to for - a 
complete update of every package that world expands to with 
dependencies taken into account.

Remember what world is - it's a list of packages that you have 
explicitly asked to be there. It is NOT a list of everything you have 
installed. I can think of two ways to accomplish what you are asking 
for

- use --with-bdeps y or include it in EMERGE_DEFAULT_OPTS
- put klibc in world

-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] emerge -ef world and eclean --destructive distfiles do not agree

2008-02-22 Thread Erik

I am running
emerge -ef world
eclean --destructive distfiles'
emerge -ef world
eclean --destructive distfiles
...

Each time eclean removes the following files:
* Building file list for distfiles cleaning...
* Cleaning distfiles...
[ 258.9 K ] XML-LibXML-1.65.tar.gz
[ 478.6 K ] klibc-1.5.8.tar.bz2
[ 290.2 K ] libassuan-1.0.4.tar.bz2
[  67.7 K ] mftrace-1.2.9.tar.gz
[   9.2 M ] patch-2.6.24-rc7.bz2
[ 243.4 K ] setuptools-0.6c7.tar.gz
* Total space that has been freed in distfiles directory: 10.5 M

Then emerge downloads them again. I had expected that those 2 programs 
should agree on which files belong in the set of distfiles.

--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] emerge -ef world and eclean --destructive distfiles do not agree

2008-02-22 Thread Alan McKinnon
On Saturday 23 February 2008, Erik wrote:
 I am running
 emerge -ef world
 eclean --destructive distfiles'
 emerge -ef world
 eclean --destructive distfiles
 ...

 Each time eclean removes the following files:
  * Building file list for distfiles cleaning...
  * Cleaning distfiles...
  [ 258.9 K ] XML-LibXML-1.65.tar.gz
  [ 478.6 K ] klibc-1.5.8.tar.bz2
  [ 290.2 K ] libassuan-1.0.4.tar.bz2
  [  67.7 K ] mftrace-1.2.9.tar.gz
  [   9.2 M ] patch-2.6.24-rc7.bz2
  [ 243.4 K ] setuptools-0.6c7.tar.gz
  * Total space that has been freed in distfiles directory: 10.5 M

 Then emerge downloads them again. I had expected that those 2
 programs should agree on which files belong in the set of distfiles.

What happens if you use 'emerge -uNDf world instead of 'emerge -ef 
world'

-e is a special case and does not equate to the same thing as -uND

-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] emerge -ef world and eclean --destructive distfiles do not agree

2008-02-22 Thread Dale

Alan McKinnon wrote:

On Saturday 23 February 2008, Erik wrote:
  

I am running
emerge -ef world
eclean --destructive distfiles'
emerge -ef world
eclean --destructive distfiles
...

Each time eclean removes the following files:
 * Building file list for distfiles cleaning...
 * Cleaning distfiles...
 [ 258.9 K ] XML-LibXML-1.65.tar.gz
 [ 478.6 K ] klibc-1.5.8.tar.bz2
 [ 290.2 K ] libassuan-1.0.4.tar.bz2
 [  67.7 K ] mftrace-1.2.9.tar.gz
 [   9.2 M ] patch-2.6.24-rc7.bz2
 [ 243.4 K ] setuptools-0.6c7.tar.gz
 * Total space that has been freed in distfiles directory: 10.5 M

Then emerge downloads them again. I had expected that those 2
programs should agree on which files belong in the set of distfiles.



What happens if you use 'emerge -uNDf world instead of 'emerge -ef 
world'


-e is a special case and does not equate to the same thing as -uND

  


I think I see it the same way he does.  If you do a rm -rf 
/usr/portage/distfiles/* and then do a emerge -ef world, then do the 
eclean again, it should not remove anything since everything there is 
needed to recompile everything in world and their dependencies.  It 
should also not have to redownload anything either.


Isn't patch part of system?  setuptools too?

Dale

:-)  :-) 
--

gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] emerge -ef world and eclean --destructive distfiles do not agree

2008-02-22 Thread Erik

Alan McKinnon skrev:

On Saturday 23 February 2008, Erik wrote:
  

I am running
emerge -ef world
eclean --destructive distfiles'
emerge -ef world
eclean --destructive distfiles
...

Each time eclean removes the following files:
 * Building file list for distfiles cleaning...
 * Cleaning distfiles...
 [ 258.9 K ] XML-LibXML-1.65.tar.gz
 [ 478.6 K ] klibc-1.5.8.tar.bz2
 [ 290.2 K ] libassuan-1.0.4.tar.bz2
 [  67.7 K ] mftrace-1.2.9.tar.gz
 [   9.2 M ] patch-2.6.24-rc7.bz2
 [ 243.4 K ] setuptools-0.6c7.tar.gz
 * Total space that has been freed in distfiles directory: 10.5 M

Then emerge downloads them again. I had expected that those 2
programs should agree on which files belong in the set of distfiles.

What happens if you use 'emerge -uNDf world instead of 'emerge -ef 
world'


-e is a special case and does not equate to the same thing as -uND  


emerge -uNDf world does nothing because the system is up to date. Even 
if all distfiles are missing, it does nothing (try to move the distfiles 
directory away while executing it). That command is supposed to 
download everything that is missing to update the system. And since 
the system is up to date, nothing is needed to update it and it will 
therefore not download anything.


What I wanted was download everything that is missing to reinstall 
everything that is currently installed. That is what emerge -ef world 
should do. Then I wanted to remov

--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] emerge -ef world and eclean --destructive distfiles do not agree

2008-02-22 Thread Erik

Alan McKinnon skrev:

On Saturday 23 February 2008, Erik wrote:
  

I am running
emerge -ef world
eclean --destructive distfiles'
emerge -ef world
eclean --destructive distfiles
...

Each time eclean removes the following files:
 * Building file list for distfiles cleaning...
 * Cleaning distfiles...
 [ 258.9 K ] XML-LibXML-1.65.tar.gz
 [ 478.6 K ] klibc-1.5.8.tar.bz2
 [ 290.2 K ] libassuan-1.0.4.tar.bz2
 [  67.7 K ] mftrace-1.2.9.tar.gz
 [   9.2 M ] patch-2.6.24-rc7.bz2
 [ 243.4 K ] setuptools-0.6c7.tar.gz
 * Total space that has been freed in distfiles directory: 10.5 M

Then emerge downloads them again. I had expected that those 2
programs should agree on which files belong in the set of distfiles.

What happens if you use 'emerge -uNDf world instead of 'emerge -ef 
world'


-e is a special case and does not equate to the same thing as -uND
  


emerge -uNDf world does nothing because the system is up to date. Even 
if all distfiles are missing, it does nothing (try to move the distfiles 
directory away while executing it). That command is supposed to 
download everything that is missing to update the system. And since 
the system is up to date, nothing is needed to update it and it will 
therefore not download anything.


What I wanted was download everything that is missing to reinstall 
everything that is currently installed. That is what emerge -ef world 
should do. Then I wanted to remove everything that is not needed to 
reinstall everything that is currently installed. That is what eclean 
--destructive distfiles should do. Doing both should result in a set of 
distfiles that is what is needed and only what is needed to reinstall 
everything that is currently installed (assuming that the system is up 
to date). But since the 2 commands do not agree, something is broken 
somewhere.

--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] emerge -ef world and eclean --destructive distfiles do not agree

2008-02-22 Thread forgottenwizard
On 02:41 Sat 23 Feb , Erik wrote:
 Alan McKinnon skrev:

 emerge -uNDf world does nothing because the system is up to date. Even if 
 all distfiles are missing, it does nothing (try to move the distfiles 
 directory away while executing it). That command is supposed to download 
 everything that is missing to update the system. And since the system is 
 up to date, nothing is needed to update it and it will therefore not 
 download anything.

 What I wanted was download everything that is missing to reinstall 
 everything that is currently installed. That is what emerge -ef world 
 should do. Then I wanted to remove everything that is not needed to 
 reinstall everything that is currently installed. That is what eclean 
 --destructive distfiles should do. Doing both should result in a set of 
 distfiles that is what is needed and only what is needed to reinstall 
 everything that is currently installed (assuming that the system is up to 
 date). But since the 2 commands do not agree, something is broken 
 somewhere.
 -- 
 gentoo-user@lists.gentoo.org mailing list



Have you checked to see if the files deleted by eclean are the current
versions, or are they old? If they are the most recent you have
installed, then there is a problem with eclean. If not, then the problem
is with --fetchonly

-- 
gentoo-user@lists.gentoo.org mailing list