Differences between revisions 2 and 3
Revision 2 as of 2007-03-27 01:19:40
Size: 1509
Editor: wookey
Comment:
Revision 3 as of 2007-03-27 07:13:53
Size: 2112
Editor: NeilWilliams
Comment: a few corrections
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
This is intended to be a quick guide on Emdebian. This is intended to be a quick start guide to Emdebian and emdebian-tools.
Line 7: Line 7:
You will need to download a package called emdebian-tools, either from Debian repositories or Emdebian repository. You will need to install a package called emdebian-tools, either from Debian repositories or the Emdebian repository. {{{emdebian-tools}}} also brings in {{{apt-cross}}} and {{{dpkg-cross}}}.
Line 10: Line 10:
$ sudo apt-get install emdebian-tools apt-cross dpkg-cross $ sudo apt-get install emdebian-tools
Line 13: Line 13:
This will ask you where you want to build packages, and your username for emdebain svn access if you have one. It will also ask if you want to use apt-get or aptitude for package downloading. This will ask you where you want to build packages, your username for emdebian svn access if you have one and if you want to use apt-get or aptitude for package downloading. {{{dpkg-cross}}} will offer you the chance to set a default cross-building architecture which saves a lot of typing later on. If you choose {{{None}}}, you will need to add '{{{--arch ARCH}}}' to all the emdebian-tools commands.
Line 15: Line 15:
After you got the tools, you have to setup an emdebian environment. This sets up the ~/.dpkg-cross dir which contains apt caches and config. After you have the tools, you have to setup an emdebian environment. This sets up the {{{~/.dpkg-cross}}} dir which contains apt caches and configuration files.

New users are recommended to use at least one {{{-v|--verbose}}} option to all emdebian-tools commands.
Line 23: Line 25:
If ~/.dpkg_cross/cross_compile isn't fully configured yet, (hint in the
manpage), then emsetup requests the use of --arch to determine the
target architecture:
If {{{~/.dpkg_cross/cross_compile}}} isn't fully configured yet, (hint in the manpage), or you chosen to have no default cross-building architecture, then emsetup requests the use of --arch to determine the target architecture:
Line 33: Line 33:
Now you can run {{{emsource <package>}}} to get a debian package, unpack it and apply / generate any emdebian patches. This is directly equivalent to {{{apt-get source}}} in mainstream debian and then applying some patches. {{{emsource}}} tells you where the package has been unpacked.
Line 34: Line 35:
now you can run
{{{emsource <package>}}} to get a debian package, unpack it and apply any emdebian patches. This is roughly equivalent to {{{dpkg-source -x}}} in mainstream debian.

Now you can cd into the package dir and do
{{{emdebuild}}} to actually build the package, installing build dependencies as needed with apt-get or aptitude.
Now you can cd into the package dir and do {{{emdebuild}}} to actually build the package. You will need to install any build dependencies as needed with apt-get or aptitude.
Line 41: Line 38:

Emdebian Quick Start

This is intended to be a quick start guide to Emdebian and emdebian-tools.

Emdebian-tools

You will need to install a package called emdebian-tools, either from Debian repositories or the Emdebian repository. emdebian-tools also brings in apt-cross and dpkg-cross.

$ sudo apt-get install emdebian-tools

This will ask you where you want to build packages, your username for emdebian svn access if you have one and if you want to use apt-get or aptitude for package downloading. dpkg-cross will offer you the chance to set a default cross-building architecture which saves a lot of typing later on. If you choose None, you will need to add '--arch ARCH' to all the emdebian-tools commands.

After you have the tools, you have to setup an emdebian environment. This sets up the ~/.dpkg-cross dir which contains apt caches and configuration files.

New users are recommended to use at least one -v|--verbose option to all emdebian-tools commands.

$ emsetup --verbose --simulate
# check that the output is acceptable, nothing changed yet.
$ emsetup

If ~/.dpkg_cross/cross_compile isn't fully configured yet, (hint in the manpage), or you chosen to have no default cross-building architecture, then emsetup requests the use of --arch to determine the target architecture:

$ emsetup -v -s --arch m68k
# check that the output is acceptable, nothing changed yet.
$ emsetup -a m68k

Now you can run emsource <package> to get a debian package, unpack it and apply / generate any emdebian patches. This is directly equivalent to apt-get source in mainstream debian and then applying some patches. emsource tells you where the package has been unpacked.

Now you can cd into the package dir and do emdebuild to actually build the package. You will need to install any build dependencies as needed with apt-get or aptitude.

You could check some documentation at [http://linux.codehelp.co.uk/emdebian/man/ Emdebian Manual]


CategoryEmdebian