Problem building some Perl libs ( .packlist readonly )

Ryan rymg19 at gmail.com
Sun Feb 23 05:54:54 UTC 2020


At a glance, this would almost seem like the packlist file already existed,
which would imply that package was already installed since the file is
package specific.

Not entirely related, but have you tried using flatpak-cpan-generator from
the flatpak-builder-tools repository?

On Tue, Jul 2, 2019, 8:09 AM Daniel Kasak <d.j.kasak.dk at gmail.com> wrote:

> Hi all.
>
> I'm having an issue with a handful of Perl libraries. Builds are failing
> because .packlist is readonly:
>
> ---
>
> perl Makefile.PL
> Generating a Unix-style Makefile
> Writing Makefile for XML::SAX::Base
> Writing MYMETA.yml and MYMETA.json
> cp BuildSAXBase.pl blib/lib/XML/SAX/BuildSAXBase.pl
> cp lib/XML/SAX/Exception.pm blib/lib/XML/SAX/Exception.pm
> cp lib/XML/SAX/Base.pm blib/lib/XML/SAX/Base.pm
> Manifying 3 pod documents
> Can't open file
> /app/lib/perl5/site_perl/5.28.1/x86_64-linux/auto/XML/SAX/Base/.packlist:
> Read-only file system at /app/lib/perl5/5.28.1/ExtUtils/Install.pm line 858.
> make: *** [Makefile:725: pure_site_install] Error 30
> Error: module perl-XML-SAX-Base: Child process exited with code 2
>
> ---
>
> I usually fix readonly issues ( typically with Perl libs compiled to a .so
> file ) with a "post-install" section, like:
>
> ---
>
> {
>    "cleanup" : [
>       "/bin"
>    ],
>    "sources" : [
>       {
>          "sha256" :
> "66cb355ba4ef47c10ca738bd35999723644386ac853abbeb5132841f5e8a2ad0",
>          "url" : "
> https://cpan.metacpan.org/authors/id/G/GR/GRANTM/XML-SAX-Base-1.09.tar.gz
> ",
>          "type" : "archive"
>       },
>       {
>          "path" : "perl-MakefilePL-Makefile",
>          "dest-filename" : "Makefile",
>          "type" : "file"
>       }
>    ],
>    "name" : "perl-XML-SAX-Base",
>    "no-autogen" : true,
>    "post-install": [
>        "chmod 755
> /app/lib/perl5/site_perl/5.28.1/x86_64-linux/auto/XML/SAX/Base/.packlist"
>    ]
> }
>
> ---
>
> But in these cases ( all with the .packlist file ) - this doesn't work.
> Different kind of problem I guess. How can I make it work?
>
> Thanks :)
>
> Dan
> _______________________________________________
> Flatpak mailing list
> Flatpak at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/flatpak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20200222/3e373952/attachment.htm>


More information about the Flatpak mailing list