From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RfVTJ-0008AN-Cz for garchives@archives.gentoo.org; Tue, 27 Dec 2011 11:45:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7BB5421C077; Tue, 27 Dec 2011 11:45:19 +0000 (UTC) Received: from mail-vx0-f181.google.com (mail-vx0-f181.google.com [209.85.220.181]) by pigeon.gentoo.org (Postfix) with ESMTP id BD58321C042 for ; Tue, 27 Dec 2011 11:45:07 +0000 (UTC) Received: by vcbfk26 with SMTP id fk26so9399599vcb.40 for ; Tue, 27 Dec 2011 03:45:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=eH6HSgKh8dxBt2bTd2Jr4F0K6YEOv0J4q8TEDwp1Mrc=; b=aocQ+rl8ayQIlqrRDiSWcM/VkPXj6SSB9MOSw6GCknAWtCNJFmmWJb/99e8G0ExmX8 /1sz7504n0XgDRbA5fmXCh1nGeDf3fLr1pxieFSu+64DErsNU2u0JM5bYvDgzAi2HcQf oyMJAfWe114r64++IiDPLJNBrxPk3FVXKWcmo= Received: by 10.220.232.66 with SMTP id jt2mr16063556vcb.40.1324986307184; Tue, 27 Dec 2011 03:45:07 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 Received: by 10.52.163.35 with HTTP; Tue, 27 Dec 2011 03:44:46 -0800 (PST) In-Reply-To: References: <1324835572.6935.5.camel@here> <1324931932.6935.16.camel@here> From: Kfir Lavi Date: Tue, 27 Dec 2011 13:44:46 +0200 Message-ID: Subject: Re: [gentoo-embedded] quickpkg and PKG_INSTALL_MASK To: gentoo-embedded@lists.gentoo.org Content-Type: multipart/alternative; boundary=14dae9cdca072c076704b5116a88 X-Archives-Salt: 24068ea2-1323-4d81-9aa1-0b5f57ca8724 X-Archives-Hash: d8b39d1981231edd0c671b8601abb1b9 --14dae9cdca072c076704b5116a88 Content-Type: text/plain; charset=UTF-8 On Tue, Dec 27, 2011 at 11:40 AM, Joakim Tjernlund < joakim.tjernlund@transmode.se> wrote: > solar wrote on 2011/12/26 21:38:52: > > > > On Mon, 2011-12-26 at 19:03 +0100, Joakim Tjernlund wrote: > > > solar wrote on 2011/12/25 18:52:52: > > > > > > > > On Sun, 2011-12-25 at 11:34 +0200, Kfir Lavi wrote: > > > > > > > > > > > > > > > On Fri, Dec 23, 2011 at 3:23 PM, Joakim Tjernlund > > > > > wrote: > > > > > > > > > > I got the impression from docs that PKG_INSTALL_MASK would > > > > > actually > > > > > mask files out so they never get into the binary package, > this > > > > > doesn't > > > > > seem to happen. > > > > > Did I misunderstand? If I did, I think an MASK to do the > above > > > > > would be a worthy addition to quickpkg, very useful for > > > > > embedded targets to keep the pkg size down. > > > > > Also PKG_INSTALL_KEEP which would list files keep(rest is > > > > > dropped) would be nice. > > > > > > > > > > Oh, something else I wonder about. How does pre/post > install > > > > > work with > > > > > quickpkgs? Is it possible to have such scripts and then > have > > > > > qmerge execute > > > > > them? > > > > > > > > > > Jocke > > > > > > > > > > > > > > > Yes, PKG_INSTALL_MASK on time of installation will mask the files > > > > > defined in it. > > > > > Binary package do contain all files, even the masked files. > > > > > Kfir > > > > > > > > > > > > $PKG_INSTALL_MASK is supposed to omit the files in it's list from > making > > > > it into the binary pkgs in the first place. The idea there was to > make > > > > smaller binary pkgs for embedded devices and such (for use only with > > > > private repos). > > > > > > > > $INSTALL_MASK is supposed to omit the files listed in it from being > > > > installed on the file system. > > > > > > Hi Solar, long time no see :) > > > > > > So the current behaviour is a bug, good to know. > > > > I would not really call it a bug. *INSTALL_MASK is a portage feature > > itself. quickpkg does not support all the features of portage itself. > > You could/should file a feature request bug for quickpkg to add such > > support. Maybe file a bug for portage-utils@ as well because I just > > checked and looks like we never added support for PKG_INSTALL_MASK in > > qpkg.c (c version of quickpkg) > > I don't really get the difference between the two as impl. today. > What can PKG_INSTALL_MASK do that INSTALL_MASK can't(or vice versa)? > > What I undersood is that PKG_INSTALL_MASK will make smaller binary tbz file, and INSTALL_MASK will at install time, mask files, so the tbz will have all files in it. Kfir > > > > > > > I am contemplating a greater problem too. Our system require we can > install > > > multiple versions of our SW and switch between them. This is easy to > do when it > > > comes to our own app but not when one want to upgrade core parts of > the system, like > > > libc etc. > > > > > > So I am thinking one could use --bind mounts and switch_root to solve > that. Basically > > > one has a skeleton root FS with /bin, /lib, /usr /opt etc. > > > Each upgrade goes into dirs like: > > > bin_1.x.y/ usr_1.x.y/ lib_1.x.y/ opt_1.x.y/ sbin_1.x.y/ > > > Then, from an initramfs, one selects which of xxx_1.x.y dir one wants > to use > > > and --bind mounts them under the corresponding skeleton dir. > > > > > > To do that one needs an way to repackage a root fs created by a bunch > of different > > > ebuilds, some of them spanning several of the above dirs, into a > package per xx_1.x.y dir. > > > Not sure if this can be done with the current portage/portage-utils > and how, any > > > ideas welcome :) > > > > > > Perhaps there is a better way then the above? > > > > > > Jocke > > > > Not sure about all this. > > Yeah, it is a bit much :) I either case it would be nice if one > could group several bianry pkgs into one that qmerge can install. Is that > possible? > > Jocke > > > --14dae9cdca072c076704b5116a88 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Tue, Dec 27, 2011 at= 11:40 AM, Joakim Tjernlund <joakim.tjernlund@transmode.se> wrote:=
solar <solar@gentoo.org> wrot= e on 2011/12/26 21:38:52:
>
> On Mon, 2011-12-26 at 19:03 +0100, Joakim Tjernlund wrote:
> > solar <solar@gentoo.org> wrote on 2011/12/25 18:52:52:
> > >
> > > On Sun, 2011-12-25 at 11:34 +0200, Kfir Lavi wrote:
> > > >
> > > >
> > > > On Fri, Dec 23, 2011 at 3:23 PM, Joakim Tjernlund
> > > > <
jo= akim.tjernlund@transmode.se> wrote:
> > > >
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 I got the impression from d= ocs that PKG_INSTALL_MASK would
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 actually
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 mask files out so they neve= r get into the binary package, this
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 doesn't
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 seem to happen.
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Did I misunderstand? If I d= id, I think an MASK to do the above
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 would be a worthy addition = to quickpkg, very useful for
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 embedded targets to keep th= e pkg size down.
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Also PKG_INSTALL_KEEP which= would list files keep(rest is
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 dropped) would be nice.
> > > >
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Oh, something else I wonder= about. How does pre/post install
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 work with
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 quickpkgs? Is it possible t= o have such scripts and then have
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 qmerge execute
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 them?
> > > >
> > > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 Jocke
> > > >
> > > >
> > > > Yes, PKG_INSTALL_MASK on time of installation will mask= the files
> > > > defined in it.
> > > > Binary package do contain all files, even the masked fi= les.
> > > > Kfir
> > >
> > >
> > > $PKG_INSTALL_MASK is supposed to omit the files in it's = list from making
> > > it into the binary pkgs in the first place. The idea there w= as to make
> > > smaller binary pkgs for embedded devices and such (for use o= nly with
> > > private repos).
> > >
> > > $INSTALL_MASK is supposed to omit the files listed in it fro= m being
> > > installed on the file system.
> >
> > Hi Solar, long time no see :)
> >
> > So the current behaviour is a bug, good to know.
>
> I would not really call it a bug. *INSTALL_MASK is a portage feature > itself. quickpkg does not support all the features of portage itself.<= br> > You could/should file a feature request bug for quickpkg to add such > support. Maybe file a bug for portage-utils@ as well because I just > checked and looks like we never added support for PKG_INSTALL_MASK in<= br> > qpkg.c (c version of quickpkg)

I don't really get the difference between the two as impl. = today.
What can PKG_INSTALL_MASK do that INSTALL_MASK can't(or vice versa)?

What I undersood is that=C2= =A0 PKG_INSTALL_MASK will make smaller binary tbz file, and
INSTALL_MAS= K will at install time, mask files, so the tbz will have all files in it.
Kfir
>
>
> > I am contemplating a greater problem too. Our system require we c= an install
> > multiple versions of our SW and switch between them. This is easy= to do when it
> > comes to our own app but not when one want to upgrade core parts = of the system, like
> > libc etc.
> >
> > So I am thinking one could use --bind mounts and switch_root to s= olve that. Basically
> > one has a skeleton root FS with /bin, /lib, /usr /opt etc.
> > Each upgrade goes into dirs like:
> > =C2=A0 bin_1.x.y/ usr_1.x.y/ lib_1.x.y/ opt_1.x.y/ sbin_1.x.y/ > > Then, from an initramfs, one selects which of xxx_1.x.y dir one w= ants to use
> > and --bind mounts them under the corresponding skeleton dir.
> >
> > To do that one needs an way to repackage a root fs created by a b= unch of different
> > ebuilds, some of them spanning several of the above dirs, into a = package per xx_1.x.y dir.
> > Not sure if this can be done with the current portage/portage-uti= ls and how, any
> > ideas welcome :)
> >
> > Perhaps there is a better way then the above?
> >
> > =C2=A0Jocke
>
> Not sure about all this.

Yeah, it is a bit much :) I either case it would be nice if one
could group several bianry pkgs into one that qmerge can install. Is that p= ossible?

=C2=A0Jocke



--14dae9cdca072c076704b5116a88--