Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-soc
Navigation:
Lists: gentoo-soc: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-soc@g.o
From: Andrey Kislyuk <weaver@g.o>
Subject: Re: Interest in idea 2.16: SCM snapshot management infrastructure or 2.1: Add "tags" support to Portage
Date: Mon, 23 Mar 2009 08:10:14 -0400
> Ok, so this program would need to:
>  1 Scan all the ebuilds and see which ones use SCM.
>  2 Auto generate a snapshot and notify the maintainer so he/she can
> test the snapshot and make sure everything is working just fine.
>  3 Modify the ebuild to point to the snapshot instead of the source repository.
>  4 Update the Manifest to reflect this update
>  5 Periodically check for changes.

No.

Let's say the ebuild name is bioperl-1.7.ebuild and the writer
specifies (purely hypothetical/provisional syntax)

inherit git scm-snapshots

EGIT_REPO_URI="git://code.open-bio.org/bioperl/"
EGIT_BRANCH="1.7"
SRC_URI=""

What scm-snapshots.eclass will do is try to add
"mirror://gentoo/bioperl-1.7.tar.bz2" to SRC_URI and fetch it, and if
that fails, hand it over to the git eclass which will perform the
fetch from the repo as it normally would. It would be the daemon's
responsibility to see that the ebuild is using scm-snapshots, generate
the snapshot, upload it to gentoo mirrors, and update the package
manifest to include the snapshot.

Alternatively, since an automated manifest change is necessary anyway
once the snapshot is generated in this scenario, the daemon could edit
the ebuild to change the SRC_URI and effectively disable any SCM
eclass that is being used.

> I also assume that there will be an option for the maintainer to keep
> the ebuild live in the way it is now, without snapshots?

Yes. They wouldn't need to do anything. Without scm-snapshots.eclass,
nothing would happen.

> Also, would the scm url be left as a backup, in case the snapshot
> cannot be found? Or should we provide an classical live ebuild as well
> as the snapshot version, in order to have a fallback?

Yes, see the way I described it above. If there is no snapshot found
on the mirrors, it would hand over to the scm eclass. A "classical"
live ebuild's behavior wouldn't change at all.

-ak


References:
Interest in idea 2.16: SCM snapshot management infrastructure or 2.1: Add "tags" support to Portage
-- Nils
Re: Interest in idea 2.16: SCM snapshot management infrastructure or 2.1: Add "tags" support to Portage
-- Andrey Kislyuk
Re: Interest in idea 2.16: SCM snapshot management infrastructure or 2.1: Add "tags" support to Portage
-- Nils
Navigation:
Lists: gentoo-soc: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Interest in idea 2.16: SCM snapshot management infrastructure or 2.1: Add "tags" support to Portage
Next by thread:
Portage/Pkgcore/Paludis backend adapter for PackageKit
Previous by date:
Re: Improved binary package support
Next by date:
Re: GLEP 25 + GLEP 9


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.