Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156736 - rep-rebuild-0.1_alpha1 (new ebuild)
Summary: rep-rebuild-0.1_alpha1 (new ebuild)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2006-11-30 16:07 UTC by Martino Dell'Ambrogio
Modified: 2010-10-15 11:13 UTC (History)
4 users (show)

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


Attachments
app-portage/rep-rebuild new ebuild (rep-rebuild-0.1_alpha1.ebuild,637 bytes, text/plain)
2006-11-30 16:12 UTC, Martino Dell'Ambrogio
Details
Patch to use dev-perl/PortageXS instead of eix (pxs.patch,638 bytes, patch)
2006-12-01 00:56 UTC, Christian Hartmann (RETIRED)
Details | Diff
rep-rebuild-0.1_alpha2 ebuild (rep-rebuild-0.1_alpha2.ebuild,652 bytes, text/plain)
2006-12-01 05:28 UTC, Martino Dell'Ambrogio
Details
rep-rebuild-0.1_alpha3 ebuild (rep-rebuild-0.1_alpha3.ebuild,652 bytes, text/plain)
2006-12-04 13:05 UTC, Martino Dell'Ambrogio
Details
rep-rebuild CVS ebuild (rep-rebuild-9999.ebuild,784 bytes, text/plain)
2006-12-04 13:08 UTC, Martino Dell'Ambrogio
Details
patch (rep-rebuild.patch,535 bytes, patch)
2008-01-07 22:41 UTC, Alexey Shvetsov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martino Dell'Ambrogio 2006-11-30 16:07:14 UTC
Best description is a man page raw copy:

----------------------------------------------------------------------

NAME
       rep-rebuild - Gentoo: SVN/CVS packages rebuilder

SYNOPSIS
       rep-rebuild [OPTIONS] [--] [EMERGE OPTIONS]

DESCRIPTION
       Perl  script  to  rebuild  Gentoo's Portage SVN/CVS installed packages,
       taking care of dependencies and emerge ordering.

       Gentoo Portage doesn't care about an SVN/CVS package's repository being
       updated,  and everyone needs to check manually when a package's reposi-
       tory has been updated, check the dependencies and rebuild manually  all
       the packages in the right order.

       This  program  will  avoid the second task. In a future release it will
       probably check if a new SVN/CVS revision is there before emerging.

       It is inspired to revdep-rebuild from Gentoo's portage utilities.

OPTIONS
       -nc | --nocolor
              turn off colored output (this  option  is  also  passed  to  the
              emerge command)

       -d | --debug
              print  debug  messages  about  packages, their dependencies, and
              follow the dependencies algotithm (all in realtime)

       -h | --help
              print help message and quit

       -V | --version
              print version and quit

              All other options are passed to the emerge command

----------------------------------------------------------------------

I hope you like it as I do... I will surely improve it, maybe with your help.
Comment 1 Martino Dell'Ambrogio 2006-11-30 16:12:46 UTC
Created attachment 103069 [details]
app-portage/rep-rebuild new ebuild
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-11-30 17:14:26 UTC
Would be really nice if this wouldn't depend on eix... ;)
Comment 3 Christian Hartmann (RETIRED) gentoo-dev 2006-12-01 00:56:58 UTC
Created attachment 103099 [details, diff]
Patch to use dev-perl/PortageXS instead of eix
Comment 4 Martino Dell'Ambrogio 2006-12-01 05:28:09 UTC
Created attachment 103120 [details]
rep-rebuild-0.1_alpha2 ebuild

Thanks Christian for pointing me to PortageXS and providing the patch.
Comment 5 Martino Dell'Ambrogio 2006-12-04 13:05:54 UTC
Created attachment 103347 [details]
rep-rebuild-0.1_alpha3 ebuild
Comment 6 Martino Dell'Ambrogio 2006-12-04 13:08:08 UTC
Created attachment 103348 [details]
rep-rebuild CVS ebuild

This is the CVS version. It shouldn't hurt.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-12-12 04:29:30 UTC
Nice utility, added slightly modified ebuilds to sunrise-overlay:

http://gentoo-sunrise.org/svn/reviewed/app-portage/rep-rebuild/
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-12-13 11:30:24 UTC
BTW, this handles PDEPEND in a wrong way; those should be emerged _after_ the ebuild that PDEPENDs on those packages, not _before_.
Comment 9 Martino Dell'Ambrogio 2006-12-14 05:57:07 UTC
(In reply to comment #8)
> BTW, this handles PDEPEND in a wrong way; those should be emerged _after_ the
> ebuild that PDEPENDs on those packages, not _before_.

I've already seen this huge bug, and as a dirty workaround I comment out every PDEPEND occurrence in every SVN ebuild. This won't probably hurt because for a reinstall those depends are useless.

But I really need someone to fix this, and maybe to find a better method to find all dependencies of a package (equery depgraph is dirty, slow and, we said, broken because of PDEPEND).
Does Christian Hartmann is going to introduce those functions to his PortageXS?
Does sed/grep on ebuilds (which names would be retrieved by equery anyway) would be the best solution this far?
Comment 10 Christian Hartmann (RETIRED) gentoo-dev 2007-01-06 19:32:14 UTC
I most probably will some day but currently I honestly just do not have the time to.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-01-26 19:20:39 UTC
This got _totally_ broken for me w/ latest gentoolkit; only produces a  traceback for every single package found... :(

  File "/usr/bin/equery", line 1744, in ?
    cmd.perform(local_opts)
  File "/usr/bin/equery", line 687, in perform
    self._graph(pkg, opts, stats, 0, [], "")
  File "/usr/bin/equery", line 710, in _graph
    pkg = gentoolkit.find_best_match(x[0] + cpv)
  File "/usr/lib/gentoolkit/pym/gentoolkit/helpers.py", line 60, in find_best_match
    cat,pkg,ver,rev = split_package_name(search_key)
  File "/usr/lib/gentoolkit/pym/gentoolkit/helpers.py", line 135, in split_package_name
    r = portage.catpkgsplit(name)
  File "/usr/lib/portage/pym/portage_versions.py", line 288, in catpkgsplit
    raise InvalidData("Invalid category in %s" %mydata )
portage_exception.InvalidData: Invalid category in >=dev-util/pkgconfig-0.5
Comment 12 Martino Dell'Ambrogio 2007-01-26 21:10:57 UTC
(In reply to comment #11)
> This got _totally_ broken for me w/ latest gentoolkit; only produces a 
> traceback for every single package found... :(
[...]

I noticed. The problem is, equery depgraph is broken.
I hope to have enough time to debug this soon.

I will probably fix the PDEPEND bug in the same release.
Comment 13 Christian Hartmann (RETIRED) gentoo-dev 2007-05-05 20:18:07 UTC
Progress?
Comment 14 Jakub Moc (RETIRED) gentoo-dev 2007-05-05 20:20:34 UTC
(In reply to comment #13)
> Progress?
> 

Well, none, as it relies on third-party stuff that's FUBARed at the moment. :(
Comment 15 Christian Hartmann (RETIRED) gentoo-dev 2007-05-05 20:25:47 UTC
equery depgraph works for me.. that why I'm asking.
Comment 16 Martino Dell'Ambrogio 2007-05-06 21:43:11 UTC
(In reply to comment #13)
> Progress?
> 

I'm sorry but I'm not able to work on this right now and probably for the next few months, because all my stuff has been seized by the police... I'm under investigation for computer crimes, it's a long story...

If someone is interested on fixing or progressing my project please do it, I would give him access to the project on sf.net.
Comment 17 Alexey Shvetsov archtester gentoo-dev 2008-01-07 22:41:53 UTC
Created attachment 140419 [details, diff]
patch

patch to make rep-rebuild work with current portage and utility state =)
Comment 18 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-01-15 19:42:33 UTC
In my opinion further development or patching this package doesn't make sense as portage-2.2 comes with @live-rebuild set doing the same.
Comment 19 David Abbott (RETIRED) gentoo-dev 2010-01-15 19:52:35 UTC
I closed the bug in error The package is still only in sunrise overlay.
Comment 20 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-07-07 22:05:21 UTC
I've removed the package from Sunrise overlay as it was unmaintained and masked since Nov 2007. If someone is willing to takeover the project, we will be glad to review new ebuilds for it. Otherwise, I suggest closing the bug.

As an alternative, I suggest upgrading to =sys-apps/portage-2.2* or using app-portage/smart-live-rebuild (in Sunrise).
Comment 21 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2010-10-15 11:13:36 UTC
The project is long dead and no one seems to show an interest in reviving it. Closing as WONTFIX.