= DebianHostedTools = [[TOC(Building/DebianHostedTools, depth=2)]] '''Status:''' [http://google-summer-of-code-2008-rtems.googlecode.com/files/RyanJames_Harrison.tar.gz Packaging] generated as a GSOC 2008 project. Ralf Corsépius wrote an [http://git.rtems.org/rtems-buildsys/tree/rtems-sbuild sbuild] application for generating Debian hosted RTEMS tools. Need to verify with Ralf Corsépius before proceeding to use as a GSoC project. Pre-compiled versions of the RTEMS tools are currently available for RPM-based GNU/Linux distributions such as Fedora, RedHat Enterprise Linux, CentOS, and SUSE as well as MS-Windows via MinGW. This project consists of the development of comparable .deb package specifications and build scripts. The resulting packaging and infrastructure should be suitable for at least GNU/Debian and Ubuntu distributions. As the RTEMS toolset updates frequently, there must be scripting infrastructure developed to build these tools easily when updates are required. [wiki:RalfCorsepius RalfCorsepius] is the RPM builder and maintainer. He uses [http://fedoraproject.org/wiki/Projects/Mock Mock] to use a single development machine to build binaries for a variety of distributions. He is a good resource or mentor for this project. The Debian alternative to Mock is: [https://wiki.ubuntu.com/PbuilderHowto Pbuilder]. Pbuilder apparently has been packaged for [http://pkgs.org/fedora-16/rpm-sphere-i586/pbuilder-0.211-11.1.noarch.rpm.html Fedora] so may be a viable option, but would have to ask mentor. Some initial research indicates some steps might include: # Going through a getting started with Pbuilder (or other packaging tool) # Building the RTEMS Toolset in the chrooted environment # writing a script that uses templates to build the RTEMS Toolset and RTEMS in a chrooted environment: ## download the source and Debian patches from [http://ftp.de.debian.org/debian/pool/main/ Debian]. (apt-get source binutils gcc newlib gdb) ## apply the Debian patches ## apply the RTEMS patches ## configure the packages ## satisfy the build dependencies (build-dep) ## build the package The RTEMS Project currently does not have a computer running a Debian based GNU/Linux distribution and would have to have one before these could be supported long term.= Additional References = Basic Pbuilder tutorial https://wiki.ubuntu.com/PbuilderHowto The monolog of a frustrated user (Good for adding "gotchas" to the TODO) http://linux.lsdev.sil.org/wiki/index.php/Packaging_using_Pbuilder Templates for Multiple Platforms http://wiki.debian.org/PbuilderTricks Pbuilder Manual http://www.netfort.gr.jp/~dancer/software/pbuilder-doc/pbuilder-doc.html Hints for Building Debian Packages from Source http://users.telenet.be/mydotcom/howto/linux/package02.htm Another Pbuilder Tutorial http://edseek.com/~jasonb/articles/pbuilder_backports/backportprocess.html