Difference between revisions of "GNOME/BuildStream"

From i14i
Jump to navigation Jump to search
(←Membuat halaman berisi 'Membangun GNOME Memakai BuildStream =Memulai= ==Kebutuhan== Ruang disk paling tidak 20 GB ==Pasang BuildStream== Acuan: https://buildstream.gitlab.io/buildstream/inst...')
 
Line 7: Line 7:
Acuan: https://buildstream.gitlab.io/buildstream/install.html
Acuan: https://buildstream.gitlab.io/buildstream/install.html


===Debian Buster/Sid===
Untuk Debian Buster/Sid, pasang paket dasar:
Pasang paket dasar:
<pre>sudo apt-get install python3-dev python3-pip git python3-gi gir1.2-ostree-1.0 ostree bubblewrap python3-ruamel.yaml fuse libfuse2</pre>
<pre>sudo apt-get install python3-dev python3-pip git python3-gi gir1.2-ostree-1.0 ostree bubblewrap python3-ruamel.yaml fuse libfuse2</pre>



Revision as of 15:56, 17 February 2018

Membangun GNOME Memakai BuildStream

Memulai

Kebutuhan

Ruang disk paling tidak 20 GB

Pasang BuildStream

Acuan: https://buildstream.gitlab.io/buildstream/install.html

Untuk Debian Buster/Sid, pasang paket dasar:

sudo apt-get install python3-dev python3-pip git python3-gi gir1.2-ostree-1.0 ostree bubblewrap python3-ruamel.yaml fuse libfuse2

Pasang juga paket-paket berikut:

sudo apt install build-essential autoconf libtool pkg-config python3-dev

Bila memakai VM lxc, siapkan agar VM bisa memakai fuse, dengan menambahkan baris berikut pada berkas config VM lxc di VM host:

#fuse
lxc.cgroup.devices.allow = c 10:229 rwm

Lalu jalankan juga di VM lxc

user@host:~$ sudo cp -a /dev /dev.old
$ sudo apt-get install sshfs
$ sudo cp -a /dev.old/* /dev/
$ sudo mknod /dev/fuse c 10 229
$ sudo update-rc.d -f udev disable

Pasang dengan pip:

git clone https://gitlab.com/BuildStream/buildstream.git
cd buildstream
pip3 install --user -e .

Sesuaikan path, jalankan yang berikut, dan tambahkan juga di ~/.bashrc:

export PATH=${PATH}:~/.local/bin

Bash completion, pasang yang berikut di ~/.bash_completion:

# BuildStream bash completion scriptlet.
#
# On systems which use the bash-completion module for
# completion discovery with bash, this can be installed at:
#
#   pkg-config --variable=completionsdir bash-completion
#
# If BuildStream is not installed system wide, you can
# simply source this script to enable completions or append
# this script to your ~/.bash_completion file.
#
_bst_completion() {
    local IFS=$'
'
    COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \
                   COMP_CWORD=$COMP_CWORD \
                   _BST_COMPLETION=complete $1 ) )
    return 0
}

complete -F _bst_completion -o nospace bst;

Atur BuildStream

Buat berkas .config/buildstream.conf yang berisi:

# This configuration reduces the amount of necessary rebuilds
projects:
  gnome:
    strict: False

# This configuration lets you control the number of allowed parallel builds
scheduler:
  builders: 2

Membangun GNOME