Thread (3 messages) flat view 3 messages, 3 authors, 2021-03-31

[Buildroot] [PATCH] package/perl: fix configure when BR2_VERSION_FULL contains a '/'

From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Date: 2021-03-28 19:24:44

On Sat, 27 Mar 2021 23:42:20 +0100
"Yann E. MORIN" [off-list ref] wrote:
When BR2_VERSION_FULL contains one or more '/', injection our version
in the perl patch-level fails:

    /usr/bin/sed: -e expression #1, char 27: unknown option to `s'

When the build is done in a git tree, and HEAD is a tag, BR2_VERSION_FULL
will contain that tag name. Even if not widely common, it is not unusual
for a tag to contain a '/', and this is perfectly legit in git.

So, mangle BR2_VERSION_FULL to escape all '/' with a backslash '\', so
that the sed expression is correct, and so that we eventually have a
correct pathclevel string in perl's --version output.

Signed-off-by: Yann E. MORIN <redacted>
Cc: Francois Perrad <redacted>
---
 package/perl/perl.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help