All of lore.kernel.org
 help / color / mirror / Atom feed
From: Colin Foster <colin.foster@in-advantage.com>
To: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [v1 1/2] package/bootpc: new package
Date: Wed, 24 May 2023 10:49:49 -0700	[thread overview]
Message-ID: <ZG5OPViLTB8XodO/@colin-ia-desktop> (raw)
In-Reply-To: <20230523204335.GK621937@scaer>

Hi Yann,

On Tue, May 23, 2023 at 10:43:35PM +0200, Yann E. MORIN wrote:
> Colin, All,
> 
> On 2023-05-23 10:21 -0700, Colin Foster spake thusly:
> > Add the ability to select, build, and run bootpc - a client program for
> > BOOTP requests.
> 
> Thanks for this new package.
> 
> Here is a purely mechanical review:
> 
>     $ ./utils/docker-run make check-package
>     package/bootpc/0001-main-fix-build.patch:4: generate your patches with 'git format-patch -N'
>     package/bootpc/0001-main-fix-build.patch:0: missing Signed-off-by in the header (http://nightly.buildroot.org/#_format_and_licensing_of_the_package_patches)
>     package/bootpc/0001-main-fix-build.patch:0: missing Upstream in the header (http://nightly.buildroot.org/#_additional_patch_documentation)
>     package/bootpc/0002-Makefile-remove-strip-from-the-build.patch:4: generate your patches with 'git format-patch -N'
>     package/bootpc/0002-Makefile-remove-strip-from-the-build.patch:0: missing Signed-off-by in the header (http://nightly.buildroot.org/#_format_and_licensing_of_the_package_patches)
>     package/bootpc/0002-Makefile-remove-strip-from-the-build.patch:0: missing Upstream in the header (http://nightly.buildroot.org/#_additional_patch_documentation)
>     package/bootpc/Config.in:4: help text: <tab><2 spaces><62 chars> (http://nightly.buildroot.org/#writing-rules-config-in)
>     package/bootpc/Config.in:5: empty line at end of file

I didn't know about all these tools. I'll run them before v2, and thanks
for the feedback.

> 
> Also, see below for a few additional comments...
> 
> > Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
> > ---
> >  package/Config.in                             |  1 +
> >  package/bootpc/0001-main-fix-build.patch      | 37 +++++++++++++++++++
> >  ...Makefile-remove-strip-from-the-build.patch | 28 ++++++++++++++
> >  package/bootpc/Config.in                      |  5 +++
> >  package/bootpc/bootpc.mk                      | 19 ++++++++++
> >  5 files changed, 90 insertions(+)
> >  create mode 100644 package/bootpc/0001-main-fix-build.patch
> >  create mode 100644 package/bootpc/0002-Makefile-remove-strip-from-the-build.patch
> >  create mode 100644 package/bootpc/Config.in
> >  create mode 100644 package/bootpc/bootpc.mk
> > 
> > diff --git a/package/Config.in b/package/Config.in
> > index 420ebaa370..07de6500bf 100644
> > --- a/package/Config.in
> > +++ b/package/Config.in
> > @@ -2273,6 +2273,7 @@ endif
> >  	source "package/bmon/Config.in"
> >  	source "package/bmx7/Config.in"
> >  	source "package/boinc/Config.in"
> > +    source "package/bootpc/Config.in"
> 
> Indentation with TAB, not spaces.
> 
> (not sure why this one did not get caught by check-package...)

Thanks. I'll fix this up as well. Boneheaded mistake on my part.

> 
> [--SNIP--]
> > diff --git a/package/bootpc/bootpc.mk b/package/bootpc/bootpc.mk
> > new file mode 100644
> > index 0000000000..d3c5ce5198
> > --- /dev/null
> > +++ b/package/bootpc/bootpc.mk
> > @@ -0,0 +1,19 @@
> > +################################################################################
> > +#
> > +# bootpc package
> > +#
> > +################################################################################
> > +
> > +BOOTPC_VERSION = 80c0811dc69f9f3923661be4f9f9c09a44313f62
> > +BOOTPC_SITE_METHOD = git
> > +BOOTPC_SITE = https://salsa.debian.org/debian/bootpc.git
> 
> Nit-picking, but we usually put _SITE and _SITE_METHOD in that order:
> 
>     BOOTPC_SITE = https://salsa.debian.org/debian/bootpc.git
>     BOOTPC_SITE_METHOD = git
> 
> You need to also provide the licening terms. It looks like:
> 
>     BOOTPC_LICENSE = GPL-2.0-or-later
>     BOOTPC_LICENSE_FILES = LICENSE NOTICE
> 
> Also, please provide a hash file with hashes for the source tarball [0]
> and for each license files; see:
>     https://buildroot.org/downloads/manual/manual.html#adding-packages-hash

Ahh... I poked around readme, developers... I didn't even think to check
the manual. Apologies.

> 
> [0] source tarballs generated from a git checkout have been reproducible
> for quite some time now, so we can, and have to, check their hashes.
> 
> Also, the upstream README states:
> 
>     I'll repeat that.  set up /etc/host.conf or this bit won't work.
> 
> We do not provide such a file in Buildroot, so:
>  1. is the comment above still valide nowadays?
>  2. should the bootpc package install an /etc/host.conf file?

I fought bootpc for a while to get it to work. I don't think the comment
is valid, as I certainly don't have a host.conf file. It seemed like a
red herring. There might be some use cases that need it (comments
surrounding gethostbyaddr suggest that might be the case) but I don't
need it.

> 
> Regards,
> Yann E. MORIN.
> -- 
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> '------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2023-05-24 17:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-23 17:21 [Buildroot] [v1 0/2] add bootpc package Colin Foster
2023-05-23 17:21 ` [Buildroot] [v1 1/2] package/bootpc: new package Colin Foster
2023-05-23 20:43   ` Yann E. MORIN
2023-05-24 17:49     ` Colin Foster [this message]
2023-05-23 17:21 ` [Buildroot] [v1 2/2] bootpc: add dhcp-like configuration ability Colin Foster
2023-05-23 21:18   ` Yann E. MORIN
2023-05-24 17:58     ` Colin Foster
2023-05-25 15:31       ` Colin Foster

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=ZG5OPViLTB8XodO/@colin-ia-desktop \
    --to=colin.foster@in-advantage.com \
    --cc=buildroot@buildroot.org \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=yann.morin.1998@free.fr \
    /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.