|
|
Log in / Subscribe / Register

Distributions

Gentoo discusses a Git migration

By Jake Edge
September 24, 2014

Gentoo has been considering (or just discussing) the conversion of its main repositories from CVS to Git for some time now—since 2009, at least. A recent "master plan" posted to the gentoo-dev mailing list resulted in a long, wide-ranging thread. While the discussion was mostly positive on the change, it is still unclear if it will lead Gentoo into making the switch any time soon.

The master plan was posted by Michał Górny in mid-September. He prefaced the plan with a statement of frustration:

I'm quite tired of promises and all that perfectionist non-sense which locks us up with CVS for next 10 years of bikeshed. Therefore, I have prepared a plan how to do git migration, and I believe it's doable in less than 2 weeks (plus the testing). Of course, that assumes infra is going to cooperate quickly or someone else is willing to provide the infra for it.

He describes an ambitious plan, with a seemingly over-optimistic estimate of two hours of downtime to actually perform the switch. Górny envisions three separate repositories, each targeting a different sub-group of Gentoo users. The developer repository is, not surprisingly, for developers. Like any other Git repository, developers would push changes to Gentoo packages into it, and pick up changes from other developers from it.

Changes to the developer repository would then be automatically merged into a "user sync" repository that would target "power users" who want to fetch their Gentoo packages via Git. That repository would be read-only and would be made available to regular users. The user sync repository would also include some "extras", such as documentation files and the cache of MD5 hashes for package metadata.

The contents of the user sync repository would then be used to create the "rsync" repository, which would get the expected ChangeLog and Manifest files. Old ChangeLogs would be checked out of CVS and placed into the rsync repository; moving forward, ChangeLogs would be generated from the Git commit messages. The rsync repository would provide a "no change" option for users who do not want to work with Git, as rsync is an existing mechanism for users to keep their Portage tree up to date.

For the developer repository, Górny would leave all of the CVS history behind, which results in a 66M Git pack file. He is not convinced of the value of the history, nor of the fidelity of the history in the CVS-to-Git conversions that have been done as tests in the past. Furthermore:

You don't need that history most of the time, and you can play with CVS to get it if you really do. In any case, we would likely strip the history anyway to get a small repo to work with.

The loss of history was not entirely popular, but it also may not be necessary. As Rich Freeman pointed out, converting Gentoo's CVS repositories to Git is "basically a solved problem". There is already a process to generate two Git repositories from the existing CVS repositories: one with history and one without.

Freeman agreed with Górny's "sentiment" expressed in the master plan, but he was not sure that the problems identified had not already been solved. In particular, Górny kind of glosses over the "how to use Git" question. As Freeman put it: "there are a dozen different ways we COULD use git, and nobody has picked the ONE way we WILL use it". As might be guessed, there are lots of different opinions about the right way for Gentoo developers to use Git. In the thread, that led to some of the bikeshedding that Górny was worried about.

But Julian Ospald (aka "hasufell") has been working on a step-by-step guide (also on the Gentoo wiki) that may help focus the Git workflow discussion. In another message, he was optimistic that such a guide can be worked up in two or three weeks.

Another major theme of the discussion was concern over the security implications of Git's use of the SHA-1 hash. The plan is to GPG-sign some commits to the developer repository, so there were questions about the security of coupling GPG signatures and SHA-1 hashes. But, as several in the thread pointed out, Git only uses SHA-1 as a consistency check, rather than directly as a security feature. It was also pointed out that adversaries who can create SHA-1 collisions probably have much easier ways to compromise Gentoo's repositories—including simply becoming a Gentoo developer and committing the code directly.

It would seem that the Gentoo infrastructure team is not yet ready to commit the resources that Górny has requested—at least not publicly in the thread. Freeman noted that he didn't see it as a lack of cooperation from the team, "just lack of manpower or interest". There was at least one offer of server resources to use for testing, but nothing "official" has so far been seen.

Even if there are no server resources yet, it would seem that some progress has been made. Working out the Git workflow, as well as the repository structure, will be helpful whenever the conversion does come about. Given the level of interest (and the lack of features in the ancient CVS tool), it would seem that the conversion could come about relatively soon. On the other hand, there have been other times in Gentoo history where it looked like the conversion was near at hand (notably in 2011), so we will have to wait and see.

Comments (8 posted)

Brief items

Announcing the release of Fedora 21 Alpha

The Fedora project has released Fedora 21 Alpha. This is the first release of Fedora.next, which introduces three products rather than the traditional single deliverable. The Fedora 21 Base includes only the base set of packages (such as kernel, RPM, yum, systemd, and Anaconda) used by all the products. Fedora 21 Cloud includes images for use in private cloud environments like OpenStack, as well as AMIs for use on Amazon, and a new image streamlined for running Docker containers. The server product is aimed at making it easier to install discrete infrastructure services. The Fedora Server will introduce three new technologies in Fedora to handle this task, rolekit, Cockpit and OpenLMI. The third product is Fedora 21 Workstation, which is aimed at providing a platform for development of server side and client applications that is attractive to developers of all stripes. The final release of Fedora 21 is expected in December.

Full Story (comments: 41)

LFS and BLFS Version 7.6 released

The Linux From Scratch community has announced the release of LFS 7.6, BLFS 7.6, LFS Systemd 7.6, and BLFS Systemd 7.6. The LFS releases include toolchain updates. BLFS (Beyond Linux From Scratch) includes about 750 packages beyond LFS and includes many updates.

Full Story (comments: 1)

openSUSE 13.2 beta released

The openSUSE project has released the first beta for openSUSE 13.2. The beta includes Linux kernel 3.16, GNOME 3.12, Plasma Workspaces 4.11, KDE applications 4.13, Plasma 5.1, Frameworks 5.2, all of which are likely to be updated before the final release. Btrfs is the default filesystem. YaST has a revamped installer and many other improvements. There's plenty to test in this release.

Comments (none posted)

Oracle Linux Release 5 Update 11

Oracle has released version 5.11 of their Enterprise Linux distribution. Three kernel packages are available in this release. Oracle's Enterprise Kernel is booted by default. The second kernel is Red Hat compatible and is installed by default. The third kernel is also Red Hat compatible, but also includes additional bug fixes added by Oracle, and it must be manually installed.

Full Story (comments: none)

Whonix 9 released

Whonix Anonymous Operating System Version 9 has been released. "Whonix is an operating system focused on anonymity, privacy and security. It’s based on the Tor anonymity network, Debian GNU/Linux and security by isolation. DNS leaks are impossible, and not even malware with root privileges can find out the user’s real IP. Whonix consists of two parts: One solely runs Tor and acts as a gateway, which we call Whonix-Gateway. The other, which we call Whonix-Workstation, is on a completely isolated network. Only connections through Tor are possible." The announcement contains a lengthy changelog between version 8 and version 9.

Comments (none posted)

Distribution News

Debian GNU/Linux

Bug-Squashing-Party in Munich, Germany

There will be a Bug-Squashing-Party in Munich, Germany beginning on Friday evening, November 21, and continuing through the weekend.

Full Story (comments: none)

Newsletters and articles of interest

Page editor: Rebecca Sobol
Next page: Development>>


Copyright © 2014, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds