Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

Gentoo Package Repository now using Git

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
107 posts
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next
Author
Message
a3li
Retired Dev
Retired Dev
Posts: 122
Joined: Tue Sep 02, 2008 7:31 pm
Location: 독일

Gentoo Package Repository now using Git

  • Quote

Post by a3li » Wed Aug 12, 2015 6:28 am

This thread is for the discussion of the Git migration as announced. Post your comments here.
I am Confuism. Do not bother me.
Top
steveL
Watchman
Watchman
Posts: 5153
Joined: Wed Sep 13, 2006 1:18 pm
Location: The Peanut Gallery

  • Quote

Post by steveL » Wed Aug 12, 2015 7:59 am

Yay! Finally! :-)

Well done to all involved, especially robbat for the manifest-signing work, patrick for pushing it forward, and ofc infra (sine qua non;)
Top
Perfect Gentleman
Veteran
Veteran
User avatar
Posts: 1301
Joined: Sun May 18, 2014 10:16 am
Contact:
Contact Perfect Gentleman
Website

  • Quote

Post by Perfect Gentleman » Wed Aug 12, 2015 8:04 am

what is the right url,

Code: Select all

sync-uri = git://anongit.gentoo.org/repo/gentoo.git
?
Top
Yamakuzure
Advocate
Advocate
User avatar
Posts: 2323
Joined: Wed Jun 21, 2006 11:06 am
Location: Adendorf, Germany
Contact:
Contact Yamakuzure
Website

  • Quote

Post by Yamakuzure » Wed Aug 12, 2015 8:28 am

Perfect Gentleman wrote:what is the right url,

Code: Select all

sync-uri = git://anongit.gentoo.org/repo/gentoo.git
?
You should read the link provided above:
https://www.gentoo.org/news/2015/08/12/git-migration.html wrote:For users of our package repository, nothing changes: Updates continue to be available via the established mechanisms (rsync, webrsync, snapshots). Options to fetch the package tree via Git are to be announced later.
Edited 220,176 times by Yamakuzure
Top
Perfect Gentleman
Veteran
Veteran
User avatar
Posts: 1301
Joined: Sun May 18, 2014 10:16 am
Contact:
Contact Perfect Gentleman
Website

  • Quote

Post by Perfect Gentleman » Wed Aug 12, 2015 8:35 am

Yamakuzure,
I've been using the url mentioned above for 2 two on 2 PCs, and everything is alright.
I just wanna know if it is right url or not.
Top
trippels
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Wed Nov 24, 2010 1:39 pm
Location: Berlin

  • Quote

Post by trippels » Wed Aug 12, 2015 11:36 am

sync-uri = git://git.gentoo.org/repo/gentoo.git
also works for me.

What is the recommended /etc/eixrc/eixrc setting for git?
CACHE_METHOD="/portage/ parse|ebuild*#metadata-md5#metadata-assign#assign" ?
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8738
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Wed Aug 12, 2015 6:58 pm

Code: Select all

# emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
/usr/bin/git clone --depth 1 git://anongit.gentoo.org/repo/gentoo.git .
fatal: destination path '.' already exists and is not an empty directory.
!!! git clone error in /usr/portage
q: Updating ebuild cache ... 
q: Finished 37171 entries in 0.113616 seconds
What did I wrong?

Code: Select all

[DEFAULT]
main-repo = gentoo

[gentoo]
location = /usr/portage
sync-type = git
sync-uri = git://anongit.gentoo.org/repo/gentoo.git
auto-sync = yes
sync-depth = 1
EDIT: fixed : I didn't cleaned up that repository, which was in "rsync" mode.
Last edited by xaviermiller on Wed Aug 12, 2015 7:18 pm, edited 2 times in total.
Kind regards,
Xavier Miller
Top
genoobish
n00b
n00b
User avatar
Posts: 73
Joined: Wed Feb 18, 2015 8:39 pm

  • Quote

Post by genoobish » Wed Aug 12, 2015 7:02 pm

amazing!
very thanks


edit:
I'm also getting that error described above after syncing once. I don't know how to use git so idk but it must be some parameter that's preventing it to sync to a non empty directory...? :?

edit2:
from their man page

Code: Select all

 git-clone(1)
           Clone a repository into a new directory.
git-pull(1)
           Fetch from and integrate with another repository or a local branch.
so it seems it's executing `git clone` when it should be `git pull`or something else?
Last edited by genoobish on Wed Aug 12, 2015 7:33 pm, edited 4 times in total.
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Wed Aug 12, 2015 7:17 pm

Thanks for that.

How will we switch over from webrsync-gpg? I'm already using a few git overlays with properly signed commits, so even if the main tree isn't ready for that I could still benefit from knowing how to secure those.
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8738
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Wed Aug 12, 2015 8:32 pm

genoobish,

To migrate from a rsync'ed repository to git, just remove it before the sync :

Code: Select all

cd /usr/portage && rm -rf * .gitignore
cd 
emerge --sync
Kind regards,
Xavier Miller
Top
genoobish
n00b
n00b
User avatar
Posts: 73
Joined: Wed Feb 18, 2015 8:39 pm

  • Quote

Post by genoobish » Wed Aug 12, 2015 8:40 pm

xaviermiller wrote:genoobish,

To migrate from a rsync'ed repository to git, just remove it before the sync :

Code: Select all

cd /usr/portage && rm -rf * .gitignore
cd 
emerge --sync
edit: the .gitignore is what I missed the first time it seems. works fine now.

edit2: but now there's this:

Code: Select all

$ eix-update
Reading Portage settings ..
Building database (/var/cache/eix/portage.eix) ..
[0] 'gentoo' /usr/portage/ (cache: metadata-md5-or-flat)
     Reading category 161|161 (100%) EMPTY!
it syncs ok, but the database turns out empty. too early maybe?
Top
ak47wj
n00b
n00b
Posts: 3
Joined: Sun Oct 10, 2010 2:07 pm

  • Quote

Post by ak47wj » Thu Aug 13, 2015 1:06 am

genoobish wrote:
edit2: but now there's this:

Code: Select all

$ eix-update
Reading Portage settings ..
Building database (/var/cache/eix/portage.eix) ..
[0] 'gentoo' /usr/portage/ (cache: metadata-md5-or-flat)
     Reading category 161|161 (100%) EMPTY!
it syncs ok, but the database turns out empty. too early maybe?
CACHE_METHOD="/usr/portage/ parse|ebuild*" eix-update
works for me, but it's extremely slow.
Top
ct85711
Veteran
Veteran
Posts: 1791
Joined: Tue Sep 27, 2005 8:54 pm

  • Quote

Post by ct85711 » Thu Aug 13, 2015 1:15 am

if I recall correctly, when I originally setup my system to pull from git, I had to remove the old rsync repository (delete everything out of /usr/portage) and while in the /usr/portage, I did git-clone to establish a copy of the git version of the tree; afterwards, it works fine doing regular syncing.

Note: When I set my system up to sync via git, it was before gentoo did this transition, so I was syncing through their testing tree. That in mind, what I needed to do may not be necessary. I also remember, I did need to make a .gitignore file in /usr/portage, to have it exclude the distfiles folder.
Top
genoobish
n00b
n00b
User avatar
Posts: 73
Joined: Wed Feb 18, 2015 8:39 pm

  • Quote

Post by genoobish » Thu Aug 13, 2015 1:27 am

ak47wj wrote:

CACHE_METHOD="/usr/portage/ parse|ebuild*" eix-update
works for me, but it's extremely slow.
works now, and it seems faster than eupdatedb, so it`s fine for me. thanks
Top
trippels
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Wed Nov 24, 2010 1:39 pm
Location: Berlin

  • Quote

Post by trippels » Thu Aug 13, 2015 2:42 am

Code: Select all

emerge --jobs 4 --regen
speeds up eix-update.
Top
x17324
n00b
n00b
Posts: 22
Joined: Mon Oct 07, 2013 4:42 pm

  • Quote

Post by x17324 » Thu Aug 13, 2015 2:51 am

sync-uri = git://anongit.gentoo.org/repo/gentoo.git also works for me :D
Top
x17324
n00b
n00b
Posts: 22
Joined: Mon Oct 07, 2013 4:42 pm

  • Quote

Post by x17324 » Thu Aug 13, 2015 6:58 am

trippels wrote:

Code: Select all

emerge --jobs 4 --regen
speeds up eix-update.

I have ran this command ,and my eix can not include /usr/portage into it's database, so please tell me how to resume this operating?


and this is my error

eix-update
Reading Portage settings ..
Building database (/var/cache/eix/portage.eix) ..
[0] 'gentoo' /usr/portage/ (cache: metadata-md5-or-flat)
Reading category 170|170 (100%) EMPTY!

it says EMPTY! ,and I cant use eix anymore;
Top
trippels
Tux's lil' helper
Tux's lil' helper
Posts: 137
Joined: Wed Nov 24, 2010 1:39 pm
Location: Berlin

  • Quote

Post by trippels » Thu Aug 13, 2015 7:37 am

x17324 wrote:
trippels wrote:

Code: Select all

emerge --jobs 4 --regen
speeds up eix-update.

I have ran this command ,and my eix can not include /usr/portage into it's database, so please tell me how to resume this operating?


and this is my error

eix-update
Reading Portage settings ..
Building database (/var/cache/eix/portage.eix) ..
[0] 'gentoo' /usr/portage/ (cache: metadata-md5-or-flat)
Reading category 170|170 (100%) EMPTY!

it says EMPTY! ,and I cant use eix anymore;
Like I wrote above you need to add something like:

Code: Select all

CACHE_METHOD="/usr/portage/ parse|ebuild*" 
in your /etc/eixrc/eixrc .
Top
Perfect Gentleman
Veteran
Veteran
User avatar
Posts: 1301
Joined: Sun May 18, 2014 10:16 am
Contact:
Contact Perfect Gentleman
Website

  • Quote

Post by Perfect Gentleman » Thu Aug 13, 2015 7:44 am

FEATURES="metadata-transfer" is much better
Top
steveL
Watchman
Watchman
Posts: 5153
Joined: Wed Sep 13, 2006 1:18 pm
Location: The Peanut Gallery

  • Quote

Post by steveL » Thu Aug 13, 2015 11:08 am

Perfect Gentleman wrote:FEATURES="metadata-transfer" is much better
*groan* it took years to get that [post=3891968]turned off[/post] by default.

You're right though, it's better in the main, but I think at some point soon the rsync metadata cache should be sorted out.
Just bear in mind to switch back when that happens if you're a standard rsync user.
Top
hasufell
Retired Dev
Retired Dev
Posts: 429
Joined: Sat Oct 29, 2011 8:21 am

  • Quote

Post by hasufell » Thu Aug 13, 2015 11:30 am

I'm cross-posting this here, because it is relevant to the git migration for users: https://forums.gentoo.org/viewtopic-p-7 ... ml#7797610
Top
Logicien
Veteran
Veteran
User avatar
Posts: 1555
Joined: Fri Sep 16, 2005 8:04 am
Location: Montréal

  • Quote

Post by Logicien » Thu Aug 13, 2015 7:15 pm

One more step to the identity with Funtoo. I don't need the precompiled kernels and the 'super bootloader' of Funtoo. The network configuration way of Funtoo is interesting, but I can compose as well with the Gentoo way.
Paul
Top
Yamakuzure
Advocate
Advocate
User avatar
Posts: 2323
Joined: Wed Jun 21, 2006 11:06 am
Location: Adendorf, Germany
Contact:
Contact Yamakuzure
Website

  • Quote

Post by Yamakuzure » Fri Aug 14, 2015 9:10 am

hasufell wrote:I'm cross-posting this here, because it is relevant to the git migration for users: https://forums.gentoo.org/viewtopic-p-7 ... ml#7797610
Unfortunately the usage of github you advise there does not work? I always get

Code: Select all

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Edited 220,176 times by Yamakuzure
Top
freke
Veteran
Veteran
Posts: 1136
Joined: Thu Jan 23, 2003 3:17 pm
Location: Somewhere in Denmark
Contact:
Contact freke
Website

  • Quote

Post by freke » Fri Aug 14, 2015 10:27 am

Yamakuzure wrote:
hasufell wrote:I'm cross-posting this here, because it is relevant to the git migration for users: https://forums.gentoo.org/viewtopic-p-7 ... ml#7797610
Unfortunately the usage of github you advise there does not work? I always get

Code: Select all

Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
using

Code: Select all

sync-uri = https://anongit.gentoo.org/git/repo/gentoo.git
seems to work for me.

Another thing though; GLSAs?

They're in/should be in metadata/glsa - right? but metadata is not synced via git?
Top
hasufell
Retired Dev
Retired Dev
Posts: 429
Joined: Sat Oct 29, 2011 8:21 am

  • Quote

Post by hasufell » Fri Aug 14, 2015 11:48 am

freke wrote:Another thing though; GLSAs?
you can clone them directly into metadata, see https://gitweb.gentoo.org/data/glsa.git/

I wonder if we should make that a real submodule for the gentoo git repo.

same goes for news:
https://gitweb.gentoo.org/proj/gentoo-news.git/tree/
but the news repo currently has a broken format (you have to move the contents out of every subdir)... but there is already a GLSA update prepared to change that
Top
Post Reply
  • Print view

107 posts
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic