Perl build error
Alexander Larsson
alexl at redhat.com
Thu Mar 8 17:01:25 UTC 2018
Oh, sorry, i just tried it here. Its not that at all. Its just that
the perl build installs all files with no write access:
ls -l app/files/app/lib/perl5/5.26.1/x86_64-linux/auto/IO/IO.so
-r-xr-xr-x. 1 alex wheel 24680 8 mar 17.49
app/files/app/lib/perl5/5.26.1/x86_64-linux/auto/IO/IO.so
Also, you're using both DESTDIR=/app and prefix=/app, which is not right.
Can do something like this:
{
"name": "perl",
"buildsystem": "simple",
"build-commands": [ "./Configure -d -e -Dprefix=/app",
"make",
"make install",
"chmod -R u+w /app/lib/perl5"],
"sources": [
{
"type": "archive",
"url": "http://www.cpan.org/src/5.0/perl-5.26.1.tar.gz",
"sha256":
"e763aa485e8dc1a70483dbe6d615986bbf32b977f38016480d68c99237e701dd"
}
]
}
Here is another example you can look at, that also has some perl modules:
https://github.com/flathub/org.frozen_bubble.frozen-bubble/blob/master/org.frozen_bubble.frozen-bubble.json
On Thu, Mar 8, 2018 at 5:46 PM, Alexander Larsson <alexl at redhat.com> wrote:
> What version of flatpak-builder is this. It sounds exactly like it is
> supposed to be fixed by
> https://github.com/flatpak/flatpak-builder/commit/5a3c7feb1539d2d924f0ff9e1294530ea1585fc1,
> and that is over a year old...
>
>
> On Fri, Mar 2, 2018 at 4:31 AM, Daniel Kasak <d.j.kasak.dk at gmail.com> wrote:
>> What's the proper way forward here? Enter a bug report?
>>
>> On Fri, Feb 23, 2018 at 11:14 AM, Daniel Kasak <d.j.kasak.dk at gmail.com>
>> wrote:
>>>
>>> Thanks for the response Emmanuele. I've tried various approaches like
>>> this. At first, it appeared to be working, but would complain about a
>>> different .so each time ... which I'd add to the list, eg:
>>>
>>> "ensure-writable": [ "/lib/perl5/5.26.1/*/auto/arybase/arybase.so",
>>>
>>> "/lib/perl5/5.26.1/*/auto/attributes/attributes.so",
>>> "/lib/perl5/5.26.1/*/auto/IO/IO.so",
>>> "/lib/perl5/5.26.1/*/auto/B/B.so"
>>> ],
>>>
>>> But at this one - B.so - I still get the error after adding it to the
>>> list:
>>>
>>> [32] Updating section string table
>>> stripping
>>> /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/lib/perl5/5.26.1/x86_64-linux/auto/B/B.so
>>> to
>>> /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/lib/debug/app/lib/perl5/5.26.1/x86_64-linux/auto/B/B.so.debug
>>> eu-strip: while opening
>>> '/home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/lib/perl5/5.26.1/x86_64-linux/auto/B/B.so':
>>> Permission denied
>>> Error: module perl: Child process exited with code 1
>>>
>>> I've also tried the scatter-gun approach:
>>>
>>> "ensure-writable": [ "/lib/perl5/5.26.1/*/*/*/*" ],
>>>
>>> ... but this didn't work either, and in fact goes back to the initial
>>> error:
>>>
>>> stripping
>>> /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/lib/perl5/5.26.1/x86_64-linux/auto/arybase/arybase.so
>>> to
>>> /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/lib/debug/app/lib/perl5/5.26.1/x86_64-linux/auto/arybase/arybase.so.debug
>>> eu-strip: while opening
>>> '/home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/lib/perl5/5.26.1/x86_64-linux/auto/arybase/arybase.so':
>>> Permission denied
>>> Error: module perl: Child process exited with code 1
>>>
>>> Any ideas?
>>>
>>> Dan
>>>
>>> On Thu, Feb 22, 2018 at 9:28 PM, Emmanuele Bassi <ebassi at gmail.com> wrote:
>>>>
>>>> Hi;
>>>>
>>>> Try adding:
>>>>
>>>> "ensure-writable": "/lib/perl5/5.26.1/*/auto/arybase/arybase.so"
>>>>
>>>> to the "perl" module in the manifest. See:
>>>>
>>>> http://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html#flatpak-manifest
>>>>
>>>> Ciao,
>>>> Emmanuele.
>>>>
>>>> On 22 February 2018 at 09:50, Daniel Kasak <d.j.kasak.dk at gmail.com>
>>>> wrote:
>>>> > So I'm returning to this, again, after a long break, after updating
>>>> > flatpak
>>>> > & associated libs, and using the latest perl ... hoping things "just
>>>> > work"
>>>> > ... but I have the same issue, after making the above changes, eg:
>>>> >
>>>> > {
>>>> > "app-id": "biz.smartassociates.sdf",
>>>> > "runtime": "org.gnome.Platform",
>>>> > "runtime-version": "3.26",
>>>> > "sdk": "org.gnome.Sdk",
>>>> > "command": "print \"hello world\n\";",
>>>> > "finish-args": [
>>>> > "--socket=x11",
>>>> > "--share=network"
>>>> > ],
>>>> > "modules": [
>>>> > {
>>>> > "name": "perl",
>>>> > "no-autogen": true,
>>>> > "buildsystem": "simple",
>>>> > "build-commands": [ "./Configure -d -e -Dprefix=/app ; make
>>>> > DESTDIR=/app ; make DESTDIR=/app install" ],
>>>> > "sources": [
>>>> > {
>>>> > "type": "archive",
>>>> > "url": "http://www.cpan.org/src/5.0/perl-5.26.1.tar.gz",
>>>> > "sha256":
>>>> > "e763aa485e8dc1a70483dbe6d615986bbf32b977f38016480d68c99237e701dd"
>>>> > }
>>>> > ]
>>>> > }
>>>> > ]
>>>> > }
>>>> >
>>>> > Perl builds, and appears to think it's installing into /app, but then
>>>> > fails:
>>>> >
>>>> > /app/man/man1/libnetcfg.1
>>>> > /app/man/man1/perlbug.1
>>>> > /app/man/man1/perlthanks.1
>>>> > /app/man/man1/perlivp.1
>>>> > /app/man/man1/piconv.1
>>>> > /app/man/man1/pl2pm.1
>>>> > /app/man/man1/pod2html.1
>>>> > /app/man/man1/prove.1
>>>> > /app/man/man1/ptar.1
>>>> > /app/man/man1/ptardiff.1
>>>> > /app/man/man1/ptargrep.1
>>>> > /app/man/man1/shasum.1
>>>> > /app/man/man1/splain.1
>>>> > /app/man/man1/xsubpp.1
>>>> > /app/man/man1/zipdetails.1
>>>> > compressing debuginfo in:
>>>> >
>>>> > /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/bin/perl5.26.1
>>>> > processing:
>>>> >
>>>> > /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/bin/perl5.26.1
>>>> > [27] .debug_aranges compressed -> .zdebug_aranges (208 => 85 40.87%)
>>>> > [28] .debug_info compressed -> .zdebug_info (433 => 233 53.81%)
>>>> > [29] .debug_abbrev compressed -> .zdebug_abbrev (118 => 103 87.29%)
>>>> > [30] .debug_line compressed -> .zdebug_line (367 => 219 59.67%)
>>>> > [31] .debug_str compressed -> .zdebug_str (350 => 237 67.71%)
>>>> > [32] .debug_ranges compressed -> .zdebug_ranges (128 => 56 43.75%)
>>>> > [33] Updating section string table
>>>> > stripping
>>>> >
>>>> > /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/bin/perl5.26.1
>>>> > to
>>>> >
>>>> > /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/lib/debug/app/bin/perl5.26.1.debug
>>>> > compressing debuginfo in:
>>>> >
>>>> > /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/bin/perl
>>>> > processing:
>>>> >
>>>> > /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/bin/perl
>>>> > [27] .debug_aranges compressed -> .zdebug_aranges (208 => 85 40.87%)
>>>> > [28] .debug_info compressed -> .zdebug_info (433 => 233 53.81%)
>>>> > [29] .debug_abbrev compressed -> .zdebug_abbrev (118 => 103 87.29%)
>>>> > [30] .debug_line compressed -> .zdebug_line (367 => 219 59.67%)
>>>> > [31] .debug_str compressed -> .zdebug_str (350 => 237 67.71%)
>>>> > [32] .debug_ranges compressed -> .zdebug_ranges (128 => 56 43.75%)
>>>> > [33] Updating section string table
>>>> > stripping
>>>> >
>>>> > /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/bin/perl
>>>> > to
>>>> >
>>>> > /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/lib/debug/app/bin/perl.debug
>>>> > compressing debuginfo in:
>>>> >
>>>> > /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/lib/perl5/5.26.1/x86_64-linux/auto/arybase/arybase.so
>>>> > processing:
>>>> >
>>>> > /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/lib/perl5/5.26.1/x86_64-linux/auto/arybase/arybase.so
>>>> > [26] .debug_aranges compressed -> .zdebug_aranges (128 => 62 48.44%)
>>>> > [27] .debug_info compressed -> .zdebug_info (196 => 124 63.27%)
>>>> > [28] .debug_abbrev NOT compressed, wouldn't be smaller
>>>> > [29] .debug_line compressed -> .zdebug_line (197 => 123 62.44%)
>>>> > [30] .debug_ranges compressed -> .zdebug_ranges (128 => 54 42.19%)
>>>> > [31] Updating section string table
>>>> > stripping
>>>> >
>>>> > /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/lib/perl5/5.26.1/x86_64-linux/auto/arybase/arybase.so
>>>> > to
>>>> >
>>>> > /home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/lib/debug/app/lib/perl5/5.26.1/x86_64-linux/auto/arybase/arybase.so.debug
>>>> > eu-strip: while opening
>>>> >
>>>> > '/home/dkasak/src/flatpak/sdf/.flatpak-builder/rofiles/rofiles-wPb3Yb/files/app/lib/perl5/5.26.1/x86_64-linux/auto/arybase/arybase.so':
>>>> > Permission denied
>>>> > Error: module perl: Child process exited with code 1
>>>> >
>>>> > Help please :)
>>>> >
>>>> > Dan
>>>> >
>>>> > On Mon, Jul 24, 2017 at 4:18 PM, Bartłomiej Piotrowski
>>>> > <b at bpiotrowski.pl>
>>>> > wrote:
>>>> >>
>>>> >> On 2017-07-24 03:58, Daniel Kasak wrote:
>>>> >> > "build-commands": [ "./Configure -d -e -Dprefix=/app ; make ;
>>>> >> > make install" ],
>>>> >>
>>>> >> You need to pass DESTDIR to your 'make' invocation. Most likely this
>>>> >> way:
>>>> >>
>>>> >> make DESTDIR=/app install
>>>> >>
>>>> >> You can also create a script source ("type": "script") named
>>>> >> "configure"
>>>> >> with your "./Configure" line (without make and make install) and
>>>> >> remove
>>>> >> build-commands to fake autotools build system.
>>>> >>
>>>> >> Bartłomiej
>>>> >> _______________________________________________
>>>> >> Flatpak mailing list
>>>> >> Flatpak at lists.freedesktop.org
>>>> >> https://lists.freedesktop.org/mailman/listinfo/flatpak
>>>> >
>>>> >
>>>> >
>>>> > _______________________________________________
>>>> > Flatpak mailing list
>>>> > Flatpak at lists.freedesktop.org
>>>> > https://lists.freedesktop.org/mailman/listinfo/flatpak
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> https://www.bassi.io
>>>> [@] ebassi [@gmail.com]
>>>
>>>
>>
>>
>> _______________________________________________
>> Flatpak mailing list
>> Flatpak at lists.freedesktop.org
>> https://lists.freedesktop.org/mailman/listinfo/flatpak
>>
>
>
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Alexander Larsson Red Hat, Inc
> alexl at redhat.com alexander.larsson at gmail.com
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl at redhat.com alexander.larsson at gmail.com
More information about the Flatpak
mailing list