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

Bug 206623

Summary: dev-util/git - git fails to check git repository
Product: Gentoo Linux Reporter: valentin <givemesugarr>
Component: [OLD] DevelopmentAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description valentin 2008-01-19 11:16:07 UTC
git fails to checkout the freedesktop's mesa and xf86-video-ati git repositories.

git-checkout returns the error: 
>>> Unpacking source...
 * git update start -->
 *    repository: git://anongit.freedesktop.org/mesa/mesa
fatal: Not a git repository: 'mesa'
fatal: Not a git repository: 'mesa'
Failed to find a valid git directory.

but when i try git-clone on them i can clone the repositories. the problem is that i cannot use the live ebuilds for these projects anymore.

as ebuilds i use the ones from the x11, but, before you close the bug as not pertaining, the problem is not ebuild based, but git based since checkout on the repositories doesn't work even manually but clone does.

Reproducible: Always

Steps to Reproduce:
1. git-checkout git://anongit.freedesktop.org/mesa/mesa
2. git-clone git://anongit.freedesktop.org/mesa/mesa
3. git-checkout git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
4. git-clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati

Actual Results:  
1. error: no git repository found
2. no error
3. error: no git repository found
4. no error

Expected Results:  
1. clone/update repository
2. clone repository
3. clone/update repository
4. clone repository

paludis 0.26.0_alpha7
Paludis build information:
    Compiler:
        CXX:                   x86_64-pc-linux-gnu-g++ 4.1.2 (Gentoo 4.1.2 p1.0.2)
        CXXFLAGS:              -O2 -march=k8 -mno-tls-direct-seg-refs -mmmx -msse3 -pipe -fomit-frame-pointer -g -ggdb3
        LDFLAGS:               -Wl,--as-needed,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -s
        DATE:                  2008-01-17T08:28:16+0000

    Libraries:
        C++ Library:           GNU libstdc++ 20070214

    Reduced Privs:
        reduced_uid:           102
        reduced_uid->name:     paludisbuild
        reduced_uid->dir:      /dev/null
        reduced_gid:           440
        reduced_gid->name:     paludisbuild

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc
        PYTHONINSTALLDIR:      /usr/lib64/python2.4/site-packages
        RUBYINSTALLDIR:        /usr/lib64/ruby/site_ruby/1.8/x86_64-linux

Repository virtuals:
    format:                    virtuals

Repository installed-virtuals:
    format:                    installed_virtuals
    root:                      /

Repository gentoo:
    format:                    ebuild
    location:                  /usr/portage
    append_repository_name_to_write_cache: true
    builddir:                  /var/tmp/paludis
    cache:                     /usr/portage/metadata/cache
    distdir:                   /var/tmp/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    names_cache:               /var/cache/paludis/names/gentoo
    newsdir:                   /usr/portage/metadata/news
    profile_eapi:              0
    profiles:                  /usr/portage/profiles/default-linux/amd64/2007.0
    securitydir:               /usr/portage/metadata/glsa
    setsdir:                   /usr/portage/sets
    sync:                      rsync://rsync.gentoo.org/gentoo-portage
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       3.2_p17-r1
        dev-java/java-config:  1.3.7 2.0.33-r1
        dev-lang/python:       2.4.4-r6
        dev-python/pycrypto:   2.0.1-r6
        dev-util/ccache:       2.4-r7
        dev-util/confcache:    (none)
        sys-apps/baselayout:   1.12.10-r5
        sys-apps/sandbox:      1.2.18.1-r2
        sys-devel/autoconf:    2.13 2.61-r1
        sys-devel/automake:    1.10 1.5 1.6.3 1.7.9-r1 1.8.5-r3 1.9.6-r2
        sys-devel/binutils:    2.18-r1
        sys-devel/gcc-config:  1.4.0-r4
        sys-devel/libtool:     1.5.24
        virtual/os-headers:    2.6.23-r3 (for sys-kernel/linux-headers::installed)

Repository installed:
    format:                    vdb
    location:                  /var/db/pkg
    builddir:                  /var/tmp/paludis
    names_cache:               /var/db/pkg/.cache/names
    provides_cache:            /var/db/pkg/.cache/provides
    root:                      /
    world:                     /var/db/pkg/world

Repository aeskulap:
    format:                    ebuild
    location:                  /var/paludis/repositories/aeskulap
    append_repository_name_to_write_cache: true
    builddir:                  /var/tmp/paludis
    cache:                     /var/empty
    distdir:                   /var/tmp/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass /var/paludis/repositories/aeskulap/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    master_repository:         gentoo
    names_cache:               /var/cache/paludis/names/aeskulap
    newsdir:                   /var/paludis/repositories/aeskulap/metadata/news
    profile_eapi:              0
    profiles:                  /usr/portage/profiles/default-linux/amd64/2007.0
    securitydir:               /var/paludis/repositories/aeskulap/metadata/glsa
    setsdir:                   /var/paludis/repositories/aeskulap/sets
    sync:
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

Repository berkano:
    format:                    ebuild
    location:                  /var/paludis/repositories/berkano
    append_repository_name_to_write_cache: true
    builddir:                  /var/tmp/paludis
    cache:                     /var/empty
    distdir:                   /var/tmp/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass /var/paludis/repositories/berkano/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    master_repository:         gentoo
    names_cache:               /var/cache/paludis/names/berkano
    newsdir:                   /var/paludis/repositories/berkano/metadata/news
    profile_eapi:              0
    profiles:                  /usr/portage/profiles/default-linux/amd64/2007.0
    securitydir:               /var/paludis/repositories/berkano/metadata/glsa
    setsdir:                   /var/paludis/repositories/berkano/sets
    sync:                      svn+http://svn.liveforge.org/berkano/trunk
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

Repository flameeyes-overlay:
    format:                    ebuild
    location:                  /var/paludis/repositories/flameeyes
    append_repository_name_to_write_cache: true
    builddir:                  /var/tmp/paludis
    cache:                     /var/empty
    distdir:                   /var/tmp/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass /var/paludis/repositories/flameeyes/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    master_repository:         gentoo
    names_cache:               /var/cache/paludis/names/flameeyes
    newsdir:                   /var/paludis/repositories/flameeyes/metadata/news
    profile_eapi:              0
    profiles:                  /usr/portage/profiles/default-linux/amd64/2007.0
    securitydir:               /var/paludis/repositories/flameeyes/metadata/glsa
    setsdir:                   /var/paludis/repositories/flameeyes/sets
    sync:                      git://flameeyes.is-a-geek.org/overlay.git
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

Repository kde4-experimental:
    format:                    ebuild
    location:                  /var/paludis/repositories/kde4
    append_repository_name_to_write_cache: true
    builddir:                  /var/tmp/paludis
    cache:                     /var/empty
    distdir:                   /var/tmp/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass /var/paludis/repositories/kde4/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    master_repository:         gentoo
    names_cache:               /var/cache/paludis/names/kde4
    newsdir:                   /var/paludis/repositories/kde4/metadata/news
    profile_eapi:              0
    profiles:                  /usr/portage/profiles/default-linux/amd64/2007.0
    securitydir:               /var/paludis/repositories/kde4/metadata/glsa
    setsdir:                   /var/paludis/repositories/kde4/sets
    sync:                      git://www2.mailstation.de/git/genkde4svn-pub.git
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

Repository paludis-extras:
    format:                    ebuild
    location:                  /var/paludis/repositories/paludis-extras
    append_repository_name_to_write_cache: true
    builddir:                  /var/tmp/paludis
    cache:                     /var/empty
    distdir:                   /var/tmp/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass /var/paludis/repositories/paludis-extras/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    master_repository:         gentoo
    names_cache:               /var/cache/paludis/names/paludis-extras
    newsdir:                   /var/paludis/repositories/paludis-extras/metadata/news
    profile_eapi:              0
    profiles:                  /usr/portage/profiles/default-linux/amd64/2007.0
    securitydir:               /var/paludis/repositories/paludis-extras/metadata/glsa
    setsdir:                   /var/paludis/repositories/paludis-extras/sets
    sync:                      rsync://drzile.dyndns.org/paludis-extras rsync://server.guldbrand.net/paludis-extras
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

Repository paludis-overlay:
    format:                    ebuild
    location:                  /var/paludis/repositories/paludis-overlay
    append_repository_name_to_write_cache: true
    builddir:                  /var/tmp/paludis
    cache:                     /var/empty
    distdir:                   /var/tmp/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass /var/paludis/repositories/paludis-overlay/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    master_repository:         gentoo
    names_cache:               /var/cache/paludis/names/paludis-overlay
    newsdir:                   /var/paludis/repositories/paludis-overlay/metadata/news
    profile_eapi:              0
    profiles:                  /usr/portage/profiles/default-linux/amd64/2007.0
    securitydir:               /var/paludis/repositories/paludis-overlay/metadata/glsa
    setsdir:                   /var/paludis/repositories/paludis-overlay/sets
    sync:                      svn://svn.pioto.org/paludis/overlay
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

Repository sabayon:
    format:                    ebuild
    location:                  /var/paludis/repositories/sabayon
    append_repository_name_to_write_cache: true
    builddir:                  /var/tmp/paludis
    cache:                     /var/empty
    distdir:                   /var/tmp/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass /var/paludis/repositories/sabayon/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    master_repository:         gentoo
    names_cache:               /var/cache/paludis/names/sabayon
    newsdir:                   /var/paludis/repositories/sabayon/metadata/news
    profile_eapi:              0
    profiles:                  /usr/portage/profiles/default-linux/amd64/2007.0
    securitydir:               /var/paludis/repositories/sabayon/metadata/glsa
    setsdir:                   /var/paludis/repositories/sabayon/sets
    sync:                      svn+http://svn.sabayonlinux.org/overlay
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

Repository sunrise:
    format:                    ebuild
    location:                  /var/paludis/repositories/sunrise
    append_repository_name_to_write_cache: true
    builddir:                  /var/tmp/paludis
    cache:                     /var/empty
    distdir:                   /var/tmp/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass /var/paludis/repositories/sunrise/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    master_repository:         gentoo
    names_cache:               /var/cache/paludis/names/sunrise
    newsdir:                   /var/paludis/repositories/sunrise/metadata/news
    profile_eapi:              0
    profiles:                  /usr/portage/profiles/default-linux/amd64/2007.0
    securitydir:               /var/paludis/repositories/sunrise/metadata/glsa
    setsdir:                   /var/paludis/repositories/sunrise/sets
    sync:                      svn+http://overlays.gentoo.org/svn/proj/sunrise/reviewed/
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

Repository x11:
    format:                    ebuild
    location:                  /var/paludis/repositories/x11
    append_repository_name_to_write_cache: true
    builddir:                  /var/tmp/paludis
    cache:                     /var/empty
    distdir:                   /var/tmp/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass /var/paludis/repositories/x11/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    master_repository:         gentoo
    names_cache:               /var/cache/paludis/names/x11
    newsdir:                   /var/paludis/repositories/x11/metadata/news
    profile_eapi:              0
    profiles:                  /usr/portage/profiles/default-linux/amd64/2007.0
    securitydir:               /var/paludis/repositories/x11/metadata/glsa
    setsdir:                   /var/paludis/repositories/x11/sets
    sync:                      git://git.overlays.gentoo.org/proj/x11
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata


No packages were specified on the command line, so detailed information is not
available (Paludis can display detailed information for both installed and
installable packages).
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-01-19 11:49:30 UTC
Please, read the documentation before filing bugs. You cannot do any checkout on uninitialized repository. 

If you need more hints on what you are doing wrong, then see http://www.gentoo.org/main/en/support.xml, bugzilla is not a place for this.
Comment 2 valentin 2008-01-19 12:05:42 UTC
it doesn't work also on a cloned directory!!!
the problem is that git doesn't recognize these repositories as git ones. if you cannot believe try out on the xf86-video-ati (reversing steps 3 and 4) and see that you are able to clone it, but you cannot checkout it later (the repo has a 6.1 Mbytes length); also the git_fetch from the eclass doesn't work because it cannot recognize the remote repository as git repository.
i don't know about checkout before clone, but what i know is the fact that they're not accessible, either for an xorg git repository either for a git problem. i've tried sending a mail about the problem on the xorg mailing list but there isn't any reply on the matter.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-01-19 12:11:56 UTC
(In reply to comment #2)
> it doesn't work also on a cloned directory!!!

Could you stop screaming and instead tell us what doesn't work? Here's an idea - post *real* steps to reproduce your issue instead of trying to manually reproduce a process you don't understand, because you are doing it upside down.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-01-19 12:28:59 UTC
# ebuild xf86-video-ati-9999.ebuild unpack
Appending /tmp/x11 to PORTDIR_OVERLAY...
 * checking ebuild checksums ;-) ...                                                                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                  [ ok ]
>>> Unpacking source...
 * Checking for direct rendering capabilities ...
 * git clone start -->
 *    repository: git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
Initialized empty Git repository in /usr/portage/distfiles/git-src/xf86-video-ati/
remote: Generating pack...
remote: Counting objects: 1270
Done counting 7918 objects.
remote: Deltifying 7918 objects...
remote:  100% (7918/7918) done
Indexing 7918 objects...
remote: Total 7918 (delta 6275), reused 0 (delta 0)
 100% (7918/7918) done
Resolving 6275 deltas...
 100% (6275/6275) done
 *    local clone: /usr/portage/distfiles/git-src/xf86-video-ati
 *    committish: master
>>> Unpacked to /var/tmp/portage/x11-drivers/xf86-video-ati-9999/work/xf86-video-ati-9999
 * Running eautoreconf in '/var/tmp/portage/x11-drivers/xf86-video-ati-9999/work/xf86-video-ati-9999' ...
 * Running aclocal ...                                                                                                                  [ ok ]
 * Running libtoolize --copy --force --automake ...                                                                                     [ ok ]
 * Running aclocal ...                                                                                                                  [ ok ]
 * Running autoconf ...                                                                                                                 [ ok ]
 * Running autoheader ...                                                                                                               [ ok ]
 * Running automake --add-missing --copy --foreign ...                                                                                  [ ok ]
 * Running elibtoolize in: xf86-video-ati-9999
 *   Applying sed-1.5.6.patch ...
>>> Source unpacked.

# rm -rf /var/tmp/portage/x11-drivers/

# ebuild xf86-video-ati-9999.ebuild unpack
Appending /tmp/x11 to PORTDIR_OVERLAY...
 * checking ebuild checksums ;-) ...                                                                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                  [ ok ]
>>> Unpacking source...
 * Checking for direct rendering capabilities ...
 * git update start -->
 *    repository: git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati
 *    local clone: /usr/portage/distfiles/git-src/xf86-video-ati
 *    committish: master
>>> Unpacked to /var/tmp/portage/x11-drivers/xf86-video-ati-9999/work/xf86-video-ati-9999
 * Running eautoreconf in '/var/tmp/portage/x11-drivers/xf86-video-ati-9999/work/xf86-video-ati-9999' ...
 * Running aclocal ...                                                                                                                  [ ok ]
 * Running libtoolize --copy --force --automake ...                                                                                     [ ok ]
 * Running aclocal ...                                                                                                                  [ ok ]
 * Running autoconf ...                                                                                                                 [ ok ]
 * Running autoheader ...                                                                                                               [ ok ]
 * Running automake --add-missing --copy --foreign ...                                                                                  [ ok ]
 * Running elibtoolize in: xf86-video-ati-9999
 *   Applying sed-1.5.6.patch ...
>>> Source unpacked.
Comment 5 valentin 2008-01-19 13:13:39 UTC
well, it seems that i'm not able to do this. i don't know where i do wrong but i can only duplicate the remote repository with git-clone. well, i'll try figuring out what is wrong on my system since it seems to work on your's. 
sorry for having you loose time.