Bug 1390885 - Bad definition of php_* macro
Summary: Bad definition of php_* macro
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Software Collections
Classification: Red Hat
Component: php
Version: rh-php70
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 2.3
Assignee: Remi Collet
QA Contact: David Jež
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-02 08:07 UTC by Remi Collet
Modified: 2021-01-14 09:19 UTC (History)
3 users (show)

Fixed In Version: rh-php70-php-7.0.10-2.el7 rh-php70-php-7.0.10-2.el6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-15 10:06:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
macros.patch (957 bytes, text/plain)
2016-11-02 08:31 UTC, Remi Collet
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:2730 0 normal SHIPPED_LIVE new packages: rh-php70 2016-11-15 14:44:31 UTC

Description Remi Collet 2016-11-02 08:07:01 UTC
In /usr/lib/rpm/macros.d/macros.rh-php70-config (from metapackage)

%scl_package_override() %{expand:
  %{?php70___pear:%global __pear %php70___pear}
  %{?php70___pecl:%global __pecl %php70___pecl}
  %{?php70___php:%global  __php  %php70___php}
  %global pear_metadir %php70_pear_metadir
  %global pear_xmldir  %php70_pear_xmldir
  %global pecl_xmldir  %php70_pecl_xmldir
  %global php_core_api %php70_php_core_api
  %global php_zend_api %php70_php_zend_api
  %global php_pdo_api  %php70_php_pdo_api
  %global php_version  %php70_php_version
  %global php_extdir   %php70_php_extdir
  %global php_inidir   %php70_php_inidir
  %global php_incldir  %php70_php_incldir
}

This is ok.

But in /usr/lib/rpm/macros.d/macros.rh-php70-php

#
# Interface versions exposed by PHP:
# 
%php56_php_core_api 20151012-64
%php56_php_zend_api 20151012-64
%php56_php_pdo_api  20150127-64
%php56_php_version  7.0.10
%php56_php_extdir   /opt/rh/rh-php70/root/usr/lib64/php/modules
%php56_php_inidir   /etc/opt/rh/rh-php70/php.d
%php56_php_incldir  /opt/rh/rh-php70/root/usr/include/php
%php56___php        /opt/rh/rh-php70/root/usr/bin/php

This is obviously wrong, thus %php_* macro are not (or badly) defined at buildtime, thus build of additional extensions is impossible.

Comment 1 Remi Collet 2016-11-02 08:31:43 UTC
Created attachment 1216391 [details]
macros.patch

Trivial patch fixing this issue.

Comment 8 errata-xmlrpc 2016-11-15 10:06:01 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-2730.html


Note You need to log in before you can comment on or make changes to this bug.