[haiku-web] Re: update Ubuntu Build document

  • From: "Dennis d'Entremont" <dennis.dentremont@xxxxxxxxx>
  • To: haiku-web@xxxxxxxxxxxxx
  • Date: Mon, 20 Apr 2009 18:38:47 -0300

On Mon, Apr 20, 2009 at 5:32 PM, Urias McCullough <umccullough@xxxxxxxxx>wrote:

> On Mon, Apr 20, 2009 at 12:34 PM, Dennis d'Entremont
> <dennis.dentremont@xxxxxxxxx> wrote:
> >> That depends on your usage; if you only use it for full builds anyway,
> >> it doesn't matter a lot. As soon as you want to update single
> >> components, though, it becomes mandatory.
> >
> > Is the old method going to be discontinued at some point?
>
> By discontinued, do you mean untested/unmaintained? It more-or-less is
> already... as experienced recently with the new create_image rule that
> caused so many people issues. It mostly affected those who weren't
> using build profiles.


I mean removed and completely unusable.


>
>
> The only reason people continue using the old method, is because the
> new method isn't documented in the "guides" that are so rampant.
>
> You can *replace* these 3 lines:
>
> HAIKU_IMAGE_DIR = /dev ;
> HAIKU_IMAGE_NAME = sda2 ;
> HAIKU_DONT_CLEAR_IMAGE = 1 ;
>
> with a single line:
>
> DefineBuildProfile partition2 : disk : "/dev/sda2" ;
>
> (note the name you give it is up to you) and then use the following:
>
> jam -q @partition2
>
> or if you just want to update a build you already have without wiping
> the partition (and thus, keeping all apps, settings, data, etc.):
>
> jam -q @partition2 update-all


ok that part is pretty straight forward. But maybe I didn't explain myself
properly or ask the question in the right way before so here's another shot.


Scenario: I have one user on my system called TheNerd. I grant him
permissions to write to /dev/sda5 and /dev/sda6. I set up two build profiles
(same as above but for each seperate partition) called partition5 and
partition6. No matter which one I run "TheNerd" can build and then write to
either partition without sudo.

Question 1: What prevents me from messing up one of the build profiles (say
making them both write to /dev/sd6) and overwriting one with the other?

Question 2 (depending on answer 1): Should I create two users on the linux
system for this? i.e. TheNerd5 and TheNerd6 one with write access to
/dev/sda5 and the other with write access to /dev/sda6. This would
essentially prevent me from writing to any partition other than the one that
it's supposed to (so long as access is granted properly and I don't use
sudo).

Question 3: If the multiple user accounts is the way to go... Do I need to
download seperate versions of the source? One for each user? (my guess would
be yes, especially, if I was building gcc2 with one and gcc4 with the other)


Honestly, I am not trying to be difficult. I really am trying to understand
how this is supposed to work. My apologies if I've missed the blatently
obvious.

Thanks
Dennis



>
> I just don't understand why people are loathe to change...
>
> - Urias
> -----------------------------------------------------------------------
> haiku-web@xxxxxxxxxxxxx - Haiku Web & Developer Support Discussion List
>
>

Other related posts: