Hi,
so instead of running the pbulk.sh script, i tried to create the perl5 packages (make clean clean-depends ; make package) and see if the interpreter was still written whitout a path and still causing an issue. Guess what ? It worked without any issue and the "Trace.pm" files still have "#!perl" as an interpreter.
I even compiled the perl5 package on NetBSD (sparc) to compare. Here again the interpreter is "#!perl" in the "Trace.pm" files.
[root@Solaris10_host ~]$ head -1 /tmp/obj-pbulk/lang/perl5/work/.destdir/usr/pbulk/lib/perl5/5.26.0/Math/BigFloat/Trace.pm
#!perl
[root@Solaris10_host ~]$ head -1 /tmp/obj-pbulk/lang/perl5/work/.destdir/usr/pbulk/lib/perl5/5.26.0/Math/BigFloat/Trace.pm
#!perl
[root@Solaris10_host ~]$ head -1 /usr/pkgsrc/lang/perl5/work/.destdir/usr/pkg/lib/perl5/5.26.0/Math/BigFloat/Trace.pm
#!perl
[root@Solaris10_host ~]$ head -1 /usr/pkgsrc/lang/perl5/work/.destdir/usr/pkg/lib/perl5/5.26.0/Math/BigInt/Trace.pm
#!perl
[root@NetBSD8_host ~]$ head -1 /usr/pkgsrc/lang/perl5/work/.destdir/usr/pkg/lib/perl5/5.26.0/Math/BigFloat/Trace.pm
#!perl
[root@NetBSD8_host ~]$ head -1 /usr/pkgsrc/lang/perl5/work/.destdir/usr/pkg/lib/perl5/5.26.0/Math/BigInt/Trace.pm
#!perl
As suggested by Rolang, I also verified permissions on Trace.pm files. All ( which mean Solaris with pbulk script, Solaris pkgsrc and NetBSD pkgsrc ) are all 444 :
[root@Solaris10_host ~]$ ls -lh /usr/pkgsrc/lang/perl5/work/.destdir/usr/pkg/lib/perl5/5.26.0/Math/BigFloat/Trace.pm
-r--r--r-- 1 root root 1.2K Sep 9 14:40 /usr/pkgsrc/lang/perl5/work/.destdir/usr/pkg/lib/perl5/5.26.0/Math/BigFloat/Trace.pm
[root@Solaris10_host ~]$ ls -lh /usr/pkgsrc/lang/perl5/work/.destdir/usr/pkg/lib/perl5/5.26.0/Math/BigInt/Trace.pm
-r--r--r-- 1 root root 991 Sep 9 14:40 /usr/pkgsrc/lang/perl5/work/.destdir/usr/pkg/lib/perl5/5.26.0/Math/BigInt/Trace.pm
[root@Solaris10_host ~]$ ls -lh /tmp/obj-pbulk/lang/perl5/work/.destdir/usr/pbulk/lib/perl5/5.26.0/Math/BigFloat/Trace.pm
-r--r--r-- 1 root root 1.2K Sep 8 10:12 /tmp/obj-pbulk/lang/perl5/work/.destdir/usr/pbulk/lib/perl5/5.26.0/Math/BigFloat/Trace.pm
[root@Solaris10_host ~]$ ls -lh /tmp/obj-pbulk/lang/perl5/work/.destdir/usr/pbulk/lib/perl5/5.26.0/Math/BigFloat/Trace.pm
-r--r--r-- 1 root root 1.2K Sep 8 10:12 /tmp/obj-pbulk/lang/perl5/work/.destdir/usr/pbulk/lib/perl5/5.26.0/Math/BigFloat/Trace.pm
[root@NetBSD8_host ~]$ ls -lh /usr/pkgsrc/lang/perl5/work/.destdir/usr/pkg/lib/perl5/5.26.0/Math/BigFloat/Trace.pm
-r--r--r-- 1 root wheel 1.2K Sep 11 18:07 /usr/pkgsrc/lang/perl5/work/.destdir/usr/pkg/lib/perl5/5.26.0/Math/BigFloat/Trace.pm
[root@NetBSD8_host ~]$ ls -lh /usr/pkgsrc/lang/perl5/work/.destdir/usr/pkg/lib/perl5/5.26.0/Math/BigInt/Trace.pm
-r--r--r-- 1 root wheel 991B Sep 11 18:07 /usr/pkgsrc/lang/perl5/work/.destdir/usr/pkg/lib/perl5/5.26.0/Math/BigInt/Trace.pm
With this in mind, I don't think the nor the interpreter neither the permission is the root of the issue. But well I might be wrong.. I'm open to any suggestion.