* [Buildroot] [PATCH 1/1] Allow svn tags and branches notation in $(PKG)_VERSION variable.
@ 2013-09-18 5:11 Raúl Sánchez Siles
2013-09-18 17:20 ` Thomas Petazzoni
0 siblings, 1 reply; 7+ messages in thread
From: Raúl Sánchez Siles @ 2013-09-18 5:11 UTC (permalink / raw)
To: buildroot
According to user manual "generic-package Reference" section, LIBFOO_VERSION
could refer to a branch or tag. This patch adds supports for this in the svn
method case for the repositories following the branches/tags/trunk layout.
Examples:
LIBFOO_VERSION = tags/v3.2.1
LIBFOO_SITE = svn://svn.server.net/myproject
LIBFOO2_VERSION = branches/featureA
LIBFOO2_SITE = http://svn.happyserver.net/theproject
LIBFOO2_SITE_METHOD = svn
Signed-off-by: Ra?l S?nchez Siles <rasasi78@gmail.com>
---
docs/manual/adding-packages-generic.txt | 2 ++
package/pkg-download.mk | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-svn-tags-and-branches-notation-in-PKG-_VERSION.patch
Type: text/x-patch
Size: 1350 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130918/e022a560/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130918/e022a560/attachment.asc>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/1] Allow svn tags and branches notation in $(PKG)_VERSION variable.
2013-09-18 5:11 [Buildroot] [PATCH 1/1] Allow svn tags and branches notation in $(PKG)_VERSION variable Raúl Sánchez Siles
@ 2013-09-18 17:20 ` Thomas Petazzoni
2013-09-19 19:20 ` Peter Korsgaard
0 siblings, 1 reply; 7+ messages in thread
From: Thomas Petazzoni @ 2013-09-18 17:20 UTC (permalink / raw)
To: buildroot
Dear Ra?l S?nchez Siles,
On Wed, 18 Sep 2013 07:11:43 +0200, Ra?l S?nchez Siles wrote:
> According to user manual "generic-package Reference" section, LIBFOO_VERSION
> could refer to a branch or tag. This patch adds supports for this in the svn
> method case for the repositories following the branches/tags/trunk layout.
>
> Examples:
> LIBFOO_VERSION = tags/v3.2.1
> LIBFOO_SITE = svn://svn.server.net/myproject
>
> LIBFOO2_VERSION = branches/featureA
> LIBFOO2_SITE = http://svn.happyserver.net/theproject
> LIBFOO2_SITE_METHOD = svn
>
> Signed-off-by: Ra?l S?nchez Siles <rasasi78@gmail.com>
Hum, I am not sure. In the SVN world, a version is really a revision
number that you get with 'svn checkout -r'.
I believe to get a specific branch or tag with SVN, one should instead
use:
LIBFOO2_VERSION = <some revision number>
LIBFOO2_SITE = http://svn.happyserver.net/theproject/branches/featureA
I do understand the wish to make things 'like other VCS', but I am not
entirely convinced it's a good idea. But I can probably be convinced
with good arguments :)
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/1] Allow svn tags and branches notation in $(PKG)_VERSION variable.
2013-09-18 17:20 ` Thomas Petazzoni
@ 2013-09-19 19:20 ` Peter Korsgaard
2013-09-19 21:54 ` [Buildroot] [PATCH v2 " Raúl Sánchez Siles
2013-09-19 21:58 ` [Buildroot] [PATCH v2 0/1] " Raúl Sánchez Siles
0 siblings, 2 replies; 7+ messages in thread
From: Peter Korsgaard @ 2013-09-19 19:20 UTC (permalink / raw)
To: buildroot
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
Hi,
Thomas> Hum, I am not sure. In the SVN world, a version is really a
Thomas> revision number that you get with 'svn checkout -r'.
Thomas> I believe to get a specific branch or tag with SVN, one should
Thomas> instead use:
Thomas> LIBFOO2_VERSION = <some revision number>
Thomas> LIBFOO2_SITE = http://svn.happyserver.net/theproject/branches/featureA
Thomas> I do understand the wish to make things 'like other VCS', but I am not
Thomas> entirely convinced it's a good idea. But I can probably be convinced
Thomas> with good arguments :)
Yes, I would also prefer to keep it as it is.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 1/1] Allow svn tags and branches notation in $(PKG)_VERSION variable.
2013-09-19 19:20 ` Peter Korsgaard
@ 2013-09-19 21:54 ` Raúl Sánchez Siles
2013-09-19 21:58 ` [Buildroot] [PATCH v2 0/1] " Raúl Sánchez Siles
1 sibling, 0 replies; 7+ messages in thread
From: Raúl Sánchez Siles @ 2013-09-19 21:54 UTC (permalink / raw)
To: buildroot
According to user manual "generic-package Reference" section, LIBFOO_VERSION
could refer to a branch or tag. This patch adds supports for this in the svn
method case for the repositories following the branches/tags/trunk layout.
Examples:
LIBFOO_VERSION = tags/v3.2.1
LIBFOO_SITE = svn://svn.server.net/myproject
LIBFOO2_VERSION = branches/featureA
LIBFOO2_SITE = http://svn.happyserver.net/theproject
LIBFOO2_SITE_METHOD = svn
Signed-off-by: Ra?l S?nchez Siles <rasasi78@gmail.com>
---
docs/manual/adding-packages-generic.txt | 2 ++
package/pkg-download.mk | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0001-Allow-svn-tags-and-branches-notation-in-PKG-_VERS.patch
Type: text/x-patch
Size: 1350 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130919/2165e8a1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130919/2165e8a1/attachment.asc>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 0/1] Allow svn tags and branches notation in $(PKG)_VERSION variable.
2013-09-19 19:20 ` Peter Korsgaard
2013-09-19 21:54 ` [Buildroot] [PATCH v2 " Raúl Sánchez Siles
@ 2013-09-19 21:58 ` Raúl Sánchez Siles
2013-09-19 22:04 ` Raúl Sánchez Siles
2013-09-20 4:28 ` Thomas Petazzoni
1 sibling, 2 replies; 7+ messages in thread
From: Raúl Sánchez Siles @ 2013-09-19 21:58 UTC (permalink / raw)
To: buildroot
Hi:
Even that I understand Tom's answer as a NAK, I decided to send a revision
of the previous patch, just for the record. In this version the last modified
svn revision for the tag (or branch) is retrieved (and exactly that).
Maybe someone can come with better and acceptable ideas from the buildroot
point of view.
I still consider the key point is being able to encode the revision into the
$(PKG)_SOURCE variable.
Regards,
Ra?l S?nchez Siles (1):
Allow svn tags and branches notation in $(PKG)_VERSION variable.
docs/manual/adding-packages-generic.txt | 2 ++
package/pkg-download.mk | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
--
1.8.4.rc3
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130919/05db55a5/attachment.asc>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 0/1] Allow svn tags and branches notation in $(PKG)_VERSION variable.
2013-09-19 21:58 ` [Buildroot] [PATCH v2 0/1] " Raúl Sánchez Siles
@ 2013-09-19 22:04 ` Raúl Sánchez Siles
2013-09-20 4:28 ` Thomas Petazzoni
1 sibling, 0 replies; 7+ messages in thread
From: Raúl Sánchez Siles @ 2013-09-19 22:04 UTC (permalink / raw)
To: buildroot
Sorry, I meant Peter.
El Jueves, 19 de septiembre de 2013 23:58:55 usted escribi?:
> Hi:
>
> Even that I understand Tom's answer as a NAK, I decided to send a revision
--
Ra?l S?nchez Siles
----->Proud Debian user<-----
Linux registered user #416098
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20130920/c7bf7bff/attachment.asc>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2 0/1] Allow svn tags and branches notation in $(PKG)_VERSION variable.
2013-09-19 21:58 ` [Buildroot] [PATCH v2 0/1] " Raúl Sánchez Siles
2013-09-19 22:04 ` Raúl Sánchez Siles
@ 2013-09-20 4:28 ` Thomas Petazzoni
1 sibling, 0 replies; 7+ messages in thread
From: Thomas Petazzoni @ 2013-09-20 4:28 UTC (permalink / raw)
To: buildroot
Dear Ra?l S?nchez Siles,
On Thu, 19 Sep 2013 23:58:55 +0200, Ra?l S?nchez Siles wrote:
> I still consider the key point is being able to encode the revision into the
> $(PKG)_SOURCE variable.
I guess you meant "the key point is being able to encode the revision
into the $(PKG)_VERSION" variable. But I don't see why this is
important or useful, so could you explain why you believe it is
necessary?
For example, for Buildroot, doing:
LIBFOO2_VERSION = branches/featureA
LIBFOO2_SITE = http://svn.happyserver.net/theproject
is not recommended at all, because you don't know which version of
"featureA" you will be getting. One user may be fetching one revision,
and if another user builds the same Buildroot configuration a few days
later, it might be another revision with additional changes.
That's why you should instead use:
LIBFOO2_VERSION = <some revision number>
LIBFOO2_SITE = http://svn.happyserver.net/theproject/branches/featureA
What is the problem with doing this?
Thanks!
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-09-20 4:28 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-18 5:11 [Buildroot] [PATCH 1/1] Allow svn tags and branches notation in $(PKG)_VERSION variable Raúl Sánchez Siles
2013-09-18 17:20 ` Thomas Petazzoni
2013-09-19 19:20 ` Peter Korsgaard
2013-09-19 21:54 ` [Buildroot] [PATCH v2 " Raúl Sánchez Siles
2013-09-19 21:58 ` [Buildroot] [PATCH v2 0/1] " Raúl Sánchez Siles
2013-09-19 22:04 ` Raúl Sánchez Siles
2013-09-20 4:28 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox