* [PATCH 1/1] populate: fix empty files.list
@ 2014-09-08 16:48 Jean-Marie Lemetayer
0 siblings, 0 replies; 4+ messages in thread
From: Jean-Marie Lemetayer @ 2014-09-08 16:48 UTC (permalink / raw)
To: crossgcc; +Cc: Jean-Marie Lemetayer
The output format of the file(1) command have changed since (at least)
the version 5.14. We need to to take care of an extra space.
Signed-off-by: Jean-Marie Lemetayer <jeanmarie.lemetayer@gmail.com>
---
scripts/populate.in | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/populate.in b/scripts/populate.in
index 28a9740..2fc88f2 100644
--- a/scripts/populate.in
+++ b/scripts/populate.in
@@ -222,7 +222,7 @@ do_add_lib() {
do_resolve_deps() {
local file="${1}"
local libname
-
+
for libname in $("${CT_READELF}" -d "${file}" \
|"${grep}" -E '\(NEEDED\)[[:space:]]+Shared library:' \
|"${sed}" -r -e 's,.+\[(.+)\] *$,\1,;' \
@@ -280,9 +280,9 @@ CT_TMP_DIR="${TMPDIR:-/tmp}/populate-${rand}-${$}"
trap "rm -rf ${CT_TMP_DIR}" EXIT
# List all ELF (executables|shared objects)...
-find . -type f -exec file {} \; \
-|"${grep}" -E ': ELF [[:digit:]]+-bit (L|M)SB (executable|shared object),' \
-|cut -d ":" -f 1 \
+find . -type f -exec file {} \; \
+|"${grep}" -E ': ELF [[:digit:]]+-bit (L|M)SB +(executable|shared object),' \
+|cut -d ":" -f 1 \
>"${CT_TMP_DIR}/files.list"
# ... and use that list to find missing dependencies
--
1.9.1
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] populate: fix empty files.list
2014-09-08 16:53 Jean-Marie Lemetayer
2014-09-08 16:59 ` Jean-Marie Lemetayer
@ 2014-09-11 21:37 ` Yann E. MORIN
1 sibling, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2014-09-11 21:37 UTC (permalink / raw)
To: Jean-Marie Lemetayer; +Cc: crossgcc
Jean-Marie, All,
On 2014-09-08 18:53 +0200, Jean-Marie Lemetayer spake thusly:
> The output format of the file(1) command have changed since (at least)
> the version 5.14. We need to to take care of an extra space.
>
> Signed-off-by: Jean-Marie Lemetayer <jeanmarie.lemetayer@gmail.com>
> ---
> scripts/populate.in | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/populate.in b/scripts/populate.in
> index 28a9740..c29be1c 100644
> --- a/scripts/populate.in
> +++ b/scripts/populate.in
> @@ -280,9 +280,9 @@ CT_TMP_DIR="${TMPDIR:-/tmp}/populate-${rand}-${$}"
> trap "rm -rf ${CT_TMP_DIR}" EXIT
>
> # List all ELF (executables|shared objects)...
> -find . -type f -exec file {} \; \
> -|"${grep}" -E ': ELF [[:digit:]]+-bit (L|M)SB (executable|shared object),' \
> -|cut -d ":" -f 1 \
> +find . -type f -exec file {} \; \
> +|"${grep}" -E ': ELF [[:digit:]]+-bit (L|M)SB +(executable|shared object),' \
> +|cut -d ":" -f 1 \
I've un-shifted the trailing back-slashes, since it was not required to
keep alignment.
Applied, thanks!
Regards,
Yann E. MORIN.
> >"${CT_TMP_DIR}/files.list"
>
> # ... and use that list to find missing dependencies
> --
> 1.9.1
>
>
> --
> For unsubscribe information see http://sourceware.org/lists.html#faq
>
--
.-----------------.--------------------.------------------.--------------------.
| 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. |
'------------------------------^-------^------------------^--------------------'
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] populate: fix empty files.list
2014-09-08 16:53 Jean-Marie Lemetayer
@ 2014-09-08 16:59 ` Jean-Marie Lemetayer
2014-09-11 21:37 ` Yann E. MORIN
1 sibling, 0 replies; 4+ messages in thread
From: Jean-Marie Lemetayer @ 2014-09-08 16:59 UTC (permalink / raw)
To: crossgcc; +Cc: Jean-Marie Lemetayer
Hi,
Sorry my vi have automatically deleted a trailing space in the first
patch. The second is clean.
Regards,
Jean-Marie Lemetayer
2014-09-08 18:53 GMT+02:00 Jean-Marie Lemetayer <jeanmarie.lemetayer@gmail.com>:
> The output format of the file(1) command have changed since (at least)
> the version 5.14. We need to to take care of an extra space.
>
> Signed-off-by: Jean-Marie Lemetayer <jeanmarie.lemetayer@gmail.com>
> ---
> scripts/populate.in | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/scripts/populate.in b/scripts/populate.in
> index 28a9740..c29be1c 100644
> --- a/scripts/populate.in
> +++ b/scripts/populate.in
> @@ -280,9 +280,9 @@ CT_TMP_DIR="${TMPDIR:-/tmp}/populate-${rand}-${$}"
> trap "rm -rf ${CT_TMP_DIR}" EXIT
>
> # List all ELF (executables|shared objects)...
> -find . -type f -exec file {} \; \
> -|"${grep}" -E ': ELF [[:digit:]]+-bit (L|M)SB (executable|shared object),' \
> -|cut -d ":" -f 1 \
> +find . -type f -exec file {} \; \
> +|"${grep}" -E ': ELF [[:digit:]]+-bit (L|M)SB +(executable|shared object),' \
> +|cut -d ":" -f 1 \
> >"${CT_TMP_DIR}/files.list"
>
> # ... and use that list to find missing dependencies
> --
> 1.9.1
>
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] populate: fix empty files.list
@ 2014-09-08 16:53 Jean-Marie Lemetayer
2014-09-08 16:59 ` Jean-Marie Lemetayer
2014-09-11 21:37 ` Yann E. MORIN
0 siblings, 2 replies; 4+ messages in thread
From: Jean-Marie Lemetayer @ 2014-09-08 16:53 UTC (permalink / raw)
To: crossgcc; +Cc: Jean-Marie Lemetayer
The output format of the file(1) command have changed since (at least)
the version 5.14. We need to to take care of an extra space.
Signed-off-by: Jean-Marie Lemetayer <jeanmarie.lemetayer@gmail.com>
---
scripts/populate.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/populate.in b/scripts/populate.in
index 28a9740..c29be1c 100644
--- a/scripts/populate.in
+++ b/scripts/populate.in
@@ -280,9 +280,9 @@ CT_TMP_DIR="${TMPDIR:-/tmp}/populate-${rand}-${$}"
trap "rm -rf ${CT_TMP_DIR}" EXIT
# List all ELF (executables|shared objects)...
-find . -type f -exec file {} \; \
-|"${grep}" -E ': ELF [[:digit:]]+-bit (L|M)SB (executable|shared object),' \
-|cut -d ":" -f 1 \
+find . -type f -exec file {} \; \
+|"${grep}" -E ': ELF [[:digit:]]+-bit (L|M)SB +(executable|shared object),' \
+|cut -d ":" -f 1 \
>"${CT_TMP_DIR}/files.list"
# ... and use that list to find missing dependencies
--
1.9.1
--
For unsubscribe information see http://sourceware.org/lists.html#faq
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-09-11 21:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-08 16:48 [PATCH 1/1] populate: fix empty files.list Jean-Marie Lemetayer
2014-09-08 16:53 Jean-Marie Lemetayer
2014-09-08 16:59 ` Jean-Marie Lemetayer
2014-09-11 21:37 ` 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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).