Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84015 - epkgmove bugs
Summary: epkgmove bugs
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords:
: 63755 85796 (view as bug list)
Depends on:
Blocks: 84238
  Show dependency tree
 
Reported: 2005-03-03 15:32 UTC by Ian Leitch (RETIRED)
Modified: 2006-05-26 13:48 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Leitch (RETIRED) gentoo-dev 2005-03-03 15:32:50 UTC
All known bugs affecting epkgmove-1.3.1.
Comment 1 Ciaran McCreesh 2005-03-03 15:37:33 UTC
* If we're updating deps for multiple versions of the same packages, this should all be done in one commit.
* When updating deps, Manifest is not committed properly.
* Packages with common name prefixes aren't handled correctly. For example, sys-apps/at and sys-apps/attr.
Comment 2 Ian Leitch (RETIRED) gentoo-dev 2005-03-04 04:36:31 UTC
* Pre-move checks for conflict files, plus checks during and after commits.
Comment 3 Ian Leitch (RETIRED) gentoo-dev 2005-03-04 05:33:18 UTC
* Add support for use.local.desc
Comment 4 Tuan Van (RETIRED) gentoo-dev 2005-03-04 21:46:45 UTC
I don't know if this is bug or not, just want bring to your attention.
from mail-filter/dspam/ChangeLog
*dspam-3.4_rc1 (04 Mar 2005)

  04 Mar 2005; Ciaran McCreesh <ciaranm@gentoo.org> dspam-3.2.4.ebuild,
  dspam-3.2.6.ebuild, dspam-3.2.7.ebuild, dspam-3.3.11.ebuild,
  dspam-3.3.8.ebuild, dspam-3.4_beta1.ebuild, dspam-3.4_beta2.ebuild,
  dspam-3.4_beta3.ebuild, dspam-3.4_rc1.ebuild, dspam-3.4_rc2.ebuild:
  Move sys-apps/cronbase -> sys-process/cronbase

*dspam-3.4_rc2 (01 Mar 2005)

  01 Mar 2005; Lim Swee Tat <st_lim@gentoo.org> +dspam-3.4_rc2.ebuild:
  Version bump.  Need to include an init.d daemon for the --enable-daemon optio$

It looks like st_lim missed an entry for dspam-3.4_rc1 and epkgmove pick it up wrongly. I noticed this when I tried
# emerge mail-filter/dspam -pl

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

Calculating dependencies ...done!
[ebuild     U ] mail-filter/dspam-3.4_rc2 [3.4_rc1]

I expect to see the ChangeLog entry for mail-filter/dspam-3.4_rc2, for example:

# emerge net-libs/courier-authlib -pl

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

Calculating dependencies ...done!
[ebuild     U ] net-libs/courier-authlib-0.55 [0.54.20050224]

*courier-authlib-0.55

  04 Mar 2005; Scott W Taylor <swtaylor@gentoo.org>
  +courier-authlib-0.55.ebuild:
  bump
Comment 5 Ciaran McCreesh 2005-03-05 10:21:05 UTC
Hrm, I moved dspam manually. Did I screw it up?
Comment 6 Ciaran McCreesh 2005-03-05 14:50:30 UTC
* Fails horribly with fetch restrict packages
Comment 7 Ciaran McCreesh 2005-03-06 09:41:54 UTC
* cvs upd in profiles/ is needed.
Comment 8 Ian Leitch (RETIRED) gentoo-dev 2005-03-12 16:15:06 UTC
Fixed in 1.3.99 (hopefuly):
   * Do dep updates package at a time (single commit)
   * Commit Manifest properly for dep updates
   * Handle common name prefixes
   * Pre-move checks for conflicts
   * Support for use.local.desc
   * RESTRICT=fetch checking
Comment 9 Ian Leitch (RETIRED) gentoo-dev 2005-03-14 12:49:15 UTC
Bugs in 1.3.99:
   * ChangeLog headers not updated
   * Check target category is in profiles/categories
   * Regex allows for package names consisting entirely of numbers
   * Possible false positive when checking files for occurrences of package name.
     Somehwat ambiguous as the the files author could have mistakenly forgotten 
     the trailing whitespace after package name, causing a double flase positive. (harmless)
   * Check for common name prefixes when reading dependency info from metadata. (harmless)
Comment 10 Ciaran McCreesh 2005-03-15 09:46:31 UTC
Manifest still isn't committed properly when updating deps.
Comment 11 Ciaran McCreesh 2005-03-15 11:17:36 UTC
Kinda ugly output:

   * Updating dependents:
     ! gnome-applets:            
       >>> gnome-base/gnome-applets-2.10.0 \       >>> gnome-base/gnome-applets-2.4.2 \       >>> gnome-base/gnome-applets-2.6.2 \       >>> gnome-base/gnome-applets-2.8.0 \       >>> gnome-base/gnome-applets-2.8.1.1 \       >>> gnome-base/gnome-applets-2 8.2 -

Could use some newlines maybe?
Comment 12 Ian Leitch (RETIRED) gentoo-dev 2005-03-15 12:51:00 UTC
* Ask for new location when metadata apears to be incorrect
* Add --pretended option
Comment 13 Ian Leitch (RETIRED) gentoo-dev 2005-03-15 18:09:29 UTC
Are there any files in profiles/ that shouldn't be touched when replacing occurrences of the old catpkg with the new? 
Comment 14 Ciaran McCreesh 2005-03-16 08:19:01 UTC
Definitely shouldn't touch updates, in case a file gets moved twice.
Comment 15 Seemant Kulleen (RETIRED) gentoo-dev 2005-03-22 05:53:09 UTC
 * Checking for fetch restrictions... \!!! aux_get(): ebuild path for 'mail-client/mozilla-thunderbird-0.9-r1' not specified:
!!!            None

Traceback (most recent call last):
  File "/home/seemant/epkgmove-1.3.99.py", line 1271, in ?
    ThisPackage.perform_action()
  File "/home/seemant/epkgmove-1.3.99.py", line 307, in perform_action
    self._check_restrict_fetch()
  File "/home/seemant/epkgmove-1.3.99.py", line 417, in _check_restrict_fetch
    if self._cpv_restrict_fetch(dep):
  File "/home/seemant/epkgmove-1.3.99.py", line 441, in _cpv_restrict_fetch
    restrict = portage.db["/"]["porttree"].dbapi.aux_get(cpv, ["RESTRICT"])[0]
  File "/usr/lib/portage/pym/portage.py", line 5162, in aux_get
    raise KeyError, "'%(cpv)s' at %(path)s" % {"cpv":mycpv,"path":myebuild}
KeyError: "'mail-client/mozilla-thunderbird-0.9-r1' at None"

!!! ERROR: Eeek! Unhandled exception!
  ! This is a bug, please report it on bugs.gentoo.org
  ! and assign to port001@gentoo.org


when trying to move mozilla-launcher from net-www to www-client
Comment 16 Daniel Black (RETIRED) gentoo-dev 2005-03-24 04:09:04 UTC
*** Bug 63755 has been marked as a duplicate of this bug. ***
Comment 17 Ian Leitch (RETIRED) gentoo-dev 2005-04-26 12:02:29 UTC
*** Bug 85796 has been marked as a duplicate of this bug. ***
Comment 18 Ian Leitch (RETIRED) gentoo-dev 2005-05-25 10:05:31 UTC
Fixed locally:
* Commit Manifest correctly
* Use portage dep checking instead of searching /usr/portage/metadata/cache
* Check target category is in profiles/categories
* Check for common name prefixes when reading dependency info from metadata.
(Invalidated)
* Highlight entirety of expanded variables (${PX/-//})

Still to fix:
* Update ChangeLog header
* Check all files in profiles/ (sans updates/) for occurences of old catpkg
(including cvs up)
* Possible false positive when checking files for occurrences of package name.
* Regex allows for package names consisting entirely of numbers
* Check for outdated metadata (partialy completed)
Comment 19 Ian Leitch (RETIRED) gentoo-dev 2005-05-30 09:50:56 UTC
Fixed in 1.3.99.1:
    * Regex allows for package names consisting entirely of numbers
    * Check for outdated metadata
    * Update ChangeLog header

Get it here:
http://dev.gentoo.org/~port001/DevTools/epkgmove/Testing/epkgmove-1.3.99.1.py

Ciaran: Please use and abuse!

Will add support for scanning profiles/ tonight if I get time. 
Comment 20 Ian Leitch (RETIRED) gentoo-dev 2005-05-30 16:21:27 UTC
Hold off on 1.3.99.1, something is causing conflicts again. 1.3.99.2 will be
available tomorrow. 
Comment 21 Ian Leitch (RETIRED) gentoo-dev 2005-05-31 12:09:31 UTC
1.3.99.2:
    * No more conflicts and slightly improved digest regeneration
    * Support for profiles/
    * Minor improvements

.2 is now feature complete and only minor bug fixes and a little polish is
needed. Those will come in .3.

http://dev.gentoo.org/~port001/DevTools/epkgmove/Testing/epkgmove-1.3.99.2.py
Comment 22 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-06-05 15:10:16 UTC
port001: what bugs still remain that you know about?

I want to go ahead with the app-backup category split, and I definetly don't 
want to do the ~30 packages by hand.
Comment 23 Ian Leitch (RETIRED) gentoo-dev 2005-06-05 16:40:07 UTC
I know of only a few minor bugs, chances are you'll not even encounter them.

Having said that, it hasn't done a huge amount of moves and only fairly simple
ones at that.

Give 1.3.99.2 a go, just make sure to keep a close eye on the changes it makes.



Note to self: Batching would speed moves up a lot.
Comment 24 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-07-04 04:25:53 UTC
Ok let's see the problems found on sys-auth move: 
 
- epkgmove adds *~ files (backup files for kate and other editors) 
- doesn't seems to commit changes to profiles/ 
- has_version calls doesn't get updated 
- $DEPEND is not considered when calculating revdeps (swegener made a patch  
but I wasn't able to test it yet) 
- the move log (moves/Qx-200x) is committed *after* the old package is  
removed, leaving about 20 secs open for a possible breakage of the rsync tree) 
- when fixing files, it doesn't provide a choice to replace ${P} with  
${PN}-\${PV} (the first is resolved, so ${P} -> pam-${PV} for instance, where  
old ${P} was pam-0.77). 
 
Should be all. 
Comment 25 Jakub Moc (RETIRED) gentoo-dev 2006-05-23 10:56:36 UTC
Flameeyes, want this one? port001 is retired - Bug 26349.
Comment 26 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-26 13:48:12 UTC
Nah, at this point better by hand.