Prepare build environment and build package
Info |
---|
|
Please use user 'root' for userland build, because we have to update directory tree and files to use correct permissions and it is possible now only by user 'root'
|
Your /etc/apt/sources.list should have the lines:
Code Block |
---|
|
deb https://apt.dilos.org/dilos dilos2 main contrib non-free
|
Code Block |
---|
language | bash |
---|
title | Add unstable repo to /etc/apt/sources.list |
---|
|
deb-src https://apt.dilos.org/dilos dilos2 main contrib non-free
|
Code Block |
---|
language | bash |
---|
title | update existing packages: |
---|
|
apt-get update |
...
Code Block |
---|
language | bash |
---|
title | install packages: |
---|
|
apt-get install \
gnu-makegmake \
build-essential \
git |
for clone/access to repo 'dilos-userland-gitdu2' you need have to have create account on bitbucket and ask to provide you access by info: http://www.dilos.org/conact-me
Code Block |
---|
language | bash |
---|
title | clone repo: |
---|
|
git clone git@bitbuckethttps://bitbucket.org:/dilos/dilos-userland-gitdu2.git |
Code Block |
---|
language | bash |
---|
title | go to components directory: |
---|
|
cd dilos-userland-gitdu2/components |
Code Block |
---|
language | bash |
---|
title | install additional packages for build environment: |
---|
| gmake debpreppreparation to build a package |
|
cd <du2>/components/apt
gmake setupprep |
Code Block |
---|
language | bash |
---|
title | you are ready to build your package from userland, for example: apt |
---|
|
cd <dilos-userland-git><du2>/components/apt
gmake JOBS=4 deb
( where JOBS - how much parallel build processes you want to use ) |
You can find your package(s) at: <dilos-userland-git>du2>/i386/debs
How to create new package
...
Code Block |
---|
language | bash |
---|
title | build package by: |
---|
|
gmake JOBS=4 install |
Code Block |
---|
language | bash |
---|
title | create sample manifest: |
---|
|
gmake sample-manifest |
you can find generated manifest at: build/manifest-i386-generated.p5m
move manifest to the root component directory and reame it to another name
Code Block |
---|
language | bash |
---|
title | example: |
---|
|
mv build/manifest-i386-generated.p5m mycomponent.p5m
|
update manifest with correct info. If you need more then one package you have to split one manifest to some others. Create directory 'debs' with structure of files for DEB package build by dpkg-buildpackage.
For example take a look another components
...
For more information about environment variables or build flags you can take a look <dilos-userland-reviewdu2>/make-rules/deb_src.mk