Package Details: perl-par-packer 1.040-1

Git Clone URL: https://aur.archlinux.org/perl-par-packer.git (read-only)
Package Base: perl-par-packer
Description: PAR Packager
Upstream URL: http://search.cpan.org/dist/PAR-Packer
Licenses: GPL, PerlArtistic
Submitter: amish
Maintainer: amish
Last Packager: amish
Votes: 1
Popularity: 0.009416
First Submitted: 2017-04-01 05:43
Last Updated: 2017-11-04 08:55

Latest Comments

amish commented on 2017-11-06 16:12

Yes I do not build in chroot as I do not have resources for that.

But I see following log lines when I build, which I do not see in @rdoursenaud 's comment.

EDIT: in my case cp is done first .. in @rdoursenaud logs it happens after error is thrown.

Writing MYMETA.yml and MYMETA.json
cp lib/App/Packer/PAR.pm blib/lib/App/Packer/PAR.pm
cp lib/PAR/StrippedPARL/Base.pm blib/lib/PAR/StrippedPARL/Base.pm
cp lib/PAR/Filter/Bleach.pm blib/lib/PAR/Filter/Bleach.pm
cp lib/PAR/Filter/Bytecode.pm blib/lib/PAR/Filter/Bytecode.pm
cp lib/PAR/Filter.pm blib/lib/PAR/Filter.pm
cp lib/PAR/Filter/PodStrip.pm blib/lib/PAR/Filter/PodStrip.pm
cp lib/PAR/Filter/Obfuscate.pm blib/lib/PAR/Filter/Obfuscate.pm
cp lib/pp.pm blib/lib/pp.pm
cp lib/PAR/Packer.pm blib/lib/PAR/Packer.pm
cp lib/PAR/Filter/PatchContent.pm blib/lib/PAR/Filter/PatchContent.pm
make[1]: Entering directory '/home/user/AUR/perl-par-packer/src/PAR-Packer-1.040/myldr'

Those cp lines are missing which probably copies uninstalled files first in blib so that build does not throw error.

PS: I dont use pacaur. I use makepkg.
PS: I am not a perl module expert.

Omar007 commented on 2017-11-06 14:39

I don't think it's just your environment. I'm noticing the same problem.

From what I can see the file in question is indeed included in the package's source but the package also needs said file when building.
So it seems there is a circular dependency here; it's depending on something that it'll install itself later. So if you already had it installed earlier, it may build just fine. If you did not have it, this package is guaranteed to fail currently.

You can solve this by including the srcdir itself by setting the currently empty PERL5LIB env var to said directory:
PERL5LIB="${srcdir}/PAR-Packer-${pkgver}/lib"

@amish; If you aren't doing so already (which it seems not as otherwise you would have caught this problem), you should build your packages in a clean chroot.

rdoursenaud commented on 2017-11-06 09:57

Thanks for your reply.
There's something wrong with the package or my environment then.
Build fails on my two machines.

Here is the build log:

Checking if your kit is complete...
Looks good
# using "ldd" to find shared libraries needed by ./par
Generating a Unix-style Makefile
Writing Makefile for PAR::Packer
Writing MYMETA.yml and MYMETA.json
make[1]: Entering directory '/home/myuser/.cache/pacaur/perl-par-packer/src/PAR-Packer-1.040/myldr'
Makefile:853: warning: overriding recipe for target '.c.o'
Makefile:335: warning: ignoring old recipe for target '.c.o'
"/usr/bin/perl" par_pl2c.pl my_par_pl < ../script/par.pl > my_par_pl.c
"/usr/bin/perl" sha1.c.PL
Can't locate PAR/Filter/PodStrip.pm in @INC (you may need to install the PAR::Filter::PodStrip module) (@INC contains: /home/myuser/.cache/pacaur/perl-par-packer/src/PAR-Packer-1.040/myldr/../blib/arch /home/myuser/.cache/pacaur/perl-par-packer/src/PAR-Packer-1.040/myldr/../blib/lib /usr/lib/perl5/5.26/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.26/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.26/core_perl /usr/share/perl5/core_perl) at par_pl2c.pl line 7.
BEGIN failed--compilation aborted at par_pl2c.pl line 7.
make[1]: *** [Makefile:877: my_par_pl.c] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/myuser/.cache/pacaur/perl-par-packer/src/PAR-Packer-1.040/myldr'
make: *** [Makefile:572: subdirs] Error 2
make: *** Waiting for unfinished jobs....
cp lib/PAR/Filter/PodStrip.pm blib/lib/PAR/Filter/PodStrip.pm
cp lib/App/Packer/PAR.pm blib/lib/App/Packer/PAR.pm
cp lib/PAR/StrippedPARL/Base.pm blib/lib/PAR/StrippedPARL/Base.pm
cp lib/PAR/Filter/Bytecode.pm blib/lib/PAR/Filter/Bytecode.pm
cp lib/pp.pm blib/lib/pp.pm
cp lib/PAR/Filter/Obfuscate.pm blib/lib/PAR/Filter/Obfuscate.pm
cp lib/PAR/Packer.pm blib/lib/PAR/Packer.pm
cp lib/PAR/Filter/Bleach.pm blib/lib/PAR/Filter/Bleach.pm
cp lib/PAR/Filter.pm blib/lib/PAR/Filter.pm
cp lib/PAR/Filter/PatchContent.pm blib/lib/PAR/Filter/PatchContent.pm

amish commented on 2017-11-02 05:54

It is already part of the package.
PATH is - /usr/share/perl5/vendor_perl/PAR/Filter/PodStrip.pm

rdoursenaud commented on 2017-11-01 11:29

This package needs http://search.cpan.org/~rschupp/PAR-Packer/lib/PAR/Filter/PodStrip.pm
which is not packaged on the AUR AFAIK.
Could you please package it and add it to the dependencies?
Thanks!