From: David Gibson <david@gibson.dropbear.id.au>
To: passt-dev@passt.top
Subject: [PATCH] Fix parsing of LINKS
Date: Wed, 06 Jul 2022 17:23:23 +1000 [thread overview]
Message-ID: <20220706072323.596133-1-david@gibson.dropbear.id.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 749 bytes --]
Currently mbuto misparses the LINKS variable in the profile. It will
correctly assign the first two tokens to the target and link name, but for
subsequent tokens ${__target} will always be non-empty, and so we'll never
change it for later links.
AFAICT this has been missed because the existing sample profiles only have
links all going to the same target.
Signed-off-by: David Gibson <david(a)gibson.dropbear.id.au>
---
mbuto | 1 +
1 file changed, 1 insertion(+)
diff --git a/mbuto b/mbuto
index 4ffe549..7530c72 100755
--- a/mbuto
+++ b/mbuto
@@ -808,6 +808,7 @@ prog_add() {
prog_link "${1}" \
"${__bindir##${wd}}/$("${BASENAME}" "${__bin}")" \
"${__target}" "${__l}"
+ __target=
done
libs_copy "${__bin}"
--
@@ -808,6 +808,7 @@ prog_add() {
prog_link "${1}" \
"${__bindir##${wd}}/$("${BASENAME}" "${__bin}")" \
"${__target}" "${__l}"
+ __target=
done
libs_copy "${__bin}"
--
2.36.1
next reply other threads:[~2022-07-06 7:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 7:23 David Gibson [this message]
2022-07-06 17:50 ` [PATCH] Fix parsing of LINKS Stefano Brivio
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=20220706072323.596133-1-david@gibson.dropbear.id.au \
--to=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
/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.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).