Bug#471513: Please add an example hook for using gcc snapshot easily

Kumar Appaiah akumar at ee.iitm.ac.in
Tue Mar 18 16:40:31 UTC 2008


Package: pbuilder
Severity: wishlist
Tags: patch

Hi!

Please consider adding an example hook for use with gcc-snapshot build
testing. I have attached an example which does the needful for gcc,
g++ and gfortran (which I needed), which you may use to base the
example.

Thanks to Paul Wise for the original idea.

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
-------------- next part --------------
#!/bin/bash
aptitude -R -y install gcc-snapshot
cat > /usr/local/bin/gcc-snapshot <<EOF
#!/bin/sh
LD_LIBRARY_PATH=/usr/lib/gcc-snapshot/lib:$LD_LIBRARY_PATH
PATH=/usr/lib/gcc-snapshot/bin:$PATH
gcc "\$@"
EOF

chmod 755 /usr/local/bin/gcc-snapshot

cat > /usr/local/bin/g++-snapshot <<EOF
#!/bin/sh
LD_LIBRARY_PATH=/usr/lib/gcc-snapshot/lib:$LD_LIBRARY_PATH
PATH=/usr/lib/gcc-snapshot/bin:$PATH
g++ "\$@"
EOF

chmod 755 /usr/local/bin/g++-snapshot

cat > /usr/local/bin/gfortran-snapshot <<EOF
#!/bin/sh
LD_LIBRARY_PATH=/usr/lib/gcc-snapshot/lib:$LD_LIBRARY_PATH
PATH=/usr/lib/gcc-snapshot/bin:$PATH
g++ "\$@"
EOF

chmod 755 /usr/local/bin/gfortran-snapshot

rm -f /usr/bin/gcc /usr/bin/g++ /usr/bin/gfortran
ln -s /usr/local/bin/gcc-snapshot /usr/bin/gcc
ln -s /usr/local/bin/g++-snapshot /usr/bin/g++
ln -s /usr/local/bin/gfortran-snapshot /usr/bin/gfortran
#/bin/bash < /dev/tty > /dev/tty
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pbuilder-maint/attachments/20080318/0277290b/attachment.pgp 


More information about the Pbuilder-maint mailing list