Problem building some Perl libs ( .packlist readonly )

Daniel Kasak d.j.kasak.dk at gmail.com
Sat Feb 22 07:35:30 UTC 2020


I've hit this problem again, and still can't find a workaround ( last
time I managed to avoid installing the package in question ).

Any workaround for a build process that wants to write into this read-only area?

Dan

On Tue, Jul 2, 2019 at 11:09 PM 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


More information about the Flatpak mailing list