Package: toolchain-source
Version: 3.4-5
Severity: wishlist
Tags: patch

I needed to compile an older version of gcc for my cross-compiler
setup (toolchain source only comes with the most recent version). So I
wrote the attached script to build a gcc-cross from any regular debian
source (as downloadable with apt-get --download-only source).

Simply download gcc-VERSION.orig.tar.gz gcc-VERSION.diff.gz and
gcc-VERSION.dsc and invoke

tj-tpkg-make-gcc-from-dsc <target> gcc-VERSION.dsc

The script contains perlpod documentation which can be conveniently
read with the pod2* commands, e.g.:

pod2man tj-tpkg-make-gcc-from-dsc | man -l -

My script requires an installed version of perl 5.6 or newer.

I'd really like to have users test my script for other versions of gcc
(e.g. I haven't tried 2.9x so far).

Thomas Jahns

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (900, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-mercury
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages toolchain-source depends on:
ii  devscripts                    2.8.14     Scripts to make the life of a Debi
ii  dpkg-awk                      1.0.1      Gawk script to parse /var/lib/dpkg
ii  dpkg-cross                    1.24       tools for cross compiling Debian p
ii  m4                            1.4.2-2    a macro processing language
ii  wget                          1.9.1-10   retrieves files from the web

-- no debconf information

Attachment: tj-tpkg-make-gcc-from-dsc
Description: Perl program

Reply via email to