Bug #69680 [NEW]: phar symlink in binary directory broken

From: Date: Thu, 21 May 2015 11:51:09 +0000
Subject: Bug #69680 [NEW]: phar symlink in binary directory broken
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-192807@lists.php.net to get a copy of this message
From: matteo dot bernardini at gmail dot com Operating system: linux PHP version: Irrelevant Package: *Compile Issues Bug Type: Bug Bug description:phar symlink in binary directory broken 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 $ -- Edit bug report at https://bugs.php.net/bug.php?id=69680&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69680&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69680&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69680&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69680&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69680&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69680&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69680&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69680&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69680&r=support Expected behavior: https://bugs.php.net/fix.php?id=69680&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69680&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69680&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69680&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69680&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69680&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69680&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69680&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69680&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69680&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69680&r=mysqlcfg

« previous php.bugs (#192807) next »