From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Bernd Kuhls <bernd@kuhls.net>
Cc: buildroot@uclibc.org, "Yann E. MORIN" <yann.morin.1998@free.fr>
Subject: Re: [Buildroot] [PATCH 1/1] package/pkg-generic.mk: fix typo in make target .stamp_built
Date: Mon, 21 Aug 2023 15:13:58 +0200 [thread overview]
Message-ID: <20230821151358.74e9b4b0@windsurf> (raw)
In-Reply-To: <pan$c62b1$e5429c51$8973424f$9abaebbb@ID-313208.user.individual.net>
On Fri, 18 Aug 2023 22:47:15 +0200
Bernd Kuhls <bernd@kuhls.net> wrote:
> Digging further into what first appeared to me as a typo I found your
> commit adding the double colon to package/Makefile.package.in:
> https://git.buildroot.net/buildroot/commit/package?
> id=e11fe847b2f545446fc3300dd2ba88fd5da05756
>
> At that time there was another file, package/Makefile.autotools.in, which
> also included a "$(BUILD_DIR)/%/.stamp_built:" single-colon target:
> https://git.buildroot.net/buildroot/tree/package/Makefile.autotools.in?
> id=e11fe847b2f545446fc3300dd2ba88fd5da05756#n264
>
> Today only one file, package/pkg-generic.mk, contains a .stamp_built
> target.
>
> Maybe, I am only guessing, the double colon was necessary back then, due
> to two Makefiles containing the same target, and lost their justification
> when the single-colon target "$(BUILD_DIR)/%/.stamp_built:" was removed
> with commit https://git.buildroot.net/buildroot/commit/?
> id=d8b55b99095e5eed46d2b95bdaab2e69ccbd7170
Thanks for the additional research. However, I don't think your
explanation that the double colon was necessary back then because there
was a $(BUILD_DIR)/%/.stamp_built rule in package/Makefile.package.in
and another one in package/Makefile.autotools.in really makes sense:
this was also the case for all the other
$(BUILD_DIR)/%/.stamp_<something> rules, and only the .stamp_built one
had this double colon added.
I can really only think about this really being a typo.
Here is a highly convincing explanation: up to a few days ago before
you sent this patch, I had no idea what this "double colon" was doing
exactly. And I really doubt that back in 2009 when I contributed this
change I had a much better idea about it. So I don't see how it could
have been intentional from me, and therefore I believe it indeed is a
typo. I looked up the history of this patch, and it was posted only
once to the mailing list by me, I then did a pull request to Peter, who
merged the whole thing. So there was no particular discussion about
this double colon.
So, unless Yann disagrees, I think I'm going to apply Bernd's patch
with a slightly more detailed explanation.
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-08-21 13:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-18 15:16 [Buildroot] [PATCH 1/1] package/pkg-generic.mk: fix typo in make target .stamp_built Bernd Kuhls
2023-08-18 20:03 ` Thomas Petazzoni via buildroot
2023-08-18 20:24 ` Yann E. MORIN
2023-08-18 20:44 ` Thomas Petazzoni via buildroot
2023-08-18 21:18 ` Yann E. MORIN
[not found] ` <20230818220314.3178c964__25218.2109326654$1692389025$gmane$org@windsurf>
2023-08-18 20:47 ` Bernd Kuhls
2023-08-21 13:13 ` Thomas Petazzoni via buildroot [this message]
2024-07-12 19:47 ` Arnout Vandecappelle via buildroot
2024-08-07 8:54 ` Peter Korsgaard
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=20230821151358.74e9b4b0@windsurf \
--to=buildroot@buildroot.org \
--cc=bernd@kuhls.net \
--cc=buildroot@uclibc.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.