public inbox for gentoo-embedded@lists.gentoo.org
 help / color / mirror / Atom feed
From: Shinkan <shinkan@gmail.com>
To: gentoo-embedded@lists.gentoo.org
Subject: Re: [gentoo-embedded] Cross Dev Tricks + Hardened questions
Date: Tue, 1 Dec 2009 21:52:56 +0100	[thread overview]
Message-ID: <166af1cf0912011252l7fba8d6fqa4f6624e89be4727@mail.gmail.com> (raw)
In-Reply-To: <20091201190307.18265.qmail@stuge.se>

[-- Attachment #1: Type: text/plain, Size: 4439 bytes --]

2009/12/1 Peter Stuge <peter@stuge.se>

> Hm, what is ports version? Do you mean the portage snapshot? That can
> be set in the spec files though?
>

I wanted to say for instance "gcc-3.4.3" and not "current gcc".
Because I want some targets to be built against a specific version of glibc.


>
>
> > I really don't want to build a profile because they're hard to
> > maintain in a wide use scheme, and because that's overkill.
>
> Would it not work to put a profile in /etc/catalyst/mytarget/profile
> and give a relative path like ../../../etc/catalyst/mytarget/profile
> in the catalyst spec file?
>

I thought about that. But :
1) That's a dirty hack. What if gentoo decides to put profiles in
/usr/portage/boringstuffs/profiles/ ?
They can because of official transparent "eselect profile" way of selecting
a profile.
2) Each of my target can be different. WCS, we have one profile per target,
per architecture, per type of target... per version.
I want my target build env to be self-containing, so I don't want 10K
profiles moving around my host tree.
Plus, I lost profiles parenting if I put things in /etc/catalyst/mytarget/


>
> > - I want to be able to just emerge one new port or update one on a
> >   target, and with Catalyst I cant.
>
> Sure you can. I do this a lot with my systems.
>
>
> >   I must rebuild all (yeah, cache is there but...),
>
> But what? I find that the most time is spent in the rsync, done first
> for a catalyst stage. Binpkgs install very quickly.
>

I would have to audit catalyst code to tell cache won't break some of my
needs.
Because I will do nasty things on the portage tree. I don't want catalyst to
think it can "pick a bin in a cache" (that's sound funny isn't it ?), but in
fact ebuild with same version has changed because of some patches I applied.
Cache is really a killing feat of catalyst, but I can't afford it for my
things. I fear the cache.


> Right. I get tbz2s which I install on my target.
>

That's fine. But I can do this with simple emerges too.


> "system" is not a great term. Yes, your stage4 will not have a build
> environment, so the next catalyst run will take a little longer.
> Maybe that's a big problem in your scenario, but if you can live with
> that, I don't see a problem.
>

I don't want my "stage4" to have a build env. I want my stage4 to be very
minimal.
I would expect catalyst to do this in fact :
1) Take a official stage3.
2) Build a build env with this stage3. Build env would have specified
arch/gcc/libc/binutils version, and portage with a specified tree.
3) From this build env, catalyst would build a target with JUST the packages
I specified, so the target would be totally empty at begining.
Then I would like the kernel comp on build env, and image cped to my target.
Then I would like catalyst to emerge kernel dependant packages to my target.
Then I would be done with a "stage4", which is my target.
4) Then my target could be put on a live cd with some more mechanic catalyst
already offers.
For all step there would be a spec file, and possibility to specify each
dest dirs.


>
> Ned Ludd wrote:
> > catalyst can do none of the above
>

Hey that was a little rude I think !


>
> In this case it will work, since build is amd64 and target x86.
>

I confirm in my case it would work. I build on amd64, I target x86 and
amd64, but with different glibc bases.


> Hey - another, more novel, idea would be to create some new catalyst
> targets, that combines both these methods and builds from nothing,
> but with direction.
>
> I insist on catalyst because it takes care of a good deal of things
> that have to be done manually otherwise - documentation, filesystem
> overlay, create binpkgs, create tarball, create iso..
>

I really liked catalyst when I read it spec examples.
After dealing a little with basic scenarios and totally outdated examples, I
started to find that I had needs it can't answer.
I was really sad, I promise.
What I miss the most is the "I will just have to write 2 spec files per
target, YAY !!!" dream, and the "I take care of the Live CD boring stuffs".

Catalyst should provide a "solar glasses stuffed cowboy" mode, where it
could act as an evolved spec-files base cross compiler/emerger, and where we
could build from nothing.

-- 
Pierre.
"Sometimes when I'm talking, my words can't keep up with my thoughts. I
wonder why we think faster than we speak. Probably so we can think twice." -
Bill Watterson

[-- Attachment #2: Type: text/html, Size: 6347 bytes --]

  reply	other threads:[~2009-12-01 22:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-30 18:24 [gentoo-embedded] Cross Dev Tricks + Hardened questions Shinkan
2009-11-30 21:12 ` Peter Stuge
2009-12-01  8:44   ` Shinkan
2009-12-01 17:48     ` Ned Ludd
2009-12-01 19:03       ` Ed W
2009-12-01 20:51         ` Peter Stuge
2009-12-01 22:24           ` Shinkan
2009-12-02  0:17             ` Peter Stuge
2009-12-02  9:28               ` Shinkan
2009-12-01 19:03       ` Peter Stuge
2009-12-01 20:52         ` Shinkan [this message]
2009-12-01 23:57           ` Peter Stuge
2009-12-02  8:02             ` [OT] Catalyst, was: " Eckard Brauer
2009-12-02  9:04               ` Ed W

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=166af1cf0912011252l7fba8d6fqa4f6624e89be4727@mail.gmail.com \
    --to=shinkan@gmail.com \
    --cc=gentoo-embedded@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox