Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pde-build-dev] Problems with package script and gzipped tars

I have found my files. There is nothing wrong with tar/tar.gz itself, rather, I believe a bug to exist in the script-generating "UnzipperGenerator".

Evidence:
If a file is handled as a zip file, it is unzipped twice, once with

<exec executable="unzip" dir="${tempDirectory}/.">
and again, with slightly different parameters, using
<exec executable="unzip" dir="${tempDirectory}/aix.motif.ppc/.">

For tars, there is are corresponding lines

<exec executable="tar" dir="${tempDirectory}/.">
and
<exec executable="tar" dir="${tempDirectory}/.">
where the second call has once again slightly different parameters.

Thus, the root files for the application do not end up in the config specific folder as they should, but instead are extracted to the platform-independent 'eclipse' folder only.

The relevant methods in the source code are UnzipperGenerator.generateUntarRootFiles(String[]) and UnzipperGenerator.generateUnzipRootFiles(String[])

I have filed this as bug 174422 https://bugs.eclipse.org/bugs/show_bug.cgi?id=174422

-Urs


Urs Reupke wrote:
Followup: I have solved the filename problem, previously having ignored the customTargets.xml file.

The rest of my questions (up to and including the difference in results between 'antTar' and 'tar') remains valid.

Regards
-Urs

Urs Reupke wrote:
Hi,
I am working with Markus Knauer on the Eclipse Packaging Project,
and (following Pascals advice in the e.t.packaging NG) have written some code to use the PDE Packager to create distributable RCP applications from (more or less) thin air.

The code uses features and plugins retrieved from update sites in conjunction with the root files of the RCP. Said root files are my reason for writing to you, since the packager does not work properly if the Packager Map refers to the root file archived as a gzipped tar archive instead of a zip. In the documentation[1] it is "suggested that you build *nix packages on a *nix machine to ensure that file permissions are preserved." This could also mean that .tar.gzs are not supported as an input format - does it?

Moreover, there's a (presumably related) problem with the packager's output: No matter the specified output archive format for a platform, the files end up being called ".zip". When the archive format is set to "antTar", this ".zip" is actually a broken .tar.gz, while setting the format to simple "tar" yields a gzipped tar with the correct contents (and just a 'wrong' file name.) Is this a problem easily overcome by configuring the packager correctly, or is there something wrong with my system setup?

Thanks for your support
-Urs

[1]http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.pde.doc.user/guide/tasks/pde_packager.htm
_______________________________________________
pde-build-dev mailing list
pde-build-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-build-dev

_______________________________________________
pde-build-dev mailing list
pde-build-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-build-dev



Back to the top