* [Buildroot] Local SVN respository
@ 2012-10-18 8:05 john
2012-10-18 8:24 ` David Sanchez Herrero
2012-10-18 20:07 ` Arnout Vandecappelle
0 siblings, 2 replies; 5+ messages in thread
From: john @ 2012-10-18 8:05 UTC (permalink / raw)
To: buildroot
Hi,
I am trying to build a local package from a local svn repository. The
software I am building is a heavily hacked version of some open source
package. I am trying to retrieve the software from a local svn
repository (svn:// and not http) but buildroot keeps fetching the
official version of the software rather than my local copy. I have tried
various options like _OVERRIDE_SRCDIR but cannot change this behaviour,
any suggestions?
An extract from my mk file follows:
MYPACKAGE_VERSION = 1.0.1
#This should fetch it from an SVN repository and create
mysoftware-1.0.1.tar.gz in the dl directory
MYPACKAGE_SITE=svn://myserver/mydir/trunk/mysoftware-1.0.1/
#MYPACKAGE_SITE_METHOD = svn
#MYPACKAGE_OVERRIDE_SRCDIR =
${BUILDROOT_LOCATION}/../../mydir/mysoftware-1.0.1/
#This should take mysoftware-1.0.1.tar.gz directly from the dl
directory and place it in output/build/mysoftware directory
MYPACKAGE_SOURCE = mysoftware-$(MYPACKAGE_VERSION).tar.gz
^ permalink raw reply [flat|nested] 5+ messages in thread* [Buildroot] Local SVN respository 2012-10-18 8:05 [Buildroot] Local SVN respository john @ 2012-10-18 8:24 ` David Sanchez Herrero 2012-10-18 20:07 ` Arnout Vandecappelle 1 sibling, 0 replies; 5+ messages in thread From: David Sanchez Herrero @ 2012-10-18 8:24 UTC (permalink / raw) To: buildroot Is only an idea as a workaround, and I'm not sure if it could work, but you can try to add to the host file a line with the URL of the remote repository pointing to localhost. This will make Buildroot access the local repository when it tries to access the remote one. Greetings, David. 2012/10/18 john [via Buildroot (busybox)] < ml-node+s2317881n33259h70@n4.nabble.com> > > Hi, > > I am trying to build a local package from a local svn repository. The > software I am building is a heavily hacked version of some open source > package. I am trying to retrieve the software from a local svn > repository (svn:// and not http) but buildroot keeps fetching the > official version of the software rather than my local copy. I have tried > various options like _OVERRIDE_SRCDIR but cannot change this behaviour, > any suggestions? > > An extract from my mk file follows: > > MYPACKAGE_VERSION = 1.0.1 > > #This should fetch it from an SVN repository and create > mysoftware-1.0.1.tar.gz in the dl directory > MYPACKAGE_SITE=svn://myserver/mydir/trunk/mysoftware-1.0.1/ > > #MYPACKAGE_SITE_METHOD = svn > > #MYPACKAGE_OVERRIDE_SRCDIR = > ${BUILDROOT_LOCATION}/../../mydir/mysoftware-1.0.1/ > > #This should take mysoftware-1.0.1.tar.gz directly from the dl > directory and place it in output/build/mysoftware directory > MYPACKAGE_SOURCE = mysoftware-$(MYPACKAGE_VERSION).tar.gz > > _______________________________________________ > buildroot mailing list > [hidden email] <http://user/SendEmail.jtp?type=node&node=33259&i=0> > http://lists.busybox.net/mailman/listinfo/buildroot > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://buildroot-busybox.2317881.n4.nabble.com/Local-SVN-respository-tp33259.html > To unsubscribe from Buildroot (busybox), click here<http://buildroot-busybox.2317881.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=ZGF2aWQua3J1c3R5QGdtYWlsLmNvbXwyfC02MDk3MjQ4ODk=> > . > NAML<http://buildroot-busybox.2317881.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://buildroot-busybox.2317881.n4.nabble.com/Local-SVN-respository-tp33259p33260.html Sent from the Buildroot (busybox) mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20121018/970bc42a/attachment.html> ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Local SVN respository 2012-10-18 8:05 [Buildroot] Local SVN respository john 2012-10-18 8:24 ` David Sanchez Herrero @ 2012-10-18 20:07 ` Arnout Vandecappelle 2012-10-19 16:41 ` john 1 sibling, 1 reply; 5+ messages in thread From: Arnout Vandecappelle @ 2012-10-18 20:07 UTC (permalink / raw) To: buildroot On 18/10/12 10:05, john wrote: > I am trying to build a local package from a local svn repository. The > software I am building is a heavily hacked version of some open source > package. I am trying to retrieve the software from a local svn > repository (svn:// and not http) but buildroot keeps fetching the > official version of the software rather than my local copy. I have tried > various options like _OVERRIDE_SRCDIR but cannot change this behaviour, > any suggestions? Is it a package that is already in buildroot or a new one? If it is already in buildroot, do you create MYPACKAGE under the same name or a different name? Did you change the version number from what is in buildroot? Is you .mk file even included by buildroot? Is MYPACKAGE selected in the .config? If you want to debug what is happening, use make -p mypackage 2&>1 | less That gives you a dump of all the variables and rules defined by the Makefiles. You should see a lot of variables MYPACKAGE_... = (if that is not the case, you're missing $(eval $(generic-package))). You should see MYPACKAGE_SITE = ... as you defined it. You should see mypackage in TARGETS (if not, it's not selected in .config). You should also see rules like: mypackage-build: mypackage-configure .../mypackage-1.0.1/.stamp_built .../mypackage-1.0.1/.stamp_built: # PKG = MYPACKAGE # commands to execute (from `package/pkg-generic.mk', line 107): @$(call MESSAGE,"Building") $($(PKG)_BUILD_CMDS) $(foreach hook,$($(PKG)_POST_BUILD_HOOKS),$(call $(hook))$(sep)) $(Q)touch $@ Regards, Arnout -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Local SVN respository 2012-10-18 20:07 ` Arnout Vandecappelle @ 2012-10-19 16:41 ` john 2012-10-19 19:58 ` Arnout Vandecappelle 0 siblings, 1 reply; 5+ messages in thread From: john @ 2012-10-19 16:41 UTC (permalink / raw) To: buildroot Hi Arnout, Thank you for your help, in answer to your questions, The package is already in buildroot, at the moment I have the same version number and I have created it under the same name. It is selected in the config and when I do make with debug (-p) on I get: svn: Syntax error in revision argument '1.0.1' my svn command is MYPACKAGE_SITE=svn://myserver/mydir/trunk/mysoftware-1.0.1/ but based on the error message it looks like the svn checkout is failing because the version number is being based a revision (I'm guessing). Is there some way of to suppress that action. regards On Thu, 2012-10-18 at 22:07 +0200, Arnout Vandecappelle wrote: > On 18/10/12 10:05, john wrote: > > I am trying to build a local package from a local svn repository. The > > software I am building is a heavily hacked version of some open source > > package. I am trying to retrieve the software from a local svn > > repository (svn:// and not http) but buildroot keeps fetching the > > official version of the software rather than my local copy. I have tried > > various options like _OVERRIDE_SRCDIR but cannot change this behaviour, > > any suggestions? > > Is it a package that is already in buildroot or a new one? If it is > already in buildroot, do you create MYPACKAGE under the same name or a > different name? Did you change the version number from what is in buildroot? > Is you .mk file even included by buildroot? Is MYPACKAGE selected in the > .config? > > If you want to debug what is happening, use > > make -p mypackage 2&>1 | less > > That gives you a dump of all the variables and rules defined by the > Makefiles. You should see a lot of variables MYPACKAGE_... = > (if that is not the case, you're missing $(eval $(generic-package))). > You should see MYPACKAGE_SITE = ... as you defined it. > You should see mypackage in TARGETS (if not, it's not selected in > .config). You should also see rules like: > > mypackage-build: mypackage-configure .../mypackage-1.0.1/.stamp_built > > .../mypackage-1.0.1/.stamp_built: > # PKG = MYPACKAGE > # commands to execute (from `package/pkg-generic.mk', line 107): > @$(call MESSAGE,"Building") > $($(PKG)_BUILD_CMDS) > $(foreach hook,$($(PKG)_POST_BUILD_HOOKS),$(call $(hook))$(sep)) > $(Q)touch $@ > > > > Regards, > Arnout > ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] Local SVN respository 2012-10-19 16:41 ` john @ 2012-10-19 19:58 ` Arnout Vandecappelle 0 siblings, 0 replies; 5+ messages in thread From: Arnout Vandecappelle @ 2012-10-19 19:58 UTC (permalink / raw) To: buildroot On 19/10/12 18:41, john wrote: > Thank you for your help, in answer to your questions, > The package is already in buildroot, at the moment I have the same > version number and I have created it under the same name. It is selected > in the config and when I do make with debug (-p) on I get: > > svn: Syntax error in revision argument '1.0.1' > > my svn command is > MYPACKAGE_SITE=svn://myserver/mydir/trunk/mysoftware-1.0.1/ Ah, of course, I forgot that subversion doesn't have tags... You should change MYPACKAGE_VERSION to the svn revision number you need, or HEAD. Regards, Arnout -- 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 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-10-19 19:58 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-10-18 8:05 [Buildroot] Local SVN respository john 2012-10-18 8:24 ` David Sanchez Herrero 2012-10-18 20:07 ` Arnout Vandecappelle 2012-10-19 16:41 ` john 2012-10-19 19:58 ` Arnout Vandecappelle
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox