You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the MINGW PKBUILD file for the perl mingw packages is done a path relocation after installation. The relevant lines are:
# Path relocation. This is done by replacing hard-coded paths with relocate
# patterns that will be resolved on package installation. The HTML
# documentation is handled with a patch, the rest is handled below.
local root_pattern
local root_pattern_double
local pkgdir_pattern
local pkgdir_pattern_double
root_pattern=$(cygpath -w /)
root_pattern="${root_pattern%\\}"
root_pattern="${root_pattern//\\/\\\\}"
root_pattern_double="${root_pattern//\\\\/\\\\\\\\}"
pkgdir_pattern=$(cygpath -w "${pkgdir}")
pkgdir_pattern="${pkgdir_pattern//\\/\\\\}"
pkgdir_pattern_double="${pkgdir_pattern//\\\\/\\\\\\\\}"
msg2 "Creating relocate patterns for:"
printf " ${root_pattern}\n"
printf " ${root_pattern_double}\n"
printf " ${pkgdir_pattern}\n"
printf " ${pkgdir_pattern_double}\n"
sed -i "s/${pkgdir_pattern}/@PERL_RELOCATE@/g" lib/perl5/core_perl/.packlist
sed -i "s/${pkgdir_pattern_double}/@PERL_RELOCATE_DOUBLE@/g" lib/perl5/core_perl/CORE/config.h
sed -i "s/${root_pattern}/@PERL_RELOCATE@/g" lib/perl5/core_perl/Config.pm
sed -i "s/${root_pattern_double}/@PERL_RELOCATE_DOUBLE@/g" lib/perl5/core_perl/Config.pm
sed -i "s/${pkgdir_pattern_double}/@PERL_RELOCATE_DOUBLE@/g" lib/perl5/core_perl/Config.pm
sed -i "s/${root_pattern}/@PERL_RELOCATE@/g" lib/perl5/core_perl/Config_heavy.pl
sed -i "s/${root_pattern_double}/@PERL_RELOCATE_DOUBLE@/g" lib/perl5/core_perl/Config_heavy.pl
sed -i "s/${pkgdir_pattern}/@PERL_RELOCATE@/g" lib/perl5/core_perl/Config_heavy.pl
for script in \
c2ph corelist cpan enc2xs encguess exetype h2ph h2xs instmodsh json_pp libnetcfg perlbug \
perldoc perlglob perlivp perlthanks piconv pl2bat pl2pm pod2html pod2man pod2text pod2usage podchecker \
podselect prove pstruct ptar ptardiff ptargrep runperl search shasum splain xsubpp zipdetails ; do
sed -i "s/${pkgdir_pattern}/@PERL_RELOCATE@/g" bin/${script}
done
At the moment I don't see that this is really necessary. Especially all perl modules are found without patching Config.PM etc.. But perhaps, if your application uses File::ShareDir or similar, this could make some troubles (even if I still havn't tested, whether this is really necessary!!!). So we should relocate perl after installing within the javascript file qt-ifw/packages/org.MyApp.root.base/installscript.js, too. This issue report is as a reminder, that I want to implement perl relocation in the next version...
The text was updated successfully, but these errors were encountered:
In the MINGW PKBUILD file for the perl mingw packages is done a path relocation after installation. The relevant lines are:
At the moment I don't see that this is really necessary. Especially all perl modules are found without patching Config.PM etc.. But perhaps, if your application uses File::ShareDir or similar, this could make some troubles (even if I still havn't tested, whether this is really necessary!!!). So we should relocate perl after installing within the javascript file qt-ifw/packages/org.MyApp.root.base/installscript.js, too. This issue report is as a reminder, that I want to implement perl relocation in the next version...
The text was updated successfully, but these errors were encountered: