Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 490662

Summary: dev-vcs/gitolite-3.5.3.1: "get_major_version: command not found" during pkg_postinst phase
Product: Gentoo Linux Reporter: Coacher <itumaykin+gentoo>
Component: [OLD] DevelopmentAssignee: Tim Harder <radhermit>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info gitolite

Description Coacher 2013-11-07 04:10:11 UTC
Hello.

During gitolite upgrade from 3.5.2 to 3.5.3.1 I've noticed the following message:

>>> Regenerating /etc/ld.so.cache...
>>> Original instance of package unmerged safely.
/var/cache/portage/portage/dev-vcs/gitolite-3.5.3.1/temp/environment: line 2480: get_major_version: command not found
 *
 * Please make sure that your 'git' user has the correct homedir (/var/lib/gitolite).
 * Especially if you're migrating from gitosis.
 *
>>> dev-vcs/gitolite-3.5.3.1 merged.

As you can see get_major_version() cannot be found for some reason. My guess is ebuild should inherit versionator eclass.

Please fix.

Reproducible: Always
Comment 1 Coacher 2013-11-07 04:14:05 UTC
Created attachment 362722 [details]
emerge --info gitolite
Comment 2 Tim Harder gentoo-dev 2013-11-07 07:26:42 UTC
Fixed in the tree.
Comment 3 Coacher 2013-11-08 05:48:46 UTC
(In reply to Tim Harder from comment #2)
> Fixed in the tree.

Thanks!