On Wed, Jul 25, 2018 at 12:33 PM, Alistair Strachan <astrac...@google.com> wrote: > On Wed, Jul 25, 2018 at 5:48 AM Emil Velikov <emil.l.veli...@gmail.com> wrote: >> >> On 25 July 2018 at 00:21, John Stultz <john.stu...@linaro.org> wrote: >> > From: Alistair Strachan <astrac...@google.com> >> > >> > This is a forward port of a patch in the AOSP/master tree: >> > https://android.googlesource.com/platform/external/mesa3d/+/d7f894a7d39e66ca5a832c19edaf175400041aff%5E%21/ >> > >> > The libmesa_dri_common target depends on xgettext unconditionally, but >> > this is not a documented dependency of AOSP and is not installed on the >> > Mac builders, so we must not build any part of mesa3d on these >> > platforms. >> > >> > Cc: Rob Herring <rob.herr...@linaro.org> >> > Cc: Alistair Strachan <astrac...@google.com> >> > Cc: Marissa Wall <maris...@google.com> >> > Cc: Sumit Semwal <sumit.sem...@linaro.org> >> > Cc: Emil Velikov <emil.l.veli...@gmail.com> >> > Cc: Rob Clark <robdcl...@gmail.com> >> > Signed-off-by: Alistair Strachan <astrac...@google.com> >> > Signed-off-by: John Stultz <john.stu...@linaro.org> >> > --- >> > Android.mk | 5 ++++- >> > 1 file changed, 4 insertions(+), 1 deletion(-) >> > >> > diff --git a/Android.mk b/Android.mk >> > index 494b4b9..128db4d 100644 >> > --- a/Android.mk >> > +++ b/Android.mk >> > @@ -30,6 +30,8 @@ >> > # module will also be built. DRI modules will be loaded by libGLES_mesa. >> > >> > ifneq ($(BOARD_USE_CUSTOMIZED_MESA), true) >> > +ifneq ($(BOARD_GPU_DRIVERS),) >> > + >> >> Something looks fairly weird here. Commit message talks about Mac and >> xgettext while this here checks for BOARD_GPU_DRIVERS. > > This change is actually papering over another bug in the makefiles: if > BOARD_GPU_DRIVERS is the empty string, bits of mesa (I think the Intel > drivers IIRC) will still be built due to some makefile logic that I > didn't track down yet. This can be reproduced with "mmma > external/mesa3d" for a device that does not specify > BOARD_GPU_DRIVERS).
Ok. Sounds like I should drop this and we'll see about reworking a better solution. >> Or looking it from another angle - if the Mac builder is missing >> xgettext one could add it, becoming in sync with other builders. >> Quick search shows that it's available in brew (brew install gettext) >> and one can build it locally. > > AFAICT this won't happen. The dependencies for AOSP are documented on > https://source.android.com/setup/build/initializing, and this list > does not include xgettext. It's just that Linux distros tend to > include xgettext in even the most minimal installation. On Mac, such a > list (other than the one documented by that page) does not exist. To > me, this seems like a porting issue that should be resolved > appropriately for AOSP. > > (IOW: ideally the dependencies on xgettext and python-maco should be > removed so that these tools are not required to build Mesa for > Android. The python-maco dependency has been worked around on the AOSP > fork of mesa by directing the makefiles to a set of pregenerated files > but this change, along with the hack discussed here, is not a > good/sustainable solution.) Agreed, we'll have to sort out something else then. Thanks so much for the feedback/explaination here! -john _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev