Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292317 - git-svn isn't installed by default
Summary: git-svn isn't installed by default
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-07 22:14 UTC by Alexander Veit
Modified: 2009-11-09 00:06 UTC (History)
1 user (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 Alexander Veit 2009-11-07 22:14:34 UTC
http://bugs.gentoo.org/233550 reopened.

In my opinion it is complete nonsense to cripple git if the subversion use flag is not set (what is the case by default). I just stumbled over this when I tried to convert my svn repos to git. For many users this is one of the first use cases after installing git. Unfortunately USE="subversion" emerge dev-util/git does not solve the problem since emerge fails with the excuse

emerge: there are no ebuilds built with USE flags to satisfy "dev-util/subversion[-dso]".
!!! One of the following packages is required to complete your request:
- dev-util/subversion-1.6.5 (Change USE: -dso)
(dependency required by "dev-util/git-1.6.4.4" [ebuild])
(dependency required by "dev-util/git" [argument])

This is use flag hell.
Comment 1 Rafał Mużyło 2009-11-07 22:46:04 UTC
It doesn't fail, it tells you what you should do
- reemerge subversion with -dso useflag.
The reason is in the ebuild: bug 223747 and bug 238586.
Comment 2 Alexander Veit 2009-11-07 22:59:39 UTC
The emerge with -dso is already running. I hope this won't break other things. However, it is quite surprising that git-svn does not work even though subversion is present on my system.
Comment 3 Dror Levin (RETIRED) gentoo-dev 2009-11-08 21:52:08 UTC
You can use /etc/portage/package.use to enable the subversion USE flag for git, or you could enable it globally in /etc/make.conf. You can use the same methods for disabling the dso USE flag for subversion so that git-svn will work.
Note that the fact that subversion is installed doesn't matter as in gentooland these things are configurable and not arbitrarily determined at install-time.

I consider this bug a request to make the subversion USE flag enabled by default, which is why I'm reassigning to maintainer to decide instead of closing.
Comment 4 Alexander Veit 2009-11-08 22:09:19 UTC
Fine.

Please check if the use flag is really required for git(-svn) >= 1.6.4.4. I'm not a Linux expert but

# ldd /usr/bin/git
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
        linux-gate.so.1 =>  (0xb7ef0000)
        libz.so.1 => /lib/libz.so.1 (0xb7ed5000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7d87000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7d6f000)
        libc.so.6 => /lib/libc.so.6 (0xb7c32000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7c2e000)
        /lib/ld-linux.so.2 (0xb7ef1000)

(emerged with USE="subversion") shows no obvious dependency to svn for me.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-11-09 00:06:28 UTC
Last time we had Subversion enabled by default in Git, lots more people complained. Adding USE=subversion on your end gets me less complaints than all the people adding USE=-subversion to it.

Lastly, just enabling a feature because a dependency is present on your system is strongly frown against in Gentoo, because in that there is no way to disable building against that dependency.