Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 930141 - dev-lang/php-8.2.18 fails to compile: checking ORACLE_HOME library validity.. configure: error: Oracle library directory not found in client
Summary: dev-lang/php-8.2.18 fails to compile: checking ORACLE_HOME library validity.....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-17 13:03 UTC by Agostino Sarubbo
Modified: 2024-11-24 03:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,61.45 KB, text/plain)
2024-04-17 13:03 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,357.83 KB, text/plain)
2024-04-17 13:03 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-04-17 13:03:47 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/php-8.2.18 fails to compile.
Discovered on: amd64 (internal ref: gcc14_tinderbox)
System: GCC-14-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-14)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-04-17 13:03:48 UTC
Created attachment 890964 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-04-17 13:03:49 UTC
Created attachment 890965 [details]
1-config.log

1-config.log
Comment 3 Larry the Git Cow gentoo-dev 2024-04-21 15:13:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90806812741a118f53e94c5789c3c983f6ea83ee

commit 90806812741a118f53e94c5789c3c983f6ea83ee
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2024-04-21 14:58:40 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2024-04-21 15:11:49 +0000

    profiles/arch/amd64: un-unmask USE=oci8-instant-client on amd64
    
    This flag controls Oracle support in PHP, but our oracle ebuilds are no
    longer multilib and PHP can't detect it (at least on amd64, bugs 928312
    and 930141). Upstream has stopped supporting this extension anyway so
    it does not have a long life expectancy even on x86.
    
    Bug: https://bugs.gentoo.org/928312
    Closes: https://bugs.gentoo.org/930141
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 profiles/arch/amd64/use.mask | 1 -
 1 file changed, 1 deletion(-)
Comment 4 Larry the Git Cow gentoo-dev 2024-04-21 17:20:51 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b181c7e3b99671bec0a609dd5282c254da3c9d9

commit 8b181c7e3b99671bec0a609dd5282c254da3c9d9
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2024-04-21 17:19:48 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2024-04-21 17:20:41 +0000

    Revert "profiles/arch/amd64: un-unmask USE=oci8-instant-client on amd64"
    
    This broke CI and gentoo, need some handling for
    dev-php/PEAR-MDB2_Driver_oci8 and net-analyzer/zabbix.
    
    Reverts: 90806812741a118f53e94c5789c3c983f6ea83ee
    Bug: https://bugs.gentoo.org/928312
    Bug: https://bugs.gentoo.org/930141
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 profiles/arch/amd64/use.mask | 1 +
 1 file changed, 1 insertion(+)
Comment 5 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2024-04-21 17:21:31 UTC
needed to revert since it broke 2 packages CI
Comment 6 Timo Gurr 2024-05-21 13:58:28 UTC
FYI following workaround (for the time being until the split out pecl packages have any releas and have been packaged) allows us to successfully compile php 8.1.28 against dev-db/oracle-instantclient-21.13.0.0.0:0/21.1 on x86_64 again:

--- php-8.1.28.ebuild   2024-04-24 17:10:30.000000000 +0200
+++ php-8.1.28.ebuild.new       2024-05-21 15:51:53.463020374 +0200
@@ -413,7 +412,7 @@
        fi
 
        # Oracle support
-       our_conf+=( $(use_with oci8-instant-client oci8) )
+       our_conf+=( $(use_with oci8-instant-client "oci8=instantclient,/usr/lib64/oracle/client/lib64") )
 
        # PDO support
        if use pdo ; then
@@ -423,7 +422,7 @@
                        $(use_with postgres pdo-pgsql)
                        $(use_with sqlite pdo-sqlite)
                        $(use_with firebird pdo-firebird "${EPREFIX}/usr")
-                       $(use_with oci8-instant-client pdo-oci)
+                       $(use_with oci8-instant-client "pdo-oci=instantclient,/usr/lib64/oracle/client/lib64")
                )
        fi

Can't say anything about x86 as I'm unable to test and don't care personally but this allowed our webapp to continue working for now. Would be nice to have this fixed in the ebuild in some way or another, maybe it proves viable and can be applied after making changes to also respect the arch or restrict it to x86_64.
Comment 7 Larry the Git Cow gentoo-dev 2024-11-24 03:39:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92942d558340cd682462863582831146e28e1da0

commit 92942d558340cd682462863582831146e28e1da0
Author:     Michael Orlitzky <mjo@gentoo.org>
AuthorDate: 2024-11-24 03:32:28 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2024-11-24 03:37:33 +0000

    profiles/arch/amd64: re-un-unmask USE=oci8-instant-client on amd64
    
    I originally did this in April of 2024, but it broke CI because two
    packages still needed it, dev-php/PEAR-MDB2_Driver_oci8 and
    net-analyzer/zabbix. The former was removed in commit fca1c08b, and the
    latter dropped oracle support in ca8b5ad7.
    
    Closes: https://bugs.gentoo.org/930141
    Closes: https://bugs.gentoo.org/944349
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 profiles/arch/amd64/use.mask | 1 -
 1 file changed, 1 deletion(-)