* [Buildroot] [PATCH 1/1] package/mcelog: fix legal-info
@ 2017-06-12 4:15 Bernd Kuhls
2017-06-12 8:11 ` Thomas Petazzoni
2017-06-12 17:08 ` Rahul Bedarkar
0 siblings, 2 replies; 8+ messages in thread
From: Bernd Kuhls @ 2017-06-12 4:15 UTC (permalink / raw)
To: buildroot
README was renamed to README.md
https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git/commit/README.md?id=2fda0091a0628480a08cbf6ebe309fcb83aeae34
Fixes
http://autobuild.buildroot.net/results/02b/02b897a843b995bf5bf3f993f48689870a551dd5/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
package/mcelog/mcelog.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/mcelog/mcelog.mk b/package/mcelog/mcelog.mk
index 695261302..d12fc44f7 100644
--- a/package/mcelog/mcelog.mk
+++ b/package/mcelog/mcelog.mk
@@ -8,7 +8,7 @@ MCELOG_VERSION = v152
MCELOG_SITE = $(BR2_KERNEL_MIRROR)/scm/utils/cpu/mce/mcelog.git
MCELOG_SITE_METHOD = git
MCELOG_LICENSE = GPL-2.0
-MCELOG_LICENSE_FILES = README
+MCELOG_LICENSE_FILES = README.md
define MCELOG_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
--
2.11.0
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] package/mcelog: fix legal-info
2017-06-12 4:15 [Buildroot] [PATCH 1/1] package/mcelog: fix legal-info Bernd Kuhls
@ 2017-06-12 8:11 ` Thomas Petazzoni
2017-06-12 17:08 ` Rahul Bedarkar
1 sibling, 0 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2017-06-12 8:11 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 12 Jun 2017 06:15:12 +0200, Bernd Kuhls wrote:
> README was renamed to README.md
> https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git/commit/README.md?id=2fda0091a0628480a08cbf6ebe309fcb83aeae34
>
> Fixes
> http://autobuild.buildroot.net/results/02b/02b897a843b995bf5bf3f993f48689870a551dd5/
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> package/mcelog/mcelog.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] package/mcelog: fix legal-info
2017-06-12 4:15 [Buildroot] [PATCH 1/1] package/mcelog: fix legal-info Bernd Kuhls
2017-06-12 8:11 ` Thomas Petazzoni
@ 2017-06-12 17:08 ` Rahul Bedarkar
2017-06-12 19:04 ` Thomas Petazzoni
2017-06-13 22:06 ` Peter Korsgaard
1 sibling, 2 replies; 8+ messages in thread
From: Rahul Bedarkar @ 2017-06-12 17:08 UTC (permalink / raw)
To: buildroot
On Mon, Jun 12, 2017 at 9:45 AM, Bernd Kuhls <bernd.kuhls@t-online.de> wrote:
>
> README was renamed to README.md
> https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git/commit/README.md?id=2fda0091a0628480a08cbf6ebe309fcb83aeae34
make <pkg>-legal-info should have caught that after version bump as a
part of testing. But it looks like we don't do that usually. In past,
we have seen such failures after version bump.
To avoid such failures, we can add hash of license file in <pkg>.hash
and checking that after source is downloaded. If license file changes,
it will be noticed while build test after version bump.
Potentially, it will also help in keeping license string of packages
up-to-date if it gets changed. What do you think ?
Regards,
Rahul
>
> Fixes
> http://autobuild.buildroot.net/results/02b/02b897a843b995bf5bf3f993f48689870a551dd5/
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> package/mcelog/mcelog.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/package/mcelog/mcelog.mk b/package/mcelog/mcelog.mk
> index 695261302..d12fc44f7 100644
> --- a/package/mcelog/mcelog.mk
> +++ b/package/mcelog/mcelog.mk
> @@ -8,7 +8,7 @@ MCELOG_VERSION = v152
> MCELOG_SITE = $(BR2_KERNEL_MIRROR)/scm/utils/cpu/mce/mcelog.git
> MCELOG_SITE_METHOD = git
> MCELOG_LICENSE = GPL-2.0
> -MCELOG_LICENSE_FILES = README
> +MCELOG_LICENSE_FILES = README.md
>
> define MCELOG_BUILD_CMDS
> $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
> --
> 2.11.0
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] package/mcelog: fix legal-info
2017-06-12 17:08 ` Rahul Bedarkar
@ 2017-06-12 19:04 ` Thomas Petazzoni
2017-06-13 16:29 ` Rahul Bedarkar
2017-06-13 22:11 ` Peter Korsgaard
2017-06-13 22:06 ` Peter Korsgaard
1 sibling, 2 replies; 8+ messages in thread
From: Thomas Petazzoni @ 2017-06-12 19:04 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 12 Jun 2017 22:38:17 +0530, Rahul Bedarkar wrote:
> > README was renamed to README.md
> > https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git/commit/README.md?id=2fda0091a0628480a08cbf6ebe309fcb83aeae34
>
> make <pkg>-legal-info should have caught that after version bump as a
> part of testing. But it looks like we don't do that usually. In past,
> we have seen such failures after version bump.
>
> To avoid such failures, we can add hash of license file in <pkg>.hash
> and checking that after source is downloaded. If license file changes,
> it will be noticed while build test after version bump.
>
> Potentially, it will also help in keeping license string of packages
> up-to-date if it gets changed. What do you think ?
Yocto/OE also has a hash for license files, specifically to check if
the license file is changed.
However, I'm not sure if the .hash file is the appropriate location. In
the .hash file, we have the hash of the downloaded files (in the ones
in DL_DIR). Hashes for files inside the tarball is a quite different
thing.
Also, I'm a bit worried about the additional complexity and maintenance
burden.
But it's a discussion definitely worth having.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] package/mcelog: fix legal-info
2017-06-12 19:04 ` Thomas Petazzoni
@ 2017-06-13 16:29 ` Rahul Bedarkar
2017-06-13 22:11 ` Peter Korsgaard
1 sibling, 0 replies; 8+ messages in thread
From: Rahul Bedarkar @ 2017-06-13 16:29 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, Jun 13, 2017 at 12:34 AM, Thomas Petazzoni
<thomas.petazzoni@free-electrons.com> wrote:
> Hello,
>
> Yocto/OE also has a hash for license files, specifically to check if
> the license file is changed.
Yes, my intention to suggest that is to check if license text gets
changed. Preventing such build failure is added advantage out of this.
> However, I'm not sure if the .hash file is the appropriate location. In
> the .hash file, we have the hash of the downloaded files (in the ones
> in DL_DIR). Hashes for files inside the tarball is a quite different
> thing.
If we use .hash file, then all hashes will be in one place but yes, it
is for downloaded files. We can add hash of license file in .mk file
under LICENSE_FILES_HASH variable. In that case, one to one mapping of
license file and its hash needs to be maintained if there are multiple
license files. If using .hash file for hashes of only downloaded files
isn't a hard rule then adding hash of license file .hash file will be
more convenient ?
> Also, I'm a bit worried about the additional complexity and maintenance
> burden.
If this thing helps in maintaining legal info accurate and up-date
then additional complexity is OK in my opinion. After all legal info
is also important thing and we will be confident about it over a
period of time.
Thanks,
Rahul
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] package/mcelog: fix legal-info
2017-06-12 19:04 ` Thomas Petazzoni
2017-06-13 16:29 ` Rahul Bedarkar
@ 2017-06-13 22:11 ` Peter Korsgaard
1 sibling, 0 replies; 8+ messages in thread
From: Peter Korsgaard @ 2017-06-13 22:11 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Hi,
>> Potentially, it will also help in keeping license string of packages
>> up-to-date if it gets changed. What do you think ?
> Yocto/OE also has a hash for license files, specifically to check if
> the license file is changed.
Exactly. I think it makes sense to do so. We provide legal info, and
besides validating that the license files still exist we don't have any
checks in place to ensure we catch license changes.
> However, I'm not sure if the .hash file is the appropriate location. In
> the .hash file, we have the hash of the downloaded files (in the ones
> in DL_DIR). Hashes for files inside the tarball is a quite different
> thing.
I don't see it as a big issue. If we want hashes for license files then
they need to be stored somewhere, so storing them together with the
download hashes sounds OK to me.
> Also, I'm a bit worried about the additional complexity and maintenance
> burden.
I don't think it will add any significant maintenance burden. The
license files very rarely changes, so normally you don't need to update
them (and when you do you want to get notified of it).
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] package/mcelog: fix legal-info
2017-06-12 17:08 ` Rahul Bedarkar
2017-06-12 19:04 ` Thomas Petazzoni
@ 2017-06-13 22:06 ` Peter Korsgaard
2017-06-18 8:02 ` Yann E. MORIN
1 sibling, 1 reply; 8+ messages in thread
From: Peter Korsgaard @ 2017-06-13 22:06 UTC (permalink / raw)
To: buildroot
>>>>> "Rahul" == Rahul Bedarkar <rahulbedarkar89@gmail.com> writes:
> On Mon, Jun 12, 2017 at 9:45 AM, Bernd Kuhls <bernd.kuhls@t-online.de> wrote:
>>
>> README was renamed to README.md
>> https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git/commit/README.md?id=2fda0091a0628480a08cbf6ebe309fcb83aeae34
> make <pkg>-legal-info should have caught that after version bump as a
> part of testing. But it looks like we don't do that usually. In past,
> we have seen such failures after version bump.
> To avoid such failures, we can add hash of license file in <pkg>.hash
> and checking that after source is downloaded. If license file changes,
> it will be noticed while build test after version bump.
> Potentially, it will also help in keeping license string of packages
> up-to-date if it gets changed. What do you think ?
Yes, this is something I have been thinking about as well (but not found
time to implement yet). +1 from here!
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] [PATCH 1/1] package/mcelog: fix legal-info
2017-06-13 22:06 ` Peter Korsgaard
@ 2017-06-18 8:02 ` Yann E. MORIN
0 siblings, 0 replies; 8+ messages in thread
From: Yann E. MORIN @ 2017-06-18 8:02 UTC (permalink / raw)
To: buildroot
Peter, Rahul, All,
On 2017-06-14 00:06 +0200, Peter Korsgaard spake thusly:
> >>>>> "Rahul" == Rahul Bedarkar <rahulbedarkar89@gmail.com> writes:
>
> > On Mon, Jun 12, 2017 at 9:45 AM, Bernd Kuhls <bernd.kuhls@t-online.de> wrote:
> >>
> >> README was renamed to README.md
> >> https://git.kernel.org/pub/scm/utils/cpu/mce/mcelog.git/commit/README.md?id=2fda0091a0628480a08cbf6ebe309fcb83aeae34
>
> > make <pkg>-legal-info should have caught that after version bump as a
> > part of testing. But it looks like we don't do that usually. In past,
> > we have seen such failures after version bump.
>
> > To avoid such failures, we can add hash of license file in <pkg>.hash
> > and checking that after source is downloaded. If license file changes,
> > it will be noticed while build test after version bump.
>
> > Potentially, it will also help in keeping license string of packages
> > up-to-date if it gets changed. What do you think ?
>
> Yes, this is something I have been thinking about as well (but not found
> time to implement yet). +1 from here!
I've sent a propsal for that:
http://lists.busybox.net/pipermail/buildroot/2017-June/194820.html
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2017-06-18 8:02 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-12 4:15 [Buildroot] [PATCH 1/1] package/mcelog: fix legal-info Bernd Kuhls
2017-06-12 8:11 ` Thomas Petazzoni
2017-06-12 17:08 ` Rahul Bedarkar
2017-06-12 19:04 ` Thomas Petazzoni
2017-06-13 16:29 ` Rahul Bedarkar
2017-06-13 22:11 ` Peter Korsgaard
2017-06-13 22:06 ` Peter Korsgaard
2017-06-18 8:02 ` Yann E. MORIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox