[rt.cpan.org #113618] Strange issue with not packing libperl.dylib

[email protected] ("Philip Kime via RT")
Newsgroups perl.par
Message-ID <[email protected]>
Sun Apr 10 11:57:10 2016: Request 113618 was acted upon.
Transaction: Correspondence added by PHILKIME
       Queue: PAR-Packer
     Subject: Strange issue with not packing libperl.dylib
   Broken in: 1.030
    Severity: Important
       Owner: Nobody
  Requestors: [email protected]
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=113618 >


I think this is resolved - attached is a patch to embed_files.pl which fixes this for me. It uses a more generic test for otool presence which works on any OSX version.
embed_files.pl.patch (text/x-diff, 921 B)
--- PAR-Packer-1.030/myldr/embed_files.pl	2016-03-29 09:11:23.000000000 +0200
+++ embed_files.pl	2016-04-10 17:50:43.000000000 +0200
@@ -43,7 +43,7 @@
     }
 
     # Max OS X: use "otool -L"
-    if (/darwin/i && (qx(otool --version), $? == 0)) 
+    if (/darwin/i && (qx(which otool), $? == 0)) 
     {
         print STDERR qq[# using "otool -L" to find shared libraries needed by $par\n];
         *is_system_lib = sub { shift =~ m{^/usr/lib|^/System/Library/} };
@@ -55,7 +55,7 @@
     # Windows with Mingw toolchain: use "objdump" recursively
     if (/mswin32/i && (qx(objdump --version), $? == 0))
     {
-        print STDERR qq[# using "objdump" recusrively to find DLLs needed by $par\n];
+        print STDERR qq[# using "objdump" recursively to find DLLs needed by $par\n];
         my $system_root = realpath($ENV{SystemRoot});
         *is_system_lib = sub { realpath(shift) =~ m{^\Q$system_root\E/}i };
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.