[Buildroot] Issues with SVN keywords and SITE_METHOD = svn

Oscar Gomez Fuente oscargomezf at gmail.com
Thu Aug 19 19:30:14 UTC 2021


I have made these two changes:

---
diff --git a/package/pkg-download.mk b/package/pkg-download.mk
index 2527ba5..088f006 100644
--- a/package/pkg-download.mk
+++ b/package/pkg-download.mk
@@ -20,7 +20,7 @@ export LOCALFILES := $(call qstrip,$(BR2_LOCALFILES))
 # Version of the format of the archives we generate in the corresponding
 # download backend:
 BR_FMT_VERSION_git = -br1
-BR_FMT_VERSION_svn = -br2
+BR_FMT_VERSION_svn = -br1

 DL_WRAPPER = support/download/dl-wrapper

diff --git a/support/download/svn b/support/download/svn
index b23b777..71a1042 100755
--- a/support/download/svn
+++ b/support/download/svn
@@ -50,7 +50,7 @@ _plain_svn() {
     eval ${SVN} "${@}"
 }

-_svn export --ignore-keywords ${quiet} "${@}" "'${uri}@${rev}'" "'${basename}'"
+_svn export ${quiet} "${@}" "'${uri}@${rev}'" "'${basename}'"
---

And it works perfectly.

Thank you.

On Thu, 19 Aug 2021 at 20:58, Vincent Fazio <vfazio at xes-inc.com> wrote:
>
> Please see BR commit c92be85e3a2
>
> https://patchwork.ozlabs.org/project/buildroot/patch/20210310225937.3155075-1-yann.morin.1998@free.fr/
>
>
> On 8/19/21 1:26 PM, Oscar Gomez Fuente wrote:
> > Hi everyone,
> >
> > I am updating my buildroot from 2020.08.2 to 2021.05.1 and I have
> > found a problem.
> >
> > I have my own package created years ago with SITE_METHOD = svn. There
> > are some files in that repository with keyword substitution that with
> > buildroot 2020.08.2 works perfectly and the headers of the file is
> > downloads from the repository perfectly, as you can see:
> >
> > ! /usr/bin/python
> > # /**
> > #  * @file name.py
> > #  * @author  Oscar Gomez Fuente <ogomez at xxxx.xxx>
> > #  * @version $Rev: 161 $
> > #  * @date $Date: 2021-08-19 11:50:25 +0200 (jue, 19 ago 2021) $
> > #  * @section DESCRIPTION
> > ....
> >
> > But with buildroot 2021.05.1 doesn't work fine:
> >
> > #! /usr/bin/python
> > # /**
> > #  * @file name.py
> > #  * @author  Oscar Gomez Fuente <ogomez at xxxx.xxx>
> > #  * @version $Rev$
> > #  * @date $Date$
> > #  * @section DESCRIPTION
> > ...
> >
> > I have check that my subversion is working propelrly in my computer,
> > so I donot knoe what to do, to know this Rev keyword is very important
> > for me due to the fact I use it for showing when I execute the
> > program.
> >
> > Does anyone have any idea how to fix this issue?
> >
> > Thanks.
> >
> > Óscar Gómez Fuente
> > _______________________________________________
> > buildroot mailing list
> > buildroot at busybox.net
> > http://lists.busybox.net/mailman/listinfo/buildroot
>
> --
> Vincent Fazio
> Embedded Software Engineer - ATS
> Extreme Engineering Solutions, Inc
> http://www.xes-inc.com
>


More information about the buildroot mailing list