tools: Once again honour GIT_HTTP env var
PATCH 1/3 tools: Once again honour GIT_HTTP env var
In "build: add autoconf to replace custom checks in tools/check" --enable-githttp was introduced. But that had the effect of uncondtionally setting GIT_HTTP from the configure variable.
But the env var is advertised in some places as the way to specify this behaviour, and overriding it is just unfriendly.
--- config/Tools.mk.in | 2 +- config/Toplevel.mk.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
config/Tools.mk.in +1 -1
@@ -41,7 +41,7 @@ XEN_TOOLS_RPATH := @rpath@ # GIT's protocol is faster and more robust, when it works at all (firewalls # may block it). We make it the default, but if your GIT repository downloads # fail or hang, please specify GIT_HTTP=y in your environment. -GIT_HTTP := @githttp@ +GIT_HTTP ?= @githttp@ # Optional components XENSTAT_XENTOP := @monitors@
config/Toplevel.mk.in +1 -1
@@ -1,2 +1,2 @@ SUBSYSTEMS := @SUBSYSTEMS@ -GIT_HTTP := @githttp@ +GIT_HTTP ?= @githttp@
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 2/3 tools: No longer advertise GIT_HTTP env var
In "build: add autoconf to replace custom checks in tools/check" --enable-githttp was introduced. But we missed this comment where it was advertised.
--- config/Tools.mk.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
config/Tools.mk.in +1 -1
@@ -40,7 +40,7 @@ XEN_TOOLS_RPATH := @rpath@ # Download GIT repositories via HTTP or GIT's own protocol? # GIT's protocol is faster and more robust, when it works at all (firewalls # may block it). We make it the default, but if your GIT repository downloads -# fail or hang, please specify GIT_HTTP=y in your environment. +# fail or hang, please pass --enable-githttp to configure. GIT_HTTP ?= @githttp@ # Optional components
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 2/3] tools: No longer advertise GIT_HTTP env var
Quoted 8 lines
-----Original Message-----
From: Ian Jackson [mailto:[email protected]]
Sent: 05 November 2018 18:43
To: [email protected]
Cc: Ian Jackson <[email protected]>; Paul Durrant <[email protected]>; Wei Liu <[email protected]>
Subject: [PATCH 2/3] tools: No longer advertiseGIT_HTTPenv var
Quoted 7 lines
In "build: add autoconf to replace custom checks in
tools/check" --enable-githttp was introduced. But we missed this comment where it was advertised.Signed-off-by Ian Jackson <[email protected]>CC Paul Durrant <[email protected]>CC Wei Liu <[email protected]>
TBH I'd squash this into the previous patch. I think it's better to modify the comment at the same time as the behaviour.
Paul
Quoted 20 lines
--- config/Tools.mk.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)config/Tools.mk.in +0
-0@@ -40,7 +40,7 @@ XEN_TOOLS_RPATH := @rpath@ # Download GIT repositories via HTTP or GIT's own protocol? # GIT's protocol is faster and more robust, when it works at all(firewalls
# may block it). We make it the default, but if your GIT repository downloadsconfig/Tools.mk.in +1
-2-# fail or hang, please specify GIT_HTTP=y in your environment. +# fail or hang, please pass --enable-githttp to configure. GIT_HTTP ?= @githttp@ # Optional components --
Quoted 1 line
2.11.0
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 2/3] tools: No longer advertise GIT_HTTP env var
In reply to Ian JacksonQuoted 5 lines · Ian Jackson
In "build: add autoconf to replace custom checks in
tools/check" --enable-githttp was introduced. But we missed this comment where it was advertised.Signed-off-by Ian Jackson <[email protected]>
Whether you squash this patch into previous one or not:
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
PATCH 3/3 tools: ipxe: Correct download error handling
In reply to Ian JacksonThis shell fragment lacked set -e. So, eg if the download failed a broken ipxe.tar.gz would be left behind.
--- tools/firmware/etherboot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/firmware/etherboot/Makefile +1 -1
@@ -33,7 +33,7 @@ $(ROM): $(ROMS) $(MAKE) -C $D/src bin/$(*F).rom $T: - if ! $(FETCHER) _$T $(IPXE_TARBALL_URL); then \ + set -e; if ! $(FETCHER) _$T $(IPXE_TARBALL_URL); then \ $(GIT) clone $(IPXE_GIT_URL) $D.git; \ (cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \ $(IPXE_GIT_TAG) | gzip -n >../_$T); \
Signature · 7 lines
2.11.0 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 3/3] tools: ipxe: Correct download error handling
Quoted 8 lines
-----Original Message-----
From: Ian Jackson [mailto:[email protected]]
Sent: 05 November 2018 18:43
To: [email protected]
Cc: Ian Jackson <[email protected]>; Paul Durrant <[email protected]>; Wei Liu <[email protected]>
Subject: [PATCH 3/3] tools: ipxe: Correct download error handling
Quoted 6 lines
This shell fragment lacked set -e. So, eg if the download failed a broken ipxe.tar.gz would be left behind.
Signed-off-by Ian Jackson <[email protected]>CC Paul Durrant <[email protected]>CC Wei Liu <[email protected]>
Quoted 19 lines
--- tools/firmware/etherboot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/firmware/etherboot/Makefile +1
-2@@ -33,7 +33,7 @@ $(ROM): $(ROMS) $(MAKE) -C $D/src bin/$(*F).rom $T: - if ! $(FETCHER) _$T $(IPXE_TARBALL_URL); then \ + set -e; if ! $(FETCHER) _$T $(IPXE_TARBALL_URL); then \ $(GIT) clone $(IPXE_GIT_URL) $D.git; \ (cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \ $(IPXE_GIT_TAG) | gzip -n >../_$T); \ --
Quoted 1 line
2.11.0
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Paul Durrant
Tested-byRe: [PATCH 3/3] tools: ipxe: Correct download error handling
Quoted 17 lines
-----Original Message-----
From: Xen-devel [mailto:[email protected]] On Behalf Of Paul Durrant
Sent: 06 November 2018 08:44
To: Ian Jackson <[email protected]>; [email protected]
Cc: Ian Jackson <[email protected]>; Wei Liu <[email protected]>
Subject: Re: [Xen-devel] [PATCH 3/3] tools: ipxe: Correct download error handlingQuoted 8 lines
-----Original Message-----
From: Ian Jackson [mailto:[email protected]]
Sent: 05 November 2018 18:43
To: [email protected]
Cc: Ian Jackson <[email protected]>; Paul Durrant <[email protected]>; Wei Liu <[email protected]>
Subject: [PATCH 3/3] tools: ipxe: Correct download error handling
Quoted 8 lines
Quoted 6 lines
This shell fragment lacked set -e. So, eg if the download failed a broken ipxe.tar.gz would be left behind.
Signed-off-by Ian Jackson <[email protected]>CC Paul Durrant <[email protected]>CC Wei Liu <[email protected]>Reviewed-by Paul Durrant <[email protected]>
Also...
(using a poisoned tarball name and the fact that ipxe still can't be accessed via git://)
Quoted 13 lines
Quoted 13 lines
--- tools/firmware/etherboot/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/firmware/etherboot/Makefile +0
-0@@ -33,7 +33,7 @@ $(ROM): $(ROMS) $(MAKE) -C $D/src bin/$(*F).rom
Quoted 14 lines
Quoted 8 lines
tools/firmware/etherboot/Makefile +1
-2$T: - if ! $(FETCHER) _$T $(IPXE_TARBALL_URL); then \ + set -e; if ! $(FETCHER) _$T $(IPXE_TARBALL_URL); then \ $(GIT) clone $(IPXE_GIT_URL) $D.git; \ (cd $D.git && $(GIT) archive --format=tar --prefix=$D/ \ $(IPXE_GIT_TAG) | gzip -n >../_$T); \ --2.11.0
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Re: [PATCH 3/3] tools: ipxe: Correct download error handling
In reply to Ian JacksonQuoted 4 lines · Ian Jackson
This shell fragment lacked set -e. So, eg if the download failed a broken ipxe.tar.gz would be left behind.
Signed-off-by Ian Jackson <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 12 lines
-----Original Message-----
From: Ian Jackson [mailto:[email protected]]
Sent: 05 November 2018 18:43
To: [email protected]
Cc: Ian Jackson <[email protected]>; Paul Durrant <[email protected]>; Wei Liu <[email protected]>
Subject: [PATCH 1/3] tools: Once again honourGIT_HTTPenv varIn "build: add autoconf to replace custom checks in
tools/check" --enable-githttp was introduced. But that had the effect of uncondtionally settingGIT_HTTPfrom the configure variable.
Quoted 6 lines
But the env var is advertised in some places as the way to specify this behaviour, and overriding it is just unfriendly.
Signed-off-by Ian Jackson <[email protected]>CC Paul Durrant <[email protected]>CC Wei Liu <[email protected]>
Quoted 29 lines
--- config/Tools.mk.in | 2 +- config/Toplevel.mk.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)config/Tools.mk.in +0
-0@@ -41,7 +41,7 @@ XEN_TOOLS_RPATH := @rpath@ # GIT's protocol is faster and more robust, when it works at all(firewalls
# may block it). We make it the default, but if your GIT repository downloads # fail or hang, please specify GIT_HTTP=y in your environment.config/Tools.mk.in +1
-1-GIT_HTTP := @githttp@ +GIT_HTTP ?= @githttp@ # Optional components XENSTAT_XENTOP := @monitors@config/Toplevel.mk.in +1
-2@@ -1,2 +1,2 @@ SUBSYSTEMS := @SUBSYSTEMS@ -GIT_HTTP := @githttp@ +GIT_HTTP ?= @githttp@ --
Quoted 1 line
2.11.0
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 8 lines · Ian Jackson
In "build: add autoconf to replace custom checks in
tools/check" --enable-githttp was introduced. But that had the effect of uncondtionally settingGIT_HTTPfrom the configure variable.But the env var is advertised in some places as the way to specify this behaviour, and overriding it is just unfriendly.
Signed-off-by Ian Jackson <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel