Re: PHP 5.3.0, phar symlink breaks rpm building.
| From: | Rasmus Lerdorf | Date: | Thu, 02 Jul 2009 19:17:55 +0000 |
| Subject: | Re: PHP 5.3.0, phar symlink breaks rpm building. | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-44670@lists.php.net to get a copy of this message | ||
Xyntrix wrote:
> Congratulations on the 5.3 milestone!
>
> Packaging the 5.3.0 stable release into an RPM (linux) will error as the bin/phar symlink is
> created using the build-time path variable. This has been submitted as bug:
>
> http://bugs.php.net/bug.php?id=48740
>
> Patch:
>
> --- php-5.3.0/ext/phar/Makefile.frag.orig 2009-07-02 11:44:24.000000000 -0700
> +++ php-5.3.0/ext/phar/Makefile.frag 2009-07-02 11:45:42.000000000 -0700
> @@ -43,4 +43,4 @@
> install-pharcmd: pharcmd
> -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
> $(INSTALL) $(builddir)/phar.phar $(INSTALL_ROOT)$(bindir)
> - $(LN_S) -f $(INSTALL_ROOT)$(bindir)/phar.phar $(INSTALL_ROOT)$(bindir)/phar
> + $(LN_S) -f phar.phar $(INSTALL_ROOT)$(bindir)/phar
>
>
> I encourage this to be included in the next 5.3 release as it is likely cause some woe for
> vendors that are packaging php.
>
> I didn't see any specific rpm building automation tests available and the makerpm script
> included in the source is a bit dated. Would it be of any benefit to the community to provide an
> updated reference spec file and makerpm script for rpm capabable platforms?
Sure, I don't think we have been paying much attention to that.
Contributions would be welcome.
-Rasmus