Coder Social home page Coder Social logo

Comments (3)

hythm7 avatar hythm7 commented on June 20, 2024

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.

hythm7 avatar hythm7 commented on June 20, 2024

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.

frithnanth avatar frithnanth commented on June 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.