Hi, I recently packaged a package with custom *-config and hit by multiarch bug for -dev package like this one immediately after my upload (Jakub, thanks for checking it).
kakasi http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=737378 Since this was caused by hardcoding @libdir@ path into shell code, I replaced that @libdir@ part of code with /usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) ^^^^ I know I solved issue for normal build case and possibly for cross compile. Colin, what do you think of such a fix. In order to ensure that was OK, I created similar for this package to hear from you all. Please note if the build machine is different arch from the host machine, -L is added with the attached patch since it also uses: /usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH) ^^^^^ I am not adding dpkg-dev (which dpkg-architecture belongs) since it is Build-Essential: yes If this simple fix method of mine works, there seem several candidates. $ file $(ls *-config)|grep 'POSIX shell script' chasen-config: POSIX shell script, ... discover-config: POSIX shell script, ... freetype-config: POSIX shell script, ... gpg-error-config: POSIX shell script, ... icu-config: POSIX shell script, ... kakasi-config: POSIX shell script, ... <<<= Fixed libpng12-config: POSIX shell script, ... mecab-config: POSIX shell script, ... ncurses5-config: POSIX shell script, ... ncursesw5-config: POSIX shell script, ... nspr-config: POSIX shell script, ... nss-config: POSIX shell script, ... pcre-config: POSIX shell script, ... x86_64-linux-gnu-python2.7-config: POSIX shell script, ... xdelta-config: POSIX shell script, ... xml2-config: POSIX shell script, ... Regards, Osamu
--- a/src/gpg-error-config.in +++ b/src/gpg-error-config.in @@ -13,7 +13,7 @@ prefix=@prefix@ exec_prefix=@exec_prefix@ includedir=@includedir@ -libdir=@libdir@ +libdir=/usr/lib/$(dpkg-architecture -qDEB_HOST_MULTIARCH) isubdirafter="@GPG_ERROR_CONFIG_ISUBDIRAFTER@" output="" @@ -70,7 +70,7 @@ ;; --libs) case "$libdir" in - /usr/lib|/usr/lib64|/lib|/lib64) ;; + /usr/lib|/usr/lib64|/lib|/lib64|/usr/lib/$(dpkg-architecture -qDEB_BUILD_MULTIARCH)) ;; *) output="$output -L$libdir" ;;

