* Hakan Ardo ([EMAIL PROTECTED]) wrote:
> 
> I have now built a gcc-m68k-linux package by installilng an libc-m68k-cross
> and an libc-dev-m68k-cross created by dpkg-cross before building gcc. What 
> I had to do to get it working was:

Cool.


>   - Change crossbase in /etc/dpkg/cross-compile from /usr/local to /usr. Why
>     is this defaulting to /usr/local? Don't we want cross-compilers in /usr?

Well I suppose it depends how you chop your disc up, personally I put
/usr and / on the same partition and made them fairly small and made
/usr/local and /discs/cross - but its just a matter of taste I guess.

>   - Patch dh_shlibdeps not to pass files to dpkg-shlibsgen that were not in
>     the native format (included below). dpkg-cross contains some replacement
>     dpkg-shlibsgen that I think should be used instead. Anyone know how to 
>     thatone not to deafult back to dpkg-shlibsgen.orig? Will it work in this
>     kind of mixed environ where we have some native binaries and some corss
>     libraries?

Hmm that didn't work for me - I get complaints at the end of the build
complaing from dh_strip about an unkown output file format.
(I did the shlibdeps change after using dpkg-cross and after building
binutils but before building gcc).

Dave

P.S. Here is a script I wrote to get the libc6 and libc6-dev packages
for dpkg-cross - there must be an easier way?

8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-<

#!/bin/sh -x

#SERVER='ftp://ftp.us.debian.org'
export SERVER="ftp://ftp.uk.debian.org";

# $1 is the architecture name

archname=$1

case $1 in
  alpha)
    debarch=alpha ;;

        arm)
          debarch=arm ;;

        hppa)
          debarch=hppa ;;

        i486)
          debarch=i386 ;;

        m68k)
          debarch=m68k ;;

        mips)
          debarch=mips ;;

        ppc)
          debarch=powerpc ;;

        sparc)
          debarch=sparc ;;

        *)
          echo "Hmph - dunno the $1 arch" >&2
                exit 2
esac
        
wget $SERVER/debian/dists/testing/main/binary-${debarch}/Packages.gz -O 
/tmp/packageset.gz || exit 2

rm -f /tmp/packageset
gzip -d /tmp/packageset.gz || exit 2

for PATTERN in 'libc6$' 'libc6.*-dev$'
do
        debfilename=`dpkg-awk -f /tmp/packageset "Package:"$PATTERN -- 
"Filename" | sed --silent 's/Filename: \(.*\)$/\1/p'`

        DEBHERENAME=/tmp/`basename $debfilename`
        wget $SERVER/debian/${debfilename} -O $DEBHERENAME || exit 2
        dpkg-cross -a ${debarch} -i $DEBHERENAME || exit 2
done

8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-< 8-<

 ---------------- Have a happy GNU millennium! ----------------------   
/ Dr. David Alan Gilbert    | Running GNU/Linux on Alpha,68K| Happy  \ 
\ gro.gilbert @ treblig.org | MIPS,x86,ARM, SPARC and HP-PA | In Hex /
 \ _________________________|_____ http://www.treblig.org   |_______/


Reply via email to