for dir in $BIND_DIRS ; do DEST="${BASE}${dir}" mount | grep -q $DEST if [ "$?" -ne "0" ] ; then echo " - Montando $DEST" mount --rbind $dir $DEST fi done
$ cat etc/apt/sources.list deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy main restricted deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates main restricted deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy universe deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates universe deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy multiverse deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates multiverse deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-backports main restricted universe multiverse deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security main restricted deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security universe deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security multiverse deb http://archive.canonical.com/ubuntu saucy partner deb http://extras.ubuntu.com/ubuntu saucy main
$ cat chroot.sh
ReplyDelete#!/bin/bash
[ "$UID" -ne "0" ] && { echo "ERROR: debe ejecutarse como root" ; exit 1 ; }
BASE=$(cd $(dirname $0); pwd)
/bin/cp -f /etc/resolv.conf $BASE/etc/resolv.conf
BIND_DIRS="/proc /sys /dev /run /tmp"
for dir in $BIND_DIRS ; do
DEST="${BASE}${dir}"
mount | grep -q $DEST
if [ "$?" -ne "0" ] ; then
echo " - Montando $DEST"
mount --rbind $dir $DEST
fi
done
$ cat etc/apt/sources.list
ReplyDeletedeb http://mirrors.coopvgg.com.ar/ubuntu/ saucy main restricted
deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates main restricted
deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy universe
deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates universe
deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy multiverse
deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates multiverse
deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-backports main restricted universe multiverse
deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security main restricted
deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security universe
deb http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security multiverse
deb http://archive.canonical.com/ubuntu saucy partner
deb http://extras.ubuntu.com/ubuntu saucy main
deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy main restricted
deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates main restricted
deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy universe
deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates universe
deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy multiverse
deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-updates multiverse
deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-backports main restricted universe multiverse
deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security main restricted
deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security universe
deb-src http://mirrors.coopvgg.com.ar/ubuntu/ saucy-security multiverse
deb-src http://archive.canonical.com/ubuntu saucy partner
deb-src http://extras.ubuntu.com/ubuntu saucy main
$ apt-get install aptitude
ReplyDelete$ aptitude install language-pack-en
$ locale-gen en_US.UTF-8
$ aptitude install ubuntu-minimal
$ apt-get build-dep gimp
ReplyDelete$ export INSTALL_PREFIX=/opt/gimp
ReplyDelete$ export PATH=$INSTALL_PREFIX/bin:$PATH
$ export PKG_CONFIG_PATH=$INSTALL_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH
$ export LD_LIBRARY_PATH=$INSTALL_PREFIX/lib:$LD_LIBRARY_PATH
$ cd gimp
$ ./autogen.sh --prefix=/opt/gimp
https://help.ubuntu.com/community/UpdatingADeb
ReplyDelete$ vim /etc/apt/apt-build.conf
ReplyDelete$ rm -rf /var/cache/apt-build && mkdir -p /var/cache/apt-build/build /var/cache/apt-build/repository
$ apt-build build-source libfftw3-3