File baselibs-deb.conf of Package dpkg
arch i386 targets armel:x86lib
prefix /lib-x86
dpkg
targettype x86lib prereq dpkg
targettype x86lib prereq patchelf-x86lib
targettype x86lib requires libc6-x86lib
targettype x86lib post replace() {
targettype x86lib post mv $prog ${prog}-orig-x86lib ; ln -s <prefix>${prog} ${prog}
targettype x86lib post }
# /usr/bin/dpkg has the arch hardcoded - don't replace it
targettype x86lib post for prog in /usr/bin/dpkg-deb /usr/bin/dpkg-query /usr/bin/dpkg-split /usr/bin/dpkg-trigger
targettype x86lib post do
targettype x86lib post echo patchelf and replace $prog
targettype x86lib post <prefix>/usr/bin/patchelf --set-rpath <prefix>/lib:<prefix>/usr/lib <prefix>$prog
targettype x86lib post replace $prog
targettype x86lib post done
targettype x86lib preun #!/bin/sh
targettype x86lib preun replace() {
targettype x86lib preun rm -f ${prog}; mv ${prog}-orig-x86lib $prog
targettype x86lib preun }
targettype x86lib preun for prog in /usr/bin/dpkg-deb /usr/bin/dpkg-query /usr/bin/dpkg-split /usr/bin/dpkg-trigger
targettype x86lib preun do
targettype x86lib preun replace $prog
targettype x86lib preun done