gobolinux / GoboALFS

GoboLinux version of Automated Linux From Scratch
28 stars 8 forks source link

Config_heavy.pl left over the root filesystem #1

Closed lucasvr closed 8 years ago

lucasvr commented 8 years ago

Some installation (Perl, most likely) is leaving behind a file named Config_heavy.pl in the root filesystem.

lucasvr commented 8 years ago

UnionSandbox: Cleaning up. UnionSandbox: Moving entries to: /Programs/Perl/5.24.0/.SandboxInstall_Root SandboxInstall: Postprocessing Sandbox BEGIN Can't locate Config.pm in @INC (you may need to install the Config module) (@INC contains: /usr/lib/perl5/site_perl/5.24.0/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.24.0 /usr/lib/perl5/5.24.0/x86_64-linux-thread-multi /usr/lib/perl5/5.24.0 /usr/lib/perl5/5.24.0 /usr/lib/perl5/site_perl/5.24.0 /System/Aliens/CPAN/.cpan /System/Aliens/CPAN/lib/perl5 /usr/lib/perl5 /usr/lib/perl5/site_perl .). BEGIN failed--compilation aborted. '/Data/Compile/Sources/perl-5.24.0/lib/Config_heavy.pl.bak' -> '/Config_heavy.pl' ln: failed to create symbolic link '/CORE/libperl.so.5': No such file or directory ln: failed to create symbolic link '/CORE/libperl.so': No such file or directory END Compile: Stripping executables... SymlinkProgram: Symlinking Perl 5.24.0.

lucasvr commented 8 years ago

A new revision of the Perl recipe has been pushed to Git fixing the issue.

--- /Data/Compile/Git/Recipes/trunk/Perl/5.24.0/Recipe  2016-07-29 18:02:52.000000000 -0300
+++ /Data/Variable/tmp/ImportRecipe.temp.En1OItiJ/Perl/5.24.0/Recipe    2016-07-30 07:01:18.000000000 -0300
@@ -69,11 +69,12 @@
    echo "BEGIN"

    # Restore Config_heavy.pl
-   eval $(LD_LIBRARY_PATH="${sourcedir}" "${target}/bin/"perl -V:installarchlib)
-   installarchlib="$(echo $installarchlib | sed "s,/usr,$target,")"
-   $sudo_exec cp -fv "${sourcedir}/lib/Config_heavy.pl.bak" "${installarchlib}/Config_heavy.pl" || Die "Failed restoring Config_heavy.pl"
+   bakfile=$(find "${target}" -name "Config_heavy.pl.bak")
+   archfile=$(find "${target}" -name "Config_heavy.pl")
+   $sudo_exec cp -fv "${bakfile}" "${archfile}" || Die "Failed restoring Config_heavy.pl"

    # These symlinks are required for 'ld' to find '-lperl'
+   installarchlib=$(dirname "${archfile}")
    $sudo_exec ln -sfv libperl.so.5.10 "${installarchlib}/CORE/libperl.so.5"
    $sudo_exec ln -sfv libperl.so.5.10 "${installarchlib}/CORE/libperl.so"