| Summary: | Make legal-info fails on uboot versions before 2014.01 | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Matthew Starr <mstarr> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | CC: | buildroot, mstarr |
| Priority: | P5 | ||
| Version: | 2014.02 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Matthew Starr
2014-03-24 19:36:47 UTC
Hi, It would indeed be nice to handle this more gracefully, but that's unfortunately not currently possible with the legal-info infrastructure. The fact that it fails when the license file isn't available is quite nice for testing, as the autobuilders very soon informs us of the failure (mistyped license file, a package with a license change in a new version), but for the end user a warning would be nicer. (In reply to comment #1) > Hi, > > It would indeed be nice to handle this more gracefully, but that's > unfortunately not currently possible with the legal-info infrastructure. > > The fact that it fails when the license file isn't available is quite nice for > testing, as the autobuilders very soon informs us of the failure (mistyped > license file, a package with a license change in a new version), but for the > end user a warning would be nicer. Could the boot/uboot/uboot.mk file be updated to look for the existence of the Licenses/gpl-2.0.txt file and if it doesn't exist look for the COPYING file? If the COPYING file is also not present then fail. Like I mentioned above, this is currently not possible with the legal info infrastructure. Some packages have multiple license files, so it's difficult to come up with a simple syntax for optional filenames. Instead I have fixed it for u-boot by simply copying the license file from the old location to the new after extracting it: commit 2e628372d34d9e77727185aaf47c82a439a22244 Author: Peter Korsgaard <peter@korsgaard.com> Date: Tue Mar 25 07:18:15 2014 +0100 uboot: unbreak legal info for legacy versions Fixes #6986 Prior to u-boot 2013.10, the GPL license text was stored in COPYING and not Licenses/gpl-2.0.txt, breaking legal-info. Work around it by simply copying the file from the old location to the new if present. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> That commit should apply cleanly to 2014.02. Thanks! That would work great. Thanks. |