Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 12768
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage team <dev-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: nth <y.lesaint@free.fr>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
portage-2.0.46-r4.patch-004 patch fix + enhancement patch nth 2002-12-27 12:13 0000 15.28 KB Details | Diff
portage-2.0.46-r4.patch-004 stable for me patch nth 2002-12-28 13:13 0000 15.28 KB Details | Diff
continue-merging-portage-2.0.46-r4-patch-004.txt broken patch patch nth 2002-12-30 20:24 0000 15.28 KB Details | Diff
continue-merging-portage-2.0.46-r4-patch-004.txt still won't install circular dependencies that exists between glibc and binutils patch nth 2002-12-30 23:42 0000 15.28 KB Details | Diff
continue-merging-portage-2.0.46-r5-patch-005.txt portage-2.0.46-r5-patch patch nth 2002-12-31 01:49 0000 15.39 KB Details | Diff
continue-merging-portage-2.0.46-r5-patch-005.txt circular dependencies is working ? patch nth 2002-12-31 02:02 0000 15.39 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 12768 depends on: 14078 Show dependency tree
Bug 12768 blocks: 155723 184128 210077 216231
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2002-12-27 01:29 0000
Here is my concern, when i update my gentoo (emerge -u world) or install some
new packages, there always are some packages that do not merge `out of the box'.
And when this happens (means always), emerge() does not go on merging the other
packages (those that could be merged).

  So i have added --retry option to emerge :
    - Compile all packages before exiting, even if some do fail.
    - Retry to compile failed packages if some packages have been built
successfully (it works sometime).
    - Still take care of dependencies and does not break previous fonctionnalities.

  I have made a patch for sys-apps/portage-2.0.46-r4, you can apply it from
portage main directory (the one containing bin/, pym/, ...) with `patch -p1'.
  The patch is here -->
http://perso.wanadoo.fr/y.lesaint/gnu/portage/portage-2.0.46-r4.patch
  It is an ascii file, not an html one.

  The patch worked for me, i have only tried updating and merging new packages.
But i think it should not affect other functionnalities.

  Whatever you decide, please :
    - I am available at y.lesaint@free.fr
    - email me about your decision
    - forgive my bad english

  Truly yours, happy new year !


  Nth.

------- Comment #1 From Martin Holzer (RETIRED) 2002-12-27 08:05:18 0000 -------
*** Bug 12163 has been marked as a duplicate of this bug. ***

------- Comment #2 From nth 2002-12-27 12:13:45 0000 -------
Created an attachment (id=6781) [details]
patch fix + enhancement


new --retry and --firstfail options, verbose now show currently merging
packages

See http://perso.wanadoo.fr/y.lesaint/gnu/portage/portage-2.0.46-r4.patch for
any consideration about this patch.

------- Comment #3 From nth 2002-12-28 13:13:02 0000 -------
Created an attachment (id=6817) [details]
stable for me


 Patch seems like stable to me, but i do not use every portage
functionnality. I will not touch it unless an error is reported.

 If portage grows, i may adapt it to fit portage version.
Check http://perso.wanadoo.fr/y.lesaint/

------- Comment #4 From nth 2002-12-30 20:24:10 0000 -------
Created an attachment (id=6858) [details]
broken patch


  The patch is broken, it will not let you install circular dependencies that
would have been installed without it.

  I have noticed it with sys-devel/binutils-2.13.90.0.16-r1 and
sys-libs/glibc-2.3.1-r3 both referencing each other ... standard portage allows
installation and patched portage does not ...

 The broken patch and i are still available at
http://perso.wanadoo.fr/y.lesaint/gnu/portage/ and y.lesaint@free.fr

------- Comment #5 From Richard Garand 2002-12-30 20:59:48 0000 -------
Does this check dependencies for each ebuild? If I try to merge a package but
one 
of its dependencies fails, then the package shouldn't be merged (I would still
want 
the other dependencies to be installed if possible though). 

------- Comment #6 From nth 2002-12-30 23:42:18 0000 -------
Created an attachment (id=6859) [details]
still won't install circular dependencies that exists between glibc and
binutils


  Very short answer:
    Yes it does

  Long answer:
    All packages that could be installed with their dependencies satisfied are
installed


  Here is how --retry works (briefly) :

  --retry makes passes :
    each pass walk through the would-be installed packages
      each package, if not already installed, is a `root package', is tried to
be merged
	if the merge successes, then the package is removed from the list of
packages to install
    if some packages were merged successfully, then another pass begins

  What are the `roots packages' ?
    see allroots(), in portage.py, ( class depgraph i think )
    a root package is a package that all packages it depends on are installed.


  But still, circular dependencie between glibc and binutils is really a pain
in the ass ...

------- Comment #7 From nth 2002-12-31 01:49:11 0000 -------
Created an attachment (id=6860) [details]
portage-2.0.46-r5-patch


 Patch for portage-2.0.46-r5-patch is out !

 And yes, "nice -n 5 emerge --retry --verbose -u world 2>&1 | tee $HOME/log"
is sooo cool :)p

------- Comment #8 From nth 2002-12-31 02:02:03 0000 -------
Created an attachment (id=6861) [details]
circular dependencies is working ?


 I do not know why, i think it has failed before, but i have rsync()ed, and now
it works ...

 By the way, if someone knows how i could tell me how to send message without
any attachment, it would be fair

------- Comment #9 From Martin Holzer (RETIRED) 2003-01-03 14:38:49 0000 -------
*** Bug 12362 has been marked as a duplicate of this bug. ***

------- Comment #10 From Martin Holzer (RETIRED) 2003-01-08 05:19:06 0000 -------
*** Bug 13477 has been marked as a duplicate of this bug. ***

------- Comment #11 From Martin Holzer (RETIRED) 2003-01-09 10:19:16 0000 -------
*** Bug 13575 has been marked as a duplicate of this bug. ***

------- Comment #12 From Martin Holzer (RETIRED) 2003-01-10 04:48:34 0000 -------
*** Bug 13627 has been marked as a duplicate of this bug. ***

------- Comment #13 From Martin Holzer (RETIRED) 2003-09-09 15:18:38 0000 -------
*** Bug 18141 has been marked as a duplicate of this bug. ***

------- Comment #14 From SpanKY 2004-02-06 07:12:00 0000 -------
*** Bug 40565 has been marked as a duplicate of this bug. ***

------- Comment #15 From Ole Tange 2004-02-10 07:40:56 0000 -------
Workaround:

To emulate the make -k functionality you can do:

emerge -kbvu world
emerge --resume --skipfirst -kubv world
emerge --resume --skipfirst -kubv world
emerge --resume --skipfirst -kubv world
emerge --resume --skipfirst -kubv world
...

It is not pretty but seems to work

------- Comment #16 From SpanKY 2004-02-16 08:34:43 0000 -------
*** Bug 41793 has been marked as a duplicate of this bug. ***

------- Comment #17 From SpanKY 2005-03-19 13:55:53 0000 -------
*** Bug 85937 has been marked as a duplicate of this bug. ***

------- Comment #18 From Jakub Moc (RETIRED) 2005-07-21 07:56:54 0000 -------
*** Bug 99801 has been marked as a duplicate of this bug. ***

------- Comment #19 From Alec Warner 2005-08-08 05:54:16 0000 -------
*** Bug 20779 has been marked as a duplicate of this bug. ***

------- Comment #20 From Matt T. Proud 2005-09-01 14:43:15 0000 -------
Pardon my asking, for I do not intend to spam, but are #12768 and #68944
duplicate bugs to an extent?

------- Comment #21 From Jakub Moc (RETIRED) 2005-10-02 05:00:41 0000 -------
*** Bug 68944 has been marked as a duplicate of this bug. ***

------- Comment #22 From SpanKY 2005-11-11 07:02:37 0000 -------
*** Bug 112162 has been marked as a duplicate of this bug. ***

------- Comment #23 From Richard Garand 2005-11-11 10:51:35 0000 -------
This is a pretty popular one (understandably)... it doesn't take 3 years to 
write a few lines of code, does it?

------- Comment #24 From Alec Warner 2005-11-11 15:23:28 0000 -------
(In reply to comment #23)
> This is a pretty popular one (understandably)... it doesn't take 3 years to 
> write a few lines of code, does it?

If it were as simple as "a few lines of code" then this would be done by now.
It's being worked on ( hence it still being open and not RESOLVED LATER ), so 
either submit patches or wait patiently for someone to write it. 

------- Comment #25 From Richard Garand 2005-11-18 10:15:41 0000 -------
It's not a problem for me anymore, but it's a little strange to still be 
getting emails about it when I can't imagine what kind of architecture would 
make this take more than a day for someone who knows the system... I'm sure 
they have lots of other things that could benefit from their time, but since 
this bug was reported most significant upgrades that I tried to do failed 
because of it; the only way to get close to completing them is to upgrade 
individual packages until only the broken ones and their dependencies remain. 

But maybe that's not such a bad thing, considering what usually happens when 
you do manage to upgrade 30 to 50 packages all at once :)

------- Comment #26 From SpanKY 2005-12-03 09:42:38 0000 -------
*** Bug 114351 has been marked as a duplicate of this bug. ***

------- Comment #27 From Jakub Moc (RETIRED) 2006-03-22 09:48:58 0000 -------
*** Bug 127199 has been marked as a duplicate of this bug. ***

------- Comment #28 From Jakub Moc (RETIRED) 2006-11-07 03:19:58 0000 -------
*** Bug 154336 has been marked as a duplicate of this bug. ***

------- Comment #29 From Zac Medico 2006-11-07 03:23:23 0000 -------
*** Bug 153763 has been marked as a duplicate of this bug. ***

------- Comment #30 From Jakub Moc (RETIRED) 2007-11-21 22:18:39 0000 -------
*** Bug 199927 has been marked as a duplicate of this bug. ***

------- Comment #31 From Zac Medico 2008-06-27 07:53:22 0000 -------
I've added a new --keep-going option. This uses some of the same code that's
used for emerge --resume. When a failure occurs, dependencies are recalculated
for remaining packages and any with unsatisfied dependencies are automatically
dropped.

------- Comment #32 From Pacho Ramos 2008-06-27 10:41:43 0000 -------
(In reply to comment #31)
> I've added a new --keep-going option. This uses some of the same code that's
> used for emerge --resume. When a failure occurs, dependencies are recalculated
> for remaining packages and any with unsatisfied dependencies are automatically
> dropped.
> 

Thanks a lot :-D

------- Comment #33 From Zac Medico 2008-07-23 07:53:51 0000 -------
This is fixed in 2.2_rc2.

------- Comment #34 From Pacho Ramos 2008-07-23 09:27:58 0000 -------
Thanks a lot for your great work, seems that "Release Notes" for portage-2.2
will be huge :-D

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug