Import patches-unapplied version 2.123 to ubuntu/raring-proposed

Imported using git-ubuntu import.

Changelog parent: 19d6263b99

New changelog entries:
  * fix typos in debootstrap line of ubuntu-touch-android.sh
  * redo ubuntu-touch-android.sh to use its own build chroot since we can not
    add universe support to the livefs builder chroot
  * ubuntu-touch-android.sh: enable universe in the build chroot
impish
Oliver Grawert 12 years ago committed by usd-importer
parent 19d6263b99
commit fdf09ef826

19
debian/changelog vendored

@ -1,3 +1,22 @@
livecd-rootfs (2.123) raring; urgency=low
* fix typos in debootstrap line of ubuntu-touch-android.sh
-- Oliver Grawert <ogra@ubuntu.com> Tue, 16 Apr 2013 11:07:44 +0200
livecd-rootfs (2.122) raring; urgency=low
* redo ubuntu-touch-android.sh to use its own build chroot since we can not
add universe support to the livefs builder chroot
-- Oliver Grawert <ogra@ubuntu.com> Mon, 15 Apr 2013 20:18:32 +0200
livecd-rootfs (2.121) raring; urgency=low
* ubuntu-touch-android.sh: enable universe in the build chroot
-- Oliver Grawert <ogra@ubuntu.com> Mon, 15 Apr 2013 18:40:55 +0200
livecd-rootfs (2.120) raring; urgency=low livecd-rootfs (2.120) raring; urgency=low
* fix typo in shebang of ubuntu-touch-android.sh * fix typo in shebang of ubuntu-touch-android.sh

@ -1,36 +1,62 @@
#!/bin/bash #!/bin/sh
set -e set -e
codename=$1 codename=$1
builddir=$codename-build builddir=$codename-build
release=raring
[ "$(dpkg --print-architecture)" = "amd64" ] || exit 1 [ "$(dpkg --print-architecture)" = "amd64" ] || exit 1
# set up multiarch # set up a build chroot
dpkg --print-foreign-architectures | grep -q i386 || dpkg --add-architecture i386 case $(hostname --fqdn) in
apt-get update *.buildd)
MIRROR=http://ftpmaster.internal/ubuntu
;;
*)
MIRROR=http://archive.ubuntu.com/ubuntu
;;
esac
debootstrap --components=main,universe $release $builddir $MIRROR
mount -t devpts devpts-$builddir $builddir/dev/pts
chroot mount -t proc proc-$builddir /proc
chroot mount -t sysfs sys-$builddir /sys
# set up multiarch inside the chroot
chroot $builddir dpkg --add-architecture i386
chroot $builddir apt-get update
# add cross build env including the needed i386 packages # add cross build env including the needed i386 packages
apt-get -y install git gnupg flex bison gperf build-essential \ chroot $builddir apt-get -y install git gnupg flex bison gperf build-essential \
zip bzr curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \ zip bzr curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \ libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos phablet-tools \ libgl1-mesa-dev g++-multilib mingw32 tofrodos phablet-tools \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool \ python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool \
openjdk-6-jdk openjdk-6-jdk
# get the git tree # create an in chroot script to get the git tree and build it
phablet-dev-bootstrap -v $codename $builddir cat << 'EOF' > $builddir/build-android.sh
#!/bin/bash
phablet-dev-bootstrap -v $codename $builddir
cd $builddir cd $builddir
repo sync repo sync
. build/envsetup.sh . build/envsetup.sh
brunch $codename brunch $codename
EOF
cd - chmod +x $builddir/build-android.sh
cp $builddir/out/target/product/$codename/*-$codename.zip ./livecd.ubuntu-touch-$codename.zip
chroot $builddir /build-android.sh
cp $builddir/$builddir/out/target/product/$codename/*-$codename.zip ./livecd.ubuntu-touch-$codename.zip
for image in system recovery boot; do for image in system recovery boot; do
cp $builddir/out/target/product/$codename/$image.img ./livecd.ubuntu-touch-$codename.$image.img cp $builddir/$builddir/out/target/product/$codename/$image.img ./livecd.ubuntu-touch-$codename.$image.img
done done
rm -rf $buildir
umount $builddir/sys
umount $builddir/proc
umount $builddir/dev/pts
rm -rf $builddir

Loading…
Cancel
Save