Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435816 - Upgrading to >=dev-vcs/gitolite-3* breaks gitolite
Summary: Upgrading to >=dev-vcs/gitolite-3* breaks gitolite
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Christian Ruppert (idl0r)
Depends on:
Reported: 2012-09-22 07:55 UTC by Enno Gröper
Modified: 2012-09-22 15:20 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Enno Gröper 2012-09-22 07:55:11 UTC
Upgrading to =dev-vcs/gitolite-3.04 left my gitolite unusable.
There was no warning about this prior or after installing the new version.
Perhaps, because 'has_version "=dev-vcs/gitolite-2*"' does never work in _postinst_ (after merging the new version)?

Reproducible: Always

Steps to Reproduce:
1. emerge -uvD world
Actual Results:  
Only the notice about checking the correct homedir is shown.
Gitolite is in an unusable state.

Expected Results:  
Upgrade hints (specific to what was already done by the ebuild, see below) or at least a warning, that gitolite doesn't work anymore.
I would prefer a warning prior to installing.

My messages after upgrading retrieved from portage log:
>>> Messages generated by process 16668 on 2012-09-16 19:15:16 CEST for package dev-vcs/gitolite-3.04:

WARN: postinst

LOG: postinst
Please make sure that your 'git' user has the correct homedir (/var/lib/gitolite).
Especially if you're migrating from gitosis.
WARN: postinst


My steps to upgrade:
USE="tools" emerge -1av gitolite
su - git
check-g2-compat # showed no problems

mv .gitolite.rc old.grc
git clone repositories/gitolite-admin.git
rm -rf repositories/gitolite-admin.git/
mv .gitolite .gitolite.old # preserving hooks and logs
gitolite setup -a admin
gitolite push -f


To get "check-g2-compat" script you have to reemerge gitolite with tools USE-flag.
Using the gitolite upgrade guide, I could omit the code substep of step 1 and obviously the complete step 2 (installing g3)
Comment 1 Christian Ruppert (idl0r) gentoo-dev 2012-09-22 15:20:50 UTC
The warning will now be shown correctly when upgrading from 2.x.
Also: *ANY* user should read the ChangeLog or NEWS or whatever else when doing major upgrades.

The message warns the user and also show a link that points to the upgrade guide.