Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  PHP 7.2.14-1 source rpm patches don't apply cleanly

    Posted Wed March 13, 2019 01:34 PM

    Originally posted by: Michael Jack


    When attempting to rebuild the PHP 7.2.14 source rpm, patching of the included patche files failed on the first file.

     

    The included patch files look to be derived from PHP 7.0.3, and the source code has changed content and line numbers since then, so the patch context doesn't match. Can this be corrected?

     

    Also, as this package has been intentionally set up to build in 32 bit mode, are there plans for generating a combined or standalone 64 bit PHP package, similar to the apache httpd package that provides both 32 and 64bit programs and settings.

     

    Thanks,

    Michael


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: PHP 7.2.14-1 source rpm patches don't apply cleanly

    Posted Wed March 13, 2019 01:44 PM

    Originally posted by: AyappanP


    I think you need to increase the patch fuzz level to 2 . By default, it will be 0 and the patch will be very strict in checking the line numbers.

    You have to set this in rpm macros file. To find the file, run "lslpp -f rpm.rte | grep macros" and search for fuzz in the file.

     

    And yes, there are plans to provide the 64 bit as well. The team is working on it.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: PHP 7.2.14-1 source rpm patches don't apply cleanly

    Posted Wed March 13, 2019 02:00 PM

    Originally posted by: Michael Jack


    Thanks for the quick update Ayappan.

     

    Glad to hear of the 64bit PHP plans.

     

    With respect to the patch fuzz setting, that sounds like a comment that should be added to the spec file near the patch file section.

    Had it been there it would have saved me some time overnight. Anyone like me who is not familiar with the mechanics of the rpm macros would find it useful.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 4.  Re: PHP 7.2.14-1 source rpm patches don't apply cleanly

    Posted Wed March 13, 2019 02:30 PM

    Originally posted by: AyappanP


    Yes sure. We will make sure this is properly addressed in the future.


    #AIX-Open-Source-Software
    #AIXOpenSource