All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
To: Tim Hammer <Tim.Hammer@orolia.com>
Cc: Peter Seiderer <ps.report@gmx.net>,
	"buildroot@buildroot.org" <buildroot@buildroot.org>
Subject: Re: [Buildroot] [PATCH 1/1] package/dhcp: use internal bind
Date: Wed, 6 Apr 2022 16:06:06 +0200	[thread overview]
Message-ID: <CAPi7W81W6iAJOpuEM21V2ADbx+tBS7G9yARN7iuAi5p4fN6HPw@mail.gmail.com> (raw)
In-Reply-To: <CAPi7W8353UEfJS3YOKxp8OnVQ-HKfBwaujzVn30Hx4jehTmwoA@mail.gmail.com>

Le mer. 6 avr. 2022 à 15:30, Fabrice Fontaine
<fontaine.fabrice@gmail.com> a écrit :
>
> Le mer. 6 avr. 2022 à 14:58, Tim Hammer <Tim.Hammer@orolia.com> a écrit :
> >
> > On Wed, Apr 06, 2022 at 09:08:58AM +0200, Fabrice Fontaine wrote:
> > > Le mer. 6 avr. 2022 à 03:58, Tim Hammer <Tim.Hammer@orolia.com> a écrit :
> > > >
> > > > On Tue, Apr 05, 2022 at 06:18:15PM +0200, Peter Seiderer wrote:
> > > > > Hello Tim,
> > > > >
> > > > > On Tue, 5 Apr 2022 12:15:14 +0000, Tim Hammer <Tim.Hammer@orolia.com> wrote:
> > > > >
> > > > > > On Tue, Apr 05, 2022 at 08:19:08AM +0200, Fabrice Fontaine wrote:
> > > > > > > Dear Tim,
> > > > > > >
> > > > > > > Le mar. 5 avr. 2022 à 05:54, Tim Hammer <Tim.Hammer@orolia.com> a écrit :
> > > > > > > >
> > > > > > > > On Sun, Apr 03, 2022 at 12:03:18PM +0200, Fabrice Fontaine wrote:
> > > > > > > > > Use internal bind as dhcp doesn't build since bump of bind to version
> > > > > > > > > 9.16.26 in commit 8adeaec8afacbc680edebae91524f6144926ac92 and upstream
> > > > > > > > > doesn't plan to fix it any time soon:
> > > > > > > > > https://gitlab.isc.org/isc-projects/dhcp/-/issues/233#note_276883
> > > > > > > > >
> > ...
> > > > > >
> > > > > >
> > > > > > > However, I assume that BUILD_CC and BUILD_CFLAGS in bind.mk should
> > > > > > > also be updated?
> > > > > >
> > > > > > I do not have the issue building bind (9.16.26), there lib/dns/Makefile.in seems to be better written:
> > > > > >
> > > > > >      gen: gen.c
> > > > > >     ${HOSTCC} ${HOST_CFLAGS} -I${top_srcdir}/lib/isc/include \
> > > > > >     ${HOST_LDFLAGS} -o $@ ${srcdir}/gen.c
> > > > > >
> > > > > > Perhaps we should be patching that file instead of the config?
> > > > >
> > > > > See https://git.buildroot.net/buildroot/tree/package/bind/0001-cross.patch
> > > > >
> > > > > Regards,
> > > > > Peter
> > > > >
> > > >
> > > > Yes, that reinforces my thinking. Unfortunately, the bundled bind is not unzipped until the build step
> > > > and I have not figured out a good way to get this diff in place.
> > > > Perhaps someone with more experience can see the solution that is eluding me?
> > >
> > > My bad, I made a typo in my first mail, you should use $(HOSTCC) and
> > > not $(HOST_CC).
> >
> > Wow, how many times did I look at those lines and not see the difference! ;-(
> > Thanks for catching that!
> >
> > > Patching bind is not needed.
> > > I can send the patch or let you handle it.
> >
> > I am still concerned about my ability to verify-
> > I added "corrections" for BUILD_CFLAGS & BUILD_LDFLAGS so those match the changes in bind.mk,
> >         -DHCP_BIND_EXTRA_CONFIG = BUILD_CC='$(TARGET_CC)'
> >         +
> >         +DHCP_BIND_EXTRA_CONFIG = BUILD_CC='$(HOSTCC)'
> >         +DHCP_BIND_EXTRA_CONFIG += BUILD_CFLAGS='$(HOST_CFLAGS)'
> >         +DHCP_BIND_EXTRA_CONFIG += BUILD_LDFLAGS='$(HOST_LDFLAGS)'
> > but I am unsure about the others used (BUILD_CPPFLAGS, BUILD_LIBS, LFS_*)...
> >         ${BUILD_CC} ${BUILD_CFLAGS} -I${top_srcdir}/lib/isc/include \
> >         ${LFS_CFLAGS} ${LFS_LDFLAGS} \
> >         ${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c \
> >         ${BUILD_LIBS} ${LFS_LIBS}
> > Should those be set to empty strings? Or is it safe to assume they are undefined by default?
>
> BUILD_CPPFLAGS should be set to HOST_CPPFLAGS.
> IMHO it is safe to assume that BUILD_LIBS and LFS_* are empty.
>
> Feel free to send your patch with a link to the autobuilder failure such as:
>
> Fixes:
>  - http://autobuild.buildroot.org/results/7a5cdf30881d208807976cf98960c5fe2abfed50

The correct link is
http://autobuild.buildroot.org/results/da6fd904d1a6bae73b6ff89dd008de1f459bb7d7

The previous one is about zlib, I'll investigate it.


>
> Arnout or the others will make a second review and spot any remaining issues.
>
> >
> > >
> > ...
> > >
> > > Best Regards,
> > >
> > > Fabrice
> >
> > .Tim
> > Tim D. Hammer
> > tim.hammer@orolia.com
> >
> >
>
> Best Regards,
>
> Fabrice

Best Regards,

Fabrice
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-04-06 14:08 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-05  3:54 [Buildroot] [PATCH 1/1] package/dhcp: use internal bind Tim Hammer
2022-04-05  6:19 ` Fabrice Fontaine
2022-04-05 12:15   ` Tim Hammer
2022-04-05 16:18     ` Peter Seiderer
2022-04-06  1:58       ` Tim Hammer
2022-04-06  7:08         ` Fabrice Fontaine
2022-04-06 12:58           ` Tim Hammer
2022-04-06 13:30             ` Fabrice Fontaine
2022-04-06 14:06               ` Fabrice Fontaine [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-04-04 13:07 Edmundo Ferreira
2022-04-03 10:03 Fabrice Fontaine
2022-04-04  6:19 ` James Hilliard
2022-04-04 19:31 ` Arnout Vandecappelle
2022-04-04 19:55 ` Yann E. MORIN
2022-04-09 14:09 ` Peter Korsgaard
2022-04-12 11:15   ` Eugen.Hristev--- via buildroot
2022-04-12 11:22     ` Fabrice Fontaine
2022-04-12 11:33       ` Peter Korsgaard
2022-04-12 11:43         ` Eugen.Hristev--- via buildroot
2022-04-12 12:32           ` Eugen.Hristev--- via buildroot
2022-04-12 12:34           ` Peter Korsgaard
2022-04-12 18:17             ` Fabrice Fontaine
2022-04-13  7:54               ` Eugen.Hristev--- via buildroot
2022-04-13  8:29                 ` Peter Korsgaard
2022-04-14  9:10                   ` Eugen.Hristev--- via buildroot
2022-04-14  9:59                     ` Fabrice Fontaine
2022-04-14 16:44                       ` Fabrice Fontaine
2022-04-19  5:21                         ` Eugen.Hristev--- via buildroot
2022-04-19  9:08                           ` Fabrice Fontaine
2022-04-19 10:19                             ` Eugen.Hristev--- via buildroot
2022-04-19 16:12                               ` Fabrice Fontaine
2022-04-21  9:25                                 ` Eugen.Hristev--- via buildroot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPi7W81W6iAJOpuEM21V2ADbx+tBS7G9yARN7iuAi5p4fN6HPw@mail.gmail.com \
    --to=fontaine.fabrice@gmail.com \
    --cc=Tim.Hammer@orolia.com \
    --cc=buildroot@buildroot.org \
    --cc=ps.report@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.