Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » PDE build don't set execute permission on launcher binary
PDE build don't set execute permission on launcher binary [message #373468] Wed, 29 July 2009 14:25 Go to next message
Laurent Marchal is currently offline Laurent MarchalFriend
Messages: 91
Registered: July 2009
Member
Hello,

Since I updated to galileo release, I noticed that the launchers
created for unix systems (Linux/OSX) has no execute permissions anymore.
We have to "chmod +x" the launcher to be able to run it.

Is this a p2 director related problem ? how can I put this execute right
automatically ?

Thanks.
Laurent Marchal.
Re: PDE build don't set execute permission on launcher binary [message #433216 is a reply to message #373468] Thu, 30 July 2009 17:49 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
It is somewhat related to using the p2 director.
Assuming that the metadata is set up properly, the director should be
setting the executable bit, this should happen by default for normal
product builds.

Generally, the problem is that when using the director, pde.build is no
longer directly in control of what files are in the final result. Ant's
zip which is the default archive format does not preserve file
permissions and they must be specified explicitly when creating the
archive. We ran out of time in 3.5 and didn't get this part working.

In a headless build (on nix systems), you can set the archiveFormat to
"zip" or "tar", both of which using the native tools which will preserve
permissions.

There is bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=282260

-Andrew
Laurent Marchal wrote:
> Hello,
>
> Since I updated to galileo release, I noticed that the launchers
> created for unix systems (Linux/OSX) has no execute permissions anymore.
> We have to "chmod +x" the launcher to be able to run it.
>
> Is this a p2 director related problem ? how can I put this execute right
> automatically ?
>
> Thanks.
> Laurent Marchal.
Re: PDE build don't set execute permission on launcher binary [message #447021 is a reply to message #433216] Fri, 31 July 2009 23:43 Go to previous messageGo to next message
Daniel Jacobowitz is currently offline Daniel JacobowitzFriend
Messages: 7
Registered: July 2009
Junior Member
> ]It is somewhat related to using the p2 director.
> Assuming that the metadata is set up properly, the director should be
> setting the executable bit, this should happen by default for normal
> product builds.
>
> Generally, the problem is that when using the director, pde.build is no
> longer directly in control of what files are in the final result. Ant's
> zip which is the default archive format does not preserve file
> permissions and they must be specified explicitly when creating the
> archive. We ran out of time in 3.5 and didn't get this part working.

Does this apply only to the zip files created by the launcher, or also to jars?

I'm doing a headless product build directly into a repo; later I install it using the director (not during the ant build). All configurations are built on a Linux host. For Linux it comes out OK, but for Windows eclipse.exe is not executable - whether this matters depends on exactly what tools are used to send the installation to a Windows machine, but IIRC it won't run if you use Cygwin tar to unpack the result.

Sounds like that may be different from the bug you describe here though.
Re: PDE build don't set execute permission on launcher binary [message #480769 is a reply to message #433216] Tue, 18 August 2009 12:49 Go to previous message
Laurent Marchal is currently offline Laurent MarchalFriend
Messages: 91
Registered: July 2009
Member
Thanks for the information Andrew. I will follow the bug tracker with
great interest.

Laurent.


Andrew Niefer a écrit :
> It is somewhat related to using the p2 director.
> Assuming that the metadata is set up properly, the director should be
> setting the executable bit, this should happen by default for normal
> product builds.
>
> Generally, the problem is that when using the director, pde.build is no
> longer directly in control of what files are in the final result. Ant's
> zip which is the default archive format does not preserve file
> permissions and they must be specified explicitly when creating the
> archive. We ran out of time in 3.5 and didn't get this part working.
>
> In a headless build (on nix systems), you can set the archiveFormat to
> "zip" or "tar", both of which using the native tools which will preserve
> permissions.
>
> There is bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=282260
>
> -Andrew
> Laurent Marchal wrote:
>> Hello,
>>
>> Since I updated to galileo release, I noticed that the launchers
>> created for unix systems (Linux/OSX) has no execute permissions
>> anymore. We have to "chmod +x" the launcher to be able to run it.
>>
>> Is this a p2 director related problem ? how can I put this execute
>> right automatically ?
>>
>> Thanks.
>> Laurent Marchal.
Previous Topic:programmatically add new bundles?
Next Topic:-Dorg.Eclipse.equinox.p2.reconciler.dropins.directory does not work
Goto Forum:
  


Current Time: Thu Apr 25 11:56:19 GMT 2024

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

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

Back to the top