Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Problems with SVN Metadata
Problems with SVN Metadata [message #513258] Tue, 09 February 2010 14:43 Go to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Hi everyone,

As you know from another post, I've been following Ralf Ebert tutorial.
I hope it's not a problem making my question here in the Buckminster
newsgroup.

I've successfully created a Hudson Job using Buckminster to build an
Eclipse RCP for windows platforms (x86, x86_64 and WPF). However, I'm
having problems for other platforms.

Apparently, an p2 Action (ChmodAction) is having problems with SVN
metadata folders (.svn). If I invoke the create product action from
within Eclipse, I get the following error:

[ant] An error occurred while installing the items
[ant] session context was:(profile=RosettaProfile,
phase=org.eclipse.equinox.internal.provisional.p2.engine.pha ses.Install,
operand=null -->
[R]com.opencanarias.mset.rosetta.product.development.executa ble.gtk.linux.x86
1.0.0,
action=org.eclipse.equinox.internal.p2.touchpoint.natives.ac tions.ChmodAction).
[ant] The action chmod failed - file
c:\bucky\rosetta\com.opencanarias.mset.rosetta.site.feature_ 1.0.0-eclipse.feature\oc-rosetta.gtk.linux.x86\launcher.svn- base
does not exist
[ant] Application failed, log file location:
C:\Eclipse-3.5.1\eclipse\configuration\1265306196578.log

This happens in the stage in which the product is being installed from
the p2 site created by the buckminster action site.p2.

We persist the Eclipse Delta Pack in our SVN, instead of getting it from
a P2 repository. We usually do this so we can share the target platform
among all developers, and to make builds offline. In addition, for some
reason, the org.eclipse.equinox.executable feature from Eclipse's update
sites does not include platforms like WPF (does anyone know why?).

The issue comes when build for linux (in the case of macos, I get a
different error). The ChmodAction tries to modify permissions over files
that are not supposed to be in the output product. In fact, they are not
there, and that's the reason of the error. These files are part of the
..svn metadata folder.

So my guess is that ChmodAction is given a wrong list of files modify
permissions. It receives a file that exists in the source, but is
omitted in the target, and makes the build fail.

Hope I have given enough information of the issue. I'm looking forward
your comments.

Cheers,
Víctor.
Re: Problems with SVN Metadata [message #513588 is a reply to message #513258] Wed, 10 February 2010 16:05 Go to previous messageGo to next message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
For those experiencing something similar, I managed to workaround this
issue by temporary removing SVN metadata from the affected files in the
DeltaPack. These files are located in the directories where
platform-specific binaries are found (i.e.
org.eclipse.equinox.executable\bin\gtk\linux\x86\).

I added a windows shell call to move the .svn folder somewhere else, and
then, after the buckminster action takes place, I move it back to the
original place.

It's a ugly hack, but it's what works for me to be able to build
targeting linux platforms.

As always, comments are welcome :)

Cheers,
Víctor.
Re: Problems with SVN Metadata [message #653873 is a reply to message #513588] Fri, 11 February 2011 16:32 Go to previous messageGo to next message
Matthew Webber is currently offline Matthew WebberFriend
Messages: 198
Registered: December 2010
Senior Member
I encountered this problem as well (from Buckminster headless, not the IDE like you), so I opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=336963

Your workaround (temporarily removing the .svn directory) appears to work ok, so I will have to use that.

Matthew Webber
Re: Problems with SVN Metadata [message #658325 is a reply to message #653873] Mon, 07 March 2011 22:13 Go to previous messageGo to next message
Josh Hester is currently offline Josh HesterFriend
Messages: 30
Registered: July 2009
Member
I'm seeing this behavior as well. Where are you inserting the commands to remove the .svn folders?
Re: Problems with SVN Metadata [message #658331 is a reply to message #658325] Mon, 07 March 2011 22:57 Go to previous messageGo to next message
Josh Hester is currently offline Josh HesterFriend
Messages: 30
Registered: July 2009
Member
Nevermind, I just added the step into hudson's build steps. Thanks guys, hopefully they'll resolve this soon!
Re: Problems with SVN Metadata [message #658351 is a reply to message #658331] Tue, 08 March 2011 06:52 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
On 2011-03-07 23:57, Josh Hester wrote:
> Nevermind, I just added the step into hudson's build steps. Thanks guys, hopefully they'll resolve this soon!

Since I'm not able to reproduce this, I would very much appreciate if anyone could attach a sample that does to the
bugzilla so that this could be properly fixed. Moving .svn folders around doesn't seem optimal.

- thomas
Re: Problems with SVN Metadata [message #661451 is a reply to message #513258] Thu, 24 March 2011 17:13 Go to previous message
Victor Roldan Betancort is currently offline Victor Roldan BetancortFriend
Messages: 524
Registered: July 2009
Senior Member
Ping!

It's been a while, but this problem keeps happening on the latest
buckminster 3.6. Any info on this?

Best Regards,
Víctor.

El 09/02/10 14:43, Víctor Roldán Betancort escribió:
> Hi everyone,
>
> As you know from another post, I've been following Ralf Ebert tutorial.
> I hope it's not a problem making my question here in the Buckminster
> newsgroup.
>
> I've successfully created a Hudson Job using Buckminster to build an
> Eclipse RCP for windows platforms (x86, x86_64 and WPF). However, I'm
> having problems for other platforms.
>
> Apparently, an p2 Action (ChmodAction) is having problems with SVN
> metadata folders (.svn). If I invoke the create product action from
> within Eclipse, I get the following error:
>
> [ant] An error occurred while installing the items
> [ant] session context was:(profile=RosettaProfile,
> phase=org.eclipse.equinox.internal.provisional.p2.engine.pha ses.Install,
> operand=null -->
> [R]com.opencanarias.mset.rosetta.product.development.executa ble.gtk.linux.x86
> 1.0.0,
> action=org.eclipse.equinox.internal.p2.touchpoint.natives.ac tions.ChmodAction).
>
> [ant] The action chmod failed - file
> c:\bucky\rosetta\com.opencanarias.mset.rosetta.site.feature_ 1.0.0-eclipse.feature\oc-rosetta.gtk.linux.x86\launcher.svn- base
> does not exist
> [ant] Application failed, log file location:
> C:\Eclipse-3.5.1\eclipse\configuration\1265306196578.log
>
> This happens in the stage in which the product is being installed from
> the p2 site created by the buckminster action site.p2.
>
> We persist the Eclipse Delta Pack in our SVN, instead of getting it from
> a P2 repository. We usually do this so we can share the target platform
> among all developers, and to make builds offline. In addition, for some
> reason, the org.eclipse.equinox.executable feature from Eclipse's update
> sites does not include platforms like WPF (does anyone know why?).
>
> The issue comes when build for linux (in the case of macos, I get a
> different error). The ChmodAction tries to modify permissions over files
> that are not supposed to be in the output product. In fact, they are not
> there, and that's the reason of the error. These files are part of the
> .svn metadata folder.
>
> So my guess is that ChmodAction is given a wrong list of files modify
> permissions. It receives a file that exists in the source, but is
> omitted in the target, and makes the build fail.
>
> Hope I have given enough information of the issue. I'm looking forward
> your comments.
>
> Cheers,
> Víctor.
Previous Topic:Problem with importtargetdefinition
Next Topic:Howto exclude packages from the emma coverage report
Goto Forum:
  


Current Time: Fri Apr 26 00:42:16 GMT 2024

Powered by FUDForum. Page generated in 0.02606 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top