From owner-soc-status@freebsd.org Tue Aug 11 00:36:06 2015 Return-Path: Delivered-To: soc-status@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 E3E9B998627 for ; Tue, 11 Aug 2015 00:36:06 +0000 (UTC) (envelope-from mdw@freebsd.org) Received: from mehl.mmap.at (static.56.42.47.78.clients.your-server.de [78.47.42.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 15B3C195; Tue, 11 Aug 2015 00:36:06 +0000 (UTC) (envelope-from mdw@freebsd.org) Received: from [192.168.43.98] (unknown [91.141.1.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mehl.mmap.at (Postfix) with ESMTPSA id E70D1B0867; Tue, 11 Aug 2015 02:35:54 +0200 (CEST) Message-ID: <55C9435B.8010301@freebsd.org> Date: Tue, 11 Aug 2015 02:35:39 +0200 From: Manuel Wiesinger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Baptiste Daroussin , soc-status@FreeBSD.org Subject: Status: Linux packages for pkg(8) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 11 Aug 2015 02:34:10 +0000 X-BeenThere: soc-status@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Summer of Code Status Reports and Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Aug 2015 00:36:07 -0000 Hey, My status: I have working code in libpkg/repos/linux_deb to update. That means download the deb-manifest, verify it, and put all that is useful to the database, including dependencies. Doing it for conflicts is trivial, because it uses the same syntax as for dependencies. But when I do 'pkg update' for the official FreeBSD repos the pkg_conflicts stays empty. So I haven't done it yet. It works just to call pkg update. I have code to read and extract a .deb package, but I have difficulties to integrate it into pkg. That is because the repo-code is layered nicely, but the code to install a package and parts of the SAT-solver are highly specific for binary packages. As far as I can tell, the only seminal way is to create a layer for installation and support for different repo-types at all parts where it's necessary. Either integrate my code in a hackish manner or make it usable with an own layer. I don't dare to create an own layer alone by myself, because it is a rather big intervention in the whole architecture of pkg. I'm in discussion with bapt@ what to do best. Nothing done about .rpm so far TODOs: .) Use the NELEM marko instead of my own STRLEN one. They are semantically identical .) get rid of mktemp() .) write a function to compare versions of .deb-packages. This function is specified by the Debian-Project. I'll use only the documentation, to avoid 'stealing' GPL-code. .) write a function that does pkg-audit Regards, Manuel