Skip Menu |

This queue is for tickets about the Tsk CPAN distribution.

Report information
The Basics
Id: 99018
Status: resolved
Priority: 0/
Queue: Tsk

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.03
Fixed in: (no value)



Subject: Problematic symlink in distribution
$ perl5.18.2 Makefile.PL ... /tmpfs/.cpan-build/Tsk-0.03-8Vicc2/AFFLIBv3/lib/.libs/libafflib.la is encountered a second time at /opt/perl-5.18.2/lib/5.18.2/File/Find.pm line 422. $ echo $? 255 Effectively this means that installing the distribution with CPAN.pm or similar tools is not possible, as such tools stop at the first error.
On 2014-09-21 13:02:44, SREZIC wrote: Show quoted text
> $ perl5.18.2 Makefile.PL > ... > /tmpfs/.cpan-build/Tsk-0.03-8Vicc2/AFFLIBv3/lib/.libs/libafflib.la is > encountered a second time at /opt/perl-5.18.2/lib/5.18.2/File/Find.pm > line 422. > $ echo $? > 255 > > Effectively this means that installing the distribution with CPAN.pm > or similar tools is not possible, as such tools stop at the first > error.
Maybe an issue with ExtUtils::Manifest: * https://github.com/Perl-Toolchain-Gang/ExtUtils-Manifest/issues/5 * https://github.com/Perl-Toolchain-Gang/ExtUtils-Manifest/issues/6
Hi Slaven, Thanks for the bug report! After looking into it, and testing on both a Debian Jessie(ExtUtils::MakeMaker 6.98) and a Gentoo(ExtUtils::MakeMaker 7.02), I came to the conclusion that the problem is surfacing only on Debian with EUMM 6.98 which does some checks(::manicheck) and apparently it breaks when it sees symbolic links. [1] Debian Jessie with ExtUtils::MakeMaker 6.98 [2] Gentoo Base System release 2.2 with ExtUtils::MakeMaker 7.02 In the case of Tsk, those symbolic links are created as a result of building 3rd party libs (sleuthkit, afflib, libewf) with the autotools toolchain (since that's their build system) and as a result of the Makefile.PL itself which needs to set things up a certain way, so that sleuthkit can be succesfuly built (it has dependencies on afflib and libewf). After trying to overcome this by filling MANIFEST.SKIP with paths to some files (including the problematic symbolic links) that EUMM was breaking on, the problem was still present with 6.98 The workaround for this(for the time being): *{ExtUtils::Manifest::manicheck} = sub {}; *{ExtUtils::Manifest::_check_files} = sub {}; This was placed in Makefile.PL in order to prohibit EUMM from doing the checks it was doing on the manifest. I'll have to look more on the testing setup that CPAN testers have, to understand the problem a bit better. So far, I've tried to look at the difference between EUMM 6.98 and 7.02 but I wasn't able to spot anything related to this problem. git clone https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker.git cd ExtUtils-MakeMaker git diff v6.98 v7.02 | vi - I'm working towards a new release of Tsk(0.04) which will be out soon and there should be no more build problems in that one. If you know more on this problem, do share :) Best regards, Stefan On Tue Sep 23 01:58:03 2014, SREZIC wrote: Show quoted text
> On 2014-09-21 13:02:44, SREZIC wrote:
> > $ perl5.18.2 Makefile.PL > > ... > > /tmpfs/.cpan-build/Tsk-0.03-8Vicc2/AFFLIBv3/lib/.libs/libafflib.la is > > encountered a second time at /opt/perl-5.18.2/lib/5.18.2/File/Find.pm > > line 422. > > $ echo $? > > 255 > > > > Effectively this means that installing the distribution with CPAN.pm > > or similar tools is not possible, as such tools stop at the first > > error.
> > Maybe an issue with ExtUtils::Manifest: > * https://github.com/Perl-Toolchain-Gang/ExtUtils-Manifest/issues/5 > * https://github.com/Perl-Toolchain-Gang/ExtUtils-Manifest/issues/6
the problem was fixed in the libewf and AFFLIBv3 targets inside Makefile.PL https://github.com/wsdookadr/Tsk-XS/blob/43c2d29782143f555dfbaab6d6478b8e8a21de06/Makefile.PL#L48