Files
ports/math/polymake/files/patch-support_install.pl
Yuri Victorovich 2233fbcbff math/polymake: Re-add port: Software package for research in polyhedral geometry @ version=4.4
PR:		256861
Submitted by:	Philipp Ost <bsd@philippost.de> (original version)
2021-08-24 10:10:13 -07:00

12 lines
451 B
Raku

--- support/install.pl.orig 2021-05-18 08:50:05 UTC
+++ support/install.pl
@@ -316,7 +316,7 @@ sub rel_symlink {
my $rel_link = $link;
my $common_prefix = 1;
while ($rel_link =~ s{^(/[^/]+)(?=/)}{}) {
- if ($common_prefix && substr($target, 0, length($1)) eq $1) {
+ if ($common_prefix && substr($target, 0, length($1)+1) eq "$1/") {
$target = substr($target, length($1));
} else {
$common_prefix = 0;