X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185]) by lists.alpinelinux.org (Postfix) with ESMTP id 77F7417005F2C for ; Mon, 9 Feb 2009 14:44:19 +0000 (UTC) Received: by nf-out-0910.google.com with SMTP id d21so412559nfb.35 for ; Mon, 09 Feb 2009 06:44:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=NJ1cq1+YwLRswMqN/+3AwLQuQU82jnlrNPMUHBAHGm8=; b=FfBAXAEUxhNrNw4k7NJi/HgfwvQEkAi8c0UCpnMCKDSlVUkdzMYDFusWRf0Ku15l7e wLh4i2zZy8Qa/aCJ9srO8S6ABDsMIweL8DAGg3yHMlec+RYCKHRevkWKbt2j+fuEGcwF xeGNBwck+s1T4alpTf948gVQarBD18fIk0nIY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=BT0fgGeisM64VJvsuCDieDEKxbq3/UkypMoKTD5/XeGjp5IEubLSPF3VVd5AfRHFna cOrt/K3iFr6pvUORCo4hteI2QC6gabYQSjnjMovfISyBedwhOsW1OHSU/tO3w8aQiv6f ctF1ZvbeqjumYRlyx28LHyXDYYV3+hk3L7eIk= Received: by 10.210.62.3 with SMTP id k3mr3895145eba.76.1234190658404; Mon, 09 Feb 2009 06:44:18 -0800 (PST) Received: from ?10.65.65.1? (149-182-13.oke2-bras2.adsl.tele2.no [90.149.182.13]) by mx.google.com with ESMTPS id 28sm12593107eye.59.2009.02.09.06.44.17 (version=SSLv3 cipher=RC4-MD5); Mon, 09 Feb 2009 06:44:17 -0800 (PST) Subject: [alpine-devel] dealing with iconv From: Natanael Copa To: alpine-devel@lists.alpinelinux.org Content-Type: text/plain Date: Mon, 09 Feb 2009 15:44:15 +0100 Message-Id: <1234190655.11678.61.camel@nc> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 X-Mailer: Evolution 2.24.4 Content-Transfer-Encoding: 7bit Hi, Problem: Some packages needs iconv. If iconv is installed will other packages just use it by default, even if you are not asked for it. Sometimes its poissble to disable it with --disable-nls, but I'm not sure that always works. Result is that tons of packages will link to this bloaty lib. (gcc included) In gentoo days we just said: "you need iconv? sorry. not supported". In some occations (vlc) I added uiconv to sources list, compiled it and installed it (the .a and .h only) in temp area and used this with --with-libinconv-prefix. The result was that my tiny uiconv got compiled statically with the binary. Only utf-8, iso-8859-1 and ascii was is supported in uiconv. In some cases it might be that we want the GNU iconv to support all kinds of wierd charsets. I wonder how we should deal with this. Alternative 1: we install GNU iconv in /usr/gnu-iconv and ucivon in /usr/uiconv. No iconv is found by default and packages can select what iconv they want by specifying --with-uiconv-prefix. (this didnt work in pinentry) Alternative 2: we install uiconv in /usr. It will be the "system default" iconv implementation. We could install the .so too, but i think we generally want to use the .a (static) version only. GNU iconv can still be installed in /usr/gnu-iconv and packages who wants it can install it with --with-libiconv-prefix. Not sure how to deal with the shared libiconv.so as it woudl be needed in LD_PATH. If there is only 1 single package that wants iconv (glib) then we might want link that statically too. Alternative 3: we install GNU libiconv as the default iconv (--prefix=/usr) and uiconv can be installed in /usr/uiconv/{include,lib} If we want that a package should use a smaller iconv, they will have to set --with-uiconv-prefix=/usr/uiconv. We would need to have support for makedepends="!libiconv" or need to be careful that we don't build with libiconv support by mistake. Alternative 3.5: Packages that needs iconv but is ok with uiconv can download, compile and link to uiconv statically. (like pinentry does now and vlc does in old build env) What do you think? Other ideas? -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---