On Fri, Nov 16, 2007 at 02:25:35PM -0500, [EMAIL PROTECTED] wrote:
>
> Ive been using the 770 and N800 for years, and finally decided to get into
> developing software for these things (I have experience in C and various
> scripting languages). But I have some (probably noob) questions:
>
> 2) Anyone using Gentoo for development system?
I'm using a 64bit Gentoo system for maemo development at work and I have
32bit and 64bit Gentoo systems at home which also have the SDK installed.
There's no need for a 32bit chroot as the 32bit scratchbox binaries work
just fine on a 64bit Gentoo system. The scratchbox ebuilds I'm using were
originally made by Priit Laes (IIRC) and I've made some small modifications
and kept them updated with new scratchbox releases. I've attached the
ebuilds in case someone wants to take a look.
--
Ville Syrjälä
[EMAIL PROTECTED]
http://www.sci.fi/~syrjala/
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
MY_P="scratchbox-`echo ${PV} | cut -d '.' -f 1-2`"
MY_CODENAME="apophis"
MY_PV="${PV}-i386"
SBOX_GROUP="sbox"
RESTRICT="strip"
DESCRIPTION="Scratchbox is a cross-compilation toolkit designed to make
embedded Linux application development easier."
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://scratchbox.org/download/files/sbox-releases/${MY_CODENAME}/tarball/scratchbox-core-${MY_PV}.tar.gz
http://scratchbox.org/download/files/sbox-releases/${MY_CODENAME}/tarball/scratchbox-libs-${MY_PV}.tar.gz
http://scratchbox.org/download/files/sbox-releases/${MY_CODENAME}/tarball/scratchbox-toolchain-host-gcc-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=""
RDEPEND=""
TARGET_DIR="/opt/scratchbox"
S=${WORKDIR}/scratchbox
src_install() {
cd "${S}"
dodir ${TARGET_DIR}
# doins doesn't work with symlinks, getting "file not found" with doins
cp -pRP ./* "${D}/${TARGET_DIR}"
dosym opt/scratchbox scratchbox
# Create scratchbox command
dodir /usr/bin || die "Directory creation failed"
dosym /opt/scratchbox/login /usr/bin/scratchbox || die "Symlink
creation failed"
# Create scratchbox service loader
newinitd "${FILESDIR}/scratchbox.rc" scratchbox || die "Initscript
installation failed"
# group already created
echo ${SBOX_GROUP} > "${D}/${TARGET_DIR}/.run_me_first_done"
}
pkg_preinst() {
einfo "Creating group sbox"
enewgroup "${SBOX_GROUP}" || die "adding group '${SBOX_GROUP}' failed"
}
pkg_postinst() {
elog
elog "You need to run:"
elog "\"emerge --config =${CATEGORY}/${PF}\""
elog "to set permissions and setup scratchbox users"
elog
elog "For further documentation about how to setup"
elog "scratchbox for your development needs have a look at"
elog "http://scratchbox.org/documentation/user/scratchbox-${MY_P}/"
elog
elog "Also note that when you reboot you should run:"
elog "/etc/init.d/scratchbox start"
elog "before trying to run scratchbox."
elog "You can also add it to the default runlevel:"
elog "rc-update add scratchbox default"
elog
elog "Type /opt/scratchbox/login to start scratchbox."
elog
}
pkg_postrm() {
elog
elog "To remove all traces of scratchbox you will need to remove the
file"
elog "/etc/init.d/scratchbox. Don't forget to delete the sbox group."
elog
}
pkg_config() {
if [ `id -u` != "0" ]; then
ewarn "Must be root to run this"
die "not root"
fi
einfo "Do you want to configure scratchbox? [Yes/No]"
einfo "Note: This will set permissions and copy files from the system
into the scratchbox"
read choice
echo
case "$choice" in
y*|Y*|"")
"${TARGET_DIR}/sbin/sbox_configure" "no" ${SBOX_GROUP}
|| die "sbox_configure failed"
;;
*)
;;
esac
mkdir -p "${TARGET_DIR}/scratchbox/users"
while true; do
einfo "Existing users:"
einfo $(ls "${TARGET_DIR}/users")
echo
einfo "Create new user (leave empty to skip): "
read newuser
case "$newuser" in
"")
break;
;;
*)
einfo "Note: users have to be in the
'${SBOX_GROUP}' to be able to login into the Scratchbox"
"${TARGET_DIR}/sbin/sbox_adduser" ${newuser} ||
die "sbox_adduser failed"
;;
esac
done
einfo "Configuration finished. Make sure you run
'/etc/init.d/scratchbox start' before logging in."
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
MY_CODENAME="apophis"
MY_PV="${PV}-i386"
RESTRICT="strip"
DESCRIPTION="Scratchbox CPU transparency devkit: CPU transparency via sbrsh or
QEMU"
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://www.scratchbox.org/download/files/sbox-releases/${MY_CODENAME}/tarball/scratchbox-devkit-cputransp-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=">=sys-devel/scratchbox-bin-1.0"
RDEPEND="${DEPEND}"
TARGET_DIR="/opt/scratchbox"
S=${WORKDIR}/scratchbox
src_install() {
cd "${S}"
dodir ${TARGET_DIR}
# doins doesn't work with symlinks, getting "file not found" with doins
cp -pRP ./* "${D}/${TARGET_DIR}"
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
MY_CODENAME="apophis"
MY_PV="${PV}-i386"
RESTRICT="strip"
DESCRIPTION="Scratchbox Debian devkit: environment and tools for Debian
development"
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://www.scratchbox.org/download/files/sbox-releases/${MY_CODENAME}/tarball/scratchbox-devkit-debian-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=">=sys-devel/scratchbox-bin-1.0"
RDEPEND="${DEPEND}"
TARGET_DIR="/opt/scratchbox"
S=${WORKDIR}/scratchbox
src_install() {
cd "${S}"
dodir ${TARGET_DIR}
# doins doesn't work with symlinks, getting "file not found" with doins
cp -pRP ./* "${D}/${TARGET_DIR}"
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
MY_CODENAME="apophis"
MY_PV="${PV}-i386"
RESTRICT="strip"
DESCRIPTION="Scratchbox Doctools devkit: document generation tools"
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://www.scratchbox.org/download/files/sbox-releases/${MY_CODENAME}/tarball/scratchbox-devkit-doctools-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=">=sys-devel/scratchbox-bin-1.0"
RDEPEND="${DEPEND}"
TARGET_DIR="/opt/scratchbox"
S=${WORKDIR}/scratchbox
src_install() {
cd "${S}"
dodir ${TARGET_DIR}
# doins doesn't work with symlinks, getting "file not found" with doins
cp -pRP ./* "${D}/${TARGET_DIR}"
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
MY_CODENAME="apophis"
MY_PV="${PV}-i386"
RESTRICT="strip"
DESCRIPTION="Scratchbox Maemo3 devkit: environment and tools for Maemo3
development"
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://www.scratchbox.org/download/files/sbox-releases/${MY_CODENAME}/tarball/scratchbox-devkit-maemo3-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=">=sys-devel/scratchbox-bin-1.0
>=sys-devel/scratchbox-devkit-debian-bin-1.0.8"
RDEPEND="${DEPEND}"
TARGET_DIR="/opt/scratchbox"
S=${WORKDIR}/scratchbox
src_install() {
cd "${S}"
dodir ${TARGET_DIR}
# doins doesn't work with symlinks, getting "file not found" with doins
cp -pRP ./* "${D}/${TARGET_DIR}"
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
MY_CODENAME="apophis"
MY_PV="${PV}-i386"
RESTRICT="strip"
DESCRIPTION="Scratchbox Perl devkit: additional Perl modules"
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://www.scratchbox.org/download/files/sbox-releases/${MY_CODENAME}/tarball/scratchbox-devkit-perl-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=">=sys-devel/scratchbox-bin-1.0"
RDEPEND="${DEPEND}"
TARGET_DIR="/opt/scratchbox"
S=${WORKDIR}/scratchbox
src_install() {
cd "${S}"
dodir ${TARGET_DIR}
# doins doesn't work with symlinks, getting "file not found" with doins
cp -pRP ./* "${D}/${TARGET_DIR}"
}
#!/sbin/runscript
depend() {
need localmount
use logger net
}
start() {
ebegin Starting Scratchbox
test -x /opt/scratchbox/sbin/sbox_ctl || \
eend 1 "Scratchbox init script not found. Aborting" ||
return 1
/opt/scratchbox/sbin/sbox_ctl start
eend $?
}
stop() {
ebegin Stopping Scratchbox
test -x /opt/scratchbox/sbin/sbox_ctl || \
eend 1 "Scratchbox init script not found. Aborting" ||
return 1
/opt/scratchbox/sbin/sbox_ctl stop
eend $?
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
MY_CODENAME="apophis"
MY_PV="${PV}-i386"
RESTRICT="strip"
DESCRIPTION="Scratchbox toolchain: cs2005q3.2-glibc2.5-arm"
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://www.scratchbox.org/download/files/sbox-releases/${MY_CODENAME}/tarball/scratchbox-toolchain-cs2005q3.2-glibc2.5-arm-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=">=sys-devel/scratchbox-bin-1.0"
RDEPEND="${DEPEND}"
TARGET_DIR="/opt/scratchbox"
S=${WORKDIR}/scratchbox
src_install() {
cd "${S}"
dodir ${TARGET_DIR}
# doins doesn't work with symlinks, getting "file not found" with doins
cp -pRP ./* "${D}/${TARGET_DIR}"
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
MY_CODENAME="apophis"
MY_PV="${PV}-i386"
RESTRICT="strip"
DESCRIPTION="Scratchbox toolchain: cs2005q3.2-glibc2.5-i386"
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://www.scratchbox.org/download/files/sbox-releases/${MY_CODENAME}/tarball/scratchbox-toolchain-cs2005q3.2-glibc2.5-i386-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=">=sys-devel/scratchbox-bin-1.0"
RDEPEND="${DEPEND}"
TARGET_DIR="/opt/scratchbox"
S=${WORKDIR}/scratchbox
src_install() {
cd "${S}"
dodir ${TARGET_DIR}
# doins doesn't work with symlinks, getting "file not found" with doins
cp -pRP ./* "${D}/${TARGET_DIR}"
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
MY_CODENAME="apophis"
MY_PV="${PV}-i386"
RESTRICT="strip"
DESCRIPTION="Scratchbox toolchain: cs2005q3.2-glibc-arm"
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://www.scratchbox.org/download/files/sbox-releases/${MY_CODENAME}/tarball/scratchbox-toolchain-cs2005q3.2-glibc-arm-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=">=sys-devel/scratchbox-bin-1.0"
RDEPEND="${DEPEND}"
TARGET_DIR="/opt/scratchbox"
S=${WORKDIR}/scratchbox
src_install() {
cd "${S}"
dodir ${TARGET_DIR}
# doins doesn't work with symlinks, getting "file not found" with doins
cp -pRP ./* "${D}/${TARGET_DIR}"
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
MY_CODENAME="apophis"
MY_PV="${PV}-i386"
RESTRICT="strip"
DESCRIPTION="Scratchbox toolchain: cs2005q3.2-glibc-i386"
HOMEPAGE="http://www.scratchbox.org/"
SRC_URI="http://www.scratchbox.org/download/files/sbox-releases/${MY_CODENAME}/tarball/scratchbox-toolchain-cs2005q3.2-glibc-i386-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND=">=sys-devel/scratchbox-bin-1.0"
RDEPEND="${DEPEND}"
TARGET_DIR="/opt/scratchbox"
S=${WORKDIR}/scratchbox
src_install() {
cd "${S}"
dodir ${TARGET_DIR}
# doins doesn't work with symlinks, getting "file not found" with doins
cp -pRP ./* "${D}/${TARGET_DIR}"
}
_______________________________________________
maemo-developers mailing list
[email protected]
https://lists.maemo.org/mailman/listinfo/maemo-developers