From owner-freebsd-ports@FreeBSD.ORG Mon Feb 24 04:08:05 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 43A131C0 for ; Mon, 24 Feb 2014 04:08:05 +0000 (UTC) Received: from nm17-vm6.access.bullet.mail.gq1.yahoo.com (nm17-vm6.access.bullet.mail.gq1.yahoo.com [216.39.63.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E52291BBB for ; Mon, 24 Feb 2014 04:08:04 +0000 (UTC) Received: from [216.39.60.169] by nm17.access.bullet.mail.gq1.yahoo.com with NNFMP; 24 Feb 2014 04:05:36 -0000 Received: from [98.138.226.240] by tm5.access.bullet.mail.gq1.yahoo.com with NNFMP; 24 Feb 2014 04:05:36 -0000 Received: from [127.0.0.1] by smtp111.sbc.mail.ne1.yahoo.com with NNFMP; 24 Feb 2014 04:05:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bellsouth.net; s=s1024; t=1393214736; bh=c948nhYGyt71EDGHjUg55rFiuUiYP4ywA90qP+ZgxT0=; h=X-Yahoo-Newman-Id:Message-ID:Date:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:From:To:References:Subject; b=hqKajVlbZ5v5eZYFpNnC7D65gPdfHXe5OlcGAa54aj4JPdVYAmKiQ2nJZNfjSytL0bhppSltsh1J5++gSLwO3/EXW49UR94JKozowDDIXuQNI81754UJvvhNwFSJa5z6MJ7HK9PsscWH4XxK6oXRHK4E7ui7bBzlGsZxB02yvgE= X-Yahoo-Newman-Id: 735173.54863.bm@smtp111.sbc.mail.ne1.yahoo.com Message-ID: <735173.54863.bm@smtp111.sbc.mail.ne1.yahoo.com> Date: Sun, 23 Feb 2014 20:05:36 -0800 (PST) X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: p3.pVY8VM1lC9Rt0VgHmguGygfd.hURGfgCT_pQpbZ8PTyL wht.mxxqLxfYaEy1zUwS1L5tNPPxGWJ64wCeLOsbEjwcpEQMl6DJW2jfKcIE gJfzp2dAud0BBfMJ.GISrfhjjT4Vl32O3Q1qCQw8.KRfp4nNRK3bnoUz4Z4d NFLzQYJAtnECwJKeXxRD7sQ.PKOBC1zfoaZx8EMcATnXbimrijKVrLhkcgpK HwY2fw0MOrEL0.zYBnvcCSEE5Ea7neviE8zdf.salzi24Yq27pUMBUkZXkHa 6y1PY1VtrBVBQNPKkfizngyBLWeqnAOs0bHnJQM4Er5X.qZWNLseNoIV8C.N QLD06kcOV.8OMogsBJ0jS_Uk9OC22bc7wO8WQBlHEt668ut7.LALwVt4nlXF kGWeIYEaTaqCObezcyAjW5TN3kFrQuP30SF4yr9GCCXdMphir522kajgLvxt 4Y2zs.o7P06RrSh5KYIGsTqEGqpMMMccWpwrDkgcHAQK6Ir3pWw5H4fdqod5 V1fH0GzBTTIJaY18VdcnG_q3yxFi64n_mBSRtNDWYHeBeSLcGcDGGOUWS3Si 0xRuwmhUrEn01chNJu04- X-Yahoo-SMTP: Kz_aW1.swBBYof3zAD7.RWzXz9ZAQVDMml1VADsbgPT4Kq79LC0- X-Rocket-Received: from localhost (mueller6724@96.28.178.143 with plain [98.138.31.74]) by smtp111.sbc.mail.ne1.yahoo.com with SMTP; 23 Feb 2014 20:05:36 -0800 PST From: "Thomas Mueller" To: freebsd-ports@freebsd.org References: <201402230851.s1N8pX2J066307@mech-cluster241.men.bris.ac.uk> <847746.72638.bm@smtp120.sbc.mail.gq1.yahoo.com> <20140223134349.54f75899@kalimero.tijl.coosemans.org> Subject: Re: libiconv pulled in by pkg upgrade? lots of errors after that X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Feb 2014 04:08:05 -0000 from Tijl Coosemans: > On Sun, 23 Feb 2014 10:57:12 +0000 (UTC) Thomas Mueller wrote: > > From other posts on emailing lists, I see libiconv from ports supports > > utf-8, while base (>=10) does not. > No, utf-8 works fine with base iconv. Base iconv does not recognise the > special encoding named "wchar_t" which means whatever encoding is used for > the C/C++ type wchar_t with libiconv. > > Now I want to know what would happen if I rebuild system with > > WITHOUT_ICONV=yes > > in /etc/src.conf > > and use libiconv from ports. > > > Would it work, and would I have to rebuild all ports? > It would work and it's probably easiest to rebuild all ports. Technically > you only need to rebuild these packages: > grep -Rl __bsd_iconv /usr/local | xargs -n1 pkg which | sed 's/.* //' | sort -u > > It seems including libiconv in base has adverse side effects, the two > > can clash when both base and ports libiconv are installed. > The two can coexist. It's just that some care must be taken during > compilation. I guess I need to check which ports use which shared libraries, using pkg? So maybe I don't need WITHOUT_ICONV in /etc/src.conf ? Maybe base iconv could be enhanced to be identical to the port, by adding wchar_t support? I like Lev Serebryakov's idea of a notice in UPDATING, and would add that such a notice on possible iconv conflicts could be added tp UPDATING for both the ports tree and system-source tree. Tom