* [Buildroot] [PATCH 1/9] fs/tar: use appropriate TAR
2024-06-05 14:18 [Buildroot] [PATCH 0/9] everywhere: use $(TAR) not tar (branch yem/tarTAR) Yann E. MORIN
@ 2024-06-05 14:18 ` Yann E. MORIN
2024-06-05 14:18 ` [Buildroot] [PATCH 2/9] package/cvs: " Yann E. MORIN
` (7 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: Yann E. MORIN @ 2024-06-05 14:18 UTC (permalink / raw)
To: buildroot; +Cc: Yann E. MORIN
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
fs/tar/tar.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/tar/tar.mk b/fs/tar/tar.mk
index 841af14706..92b39f993f 100644
--- a/fs/tar/tar.mk
+++ b/fs/tar/tar.mk
@@ -13,7 +13,7 @@ TAR_OPTS += --pax-option=exthdr.name=%d/PaxHeaders/%f,atime:=0,ctime:=0
define ROOTFS_TAR_CMD
(cd $(TARGET_DIR); find -print0 | LC_ALL=C sort -z | \
- tar $(TAR_OPTS) -cf $@ --null --xattrs-include='*' --no-recursion -T - --numeric-owner)
+ $(TAR) $(TAR_OPTS) -cf $@ --null --xattrs-include='*' --no-recursion -T - --numeric-owner)
endef
$(eval $(rootfs))
--
2.45.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread* [Buildroot] [PATCH 2/9] package/cvs: use appropriate TAR
2024-06-05 14:18 [Buildroot] [PATCH 0/9] everywhere: use $(TAR) not tar (branch yem/tarTAR) Yann E. MORIN
2024-06-05 14:18 ` [Buildroot] [PATCH 1/9] fs/tar: use appropriate TAR Yann E. MORIN
@ 2024-06-05 14:18 ` Yann E. MORIN
2024-06-05 14:18 ` [Buildroot] [PATCH 3/9] package/flutter-engine: " Yann E. MORIN
` (6 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: Yann E. MORIN @ 2024-06-05 14:18 UTC (permalink / raw)
To: buildroot; +Cc: Yann E. MORIN
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
package/cvs/cvs.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/cvs/cvs.mk b/package/cvs/cvs.mk
index 64c15f16fe..cf9127fc3a 100644
--- a/package/cvs/cvs.mk
+++ b/package/cvs/cvs.mk
@@ -31,7 +31,7 @@ CVS_CONF_OPTS += --with-external-zlib
endif
define CVS_BZIP_UNPACK
- $(BZCAT) $(@D)/cvs-$(CVS_VERSION).tar.bz2 | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ $(BZCAT) $(@D)/cvs-$(CVS_VERSION).tar.bz2 | $(TAR) -C $(BUILD_DIR) $(TAR_OPTIONS) -
rm -f $(@D)/cvs-$(CVS_VERSION).tar.bz2
endef
--
2.45.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread* [Buildroot] [PATCH 3/9] package/flutter-engine: use appropriate TAR
2024-06-05 14:18 [Buildroot] [PATCH 0/9] everywhere: use $(TAR) not tar (branch yem/tarTAR) Yann E. MORIN
2024-06-05 14:18 ` [Buildroot] [PATCH 1/9] fs/tar: use appropriate TAR Yann E. MORIN
2024-06-05 14:18 ` [Buildroot] [PATCH 2/9] package/cvs: " Yann E. MORIN
@ 2024-06-05 14:18 ` Yann E. MORIN
2024-06-05 14:18 ` [Buildroot] [PATCH 4/9] package/pkg-download: export TAR for download backends Yann E. MORIN
` (5 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: Yann E. MORIN @ 2024-06-05 14:18 UTC (permalink / raw)
To: buildroot; +Cc: Adam Duskett, Yann E. MORIN
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Adam Duskett <adam.duskett@amarulasolutions.com>
---
package/flutter-engine/flutter-engine.mk | 1 +
package/flutter-engine/gen-tarball | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/flutter-engine/flutter-engine.mk b/package/flutter-engine/flutter-engine.mk
index d9c2b3dee5..9fb63094ef 100644
--- a/package/flutter-engine/flutter-engine.mk
+++ b/package/flutter-engine/flutter-engine.mk
@@ -176,6 +176,7 @@ endif
# Generate a tarball if one does not already exist.
define FLUTTER_ENGINE_GENERATE_TARBALL
+ TAR=$(TAR) \
PATH=$(HOST_DIR)/share/depot_tools:$(BR_PATH) \
PYTHONPATH=$(HOST_DIR)/lib/python$(PYTHON3_VERSION_MAJOR) \
PUB_CACHE=$(FLUTTER_SDK_BIN_PUB_CACHE) \
diff --git a/package/flutter-engine/gen-tarball b/package/flutter-engine/gen-tarball
index 2d2117b9be..23b121d1f9 100755
--- a/package/flutter-engine/gen-tarball
+++ b/package/flutter-engine/gen-tarball
@@ -70,7 +70,7 @@ gen_tarball() {
# - it insists on having a full git repositoy, with .git et al., which means
# we can't generate a reproducible archive anyway.
# So we jsut create a plain tarball.
- tar -C "${SCRATCH_DIR}"/src -czf "${TARBALL_NAME}" .
+ ${TAR} -C "${SCRATCH_DIR}"/src -czf "${TARBALL_NAME}" .
mv "${TARBALL_NAME}" "${TARBALL_DL_PATH}"
}
--
2.45.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread* [Buildroot] [PATCH 4/9] package/pkg-download: export TAR for download backends
2024-06-05 14:18 [Buildroot] [PATCH 0/9] everywhere: use $(TAR) not tar (branch yem/tarTAR) Yann E. MORIN
` (2 preceding siblings ...)
2024-06-05 14:18 ` [Buildroot] [PATCH 3/9] package/flutter-engine: " Yann E. MORIN
@ 2024-06-05 14:18 ` Yann E. MORIN
2024-06-05 14:18 ` [Buildroot] [PATCH 5/9] support/download/helpers: use appropriate TAR Yann E. MORIN
` (4 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: Yann E. MORIN @ 2024-06-05 14:18 UTC (permalink / raw)
To: buildroot; +Cc: Yann E. MORIN
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
package/pkg-download.mk | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/pkg-download.mk b/package/pkg-download.mk
index bec213fb71..a78532ce8b 100644
--- a/package/pkg-download.mk
+++ b/package/pkg-download.mk
@@ -109,7 +109,9 @@ endif
define DOWNLOAD
$(Q)mkdir -p $($(2)_DL_DIR)
- $(Q)$(EXTRA_ENV) $($(2)_DL_ENV) \
+ $(Q)$(EXTRA_ENV) \
+ $($(2)_DL_ENV) \
+ TAR=$(TAR) \
BR_NO_CHECK_HASH_FOR="$(if $(BR2_DOWNLOAD_FORCE_CHECK_HASHES),,$(BR_NO_CHECK_HASH_FOR))" \
flock $($(2)_DL_DIR)/.lock $(DL_WRAPPER) \
-c '$($(2)_DL_VERSION)' \
--
2.45.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread* [Buildroot] [PATCH 5/9] support/download/helpers: use appropriate TAR
2024-06-05 14:18 [Buildroot] [PATCH 0/9] everywhere: use $(TAR) not tar (branch yem/tarTAR) Yann E. MORIN
` (3 preceding siblings ...)
2024-06-05 14:18 ` [Buildroot] [PATCH 4/9] package/pkg-download: export TAR for download backends Yann E. MORIN
@ 2024-06-05 14:18 ` Yann E. MORIN
2024-06-05 14:18 ` [Buildroot] [PATCH 6/9] support/download/cvs: fix shellcheck Yann E. MORIN
` (3 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: Yann E. MORIN @ 2024-06-05 14:18 UTC (permalink / raw)
To: buildroot; +Cc: Yann E. MORIN
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
support/download/helpers | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/support/download/helpers b/support/download/helpers
index 823e4d2f91..5ed9078287 100755
--- a/support/download/helpers
+++ b/support/download/helpers
@@ -59,7 +59,7 @@ mk_tar_gz() {
LC_ALL=C sort <"${tmp}.list" >"${tmp}.sorted"
# Create POSIX tarballs, since that's the format the most reproducible
- tar cf - --transform="s#^\./#${base_dir}/#S" \
+ ${TAR} cf - --transform="s#^\./#${base_dir}/#S" \
--numeric-owner --owner=0 --group=0 --mtime="${date}" \
--format=posix --pax-option="${pax_options}" --mode='go=u,go-w' \
-T "${tmp}.sorted" >"${tmp}.tar"
@@ -78,7 +78,7 @@ post_process_unpack() {
local one_file
mkdir "${dest}"
- tar -C "${dest}" --strip-components=1 -xzf "${tarball}"
+ ${TAR} -C "${dest}" --strip-components=1 -xzf "${tarball}"
one_file="$(find "${dest}" -type f -print0 |LC_ALL=C sort -z |sed 's/\x0.*//')"
touch -r "${one_file}" "${dest}.timestamp"
}
--
2.45.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread* [Buildroot] [PATCH 6/9] support/download/cvs: fix shellcheck
2024-06-05 14:18 [Buildroot] [PATCH 0/9] everywhere: use $(TAR) not tar (branch yem/tarTAR) Yann E. MORIN
` (4 preceding siblings ...)
2024-06-05 14:18 ` [Buildroot] [PATCH 5/9] support/download/helpers: use appropriate TAR Yann E. MORIN
@ 2024-06-05 14:18 ` Yann E. MORIN
2024-06-05 14:18 ` [Buildroot] [PATCH 7/9] support/download/cvs: use appropriate TAR Yann E. MORIN
` (2 subsequent siblings)
8 siblings, 0 replies; 13+ messages in thread
From: Yann E. MORIN @ 2024-06-05 14:18 UTC (permalink / raw)
To: buildroot; +Cc: Yann E. MORIN
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
.checkpackageignore | 1 -
support/download/cvs | 3 ++-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.checkpackageignore b/.checkpackageignore
index 8825d644ab..f8c5837e0a 100644
--- a/.checkpackageignore
+++ b/.checkpackageignore
@@ -1653,7 +1653,6 @@ support/dependencies/check-host-xzcat.sh Shellcheck
support/dependencies/dependencies.sh Shellcheck
support/download/bzr Shellcheck lib_shellscript.ConsecutiveEmptyLines
support/download/cargo-post-process Shellcheck
-support/download/cvs Shellcheck
support/download/dl-wrapper Shellcheck
support/download/file Shellcheck
support/download/go-post-process Shellcheck
diff --git a/support/download/cvs b/support/download/cvs
index 0c079e2403..b771caf280 100755
--- a/support/download/cvs
+++ b/support/download/cvs
@@ -40,12 +40,13 @@ shift $((OPTIND-1)) # Get rid of our options
# 10 minutes should do the trick.
_cvs() {
if [ -z "${quiet}" ]; then
- printf '%s ' timeout 10m ${CVS} "${@}"; printf '\n'
+ printf '%s ' timeout 10m "${CVS}" "${@}"; printf '\n'
fi
_plain_cvs "$@"
}
# Note: please keep command below aligned with what is printed above
_plain_cvs() {
+ # shellcheck disable=SC2086 # We really want word splitting in CVS
eval timeout 10m ${CVS} "${@}"
}
--
2.45.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread* [Buildroot] [PATCH 7/9] support/download/cvs: use appropriate TAR
2024-06-05 14:18 [Buildroot] [PATCH 0/9] everywhere: use $(TAR) not tar (branch yem/tarTAR) Yann E. MORIN
` (5 preceding siblings ...)
2024-06-05 14:18 ` [Buildroot] [PATCH 6/9] support/download/cvs: fix shellcheck Yann E. MORIN
@ 2024-06-05 14:18 ` Yann E. MORIN
2024-06-05 14:18 ` [Buildroot] [PATCH 8/9] support/scripts/apply-patches: " Yann E. MORIN
2024-06-05 14:18 ` [Buildroot] [PATCH 9/9] package/sunxi-mali-utgard-driver: handle patching the Buildroot way Yann E. MORIN
8 siblings, 0 replies; 13+ messages in thread
From: Yann E. MORIN @ 2024-06-05 14:18 UTC (permalink / raw)
To: buildroot; +Cc: Yann E. MORIN
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
support/download/cvs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/support/download/cvs b/support/download/cvs
index b771caf280..a6840fea7b 100755
--- a/support/download/cvs
+++ b/support/download/cvs
@@ -68,4 +68,4 @@ export TZ=UTC
_cvs ${quiet} -z3 -d"'${uri}'" \
co "${@}" -d "'${basename}'" ${select} "'${rev}'" -P "'${rawname}'"
-tar czf "${output}" "${basename}"
+${TAR} czf "${output}" "${basename}"
--
2.45.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread* [Buildroot] [PATCH 8/9] support/scripts/apply-patches: use appropriate TAR
2024-06-05 14:18 [Buildroot] [PATCH 0/9] everywhere: use $(TAR) not tar (branch yem/tarTAR) Yann E. MORIN
` (6 preceding siblings ...)
2024-06-05 14:18 ` [Buildroot] [PATCH 7/9] support/download/cvs: use appropriate TAR Yann E. MORIN
@ 2024-06-05 14:18 ` Yann E. MORIN
2024-06-05 15:22 ` [Buildroot] [External] " Maier, Brandon L Collins via buildroot
2024-06-05 14:18 ` [Buildroot] [PATCH 9/9] package/sunxi-mali-utgard-driver: handle patching the Buildroot way Yann E. MORIN
8 siblings, 1 reply; 13+ messages in thread
From: Yann E. MORIN @ 2024-06-05 14:18 UTC (permalink / raw)
To: buildroot; +Cc: Yann E. MORIN
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
package/Makefile.in | 2 +-
support/scripts/apply-patches.sh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/Makefile.in b/package/Makefile.in
index f415e55f84..9dc66bc674 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -231,7 +231,7 @@ endif
INSTALL := $(shell which install || type -p install)
UNZIP := $(shell which unzip || type -p unzip) -q
-APPLY_PATCHES = PATH=$(HOST_DIR)/bin:$$PATH support/scripts/apply-patches.sh $(if $(QUIET),-s)
+APPLY_PATCHES = TAR=$(TAR) PATH=$(HOST_DIR)/bin:$$PATH support/scripts/apply-patches.sh $(if $(QUIET),-s)
HOST_CPPFLAGS = -I$(HOST_DIR)/include
HOST_CFLAGS ?= -O2
diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-patches.sh
index 6da83f6826..39a0c050d6 100755
--- a/support/scripts/apply-patches.sh
+++ b/support/scripts/apply-patches.sh
@@ -146,7 +146,7 @@ function scan_patchdir {
unpackedarchivedir="$builddir/.patches-$(basename $i)-unpacked"
rm -rf "$unpackedarchivedir" 2> /dev/null
mkdir "$unpackedarchivedir"
- tar -C "$unpackedarchivedir" -xaf "${path}/$i"
+ $(TAR) -C "$unpackedarchivedir" -xaf "${path}/$i"
scan_patchdir "$unpackedarchivedir"
else
apply_patch "$path" "$i"
--
2.45.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread* Re: [Buildroot] [External] [PATCH 8/9] support/scripts/apply-patches: use appropriate TAR
2024-06-05 14:18 ` [Buildroot] [PATCH 8/9] support/scripts/apply-patches: " Yann E. MORIN
@ 2024-06-05 15:22 ` Maier, Brandon L Collins via buildroot
2024-06-05 15:32 ` Yann E. MORIN
0 siblings, 1 reply; 13+ messages in thread
From: Maier, Brandon L Collins via buildroot @ 2024-06-05 15:22 UTC (permalink / raw)
To: Yann E. MORIN, buildroot@buildroot.org
Hi Yann,
> -----Original Message-----
> From: buildroot <buildroot-bounces@buildroot.org> On Behalf Of Yann E.
> MORIN
> Sent: Wednesday, June 5, 2024 9:18 AM
> To: buildroot@buildroot.org
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> Subject: [External] [Buildroot] [PATCH 8/9] support/scripts/apply-patches:
> use appropriate TAR
>
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> ---
> package/Makefile.in | 2 +-
> support/scripts/apply-patches.sh | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/package/Makefile.in b/package/Makefile.in
> index f415e55f84..9dc66bc674 100644
> --- a/package/Makefile.in
> +++ b/package/Makefile.in
> @@ -231,7 +231,7 @@ endif
> INSTALL := $(shell which install || type -p install)
> UNZIP := $(shell which unzip || type -p unzip) -q
>
> -APPLY_PATCHES = PATH=$(HOST_DIR)/bin:$$PATH support/scripts/apply-
> patches.sh $(if $(QUIET),-s)
> +APPLY_PATCHES = TAR=$(TAR) PATH=$(HOST_DIR)/bin:$$PATH
> support/scripts/apply-patches.sh $(if $(QUIET),-s)
>
> HOST_CPPFLAGS = -I$(HOST_DIR)/include
> HOST_CFLAGS ?= -O2
> diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-
> patches.sh
> index 6da83f6826..39a0c050d6 100755
> --- a/support/scripts/apply-patches.sh
> +++ b/support/scripts/apply-patches.sh
> @@ -146,7 +146,7 @@ function scan_patchdir {
> unpackedarchivedir="$builddir/.patches-$(basename $i)-unpacked"
> rm -rf "$unpackedarchivedir" 2> /dev/null
> mkdir "$unpackedarchivedir"
> - tar -C "$unpackedarchivedir" -xaf "${path}/$i"
> + $(TAR) -C "$unpackedarchivedir" -xaf "${path}/$i"
Shouldn't this be `${TAR}` since it's a shell script?
Thanks,
Brandon Maier
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [Buildroot] [External] [PATCH 8/9] support/scripts/apply-patches: use appropriate TAR
2024-06-05 15:22 ` [Buildroot] [External] " Maier, Brandon L Collins via buildroot
@ 2024-06-05 15:32 ` Yann E. MORIN
2024-06-05 15:41 ` Yann E. MORIN
0 siblings, 1 reply; 13+ messages in thread
From: Yann E. MORIN @ 2024-06-05 15:32 UTC (permalink / raw)
To: Maier, Brandon L Collins
Cc: buildroot@buildroot.org
Brandon, All,
On 2024-06-05 15:22 +0000, Maier, Brandon L Collins spake thusly:
[--SNIP--]
> > diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-
> > patches.sh
> > index 6da83f6826..39a0c050d6 100755
> > --- a/support/scripts/apply-patches.sh
> > +++ b/support/scripts/apply-patches.sh
> > @@ -146,7 +146,7 @@ function scan_patchdir {
> > unpackedarchivedir="$builddir/.patches-$(basename $i)-unpacked"
> > rm -rf "$unpackedarchivedir" 2> /dev/null
> > mkdir "$unpackedarchivedir"
> > - tar -C "$unpackedarchivedir" -xaf "${path}/$i"
> > + $(TAR) -C "$unpackedarchivedir" -xaf "${path}/$i"
>
> Shouldn't this be `${TAR}` since it's a shell script?
Damned, one I missed... Thanks!
I tried to find a case where I could exercise that code path, but I
could not find a package with uses a tarball as a patch...
I'll respin a bit later; thanks for your eagle eyes! :-)
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [Buildroot] [External] [PATCH 8/9] support/scripts/apply-patches: use appropriate TAR
2024-06-05 15:32 ` Yann E. MORIN
@ 2024-06-05 15:41 ` Yann E. MORIN
0 siblings, 0 replies; 13+ messages in thread
From: Yann E. MORIN @ 2024-06-05 15:41 UTC (permalink / raw)
To: Maier, Brandon L Collins
Cc: buildroot@buildroot.org
Brandon, All,
On 2024-06-05 17:32 +0200, Yann E. MORIN spake thusly:
> On 2024-06-05 15:22 +0000, Maier, Brandon L Collins spake thusly:
> [--SNIP--]
> > > diff --git a/support/scripts/apply-patches.sh b/support/scripts/apply-
> > > patches.sh
> > > index 6da83f6826..39a0c050d6 100755
> > > --- a/support/scripts/apply-patches.sh
> > > +++ b/support/scripts/apply-patches.sh
> > > @@ -146,7 +146,7 @@ function scan_patchdir {
> > > unpackedarchivedir="$builddir/.patches-$(basename $i)-unpacked"
> > > rm -rf "$unpackedarchivedir" 2> /dev/null
> > > mkdir "$unpackedarchivedir"
> > > - tar -C "$unpackedarchivedir" -xaf "${path}/$i"
> > > + $(TAR) -C "$unpackedarchivedir" -xaf "${path}/$i"
> > Shouldn't this be `${TAR}` since it's a shell script?
> Damned, one I missed... Thanks!
> I tried to find a case where I could exercise that code path, but I
> could not find a package with uses a tarball as a patch...
Obviously I did not look too far. I now can see;
- heirloom-mailx
- libid3tag
- liblockfile
- netcat-openbsd
- unzip
I'll re-run a test.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 9/9] package/sunxi-mali-utgard-driver: handle patching the Buildroot way
2024-06-05 14:18 [Buildroot] [PATCH 0/9] everywhere: use $(TAR) not tar (branch yem/tarTAR) Yann E. MORIN
` (7 preceding siblings ...)
2024-06-05 14:18 ` [Buildroot] [PATCH 8/9] support/scripts/apply-patches: " Yann E. MORIN
@ 2024-06-05 14:18 ` Yann E. MORIN
8 siblings, 0 replies; 13+ messages in thread
From: Yann E. MORIN @ 2024-06-05 14:18 UTC (permalink / raw)
To: buildroot; +Cc: Giulio Benetti, Yann E. MORIN
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
.../0001-build.sh-do-not-apply-patches.patch | 39 +++++++++++++++++++
.../sunxi-mali-utgard-driver.mk | 3 +-
2 files changed, 40 insertions(+), 2 deletions(-)
create mode 100644 package/sunxi-mali-utgard-driver/0001-build.sh-do-not-apply-patches.patch
diff --git a/package/sunxi-mali-utgard-driver/0001-build.sh-do-not-apply-patches.patch b/package/sunxi-mali-utgard-driver/0001-build.sh-do-not-apply-patches.patch
new file mode 100644
index 0000000000..02c6aa7884
--- /dev/null
+++ b/package/sunxi-mali-utgard-driver/0001-build.sh-do-not-apply-patches.patch
@@ -0,0 +1,39 @@
+From 079ed8aa57ba6629b992c3d0d01904d3e5170d3b Mon Sep 17 00:00:00 2001
+From: "Yann E. MORIN" <yann.morin.1998@free.fr>
+Date: Wed, 5 Jun 2024 13:06:16 +0200
+Subject: [PATCH] build.sh: do not apply patches
+
+In Buildroot, we handle applying the patches in a generic way, with
+appropriate tools (e.g. with a proper tar).
+
+Upstream: not applicable
+Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
+---
+ build.sh | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/build.sh b/build.sh
+index d1fedff..26efc53 100755
+--- a/build.sh
++++ b/build.sh
+@@ -10,6 +10,8 @@ BUILD_OPTS="USING_UMP=0
+ USING_DEVFREQ=1"
+
+ apply_patches() {
++ return 0 # Patching handled by Buildroot
++
+ pushd $2
+
+ quilt push -a
+@@ -22,6 +24,8 @@ apply_patches() {
+ }
+
+ unapply_patches() {
++ return 0 # Patching handled by Buildroot
++
+ pushd $2
+
+ quilt pop -a
+--
+2.45.1
+
diff --git a/package/sunxi-mali-utgard-driver/sunxi-mali-utgard-driver.mk b/package/sunxi-mali-utgard-driver/sunxi-mali-utgard-driver.mk
index 72fade58ed..b8a12247d3 100644
--- a/package/sunxi-mali-utgard-driver/sunxi-mali-utgard-driver.mk
+++ b/package/sunxi-mali-utgard-driver/sunxi-mali-utgard-driver.mk
@@ -16,8 +16,7 @@ SUNXI_MALI_UTGARD_DRIVER_MAKE_OPTS = \
define SUNXI_MALI_UTGARD_DRIVER_USE_APPLY_PATCHES
ln -sf $(SUNXI_MALI_UTGARD_REV)/series $(@D)/patches
- $(SED) 's|quilt push -a|$(TOPDIR)/support/scripts/apply-patches.sh . ../patches|' \
- $(@D)/build.sh
+ $(APPLY_PATCHES) $(@D)/$(SUNXI_MALI_UTGARD_REV) $(@D)/patches
endef
SUNXI_MALI_UTGARD_DRIVER_POST_PATCH_HOOKS += SUNXI_MALI_UTGARD_DRIVER_USE_APPLY_PATCHES
--
2.45.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 13+ messages in thread