Perl build error

Daniel Kasak d.j.kasak.dk at gmail.com
Thu Feb 22 09:50:58 UTC 2018


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20180222/9c8d0ef6/attachment-0001.html>


More information about the Flatpak mailing list