Skip to contentSkip to conversation

Download packages from github in tar.gz format instead git format.

PATCH New Marek Belisko 4 participants 6 messages Sep 20, 2012 – Oct 8, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 Download packages from github in tar.gz format instead git format.

Verified way how to get packages from github by version or sha1 (it's enough to use first 7 characters from SHA1):
1. by sha1
FOO_VERSION = 1234567
FOO_SITE = http://github.com/user/package/tarball/branch

2. by version
FOO_VERSION = v1.0
FOO_SITE = http://github.com/user/package/tarball/$(FOO_VERSION)

Changes from V1:
- remove unnecessary FOO_SOURCE from mk files and documentation

---
 package/cpuload/cpuload.mk                       |    2 +-
 package/input-event-daemon/input-event-daemon.mk |    2 +-
 package/jsmin/jsmin.mk                           |    4 ++--
 package/libiqrf/libiqrf.mk                       |    2 +-
 package/mtdev2tuio/mtdev2tuio.mk                 |    4 ++--
 package/omap-u-boot-utils/omap-u-boot-utils.mk   |    5 ++---
 package/socketcand/socketcand.mk                 |    4 ++--
 package/ti-utils/ti-utils.mk                     |    4 ++--
 package/tslib/tslib.mk                           |    4 ++--
 package/yajl/yajl.mk                             |    2 +-
 10 files changed, 16 insertions(+), 17 deletions(-)
package/cpuload/cpuload.mk +1 -1
index d25c504..494cbb1 100644
@@ -5,7 +5,7 @@
 #############################################################
 
 CPULOAD_VERSION = v0.3
-CPULOAD_SITE = git://github.com/kelvincheung/cpuload.git
+CPULOAD_SITE = http://github.com/kelvincheung/cpuload/tarball/$(CPULOAD_VERSION)
 CPULOAD_LICENSE = GPLv2
 CPULOAD_LICENSE_FILES = COPYING
 
package/input-event-daemon/input-event-daemon.mk +1 -1
index f99bfbe..fdff557 100644
@@ -5,7 +5,7 @@
 #############################################################
 
 INPUT_EVENT_DAEMON_VERSION = v0.1.3
-INPUT_EVENT_DAEMON_SITE = git://github.com/gandro/input-event-daemon.git
+INPUT_EVENT_DAEMON_SITE = http://github.com/gandro/input-event-daemon/tarball/$(INPUT_EVENT_DAEMON_VERSION)
 INPUT_EVENT_DAEMON_LICENSE = input-event-daemon license
 INPUT_EVENT_DAEMON_LICENSE_FILES = README
 
package/jsmin/jsmin.mk +2 -2
index fb8c214..0e82008 100644
@@ -1,5 +1,5 @@
-JSMIN_VERSION = a9b47554d5684a55301a2eb7ca8480b7ee7630d4
-JSMIN_SITE = git://github.com/douglascrockford/JSMin.git
+JSMIN_VERSION = a9b4755
+JSMIN_SITE = http://github.com/douglascrockford/JSMin/tarball/master
 
 define JSMIN_BUILD_CMDS
 	$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) jsmin
package/libiqrf/libiqrf.mk +1 -1
index 4cf1541..d7603ae 100644
@@ -5,7 +5,7 @@
 #############################################################
 
 LIBIQRF_VERSION = v0.1.0
-LIBIQRF_SITE = git://github.com/nandra/libiqrf.git
+LIBIQRF_SITE = http://github.com/nandra/libiqrf/tarball/$(LIBIQRF_VERSION)
 LIBIQRF_INSTALL_STAGING = YES
 
 LIBIQRF_DEPENDENCIES = libusb
package/mtdev2tuio/mtdev2tuio.mk +2 -2
index a86c0bf..9306946 100644
@@ -3,8 +3,8 @@
 # mtdev2tuio
 #
 #############################################################
-MTDEV2TUIO_VERSION = e1e7378d86
-MTDEV2TUIO_SITE = git://github.com/olivopaolo/mtdev2tuio.git
+MTDEV2TUIO_VERSION = e1e7378
+MTDEV2TUIO_SITE = http://github.com/olivopaolo/mtdev2tuio/tarball/master
 MTDEV2TUIO_DEPENDENCIES = mtdev liblo
 MTDEV2TUIO_LICENSE = GPLv3+
 MTDEV2TUIO_LICENSE_FILES = COPYING
package/omap-u-boot-utils/omap-u-boot-utils.mk +2 -3
index 8405f62..bb894a5 100644
@@ -4,9 +4,8 @@
 #
 #############################################################
 
-OMAP_U_BOOT_UTILS_VERSION = 8aff852322
-OMAP_U_BOOT_UTILS_SITE = http://github.com/nmenon/omap-u-boot-utils.git
-OMAP_U_BOOT_UTILS_SITE_METHOD = git
+OMAP_U_BOOT_UTILS_VERSION = 8aff852
+OMAP_U_BOOT_UTILS_SITE = http://github.com/nmenon/omap-u-boot-utils/tarball/master
 
 define HOST_OMAP_U_BOOT_UTILS_BUILD_CMDS
 	$(MAKE) -C $(@D)
package/socketcand/socketcand.mk +2 -2
index a1e672f..efade31 100644
@@ -3,8 +3,8 @@
 # socketcand
 #
 #############################################################
-SOCKETCAND_VERSION = 7d06986fa4b5fd2c210ec4e248dab41107be1ccd
-SOCKETCAND_SITE = git://github.com/dschanoeh/socketcand.git
+SOCKETCAND_VERSION = 7d06986
+SOCKETCAND_SITE = http://github.com/dschanoeh/socketcand/tarball/master
 SOCKETCAND_AUTORECONF = YES
 SOCKETCAND_DEPENDENCIES = libconfig
 
package/ti-utils/ti-utils.mk +2 -2
index ac54370..956daf4 100644
@@ -4,8 +4,8 @@
 #
 #############################################################
 
-TI_UTILS_VERSION = 06dbdb2727354b5f3ad7c723897f40051fddee49
-TI_UTILS_SITE = git://github.com/gxk/ti-utils.git
+TI_UTILS_VERSION = 06dbdb2
+TI_UTILS_SITE = http://github.com/gxk/ti-utils/tarball/master
 TI_UTILS_DEPENDENCIES = libnl
 
 define TI_UTILS_BUILD_CMDS
package/tslib/tslib.mk +2 -2
index 8f30c25..b10b5ec 100644
@@ -3,8 +3,8 @@
 # tslib
 #
 #############################################################
-TSLIB_VERSION = 412d99d8b92c
-TSLIB_SITE = git://github.com/kergoth/tslib.git
+TSLIB_VERSION = 412d99d
+TSLIB_SITE = http://github.com/kergoth/tslib/tarball/master
 TSLIB_AUTORECONF = YES
 TSLIB_INSTALL_STAGING = YES
 TSLIB_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) LDFLAGS=-L$(STAGING_DIR)/usr/lib install
package/yajl/yajl.mk +1 -1
index 9cebeb7..6f9c640 100644
@@ -5,7 +5,7 @@
 ################################################################################
 
 YAJL_VERSION = 2.0.4
-YAJL_SITE = git://github.com/lloyd/yajl.git
+YAJL_SITE = http://github.com/lloyd/yajl/tarball/$(YAJL_VERSION)
 YAJL_INSTALL_STAGING = YES
 YAJL_LICENSE = ISC
 YAJL_LICENSE_FILES = COPYING
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v2 2/2 Add FAQ entry how to properly add package from github.

---
 docs/manual/faq.txt |   21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
docs/manual/faq.txt +21 -0
index 575d019..97a754b 100644
@@ -36,3 +36,24 @@ then probably you are running a Fedora (or similar) distribution, and
 you should install the +glibc-static+ package. This is because the
 +module-init-tools+ build process wants to link statically against the
 C library.
+
+How to add package from github
+------------------------------
+
+If the package has no release version, or its version cannot be
+identified using tag, then the sha1 of the particular commit should be
+used to identify the version (the first 7 characters of the sha1 are
+enough):
+
+------------------------
+FOO_VERSION = 1234567
+FOO_SITE = http://github.com/<user>/<package>/tarball/<branch>
+------------------------
+
+If the package version matches a tag, then this tag should be used to
+identify the version:
+
+------------------------
+FOO_VERSION = v1.0
+FOO_SITE = http://github.com/<user>/<package>/tarball/$(FOO_VERSION)
+------------------------
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH v2 2/2 Add FAQ entry how to properly add package from github.

Hi Marek, all,

2012/9/20 Marek Belisko <[email protected]>:

Quoted 16 lines
---
 docs/manual/faq.txt |   21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
docs/manual/faq.txt +3 -0
index 575d019..97a754b 100644
@@ -36,3 +36,24 @@ then probably you are running a Fedora (or similar) distribution, and
 you should install the +glibc-static+ package. This is because the
 +module-init-tools+ build process wants to link statically against the
 C library.
+
+How to add package from github
+------------------------------

docs/manual/faq.txt then probably you are running a Fedora (or similar) distribution, and · line 51

Quoted 10 lines
docs/manual/faq.txt +10 -0
+
+If the package has no release version, or its version cannot be
+identified using tag, then the sha1 of the particular commit should be
+used to identify the version (the first 7 characters of the sha1 are
+enough):
+
+------------------------
+FOO_VERSION = 1234567
+FOO_SITE = http://github.com/<user>/<package>/tarball/<branch>
+------------------------

Note that <package> must match the name of the package in Buildroot. Otherwise, FOO_SOURCE should be set.

Quoted 11 lines
docs/manual/faq.txt +8 -1
+
+If the package version matches a tag, then this tag should be used to
+identify the version:
+
+------------------------
+FOO_VERSION = v1.0
+FOO_SITE = http://github.com/<user>/<package>/tarball/$(FOO_VERSION)
+------------------------
--

1.7.9.5

Regards,

Signature · 1 line
Sam
#3 lore raw

PATCH v2 1/2 Download packages from github in tar.gz format instead git format.

In reply to Marek Belisko
Quoted 6 lines · Marek Belisko

Verified way how to get packages from github by version or sha1 (it's enough to use first 7 characters from SHA1):
1. by sha1
FOO_VERSION = 1234567
FOO_SITE =http://github.com/user/package/tarball/branch

Quoted 6 lines

2. by version
FOO_VERSION = v1.0
FOO_SITE =http://github.com/user/package/tarball/$(FOO_VERSION)

Changes from V1:
- remove unnecessary FOO_SOURCE from mk files and documentation

The changelog of the patch should go below the Signed-off-by,
separated by a line with
---
This makes sure the patch changelog is not included in the final git commit message.

Quoted 1 line

(re-downloaded the affected packages)

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
#4 lore raw

PATCH v2 1/2 Download packages from github in tar.gz format instead git format.

2012/9/21 Arnout Vandecappelle <[email protected]>:

Quoted 25 lines · Marek Belisko
Quoted 8 lines

Verified way how to get packages from github by version or sha1 (it's enough to use first 7 characters from SHA1):
1. by sha1
FOO_VERSION = 1234567
FOO_SITE =http://github.com/user/package/tarball/branch

Quoted 7 lines

2. by version
FOO_VERSION = v1.0
FOO_SITE =http://github.com/user/package/tarball/$(FOO_VERSION)

Changes from V1:
- remove unnecessary FOO_SOURCE from mk files and documentation

The changelog of the patch should go below the Signed-off-by,
separated by a line with
---
This makes sure the patch changelog is not included in the final git commit message.

Quoted 4 lines
Quoted 1 line

Regards,

Signature · 1 line
Sam
#5 lore raw

PATCH v2 1/2 Download packages from github in tar.gz format instead git format.

In reply to Marek Belisko
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Marek" == Marek Belisko <[email protected]> writes:

Marek> Verified way how to get packages from github by version or sha1 Marek> (it's enough to use first 7 characters from SHA1):

Committed both, thanks all.

Signature · 1 line
Bye, Peter Korsgaard