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
#!/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
signature.asc
Description: Digital signature

