Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creates broken .deb archives on Windows #47

Open
GoogleCodeExporter opened this issue Jun 12, 2015 · 4 comments
Open

Creates broken .deb archives on Windows #47

GoogleCodeExporter opened this issue Jun 12, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

.deb archives built using ant-deb 0.0.1 on Windows with Java 1.6 and Ant
1.8 will break when attempting to install on Ubuntu Linux. An equivalent
.deb file built on Mac OSX however installs just fine on Ubuntu Linux

What steps will reproduce the problem?
Don't know if this is easily reproduceable. I refer to a working and
non-working .deb file here. They are packaged the same way but on OSX and
Windows respectively:
http://jalbum.net/download/8.7.2/Linux/NoVM/jalbum_8.7.2_all.deb
http://jalbum.net/download/8.7.2/Linux/NoVM/jalbum_8.7.2_all-broken.deb

What is the expected output? What do you see instead?
I expected to see an ok installation, but got this error message instead:
Error creating directory 'usr/share/jalbum/ext/JalbumFilters': No such file
or directory

(I can add that ext/JalbumFilters is a perfectly normal sub folder of
Jalbum's installation.)


What version of the product are you using? On what operating system?
0.0.1 on Windows XP (failing) and on Mac OSX (works). Using Ant 1.8 in both
cases.

Original issue reported on code.google.com by da...@enty.se on 14 Apr 2010 at 12:04

@GoogleCodeExporter
Copy link
Author

I have observed a similar issue.. debian packages built on windows have issues, 
ones built on debian linux don't..

the problem is probably in the ant task tarfileset which doesn't seem to make 
sure that entries in the tar archive is in the correct order on windows. For 
instance, you may see the following using dpkg-deb -c <your-deb>:

/usr/share/mydocs/html
/usr/
/usr/share/mydocs/
/usr/share/
/usr/share/mydocs/html/index.html

in deb's built on windows, which clearly fails because it attempts to create 
the directories in the wrong order.. on debian linux the order will be correct.

Original comment by hooverph...@gmail.com on 25 Aug 2010 at 2:32

@GoogleCodeExporter
Copy link
Author

Just fixed issue 38, which was also causing problems on Windows. Can you get 
latest version from svn and try again? Thanks.

Original comment by marius.s...@gmail.com on 28 Sep 2010 at 6:58

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

I ran into this as well. The problem is that \ characters are converted in 
paths added to the _dataFiles set but not the existingDirs set, so comparisons 
between the two don't work correctly.

On linux this is of course a non-issue. Trivial fix, patch attached.

Original comment by gregory....@gmail.com on 14 Apr 2011 at 9:32

Attachments:

@GoogleCodeExporter
Copy link
Author

To clarify the cause of the installation failure, the ant-deb-task creates all 
the folders required for installation in the data.tar.gz file, then adds all 
the files (including required folders) - but this duplicates the folders due to 
exact string matching on the folder separator, which is platform-specific.

Original comment by richardw...@googlemail.com on 27 Sep 2011 at 10:37

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant