Bug #67635 [Com]: php links to systemd libraries without using pkg-config

From: Date: Sun, 20 Jul 2014 09:17:40 +0000
Subject: Bug #67635 [Com]: php links to systemd libraries without using pkg-config
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186753@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=67635&edit=1

 ID:                 67635
 Comment by:         remi@php.net
 Reported by:        pacho at gentoo dot org
 Summary:            php links to systemd libraries without using
                     pkg-config
 Status:             Closed
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Linux
 PHP Version:        5.5.14
 Assigned To:        remi
 Block user comment: N
 Private report:     N

 New Comment:

Seems better to also use pkg-config for systemd < 209

http://git.php.net/?p=php-src.git;a=commitdiff;h=658f7d77f9eb447ecc2f9812d46b4c07bb99b16d


Previous Comments:
------------------------------------------------------------------------
[2014-07-19 16:49:22] remi@php.net

FYI, 

http://git.php.net/?p=php-src.git;a=commitdiff;h=144a08395408506fa700c71e74c360160da3bd99

http://git.php.net/?p=php-src.git;a=commitdiff;h=a051d7264dc5c21264e1244785d962ee1256874b

------------------------------------------------------------------------
[2014-07-19 16:47:43] remi@php.net

Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=7b6031567251ad47132de23f47eb57951fd9b563
Log: Fixed bug #67635 php links to systemd libraries without using pkg-config

------------------------------------------------------------------------
[2014-07-19 16:35:33] remi@php.net

Patch seems ok
Tested with Fedora 20 (v208) and 21 (v215).

Minor cosmetic : nothing in configure output about the check, I will apply your patch and add a
simple message

------------------------------------------------------------------------
[2014-07-16 17:53:34] pacho at gentoo dot org

Description:
------------
As reported downstream to:
https://bugs.gentoo.org/show_bug.cgi?id=502516

in systemd-209 the libsystemd-* libraries were removed and replaced with single libsystemd. We
install compatibility libsystemd-*.pc pkg-config files, so apps using pkg-config are not affected
(yet :)).

Since this package tries to link libsystemd-daemon directly, it fails terribly with
>=systemd-209.

The possibilities are:

1. use pkg-config to query libsystemd-daemon -- compatible with all versions but at some point we
will be removing compat pkg-config files,

2. use pkg-config to query libsystemd, fallback to querying libsystemd-daemon -- future- and
backwards-compatible,

3. just use libsystemd, and dep on >=systemd-209

Preferably, always use pkg-config :) Attached patch could be used



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=67635&edit=1


Thread (5 messages)

« previous php.bugs (#186753) next »