From owner-freebsd-pkg@freebsd.org Fri Apr 8 21:09:35 2016 Return-Path: Delivered-To: freebsd-pkg@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C8528B0768E for ; Fri, 8 Apr 2016 21:09:35 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5DDE71CAF for ; Fri, 8 Apr 2016 21:09:35 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by mail-wm0-x241.google.com with SMTP id l6so7005430wml.3 for ; Fri, 08 Apr 2016 14:09:35 -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-disposition:in-reply-to:user-agent; bh=uoY8YdSmpFSN//2cptIqvvEUDzEzNalSFbnWNJXXSoY=; b=SBcfziUzR8rwBjiIrKxWYDk4Y1ju3OVP1CVoCKO20FPbz/4Q3DvF2QNyvWRNmP7t0o pGNI+s46qzP7//Gtcfva6rpAdeauzKj1GIM3vgow2y1KpOzUImoNHzlq3iyO0P74P8rv Od/RzxB0upfr1Z9FvKqUtBlnlt0LnX9oZilB0Z3FiVy1FTc7MQc1vgGPc9JkPvtdUatI KkYlptFdJt+hbrTDXiub8Iy/+pQkcnz0plKEo0+Q1a0dDTuL5VFuL1ioeEFuVjZ+rY7l hRQssd0lhpPEO6KCJr5JUL2hhte9DWhX2yTm79S+SVzBUB0VLrOVqPTRsndOqjxVdhcI uM7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=uoY8YdSmpFSN//2cptIqvvEUDzEzNalSFbnWNJXXSoY=; b=mEDPv7tJZoiRAObpK9ms9WewcebLlW8gVN6otcQrOuETyzzyiqC0WYbNYG4BD1aVXI oLOpgqA/jclj/oUu0R9/SO7QNh34OpD/XTz3l86jHAzPVEPSasC7UL+EW3gL8uFkWHyJ fejp9yV9JZurIjeJswupvnQMvA0kwz3UG1VViEnqHQYFq3oI4SpTyT/lilBqgwjcfpE3 8H4KhFcX2EY7d3ec2h4zJZItdHG1EXobzce9/U+1Z62f39MaYqLMDE+4Trwx/SpcXTZ9 TJLOBsUAY2D27G3otVhFpmBEbd95rhb/UyQm4xbSIow4ijuVt2VVsQl30NpH2MKVpbwV FM1Q== X-Gm-Message-State: AD7BkJLzxctYThiiV5sgrxugfoGdxkKQgGyhOAN9V7m59N4dKT/T5i1pOcOvqw9wqwdr+Q== X-Received: by 10.194.234.101 with SMTP id ud5mr11366261wjc.34.1460149773108; Fri, 08 Apr 2016 14:09:33 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id c187sm1580021wme.16.2016.04.08.14.09.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Apr 2016 14:09:31 -0700 (PDT) Sender: Baptiste Daroussin Date: Fri, 8 Apr 2016 23:09:29 +0200 From: Baptiste Daroussin To: Chuck Tuffli Cc: freebsd-pkg@freebsd.org Subject: Re: teach pkg about rpm's? Message-ID: <20160408210929.GT49864@ivaldir.etoilebsd.net> References: <20160407063611.GQ49864@ivaldir.etoilebsd.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zpd1bWBxfrI+71+6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-pkg@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Binary package management and package tools discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2016 21:09:35 -0000 --zpd1bWBxfrI+71+6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 07, 2016 at 10:32:44AM -0700, Chuck Tuffli wrote: > On Wed, Apr 6, 2016 at 11:36 PM, Baptiste Daroussin wr= ote: > > On Sun, Apr 03, 2016 at 06:17:16AM -0700, Chuck Tuffli wrote: > >> Hi > >> > >> Has adding the ability to install RPM's via pkg been discussed before? > >> Does it make sense to add this or is it better to leave this > >> functionality to something like archivers/rpm4? If so, I have some > >> time and the motivation to implement this and would appreciate any > >> guidance / pointers that people would be willing to share. > >> > > > > It has been discussed, there was even some summer of code about it. > > > > It is a feature we would like to see in (but specially crafter) as it w= ould > > allow to remove most of the linux ports from the ports tree and we coul= d tell > > the users to simply add a special linux.conf repoconfiguration pointing= to a yum > > repository to handle the /compat >=20 > Can you elaborate on how you'd like to see this work or point me to a > write up? From what I've found, there were two GSoC approaches: > convert Linux RPM/DEBs to the pkg format or, more recently, directly > supporting the DEB format. If the latter is the preferred approach, > does libarchive need to be taught about the various Linux package > layouts? >=20 There was a first summer of code at the early time of pkg, to make it learn about deb/rpm the goal was to make sure that we are kind of at a level of p= arity feature wise. The second was about really implementing the support for apt/yum and deb/rp= m so that pkg can directly use a remote repository out of box. The second is what we really need. The goal about the second is (let's say about yum first): - Have pkg understand the yum repository format so that if fetches the meta= data and create a "regular" pkg repo just flagged "yum" - having a config entry for the 'yum' repo that says "all packages installed from the repo will have the files installed prefixed by '/compat/linux' - Be able to extract the metadata from the package format: from rpm for exa= mple and map it to the internal 'struct pkg' so that the current pkg solver ca= n be used. - nothing to be done on libarchive front as libarchive can already extract natively rpm files and for .deb packages this is just a 'ar' file contain= ing a tar.[gx]z control for metadata and data for files meaning that libarchive= can be use natively Best regards, Bapt --zpd1bWBxfrI+71+6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXCB4JAAoJEGOJi9zxtz5aQCMP/3JJRFucsciu4qHAojK9Hsq4 OgphEBam9Rcl228wDowa0z1zXmCETEZyTa7cRGAciNku6aWiGpIRTiwRftRULj98 t5XRnboI50Rw5N4abEqFrO0lIVtI/NKV7UFAYDGd89Z/R5Ce578Jix/pCgJXSs69 gveqyMVFbatZghd6X2Jxjx5ZSWvP4qS6sz3+MPPBMsnkvHMmfSzu0dXQkY4Yzghp t0E6p28oEgEOLJvUnjPcdbGUuAodj2ZW4vSPFnTw2ntkKTfBrhpsqXwOjC2CBeKe n2jo9ZePGVX+gp2fM9Lfo6XlBLZ7by+c6yPhZ/Z6FMLIDIFU8Hpz5sugDYEGo1Q+ BQEslEP4zs2+lgrfMAQddMRpuvUwXMSZ6OrcmDXctNVmXwwaubMt6TeqSHslRFJO PlNg06a3EqBScwCc+NJx5KJA6ul7hgU/l5mQ0KHC/m0HoJJET39lclGMCRhnpOWh mFa2n1PPsx0N42qKHVzYvwpcaSFSwybR66q503wSat1MQWHmUOhDN5dk1Fx6T4h9 mjb3Cl7FcbknAPhJx6YYTHB2VstReO14nBrgYgAgApkEF8+tJg+TdYA6s/rq10sq koQv0q6yNdiNwAYiQNgBZVRPoClXa/EzTGPlBN54JZjuL2aQFxQo89i57M1ChwsE DEZ17dnXVswoUy3zBOA/ =cwO8 -----END PGP SIGNATURE----- --zpd1bWBxfrI+71+6--