From owner-svn-ports-head@FreeBSD.ORG  Thu Aug  7 17:25:13 2014
Return-Path: <owner-svn-ports-head@FreeBSD.ORG>
Delivered-To: svn-ports-head@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id 928975C3;
 Thu,  7 Aug 2014 17:25:13 +0000 (UTC)
Received: from mail-wi0-x22c.google.com (mail-wi0-x22c.google.com
 [IPv6:2a00:1450:400c:c05::22c])
 (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 74DB82B4C;
 Thu,  7 Aug 2014 17:25:12 +0000 (UTC)
Received: by mail-wi0-f172.google.com with SMTP id n3so11111417wiv.17
 for <multiple recipients>; Thu, 07 Aug 2014 10:25:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:date:from:to:cc:subject:message-id:references:mime-version
 :content-type:content-disposition:in-reply-to:user-agent;
 bh=IW+2tBhRv+B1B9XzjCrX3nfrQp6oTKJSuf9TXsYa9Ds=;
 b=SJOQYKM3EFPcIrktLcJMw3gUqt5GqCS68kpJFRawlu3+yP/7yIoh2BDOX6PLqgF1H7
 ygfp5hUu7Xi6xw3ATVVAjTyt15ck+/fVwly759t8fpFFZxlWYWxZXuIYIXQ9SmBmiQbe
 Qaah9fzpwVdyK8eqvtw/QcxZO7jKD8Et4lIHKNxROHMpXjm5itz8ckvjOweJhN+Skg5+
 HnrmjfC/Xle2G9STfEzB+2bZrl1vNeG46ys4C6JQyXwOL9uKiu3HA/vOzOneRiq11ydd
 cFL5FRIPBcSPR2bCZ/UhEcNfuvEJJVda2n2Syd9eIiykUXnNC7Z62qzD1y1RiRfiZ7QV
 P5oQ==
X-Received: by 10.180.96.196 with SMTP id du4mr4378997wib.44.1407432310722;
 Thu, 07 Aug 2014 10:25:10 -0700 (PDT)
Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1])
 by mx.google.com with ESMTPSA id r1sm1493140wia.21.2014.08.07.10.25.09
 for <multiple recipients>
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Thu, 07 Aug 2014 10:25:09 -0700 (PDT)
Sender: Baptiste Daroussin <baptiste.daroussin@gmail.com>
Date: Thu, 7 Aug 2014 19:25:07 +0200
From: Baptiste Daroussin <bapt@FreeBSD.org>
To: Tijl Coosemans <tijl@FreeBSD.org>
Subject: Re: svn commit: r364287 - head/ports-mgmt/pkg-devel
Message-ID: <20140807172507.GW17537@ivaldir.etoilebsd.net>
References: <53e39939.55bc.4ca5432c@svn.freebsd.org>
 <20140807172841.58633e63@kalimero.tijl.coosemans.org>
 <53E3A468.5050603@FreeBSD.org> <53E3AC0C.5020904@gmx.de>
 <53E3AD09.2050000@FreeBSD.org>
 <20140807185753.0a5c577f@kalimero.tijl.coosemans.org>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature"; boundary="KRJ4yArSHF8vY7I3"
Content-Disposition: inline
In-Reply-To: <20140807185753.0a5c577f@kalimero.tijl.coosemans.org>
User-Agent: Mutt/1.5.23 (2014-03-12)
Cc: svn-ports-head@freebsd.org, Vsevolod Stakhov <vsevolod@FreeBSD.org>,
 svn-ports-all@freebsd.org, Matthias Andree <matthias.andree@gmx.de>,
 ports-committers@freebsd.org
X-BeenThere: svn-ports-head@freebsd.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: SVN commit messages for the ports tree for head
 <svn-ports-head.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/svn-ports-head>,
 <mailto:svn-ports-head-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/svn-ports-head/>
List-Post: <mailto:svn-ports-head@freebsd.org>
List-Help: <mailto:svn-ports-head-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/svn-ports-head>,
 <mailto:svn-ports-head-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Aug 2014 17:25:13 -0000


--KRJ4yArSHF8vY7I3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Aug 07, 2014 at 06:57:53PM +0200, Tijl Coosemans wrote:
> On Thu, 07 Aug 2014 17:44:57 +0100 Vsevolod Stakhov wrote:
> > On 07/08/14 17:40, Matthias Andree wrote:
> >> Am 07.08.2014 um 18:08 schrieb Vsevolod Stakhov:
> >>> Due to mainly [2] there are a lot of broken deps, for example, libxml2
> >>> provides libxml2.so.2.12, whilst all dependant ports requires
> >>> libxml2.so.2. Consequently, some weird packages, such as wine-i386-de=
vel
> >>> are installed, since it pretends to provide libxml2.so.2 and due to [=
3]
> >>> and [1] wine is treated as a provide candidate.
> >>=20
> >> The library's SONAME should be the canonical name because that gets
> >> recorded in another library's or executable's NEEDED tag, and pkg might
> >> be able to check at package creation, and again before install, if a
> >> file installing a library also installs a file that matches the SONAME.
> >=20
> > That is how it works for shared lib requires. But that is not how it
> > works for shared lib provides. And this ambiguity is the source of [3].
>=20
> Matthias is talking about the SONAME Elf field.  For libxml2.so.2.9.1
> it gives:
>=20
> % objdump -p /usr/local/lib/libxml2.so.2.9.1  | grep SONAME
>   SONAME      libxml2.so.2
>=20
> This is what is recorded in the NEEDED field of programs/libraries
> that depend on libxml2 and can be used for shared lib provides.
>=20

That is exactly what we do use.

The problem is things like i386-wine are providing libxml2 as well which SO=
NAME
is also libxml2.so.2 how do we differentiate both ?

To be honnest I have an idea on that but that requires modifications on the
ports tree side as well as pkg so it will have to wait a bit.

regards,
Bapt

--KRJ4yArSHF8vY7I3
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlPjtnMACgkQ8kTtMUmk6EwjDwCbB6FPfKdcb9ixn+qy8Tf1zlLj
u6MAoLBUc1tj+I3wZLwX6hJx/MKUGlP2
=bY3O
-----END PGP SIGNATURE-----

--KRJ4yArSHF8vY7I3--