I can't compile lcms in a uclibc env, the configure script doesn't recognise i386-pc-linux-uclibc compiler. here is the error: ---- >>> Source unpacked. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking build system type... i686-pc-linux-gnu checking host system type... Invalid configuration `i386-pc-linux-uclibc': machine `i386-pc-linux' not recognized configure: error: /bin/sh ./config.sub i386-pc-linux-uclibc failed !!! ERROR: media-libs/lcms-1.12 failed. !!! Function econf, Line 362, Exitcode 1 !!! econf failed ---- Reproducible: Always Steps to Reproduce: 1. 2. 3. Portage 2.0.50-r9 (x86, gcc-3.3.4, glibc-0.9.26-r5, 2.6.8-rc2) ================================================================= System uname: 2.6.8-rc2 i686 Pentium III (Coppermine) Gentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-Os -pipe" CHOST="i386-pc-linux-uclibc" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-Os -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache nodoc noinfo noman sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://mirror.switch.ch/mirror/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://10.0.4.11/gentoo-portage" USE="berkdb ncurses python readline ssl tcpd uclibc x86 zlib"
Created attachment 37879 [details, diff] fixes the configure script in a uclibc env
Created attachment 37880 [details] updated ebuild
vs. patching config.sub/.guess (unwritten policy we try to avoid) try a simple 'inherit gnuconfig' and in the src_unpack() function add 'gnuconfig_update'
Created attachment 37937 [details] updated ebuild to fix the complation on a uclibc env
please only post patches
fixed in lcms-1.13