On 2017年04月21日 18:53, Anders Darander wrote:
Hi,

* Dengke Du <[email protected]> [170421 12:18]:

On 2017年04月18日 20:20, Anders Darander wrote:
* Dengke Du <[email protected]> [170412 07:42]:
2. Add the "id" to HOSTTOOLS in meta-oe/layer.conf
Why do you need to add `id` to HOSTTOOLS?
It's not me decide to add "id" to HOSTTOOLS, it's the crash source code
decides:
In ./Makefile line 563:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
release: make_configure
         @if [ "`id --user`" != "0" ]; then \
                 echo "make release: must be super-user"; exit 1; fi
How is this going to work? We're not running make as root, thus the
build will fail!?! Or what am I missing?
Yes, in recipe crash_7.1.8.bb, the do_compile function run as non-root.

I'd say, can you try to remove those two lines instead, and see if it
builds correctly?
I have check the source codes, I think remove those two lines is OK.

Besides, are we really running `make release`? I can't find anything
obvious in either the Makefile or the recipe, that calls `make release`.
It's not runing on surface, but you can run "bitbake crash" without the id
in HOSTTOOLS, the do_compile will fail.

We're normally trying to _increase_ determinism in builds, not reduce
it...
I've got really hard time to see why something needs to run `id` in
order to build properly...

Cheers,
Anders


--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to