Packages: use https to clone gitorious repositories
PATCH 1/1 Packages: use https to clone gitorious repositories
It often happen that company networks have the git port blocked. Use https to clone the gitorious repositories to work around that.
--- boot/xloader/xloader.mk | 2 +- package/can-utils/can-utils.mk | 2 +- package/lpc3250loader/lpc3250loader.mk | 2 +- package/ti-uim/ti-uim.mk | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
boot/xloader/xloader.mk +1 -1
@@ -5,7 +5,7 @@ ################################################################################ XLOADER_VERSION = 6f3a26101303051e0f91b6213735b68ce804e94e -XLOADER_SITE = git://gitorious.org/x-loader/x-loader.git +XLOADER_SITE = https://gitorious.org/x-loader/x-loader.git XLOADER_BOARD_NAME = $(call qstrip,$(BR2_TARGET_XLOADER_BOARDNAME)) XLOADER_LICENSE = GPLv2+
package/can-utils/can-utils.mk +1 -1
@@ -5,7 +5,7 @@ ################################################################################ CAN_UTILS_VERSION = 16c970d40e6c19dde705bad4751bab1a3a4f3a0d -CAN_UTILS_SITE = git://gitorious.org/linux-can/can-utils.git +CAN_UTILS_SITE = https://gitorious.org/linux-can/can-utils.git CAN_UTILS_AUTORECONF = YES $(eval $(autotools-package))
package/lpc3250loader/lpc3250loader.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -HOST_LPC3250LOADER_SITE = git://gitorious.org/lpc3250loader/lpc3250loader.git +HOST_LPC3250LOADER_SITE = https://gitorious.org/lpc3250loader/lpc3250loader.git HOST_LPC3250LOADER_VERSION = 1.0 define HOST_LPC3250LOADER_INSTALL_CMDS
package/ti-uim/ti-uim.mk +1 -1
@@ -5,7 +5,7 @@ ################################################################################ TI_UIM_VERSION = c73894456df5def97111cb33d2106b684b8b7959 -TI_UIM_SITE = git://gitorious.org/uim/uim.git +TI_UIM_SITE = https://gitorious.org/uim/uim.git TI_UIM_LICENSE = GPLv2+ define TI_UIM_BUILD_CMDS
Signature · 1 line
1.8.3.2
PATCH 1/1 Packages: use https to clone gitorious repositories
Hi Alexandre,
Quoted 55 lines · Alexandre Belloni
It often happen that company networks have the git port blocked. Use https to clone the gitorious repositories to work around that.
Signed-off-by Alexandre Belloni <[email protected]>--- boot/xloader/xloader.mk | 2 +- package/can-utils/can-utils.mk | 2 +- package/lpc3250loader/lpc3250loader.mk | 2 +- package/ti-uim/ti-uim.mk | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)boot/xloader/xloader.mk +1
-1@@ -5,7 +5,7 @@ ################################################################################ XLOADER_VERSION = 6f3a26101303051e0f91b6213735b68ce804e94e -XLOADER_SITE = git://gitorious.org/x-loader/x-loader.git +XLOADER_SITE = https://gitorious.org/x-loader/x-loader.git XLOADER_BOARD_NAME = $(call qstrip,$(BR2_TARGET_XLOADER_BOARDNAME)) XLOADER_LICENSE = GPLv2+package/can-utils/can-utils.mk +1
-1@@ -5,7 +5,7 @@ ################################################################################ CAN_UTILS_VERSION = 16c970d40e6c19dde705bad4751bab1a3a4f3a0d -CAN_UTILS_SITE = git://gitorious.org/linux-can/can-utils.git +CAN_UTILS_SITE = https://gitorious.org/linux-can/can-utils.git CAN_UTILS_AUTORECONF = YES $(eval $(autotools-package))package/lpc3250loader/lpc3250loader.mk +1
-1@@ -4,7 +4,7 @@ # ################################################################################ -HOST_LPC3250LOADER_SITE = git://gitorious.org/lpc3250loader/lpc3250loader.git +HOST_LPC3250LOADER_SITE = https://gitorious.org/lpc3250loader/lpc3250loader.git HOST_LPC3250LOADER_VERSION = 1.0 define HOST_LPC3250LOADER_INSTALL_CMDSpackage/ti-uim/ti-uim.mk +0
-0
package/ti-uim/ti-uim.mk line 11
Quoted 8 lines
package/ti-uim/ti-uim.mk +1
-1@@ -5,7 +5,7 @@ ################################################################################ TI_UIM_VERSION = c73894456df5def97111cb33d2106b684b8b7959 -TI_UIM_SITE = git://gitorious.org/uim/uim.git +TI_UIM_SITE = https://gitorious.org/uim/uim.git TI_UIM_LICENSE = GPLv2+ define TI_UIM_BUILD_CMDS
This does not work as you expect it to.
A URL starting with git:// is automatically detected to use the FOO_SITE_METHOD=git, but by changing it to https:// that does no longer work. The .git at the end is not detected.
It seems to work because gitorious thinks that you want to download something as a tarball (not a git clone) and provides you with the right file anyway.
I think we should follow the same approach is for github here: create a gitorious helper, that does actual https download instead of git clones, using following URL:
https://gitorious.org/<projectname>/<repositoryname>/archive-tarball/<version>
See: http://data.agaric.com/downloading-zipped-tarballs-code-from-gitorious
Best regards,
Thomas
PATCH 1/1 Packages: use https to clone gitorious repositories
Hi Alexandre,
Quoted 77 lines · Thomas De Schampheleire
Hi Alexandre,
Quoted 55 lines · Alexandre Belloni
It often happen that company networks have the git port blocked. Use https to clone the gitorious repositories to work around that.
Signed-off-by Alexandre Belloni <[email protected]>--- boot/xloader/xloader.mk | 2 +- package/can-utils/can-utils.mk | 2 +- package/lpc3250loader/lpc3250loader.mk | 2 +- package/ti-uim/ti-uim.mk | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)boot/xloader/xloader.mk +1
-1@@ -5,7 +5,7 @@ ################################################################################ XLOADER_VERSION = 6f3a26101303051e0f91b6213735b68ce804e94e -XLOADER_SITE = git://gitorious.org/x-loader/x-loader.git +XLOADER_SITE = https://gitorious.org/x-loader/x-loader.git XLOADER_BOARD_NAME = $(call qstrip,$(BR2_TARGET_XLOADER_BOARDNAME)) XLOADER_LICENSE = GPLv2+package/can-utils/can-utils.mk +1
-1@@ -5,7 +5,7 @@ ################################################################################ CAN_UTILS_VERSION = 16c970d40e6c19dde705bad4751bab1a3a4f3a0d -CAN_UTILS_SITE = git://gitorious.org/linux-can/can-utils.git +CAN_UTILS_SITE = https://gitorious.org/linux-can/can-utils.git CAN_UTILS_AUTORECONF = YES $(eval $(autotools-package))package/lpc3250loader/lpc3250loader.mk +1
-1@@ -4,7 +4,7 @@ # ################################################################################ -HOST_LPC3250LOADER_SITE = git://gitorious.org/lpc3250loader/lpc3250loader.git +HOST_LPC3250LOADER_SITE = https://gitorious.org/lpc3250loader/lpc3250loader.git HOST_LPC3250LOADER_VERSION = 1.0 define HOST_LPC3250LOADER_INSTALL_CMDSpackage/ti-uim/ti-uim.mk +0
-0package/ti-uim/ti-uim.mk line 11
Quoted 8 lines
package/ti-uim/ti-uim.mk +1
-1@@ -5,7 +5,7 @@ ################################################################################ TI_UIM_VERSION = c73894456df5def97111cb33d2106b684b8b7959 -TI_UIM_SITE = git://gitorious.org/uim/uim.git +TI_UIM_SITE = https://gitorious.org/uim/uim.git TI_UIM_LICENSE = GPLv2+ define TI_UIM_BUILD_CMDSThis does not work as you expect it to.
A URL starting withgit://is automatically detected to use the FOO_SITE_METHOD=git, but by changing it to https:// that does no longer work. The .git at the end is not detected.It seems to work because gitorious thinks that you want to download something as a tarball (not a git clone) and provides you with the right file anyway.
Quoted 7 lines
I think we should follow the same approach is for github here: create a gitorious helper, that does actual https download instead of git clones, using following URL:
https://gitorious.org/<projectname>/<repositoryname>/archive-tarball/<version>
See: http://data.agaric.com/downloading-zipped-tarballs-code-from-gitorious
Just checking: are you planning / do you have time to create a gitorious helper as suggested?
Best regards,
Thomas
PATCH 1/1 Packages: use https to clone gitorious repositories
Hi,
Quoted 2 lines · Thomas De Schampheleire
Just checking: are you planning / do you have time to create a gitorious helper as suggested?
I'll try to have a look at that today, it is on my todo list.
Signature · 3 lines
Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com