Skip to contentSkip to conversation

Use a date for cvs and bump expect

PATCH New Fabio Porcedda 2 participants 5 messages May 6, 2015 – Jul 10, 2015

lore
Share & tools
lore
#0 lore raw

v3 cover Use a date for cvs and bump expect

This patch set bump expect and in order to do that add to the cvs script support for using a date instead of a tag.

v3:
- remove already merged patch
- use UTC instead of UCT (Arnout)
- add documentation about using a branch
- in the example remove the minutes from the timezone because it does not work
- fix supporto for Fedora "-r :<tag>" -> "-r <tag>"
- add ack-by and tested-by on the latest patch (Arnout)
v2:
- add acked-by to the first patch
- improve documentation about the date
- use TZ=UCT to set a default time zone
- add a patch to remove the comment at the end of the version string

Fabio Porcedda (3):
support/download/cvs: add support to use a date instead of a tag
manual: cvs: document that a branch or a date can be used
expect: bump to version 5.45.3

 docs/manual/adding-packages-generic.txt |  4 +++-
 package/expect/expect.hash              |  2 --
 package/expect/expect.mk                |  6 +++---
 support/download/cvs                    | 11 ++++++++++-
 4 files changed, 16 insertions(+), 7 deletions(-)
 delete mode 100644 package/expect/expect.hash
Signature · 1 line
2.3.5
#1 lore raw

PATCH v3 1/3 support/download/cvs: add support to use a date instead of a tag

This is useful when a tag is not avaiable.

Also fix support for Fedora where the command "cvs -r :<version>" doesn't work.

---
 support/download/cvs | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
support/download/cvs +10 -1
index 2c3a666..bfac73b 100755
@@ -26,7 +26,16 @@ rev="${3}"
 rawname="${4}"
 basename="${5}"
 
+if [[ ${rev} =~ ^[0-9] ]]; then
+    # Date, because a tag or a branch cannot begin with a number
+    select="-D"
+else
+    # Tag or branch
+    select="-r"
+fi
+
+export TZ=UTC
 ${CVS} ${verbose} -z3 -d":pserver:anonymous@${repo}" \
-       co -d "${basename}" -r ":${rev}" -P "${rawname}"
+       co -d "${basename}" ${select} "${rev}" -P "${rawname}"
 
 tar czf "${output}" "${basename}"
Signature · 1 line
2.3.5
#2 lore raw

PATCH v3 2/3 manual: cvs: document that a branch or a date can be used

In reply to Fabio Porcedda

Also instead of using the generic word "timestamp" use the word "tag".

---
 docs/manual/adding-packages-generic.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
docs/manual/adding-packages-generic.txt +3 -1
index 8cf6bb6..bc07667 100644
@@ -280,7 +280,9 @@ information is (assuming the package name is +libfoo+) :
      Only anonymous pserver mode is supported.
      +LIBFOO_SITE+ 'must' contain the source URL as well as the remote
      repository directory. The module is the package name.
-     +LIBFOO_VERSION+ is 'mandatory' and 'must' be a timestamp.
+     +LIBFOO_VERSION+ is 'mandatory' and 'must' be a tag, a branch, or
+     a date (e.g. "2014-10-20", "2014-10-20 13:45", "2014-10-20
+     13:45+01" see "man cvs" for further details).
   ** +git+ for retrieving source code from a Git repository. Used by
      default when +LIBFOO_SITE+ begins with +git://+. The downloaded
      source code is cached as with the +svn+
Signature · 1 line
2.3.5
#3 lore raw

PATCH v3 3/3 expect: bump to version 5.45.3

In reply to Fabio Porcedda

Download it from the cvs repository because it is not avaialbe as a downloadable file.
Also because a tag isn't avaiable use the date.

---
 package/expect/expect.hash | 2 --
 package/expect/expect.mk   | 6 +++---
 2 files changed, 3 insertions(+), 5 deletions(-)
 delete mode 100644 package/expect/expect.hash
package/expect/expect.hash deleted +0 -2
deleted file mode 100644
index 09e68e7..0000000
@@ -1,2 +0,0 @@
-# Locally computed:
-sha256  b28dca90428a3b30e650525cdc16255d76bb6ccd65d448be53e620d95d5cc040  expect5.45.tar.gz
package/expect/expect.mk +3 -3
index 8ef7e90..d78ff6c 100644
@@ -4,9 +4,9 @@
 #
 ################################################################################
 
-EXPECT_VERSION = 5.45
-EXPECT_SOURCE = expect$(EXPECT_VERSION).tar.gz
-EXPECT_SITE = http://downloads.sourceforge.net/project/expect/Expect/$(EXPECT_VERSION)
+# Version 5.45.3
+EXPECT_VERSION = 2014-05-02
+EXPECT_SITE = cvs://expect.cvs.sourceforge.net:/cvsroot/expect
 EXPECT_LICENSE = Public domain
 EXPECT_LICENSE_FILES = README
 
Signature · 1 line
2.3.5
#4 lore raw

v3 cover Use a date for cvs and bump expect

In reply to Fabio Porcedda

Dear Fabio Porcedda,

Quoted 4 lines · Fabio Porcedda

Fabio Porcedda (3):
support/download/cvs: add support to use a date instead of a tag
manual: cvs: document that a branch or a date can be used
expect: bump to version 5.45.3

Patches applied, thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com