Make the phar symlink point to the binary directory#1288
Make the phar symlink point to the binary directory#1288Ponce wants to merge 1 commit intophp:masterfrom
Conversation
Or we got a symlink pointing to the build files
|
I'm not sure this is correct - if phar.phar is installed in |
|
because $ ls -la /usr/bin/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 that's why when the link is created the destination it should point to ought to be the final one in the filesystem. |
|
driven by the curiosity I've checked how others do: fedora people are forced too fixing this manually when they assemble the package (source http://pkgs.fedoraproject.org/cgit/php.git/plain/php.spec) (cd $RPM_BUILD_ROOT%{_bindir}; ln -sfn phar.phar phar) and so opensuse (source https://build.opensuse.org/package/view_file/devel:languages:php/php5/php5.spec) rm %{buildroot}%{_bindir}/phar |
|
Perhaps even a simple (relative link are relative to directory of the link) For downstream packaging link to full path is not correct (can cause some issue in chrooted env, another reason why it is recreated in the fedora .spec file). |
|
@Ponce is there a bug report about this ? (required for NEWS) |
|
I think the reason why is recreated in the fedora .spec file it's because it's broken, as I explained above. regarding the bug report I gotta say I haven't checked... |
|
I think this have to be fixed in all branches (5.5+) |
No. Example, having ~/bin/phar.phar (echo "Damned") and /usr/bin/phar.phar |
|
ah, ok, sorry for the noise. :) do you want me to do another pull request? |
|
@Ponce yes please, and a bug report |
|
ok, hope I have done everything correctly |
Yes, thanks |
slackware current, php-5.6.8: spotted wrong link /usr/bin/phar.
seems an oversight present also in master.