Brief problem statement: On windows, pathnames are limited to 260 characters. An image that would otherwise be fine WRT pathname limits cannot be installed with IPS because the pathnames used in the download directory are longer than the actual pathname for the image.
For example, given a file from package mypkg to be installed in: foo/bar/baz/glob.jar The temporary download file for this might be: .org.opensolaris,pkg/download/1234/foo/bar/baz/.mypkg-glob.jar-60223c68a17f1b366c5e9570eac2de892e34e16a This is 83 characters longer than the original pathname. Possible solution: AFAICT, the only reason for putting the pathname of the target file into the temporary file pathname is so that if the same content is referenced by two target files, a second copy (or link) of the temporary file can be made. Is this understanding correct? A fix for this could be to use the python tempfile.mkstemp call to create a unique temporary file name for the download file rather than deriving the name from the target pathname. Finally, although this problem only shows up on Windows, is there any reason why this change can't be made for all platforms just to keep the code consistent everywhere? Thoughts? Thanks. Tom _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
