Date: Fri, 8 Apr 2016 23:09:29 +0200 From: Baptiste Daroussin <bapt@freebsd.org> To: Chuck Tuffli <chuck@tuffli.net> Cc: freebsd-pkg@freebsd.org Subject: Re: teach pkg about rpm's? Message-ID: <20160408210929.GT49864@ivaldir.etoilebsd.net> In-Reply-To: <CAM0tzX0_ARma0kc=qb87zV98_g52iGOyM6C=U=F3SMMyKFHeCQ@mail.gmail.com> References: <CAM0tzX34U4qgJZYTQxGCeFQ_gcz2%2B2zAgisLMRjw=XZd0J=FmQ@mail.gmail.com> <20160407063611.GQ49864@ivaldir.etoilebsd.net> <CAM0tzX0_ARma0kc=qb87zV98_g52iGOyM6C=U=F3SMMyKFHeCQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <bapt@freebsd.org> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160408210929.GT49864>