Comments (3)
I tested on home computer and I got the same error, However, I'm not able to reproduce it when using examples/archive.p6 /tmp/fileo.tar.xz $(find compiled-gcc-dir -type f)
. at this point I think it might be something wrong with my code. I will do more testing and will post here when I have update.
from perl6-archive-libarchive.
it looks like the format v7tar
is the culprit, changing the format to gnutar
solved the issue.
I was able to reproduce by slighly modified `examples/archive.p6 to:
#!/usr/bin/env perl6
use lib 'lib';
use Archive::Libarchive;
sub MAIN($fileo! where { ! .IO.f || die "file '$fileo' already present" },
*@filei where { $_.all ~~ .IO.f || die "One of ( $_ ) not found" } )
{
my Archive::Libarchive $a .= new: operation => LibarchiveWrite,
format => 'v7tar', filters => ['xz'],
file => $fileo;
for @filei -> $file {
try {
$a.write-header($file, uname => 'user1', gname => 'group1');
$a.write-data($file);
CATCH {
default { .Str.say }
}
}
}
$a.close;
}
and running:
hythm@galaxy$ perl6 ~/dev/perl6-Archive-Libarchive/examples/archive.p6 /tmp/fileo.tar.xz tools/x86_64-galaxy-linux-gnu/include/c++/9.1.0/ext/pb_ds/detail/cc_hash_table_map_/constructor_destructor_no_store_hash_fn_imps.hpp
Error -25: Pathname too long
from perl6-archive-libarchive.
Yes, the v7tar format has some limitations.
See https://github.com/libarchive/libarchive/blob/master/libarchive/archive_write_set_format_v7tar.c:
#define V7TAR_name_size 100
from perl6-archive-libarchive.
Related Issues (12)
- Unable to install with zef or Panda HOT 3
- Symlinks support HOT 4
- Archive not being written to CWD HOT 2
- tests fail on macos 13.1 (ventura) on install HOT 8
- Best way to get the filetype of an entry in an archive? HOT 1
- Things don't work out with format `tar` and filters `none` HOT 3
- Segfault when extracting HOT 5
- [Feature Request] Extract to a particular directory HOT 4
- Is there a method/example to read the content of each entry in the archive? HOT 3
- Error 90: No such entry found HOT 3
- Example for stripping leading directories HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perl6-archive-libarchive.