Re: Workflow question

2021-02-27 Thread Anindya Mukherjee
Thanks! This works perfectly!

On Sun, Feb 28, 2021 at 12:01:06AM +0100, Theo Buehler wrote:
> > Following the advice in the FAQ I added my user to the wobj group. I
> > suppose I could "make obj" and have the objs written to /usr/obj? Is
> > this a workflow the developers recommend or follow? Thanks!
> 
> Yes. More precisely, by default 'make obj' in /usr/src/usr.bin/systat
> will create a symlink obj@ -> /usr/obj/usr.bin/systat where the build
> artefacts will be placed.
> 
> $ ls -ld /usr/obj/usr.bin/systat
> drwxrwx---  2 build  wobj  1024 Feb 26 21:47 /usr/obj/usr.bin/systat/

Regards,
Anindya



Re: Workflow question

2021-02-27 Thread Theo Buehler
> Following the advice in the FAQ I added my user to the wobj group. I
> suppose I could "make obj" and have the objs written to /usr/obj? Is
> this a workflow the developers recommend or follow? Thanks!

Yes. More precisely, by default 'make obj' in /usr/src/usr.bin/systat
will create a symlink obj@ -> /usr/obj/usr.bin/systat where the build
artefacts will be placed.

$ ls -ld /usr/obj/usr.bin/systat
drwxrwx---  2 build  wobj  1024 Feb 26 21:47 /usr/obj/usr.bin/systat/



Workflow question

2021-02-27 Thread Anindya Mukherjee
Hi,

I am making a small change to systat(1) and hope to submit it for review
soon. For my own edification, I have a few questions regarding the
recommended workflow for such work. Hopefully tech@ is the right place
to ask this :)

I generated the tags with "make tags", and also temporarily added -O0 -g
to the build flags in the Makefile. I can run "make" in
/usr/src/usr.bin/systat directly and it works: I get a binary which
runs. However, I don't like the fact that it writes the obj files in the
same directory.

Following the advice in the FAQ I added my user to the wobj group. I
suppose I could "make obj" and have the objs written to /usr/obj? Is
this a workflow the developers recommend or follow? Thanks!

Anindya