Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164903 - Add support for ububtu on debootstrap
Summary: Add support for ububtu on debootstrap
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 164901 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-02-01 19:22 UTC by Tiago Freire
Modified: 2007-02-01 19:26 UTC (History)
0 users

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 Tiago Freire 2007-02-01 19:22:58 UTC
Currently, debootstrap works for installing debian e.g. in a chroot.
I'd like to have a ubuntu chroot, so I hacked around doing a few crude changes to the debootstrap ebuild in a chroot. It's crude, but worked. perhaps the ebootstrap maintainer could add ubuntu support?

Reproducible: Always

Steps to Reproduce:
1.emerge debootstrap
Actual Results:  
debian debootstrap is emerged

Expected Results:  
debootstrap should have ubuntu support too
Comment 1 Tiago Freire 2007-02-01 19:24:19 UTC
Exceedingly simple hack to use ubuntu's debootstrap:

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/debootstrap/debootstrap-0.3.3-r1.ebuild,v 1.5 2006/10/21 16:00:03 dertobi123 Exp $

DESCRIPTION="Debian bootstrap scripts"
HOMEPAGE="http://packages.qa.debian.org/d/debootstrap.html"
SRC_URI="http://archive.ubuntulinux.org/ubuntu/pool/main/d/debootstrap/debootstrap_0.3.3.1ubuntu1.tar.gz
    mirror://gentoo/devices.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha ~amd64 hppa ia64 ppc ~sparc ~x86"
IUSE="nodpkg"

DEPEND="sys-devel/binutils
    net-misc/wget
    !nodpkg? ( app-arch/dpkg )"

S=${WORKDIR}/debootstrap-0.3.3.1ubuntu1

src_unpack() {
    unpack debootstrap_0.3.3.1ubuntu1.tar.gz
    echo "${DISTDIR}"/devices.tar.gz "${S}"/devices-std.tar.gz
    cp "${DISTDIR}"/devices.tar.gz "${S}"/devices-std.tar.gz || die
}

src_compile() {
    emake pkgdetails debootstrap-arch || die
}

src_install() {
    make DESTDIR="${D}" install-allarch || die
    dodoc TODO
}
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2007-02-01 19:25:37 UTC
If you get upstream to merge the changes, sure.
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2007-02-01 19:26:04 UTC
*** Bug 164901 has been marked as a duplicate of this bug. ***