Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: Kfir Lavi <lavi.kfir@...>
Subject: Re: quickpkg and PKG_INSTALL_MASK
Date: Tue, 27 Dec 2011 13:44:46 +0200
<div dir="ltr"><br><br><div class="gmail_quote">On Tue, Dec 27, 2011 at 11:40 AM, Joakim Tjernlund <span dir="ltr">&lt;<a href="mailto:joakim.tjernlund@...">joakim.tjernlund@...</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

solar &lt;<a href="mailto:solar@g.o">solar@g.o</a>&gt; wrote on 2011/12/26 21:38:52:<br>
<div><div class="h5">&gt;<br>
&gt; On Mon, 2011-12-26 at 19:03 +0100, Joakim Tjernlund wrote:<br>
&gt; &gt; solar &lt;<a href="mailto:solar@g.o">solar@g.o</a>&gt; wrote on 2011/12/25 18:52:52:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; On Sun, 2011-12-25 at 11:34 +0200, Kfir Lavi wrote:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; On Fri, Dec 23, 2011 at 3:23 PM, Joakim Tjernlund<br>
&gt; &gt; &gt; &gt; &lt;<a href="mailto:joakim.tjernlund@...">joakim.tjernlund@...</a>&gt; wrote:<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;         I got the impression from docs that PKG_INSTALL_MASK would<br>
&gt; &gt; &gt; &gt;         actually<br>
&gt; &gt; &gt; &gt;         mask files out so they never get into the binary package, this<br>
&gt; &gt; &gt; &gt;         doesn&#39;t<br>
&gt; &gt; &gt; &gt;         seem to happen.<br>
&gt; &gt; &gt; &gt;         Did I misunderstand? If I did, I think an MASK to do the above<br>
&gt; &gt; &gt; &gt;         would be a worthy addition to quickpkg, very useful for<br>
&gt; &gt; &gt; &gt;         embedded targets to keep the pkg size down.<br>
&gt; &gt; &gt; &gt;         Also PKG_INSTALL_KEEP which would list files keep(rest is<br>
&gt; &gt; &gt; &gt;         dropped) would be nice.<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;         Oh, something else I wonder about. How does pre/post install<br>
&gt; &gt; &gt; &gt;         work with<br>
&gt; &gt; &gt; &gt;         quickpkgs? Is it possible to have such scripts and then have<br>
&gt; &gt; &gt; &gt;         qmerge execute<br>
&gt; &gt; &gt; &gt;         them?<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;         Jocke<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt;<br>
&gt; &gt; &gt; &gt; Yes, PKG_INSTALL_MASK on time of installation will mask the files<br>
&gt; &gt; &gt; &gt; defined in it.<br>
&gt; &gt; &gt; &gt; Binary package do contain all files, even the masked files.<br>
&gt; &gt; &gt; &gt; Kfir<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; $PKG_INSTALL_MASK is supposed to omit the files in it&#39;s list from making<br>
&gt; &gt; &gt; it into the binary pkgs in the first place. The idea there was to make<br>
&gt; &gt; &gt; smaller binary pkgs for embedded devices and such (for use only with<br>
&gt; &gt; &gt; private repos).<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; $INSTALL_MASK is supposed to omit the files listed in it from being<br>
&gt; &gt; &gt; installed on the file system.<br>
&gt; &gt;<br>
&gt; &gt; Hi Solar, long time no see :)<br>
&gt; &gt;<br>
&gt; &gt; So the current behaviour is a bug, good to know.<br>
&gt;<br>
&gt; I would not really call it a bug. *INSTALL_MASK is a portage feature<br>
&gt; itself. quickpkg does not support all the features of portage itself.<br>
&gt; You could/should file a feature request bug for quickpkg to add such<br>
&gt; support. Maybe file a bug for portage-utils@ as well because I just<br>
&gt; checked and looks like we never added support for PKG_INSTALL_MASK in<br>
&gt; qpkg.c (c version of quickpkg)<br>
<br>
</div></div>I don&#39;t really get the difference between the two as impl. today.<br>
What can PKG_INSTALL_MASK do that INSTALL_MASK can&#39;t(or vice versa)?<br>
<div class="im"><br></div></blockquote><div>What I undersood is that  PKG_INSTALL_MASK will make smaller binary tbz file, and <br>INSTALL_MASK will at install time, mask files, so the tbz will have all files in it.<br><br>

Kfir<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="im">
&gt;<br>
&gt;<br>
&gt; &gt; I am contemplating a greater problem too. Our system require we can install<br>
&gt; &gt; multiple versions of our SW and switch between them. This is easy to do when it<br>
&gt; &gt; comes to our own app but not when one want to upgrade core parts of the system, like<br>
&gt; &gt; libc etc.<br>
&gt; &gt;<br>
&gt; &gt; So I am thinking one could use --bind mounts and switch_root to solve that. Basically<br>
&gt; &gt; one has a skeleton root FS with /bin, /lib, /usr /opt etc.<br>
&gt; &gt; Each upgrade goes into dirs like:<br>
&gt; &gt;   bin_1.x.y/ usr_1.x.y/ lib_1.x.y/ opt_1.x.y/ sbin_1.x.y/<br>
&gt; &gt; Then, from an initramfs, one selects which of xxx_1.x.y dir one wants to use<br>
&gt; &gt; and --bind mounts them under the corresponding skeleton dir.<br>
&gt; &gt;<br>
&gt; &gt; To do that one needs an way to repackage a root fs created by a bunch of different<br>
&gt; &gt; ebuilds, some of them spanning several of the above dirs, into a package per xx_1.x.y dir.<br>
&gt; &gt; Not sure if this can be done with the current portage/portage-utils and how, any<br>
&gt; &gt; ideas welcome :)<br>
&gt; &gt;<br>
&gt; &gt; Perhaps there is a better way then the above?<br>
&gt; &gt;<br>
&gt; &gt;  Jocke<br>
&gt;<br>
&gt; Not sure about all this.<br>
<br>
</div>Yeah, it is a bit much :) I either case it would be nice if one<br>
could group several bianry pkgs into one that qmerge can install. Is that possible?<br>
<br>
 Jocke<br>
<br>
<br>
</blockquote></div><br></div>
References:
quickpkg and PKG_INSTALL_MASK
-- Joakim Tjernlund
Re: quickpkg and PKG_INSTALL_MASK
-- Kfir Lavi
Re: quickpkg and PKG_INSTALL_MASK
-- solar
Re: quickpkg and PKG_INSTALL_MASK
-- Joakim Tjernlund
Re: quickpkg and PKG_INSTALL_MASK
-- solar
Re: quickpkg and PKG_INSTALL_MASK
-- Joakim Tjernlund
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: quickpkg and PKG_INSTALL_MASK
Next by thread:
Re: quickpkg and PKG_INSTALL_MASK
Previous by date:
Re: quickpkg and PKG_INSTALL_MASK
Next by date:
Re: quickpkg and PKG_INSTALL_MASK


Updated Jun 25, 2012

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.