phar symlink in binary directory broken
[2015-05-21 11:51 UTC] matteo dot bernardini at gmail dot com
Description: ------------ Platform: slackware64-current, php-5.6.8/9 The phar symlink in the binary directory point to a non-existing file in the build folder $ ls -la /usr/bin/phar lrwxrwxrwx 1 root root 35 mag 8 20:50 /usr/bin/phar -> /tmp/package-php//usr/bin/phar.phar but there's nothing in /tmp/package-php//usr/bin/phar.phar (the link is broken) and the invocation of phar from the command line fails $ ls -la /tmp/package-php//usr/bin/phar.phar /bin/ls: cannot access /tmp/package-php//usr/bin/phar.phar: No such file or directory $ ls -la /usr/bin/phar.phar -rwxr-xr-x 1 root root 14823 apr 24 20:32 /usr/bin/phar.phar the problem seems to be a line in the file ext/phar/Makefile.frag where the link is created with the following command $(LN_S) -f $(INSTALL_ROOT)$(bindir)/phar.phar $(INSTALL_ROOT)$(bindir)/phar we better omit the path and make the symlink relative (see also the discussion in https://github.com/php/php-src/pull/1288) the patch is a pull request on github: https://github.com/php/php-src/pull/1294 Test script: --------------- $ phar -bash: phar: command not found $ Expected result: ---------------- $ phar No command given, check /usr/bin/phar help $