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