Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23791 - revdep-rebuild (gentoolkit-0.1.29) failed
Summary: revdep-rebuild (gentoolkit-0.1.29) failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal
Assignee: Stanislav Brabec
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-30 18:09 UTC by Masatomo Nakano (RETIRED)
Modified: 2003-07-09 09:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
revdep-rebuild (revdep-rebuild,10.86 KB, application/x-sh)
2003-07-01 12:38 UTC, Stanislav Brabec
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Masatomo Nakano (RETIRED) gentoo-dev 2003-06-30 18:09:10 UTC
I tested revdep-rebuild and I've found a bug.

I did
# revdep-rebuild  --soname libpq.so.3


then I debuged.
It caused REBUILD_GREP='^\()$'
Comment 1 Masatomo Nakano (RETIRED) gentoo-dev 2003-06-30 18:12:09 UTC
I debuged more..

It is the cause. The package is maskd.

emerge --nospinner --pretend --oneshot --nodeps $RAW_REBUILD_LIST

These are the packages that I would merge, in order:

Calculating dependencies
!!! all ebuilds that could satisfy "=dev-libs/libpq++-4.0" have been masked.

!!! Error calculating dependencies. Please correct.
Comment 2 Masatomo Nakano (RETIRED) gentoo-dev 2003-06-30 18:16:08 UTC
Sorry, I forgot the error message.

This is error message.

(snip)
  found /usr/bin/pgtclsh
  found /usr/bin/pg_restore
 done.
  (/root/.revdep-rebuild_23e5b2d4.3_rebuild)

Assigning files to ebuilds... done.
  (/root/.revdep-rebuild_23e5b2d4.4_ebuilds)

Evaluating package order...grep: Invalid regular expression
Comment 3 Stanislav Brabec 2003-07-01 09:28:11 UTC
Please copy contents of /root/.revdep-rebuild_23e5b2d4.3_rebuild as an attachment.
Comment 4 Stanislav Brabec 2003-07-01 09:33:57 UTC
Oops, now I see reason - portage rejects to merge it, so revdep-rebuild cannot resolve order.

Please try ACCEPT_KEYWORDS='~x86' revdep-rebuild ...

The bug is probably more general - if package is not longer in portage or it is hardmasked, revdep-rebuild fails. There is no simple solution for it, but it can at least do a order-ambiguous rebuild.
Comment 5 Masatomo Nakano (RETIRED) gentoo-dev 2003-07-01 09:54:58 UTC
I see...

But if there is no simple solution for it, I think it should say 
error messages in order that a user may not get confused.

Masatomo Nakano
Comment 6 Stanislav Brabec 2003-07-01 12:23:10 UTC
There is a simple work around - if order resolving fails, try to recompile packages in "random" order - for most cases it works. I will look for such "fix".
Comment 7 Stanislav Brabec 2003-07-01 12:38:52 UTC
Created attachment 14084 [details]
revdep-rebuild

There is a quick fix. I have not tested it yet for syntax, but it should check
for exit status of emerge, and if it fails, ignore its output.
Comment 8 Stanislav Brabec 2003-07-09 09:50:10 UTC
While fixing, I have also find another bug of this code - it sometimes forgets to recompile package. While analyzing following text:

[ebuild   R  ] gnome-extra/at-poke-0.1.0-r1
[ebuild    UD] gnome-extra/at-spi-1.0.2 [1.1.8]

it does not properly analyze [expression] at the end of second line.

Both bugs are now fixes in portage tree.