From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PtMz1-0005k5-QC for garchives@archives.gentoo.org; Sat, 26 Feb 2011 16:27:03 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 59CCD1C11F for ; Sat, 26 Feb 2011 16:27:03 +0000 (UTC) Received: from mailgate.caprica.metux.de (caprica.metux.de [82.165.128.25]) by pigeon.gentoo.org (Postfix) with ESMTP id 29E2E1C0EA for ; Sat, 26 Feb 2011 16:19:33 +0000 (UTC) Received: from mailgate.caprica.metux.de (localhost.localdomain [127.0.0.1]) by mailgate.caprica.metux.de (8.14.4/8.14.4) with ESMTP id p1QGGiI6032195 for ; Sat, 26 Feb 2011 17:16:45 +0100 Received: (from uucp@localhost) by mailgate.caprica.metux.de (8.14.4/8.14.4/Submit) with UUCP id p1QGG54J032164 for gentoo-dev@lists.gentoo.org; Sat, 26 Feb 2011 17:16:05 +0100 Received: (from weigelt@localhost) by nibiru.metux.de (8.12.10/8.12.10) id p1QG8i18010968 for gentoo-dev@lists.gentoo.org; Sat, 26 Feb 2011 17:08:44 +0100 Date: Sat, 26 Feb 2011 17:08:44 +0100 From: Enrico Weigelt To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] Re: libpng-1.5 smooth upgrade Message-ID: <20110226160843.GI22774@nibiru.local> References: <4D556603.8040400@gentoo.org> <201102112033.33310.aballier@gentoo.org> <201102111844.04808.vapier@gentoo.org> <201102112056.51954.aballier@gentoo.org> <20110224152643.GF22774@nibiru.local> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110224152643.GF22774@nibiru.local> User-Agent: Mutt/1.4.1i X-Terror: bin laden, kill bush, Briefbombe, Massenvernichtung, KZ, X-Nazi: Weisse Rasse, Hitlers Wiederauferstehung, 42, X-Antichrist: weg mit schaeuble, ausrotten, heiliger krieg, al quaida, X-Killer: 23, endloesung, Weltuntergang, X-Doof: wer das liest ist doof X-Archives-Salt: X-Archives-Hash: aff7472e2ac08ece51a5e044fb8b7986 * Enrico Weigelt schrieb: > > pretty please force every consumer to hardcode the version > > because i know people that want to do this" ? > > No, they should use pkg-config at buildtime and do the version > selection there (eg. the eselect-way). Oh, it gets a bit tricker: the dependencies of the installed packages will have to be fixed to the actually used version/slot. hmm, maybe this also could be done via some eclass, that adds an useflag for libpng version selection ? I could imagine a way like that: * libpng15 is installed in a way that it doesnt conflict with existing libpng14 (different locations, pkg-config name, slotted, etc) * pass pkg-config calls through a wrapper that automatically chooses the right .pc file on some environment variable etc. * each libpng-using package that should be buildable against libpng15 is changed to use the new eclass (that does all the switching magic) IMHO this should allow keeping the (runtime) dependencies intact (no revdep-rebuild required) and allow an smooth upgrade. When everything had been rebuilt against libpng15 one day, --depclean would kick off old libpng14. cu -- ---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weigelt@metux.de mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ----------------------------------------------------------------------