Skip to contentSkip to conversation

Packages: use https to clone gitorious repositories

PATCH New Alexandre Belloni 2 participants 4 messages Dec 17, 2013 – Dec 25, 2013

lore
Share & tools
lore
#0 lore raw

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
index 00c63b1efb91..c52b213308f4 100644
@@ -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
index 743fe7ce0b2b..ddf75d0db6e5 100644
@@ -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
index 42beb7bc84b4..bcb7c7070e32 100644
@@ -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
index b49818004989..fd92497609b5 100644
@@ -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
#1 lore raw

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.

---
 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
index 00c63b1efb91..c52b213308f4 100644
@@ -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
index 743fe7ce0b2b..ddf75d0db6e5 100644
@@ -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
index 42beb7bc84b4..bcb7c7070e32 100644
@@ -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 +0 -0
index b49818004989..fd92497609b5 100644

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

#2 lore raw

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.

---
 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
index 00c63b1efb91..c52b213308f4 100644
@@ -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
index 743fe7ce0b2b..ddf75d0db6e5 100644
@@ -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
index 42beb7bc84b4..bcb7c7070e32 100644
@@ -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 +0 -0
index b49818004989..fd92497609b5 100644

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.

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

#3 lore raw

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