Hi Niels,

On Sun, Sep 29, 2019 at 08:58:00AM +0000, Niels Thykier wrote:
> On Sun, 15 Sep 2019 11:19:00 +0000 Niels Thykier <ni...@thykier.net> wrote:
> > [...]
> > Niels Thykier:
> > > [...]
> > > AFAICT, it would just be a question of doing:
> > > 
> > > """
> > > /usr/share/meson/debcrossgen -a"$DEB_BUILD_ARCH" 
> > > -o"$DIR/meson-native-file.conf"
> > > /usr/share/meson/debcrossgen -a"$DEB_HOST_ARCH" 
> > > -o"$DIR/meson-cross-file.conf"
> > > meson --native-file "$DIR/meson-native-file.conf" --cross-file 
> > > "$DIR/meson-cross-file.conf" ...
> > > """
> > > 
> > > OR does it need a special case for cross-building vs. native?
> > > 
> > > """
> > > /usr/share/meson/debcrossgen -a"$DEB_BUILD_ARCH" 
> > > -o"$DIR/meson-native-file.conf"
> > > if (is_cross_compiling()) {
> > >   /usr/share/meson/debcrossgen -a"$DEB_HOST_ARCH" 
> > > -o"$DIR/meson-cross-file.conf"
> > >   meson --native-file "$DIR/meson-native-file.conf" --cross-file 
> > > "$DIR/meson-cross-file.conf" ...
> > > } else {
> > >   meson --native-file "$DIR/meson-native-file.conf" ...
> > > }
> > > """
> > > 
> > > @Helmut, @Jussi:
> > > 
> > >  * Do we agree on the above approach?

I don't feel like being the relevant person to ask. Of course, I do try
to reduce differences between native and cross builds and this is in
line with doing so, but beyond that I think it is meson's call to make.

There is one thing I want to enable accross the archive: Whever there is
a $TOOL and a $DEB_HOST_GNU_TYPE-$TOOL they should have the same
behaviour whenever the host architecture is the native architecture. In
other words: Using triplet-prefixed tools should always be safe. To the
best of my knowledge, this presently always works and it is why the
emitted native-file from debcrossgen should just work.

> > >  * Do you see any issues with this approach?

No.

> @Helmut and @Jussi: I am still hoping for a comment from you on this bug. :)

I'm sorry. It didn't appear to me like I could provide useful input
here. It seemed as if all arguments were already on the table.

Helmut

Reply via email to