diff options
author | Clayton Shotwell <clayton.shotwell@rockwellcollins.com> | 2015-07-11 17:40:14 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-07-12 00:46:55 +0200 |
commit | 4837354fff8cc56916fa10e5ac5f8da73d0cc405 (patch) | |
tree | 2197d9612d4ebe443ba9929b9b05c9f4de523dfd /docs/manual/adding-packages-generic.txt | |
parent | e1baac68bcb9fb3cb3d2603d238a2ce8e7eb1125 (diff) | |
download | buildroot-4837354fff8cc56916fa10e5ac5f8da73d0cc405.tar.gz buildroot-4837354fff8cc56916fa10e5ac5f8da73d0cc405.zip |
pkg-generic: Fix host _DL_VERSION corner case
In the case when a package has a host version, the package is dependent
on the host version, and the version contains a '/', the host version
does not evaluate properly. The host version will contain a '_' instead
of a '/', resulting in a failed download. To solve this corner case, add
a check to see if the _DL_VERSION of the package has been defined before
defining the host _DL_VERSION. If the package _DL_VERSION has not been
defined yet, then the version string has not been formatted yet and is
still good to use.
[Arnout: further simplify things by lifting the override over _VERSION
out of the condition - it is always the same.]
This error occured on a package in a BR2_EXTERNAL that uses a git repo
for its remote storage with '/' in the tag names. I do not believe this
affects any packages in the Buildroot mainline but it could in the
future.
[Arnout: rebase on master, fix existing whitespace error in the else
branch.]
Signed-off-by: Clayton Shotwell <clayton.shotwell@rockwellcollins.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'docs/manual/adding-packages-generic.txt')
0 files changed, 0 insertions, 0 deletions