cpio: File name too long?

Matt McCutchen matt at mattmccutchen.net
Fri May 7 15:09:07 UTC 2010

On Fri, 2010-05-07 at 08:42 -0500, Rex Dieter wrote:
> A recently built sbcl-1.0.38 won't install:
> error: unpacking of archive failed on file 
> /usr/share/doc/sbcl-1.0.38/sbcl/Method-
> sb_002dbsd_002dsockets_003asocket_002dmake_002dstream-_0028_0028socket-
> socket_0029-_0026key-input-output-_0028element_002dtype-_0027character_0029-
> _0028buffering-full_0029-_0028external_002dformat-default_0029-timeout-
> auto_002dclose_0029.html;4be416e1: cpio: open failed - File name too long
> Seems this file grew in length a bit since the last build.  Any suggested 
> fixes? (other than whacking whatever created the crazy overly long 
> filename)?

I see.  The original filename was 249 characters (so it was possible to
create the file in the first place for addition to the RPM), but after
addition of the temporary suffix, it exceeds NAME_MAX at 258 characters.
cpio could be changed to snip some characters in this case like gzip
does.  However, I agree that the process that created that file ought to
be whacked.


More information about the devel mailing list